[Bug] Anthropic API Error: Missing server_tool_use block for tool_result

Status Fixed / completed
Reported on v2.1.276
Maintainer reply None cached
Activity 1 comment · opened Sep 18, 2026 · closed Sep 23, 2026

Bug Description
I stopped being able to interact with a session, with error "API Error: 400 messages.15.content.0: unexpected tool_use_id found in advisor_tool_result blocks: srvtoolu_01DcAD2oDB6fdQXk4XdWShsW. Each advisor_tool_result block must have a corresponding server_tool_use block before it."

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.276
  • Feedback ID: 875ad5b9-85c7-4936-bd34-9ba6189b137b

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.15.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_01DcAD2oDB6fdQXk4XdWShsW. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CfBH7dj3SKASZJr9C9Urs\"}\n    at generate (/$bunfs/root/chunk-hd9xm3q1.js:11:14235)\n    at makeRequest (/$bunfs/root/chunk-hd9xm3q1.js:51:8033)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-09-18T17:12:41.186Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗