[Bug] Anthropic API Error: Missing corresponding server_tool_use block for advisor_tool_result
Open 💬 3 comments Opened May 27, 2026 by khash
Bug Description
started getting this all of a sudden. turned off advisor, and still the same API Error: 400 messages.7.content.0: unexpected tool_use_id found in advisor_tool_result blocks: srvtoolu_01TCvooHAGVGdTUkNybFFiVd. Each
advisor_tool_result block must have a corresponding server_tool_use block before it.
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.152
- Feedback ID: 50783c22-facf-4281-a54d-665c1218a7b8
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.7.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_01TCvooHAGVGdTUkNybFFiVd. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CbTV3MxELJGMcz8RbzES5\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63975)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-27T17:40:44.829Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗