SIGN IN SIGN UP

fix(claude): restore tool_search_tool_result references and recognize advisor/agent server tools (#5044) (#5082)

- Add bidirectional remapping for nested tool_references inside tool_search_tool_result across non-stream, SSE stream, and multi-turn message history.
- Add advisor_ and agent_toolset_ to IsClaudeServerToolType to prevent schema stripping and MCP aliasing on native Anthropic server tools.
- Wrap MCP alias restoration errors in claudeMCPAliasRestoreError with IsRequestScoped() bool to avoid cooling down healthy OAuth credentials.
- Add unit tests for tool_search_tool_result remapping, error variants, server tool recognition, and error scoping.
S
sususu98 committed
788e9b79285246d359522788ee03a78226d392c4
Parent: ec105da
Committed by GitHub <noreply@github.com> on 8/19/2026, 2:29:51 PM