You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Claude agent host: native (Anthropic-auth) sessions have WebSearch disabled by the CAPI-only disallowedTools block #337886
Harness: Claude agent host, native Anthropic auth (CLAUDE_CODE_OAUTH_TOKEN)
Problem
buildOptions in src/vs/platform/agentHost/node/claude/claudeSdkOptions.ts always passes disallowedTools: ['WebSearch'] to the Claude Agent SDK, for both transports.
The reason is documented in src/vs/platform/agentHost/node/claude/roadmap.md: "CAPI does not yet support the WebSearch tool. Without this the SDK may invoke it and the upstream CAPI call will fail mid-session." That applies to the Copilot proxy transport. On the native transport the SDK talks to Anthropic directly, where WebSearch works, so native sessions lose web search for a reason that doesn't apply to them.
Evidence
In native Claude sessions before any change, the transcripts show zero web searches over a day of use; the model could only fetch URLs it already knew.
With the disallowedTools entry removed for native sessions, the model called WebSearch and received results normally.
Proposed fix
Keep the block for transport.kind === 'proxy' and omit it for 'native'. buildOptions already computes isProxy for the same kind of transport-specific setting (ANTHROPIC_BASE_URL, subprocess env). I'll open a PR with the change and tests.
Still reproduces on 1.142.0 with native Anthropic auth (CLAUDE_CODE_OAUTH_TOKEN): Claude sessions never call WebSearch, while the same account in the terminal does. I'm working around it with a self-hosted SearXNG MCP server, which works but is extra infrastructure. The approach in #337887 of keeping the block only for the proxy transport matches what I'd expect.
Activity
Claude agent host: keep WebSearch available on the native transport
benji-farquhar commentedon Oct 16, 2026
Still reproduces on 1.142.0 with native Anthropic auth (CLAUDE_CODE_OAUTH_TOKEN): Claude sessions never call WebSearch, while the same account in the terminal does. I'm working around it with a self-hosted SearXNG MCP server, which works but is extra infrastructure. The approach in #337887 of keeping the block only for the proxy transport matches what I'd expect.