[BUG] advisor_tool_results

Resolved 💬 2 comments Opened Jun 4, 2026 by FLGAI Closed Jun 8, 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?

I'm running a session with 2.1.162 in CC. I've tried asking /btw and get this error:

/btw why ********?
/btw why
********?

API Error: 400 messages.5.content.0: unexpected tool_use_id found in advisor_tool_result blocks: **********. Each advisor_tool_result block must have a corresponding server_tool_use block before it.

What Should Happen?

just in iterm2 terminal, when i use "/btw" to ask a question i get the error.

Error Messages/Logs

I'm running a session with 2.1.162 in CC. I've tried asking /btw and get this error:

 /btw why **********?
    /btw why **********?

      API Error: 400 messages.5.content.0: unexpected tool_use_id found in advisor_tool_result blocks: **********. Each advisor_tool_result block must have a corresponding server_tool_use block before it.

Steps to Reproduce

I've done three /btw calls and it happens every time. I'm also in ultracode effort mode for the session

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.162

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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