Bug Description
When the VS Code sidebar panel is narrow (~300px) or after extended chat sessions with many code blocks and terminal outputs, the Accept/Reject buttons in PendingToolCallToolbar are clipped (partially or fully hidden).
This makes it impossible for users to approve or reject tool calls, blocking the conversation flow.
Root Cause
- Flexbox with
shrink-0 — buttons cannot shrink and are pushed outside visible area
- Viewport-relative
max-width — calc(100vw - 24px) uses viewport width (e.g., 1920px) instead of container width (e.g., 300px sidebar)
- Missing shrink constraints — flex hierarchy lacks
min-w-0 at critical points
Fix
PR #13131 fixes this by:
- Switching toolbar from flexbox to CSS Grid (
grid-cols-[minmax(0,1fr)_auto])
- Replacing
calc(100vw - 24px) with container-relative 100%
- Adding
min-w-0 and overflow-hidden throughout the chat UI hierarchy
Impact
- Before: Buttons clipped in narrow sidebar, users cannot approve/reject tool calls
- After: Buttons always visible, consistent layout containment
Reproduction
- Open Continue sidebar in VS Code
- Resize sidebar to minimum width (~300px)
- Trigger a tool call (e.g., ask to edit a file)
- Observe: Accept/Reject buttons are clipped
Related
Bug Description
When the VS Code sidebar panel is narrow (~300px) or after extended chat sessions with many code blocks and terminal outputs, the Accept/Reject buttons in
PendingToolCallToolbarare clipped (partially or fully hidden).This makes it impossible for users to approve or reject tool calls, blocking the conversation flow.
Root Cause
shrink-0— buttons cannot shrink and are pushed outside visible areamax-width—calc(100vw - 24px)uses viewport width (e.g., 1920px) instead of container width (e.g., 300px sidebar)min-w-0at critical pointsFix
PR #13131 fixes this by:
grid-cols-[minmax(0,1fr)_auto])calc(100vw - 24px)with container-relative100%min-w-0andoverflow-hiddenthroughout the chat UI hierarchyImpact
Reproduction
Related
jetbrains-testsflaky upstream)