Tool-call summary line clamps to 2 lines with no expand toggle

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 3, 2026

Extension: Claude Code for VS Code v2.1.220 (darwin-arm64)

Description:
Individual tool-call blocks in the chat panel (e.g. MCP tool invocations like execute_sql_query) render their header/summary line via a bare <summary> element with CSS -webkit-line-clamp: 2; overflow: hidden. There is no <details> wrapper and no click handler attached, so long content (e.g. a multi-line SQL query) gets hard-clipped at 2 lines with no way to expand it in the UI.

Elsewhere in the same extension, a proper <details>/<summary> collapse pattern is used and works correctly (e.g. the chat-compaction summary block), so the pattern exists — it's just not wired up for individual tool-call headers.

Steps to reproduce:

  1. Run any MCP tool call with a long query/argument (e.g. a multi-line SQL SELECT via a Snowflake MCP server).
  2. Observe the tool-call header in the chat panel.
  3. Long argument text is clipped after 2 lines; no button/toggle appears to view the rest.

Expected: Clicking the tool-call summary line (or a dedicated expand affordance) should reveal the full argument text, consistent with the <details>/<summary> behavior used elsewhere in the extension.

Actual: Content is silently truncated with no way to expand.

View original on GitHub ↗