[BUG] Getting 400 API error every prompt: tool_use ids were found without tool_result
Resolved 💬 1 comment Opened Sep 17, 2025 by alanhamlett Closed Sep 18, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
⎿ Read PDF (2.4MB)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.12: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_0164dj1VZiRHAsW2rXJugiC2,
toolu_01HJPPbn2Qen3x7Lbsn9P2fs. Each `tool_use` block must have a corresponding `tool_result` block in the next message."},"request_id":"req_011CTEptkseLGvehVa6L8DnU"}
What Should Happen?
No error of course
Error Messages/Logs
Steps to Reproduce
Run any prompt. It happens every time. Last time I used claude code a week or two ago it was working fine.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.117 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗