Skip to content

Commit 8523d32

Browse files
committed
fix(agents): mark repaired legacy tool results errored
1 parent b414020 commit 8523d32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agents/session-transcript-repair.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function normalizeLegacyToolResultId(
189189
if (toolResultName && toolCallName && toolResultName !== toolCallName) {
190190
return message;
191191
}
192-
return { ...message, toolCallId: toolCall.id };
192+
return { ...message, toolCallId: toolCall.id, isError: true };
193193
}
194194

195195
export { makeMissingToolResult };

0 commit comments

Comments
 (0)