[BUG] After agent used advisor the conversation got broken and keeps returning API Error: 400

Resolved 💬 2 comments Opened Apr 26, 2026 by pambuk Closed May 30, 2026

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?

After agent (sonnet-4.6) used advisor (opus-4.7`) messages got broken and now every new one returns

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_014ccZkeiajxpfYg2ykPVCks. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it."},"request_id":"req_011CaSjjHdYvm4nH8ukswG6h"}

What Should Happen?

Conversation should continue.

Error Messages/Logs

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_014ccZkeiajxpfYg2ykPVCks. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it."},"request_id":"req_011CaSjjHdYvm4nH8ukswG6h"}

Steps to Reproduce

  1. Enable advisor to use Opus 4.7 while using Sonnet 4.6
  2. Ask for help with architecture of application

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.119 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

"request_id":"req_011CaSjdeCPhUGHLyghoxvdt"

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗