mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:51:25 +00:00
fix: add changelog and clean regression comment for tool-result guard (#25429) (thanks @mikaeldiakhate-cell)
This commit is contained in:
@@ -358,11 +358,9 @@ describe("installSessionToolResultGuard", () => {
|
||||
});
|
||||
});
|
||||
|
||||
// Regression test for orphaned tool_result bug
|
||||
// See: https://github.com/clawdbot/clawdbot/issues/XXXX
|
||||
// When an assistant message with toolCalls is aborted, no synthetic toolResult
|
||||
// should be created. Creating synthetic results for aborted/incomplete tool calls
|
||||
// causes API 400 errors: "unexpected tool_use_id found in tool_result blocks"
|
||||
// causes API 400 errors: "unexpected tool_use_id found in tool_result blocks".
|
||||
it("does NOT create synthetic toolResult for aborted assistant messages with toolCalls", () => {
|
||||
const sm = SessionManager.inMemory();
|
||||
installSessionToolResultGuard(sm);
|
||||
|
||||
Reference in New Issue
Block a user