Environment
- Platform (select one):
- 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."}}
Environment
Bug Description
Tool call pairs are not maintained
Steps to Reproduce
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."}}