[BUG] Critical: Tool call pair maintenance.
Resolved 💬 3 comments Opened Jul 16, 2025 by junaid1460 Closed Nov 30, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: ( max plan )
- Claude CLI version: 1.0.53 (Claude Code)
- Operating System: Macos 15.0
- Terminal: Vscode
Bug Description
Tool call pairs are not maintained
Steps to Reproduce
- probably sending message at the right moment when tool executing
Expected Behavior
for it to work, not add directly maybe ? Maybe store the messages in local disk for me to fix ?
Actual Behavior
it's not maintaining the pair
Additional Context
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_re
quest_error","message":"messages.237: `tool_use` ids were
found without `tool_result` blocks immediately after:
toolu_013qojPNNYqGGL6C8CQHAXy3. Each `tool_use` block must
have a corresponding `tool_result` block in the next
message."}}
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗