Files
vscode/extensions
Bhavya U a9c0f03fb7 fix: prevent tool deferral when tool_search is not in request (#312406)
fix: prevent tool deferral when tool_search is not in request (#311946)

When a custom agent restricts tools to only MCP tools, tool_search gets
filtered out but toolSearchEnabled remained true. This caused all tools
to get defer_loading=true, which Anthropic rejects with 'At least one
tool must have defer_loading=false'.

Add a defense-in-depth check in both Messages API and Responses API:
verify tool_search is actually present in the request's tool list before
enabling tool deferral. This aligns with the BYOK path which already
had this guard.
2026-04-24 12:24:34 -07:00
..
2026-04-23 19:38:15 -07:00
2026-04-23 19:38:15 -07:00
2026-04-16 22:03:37 -04:00
2026-04-16 22:03:37 -04:00