[Bug] Anthropic API Error: Tool result block missing corresponding tool use block

Status Fixed / completed
Reported on v2.1.150
Maintainer reply None cached
Activity 3 comments · opened May 26, 2026 · closed May 28, 2026

Bug Description
API Error: 400 messages.3.content.0: unexpected tool_use_id found in advisor_tool_result blocks: srvtoolu_01CEWJGSAardci5Upwgm4P6a. Each advisor_tool_result block must have
a corresponding server_tool_use block before it.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.150
  • Feedback ID: 120136db-1228-4082-8759-0832c0b1a146

Errors

[]

View original on GitHub ↗

3 Comments

github-actions[bot] · 3 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/53594
  2. https://github.com/anthropics/claude-code/issues/50527
  3. https://github.com/anthropics/claude-code/issues/60523

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

mgarbvs · 3 months ago

Seeing this as well

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.