VS Code extension: 'Unsupported content type: advisor_tool_result' in webview
Description
When the advisor() tool is called during a Claude Code session in VS Code, the result content block (type advisor_tool_result) is rendered in the webview as:
Unsupported content type: advisor_tool_result
The advisor tool works correctly — the model receives and uses the advisor's response — but the VS Code webview panel does not have a renderer for this content block type, so it falls through to the unknownContent catch-all div.
Steps to reproduce
- Open Claude Code in VS Code (extension v2.1.247)
- Start a session where the advisor tool is available and gets called
- Observe the webview panel after the advisor returns
Expected behavior
The advisor tool result should render its text content inline (similar to how tool_result blocks are rendered), or at minimum be hidden/collapsed gracefully rather than showing an "Unsupported content type" error.
Actual behavior
A visible div with "Unsupported content type: advisor_tool_result" appears in the conversation panel for every advisor call.
Environment
- Claude Code VS Code extension: 2.1.247 (latest available as of 2026-08-28)
- Claude Code CLI: 2.1.251 (handles
advisor_resultinner type correctly) - OS: Ubuntu Linux (Azure VM)
Analysis
The webview renderer in index.js handles these content types: document, fallback, image, redacted_thinking, server_tool_use, text, thinking, tool_result, tool_use. The advisor_tool_result type (and its inner advisor_result type) are not in this list.
The Anthropic Python SDK already defines BetaAdvisorToolResultBlock with type: Literal["advisor_tool_result"] in anthropic.types.beta, and the CLI binary (2.1.251) handles the inner advisor_result and advisor_tool_result_error types — so the API contract exists, the extension webview just hasn't been updated to match.