We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e1da2 commit 8386e83Copy full SHA for 8386e83
src/core/task/Task.ts
@@ -861,7 +861,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
861
}
862
863
// Validate and fix tool_result IDs against the previous assistant message
864
- // Walk backwards to find the previous assistant message without creating intermediate arrays
865
let previousAssistantMessage: Anthropic.MessageParam | undefined
866
for (let i = this.apiConversationHistory.length - 1; i >= 0; i--) {
867
if (this.apiConversationHistory[i].role === "assistant") {
0 commit comments