When a session is aborted mid-tool-execution, the assistant message can be persisted twice (once by message_end, once by the abort handler). The repair logic failed to handle this: it generated a synthetic tool result for the first copy but deduplicated the result for the second, leaving an orphaned tool call that caused "tool_call_id is not found" errors on all subsequent API calls. Detect and remove duplicate assistant messages whose tool call IDs have all already been paired with results from an earlier copy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| core | ||
| hooks | ||
| sdk | ||
| store | ||
| types | ||
| ui | ||
| utils | ||