You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Each tool_use block must have a corresponding tool_result block in the next message" when interrupting Sonnet 4.5 convo during tool call #3230
AI_APICallError: messages.125: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_016GGBqBmVVf9JWMNFbWA781. Each `tool_use` block must have a corresponding `tool_result` block in the next message.
This error presents itself when I interrupt a conversation whilst a tool call is active and hasn't responded.
The model is Sonnet 4.5
Activity
github-actions commentedon Oct 16, 2025
This issue might be a duplicate of existing issues. Please check:
tool_useids were found withouttool_resultblocks immediately after #1662: Identical error message with tool_use ids found without tool_result blocks, also occurs regularly with Sonnet 4tool_useids were found withouttool_resultblocks immediately after: toolu_01G5ipgNZWmDHuV6cvzyQpfH. Eachtool_useblock must have a correspondingtool_resultblock in the next message. #2214: Same error specifically when interrupting responses mid-flightFeel free to ignore if none of these address your specific case.
hellowodl commentedon Oct 16, 2025
Duplicate