claude-code - 💡(How to fix) Fix [FEATURE] Allow collapsing the code preview in permission prompts (VS Code extension) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52007Fetched 2026-04-23 07:39:02
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When the Claude Code VS Code extension asks for permission to run a tool call (e.g., a Bash command, file edit, or similar), the code/diff preview is rendered inline and pinned to the decision UI. On non-trivial actions the preview can be tall enough to push the preceding conversation and tool-call history off-screen.

The moment the permission prompt appears is exactly when I want to review the session history above — the commentary and prior tool calls that led to the proposed action — before deciding to approve or deny. With the preview expanded and pinned, scrolling back through that history is awkward, and on longer previews it's effectively not possible without losing my place in the prompt itself.

Proposed Solution

Add a user-initiated collapse toggle on the permission prompt's code preview in the VS Code extension. Concretely:

A small caret/chevron (or Collapse / Show preview affordance) on the preview panel that lets me minimize it to a one-line summary (e.g., Bash: <first line of command> or Edit: <file path>). While collapsed, the conversation history above is fully readable and scrollable. Expanding restores the full preview. The approve/deny buttons remain available in either state. Ideally the collapsed/expanded state is remembered for the session, or is a setting (claude-code.permissionPrompt.defaultCollapsed), so users who want history-first review don't have to toggle on every prompt.

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

Developer tools/SDK

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Add a user-initiated collapse toggle to the permission prompt's code preview in the VS Code extension to improve readability of conversation history.

Guidance

  • Consider adding a collapse/expand toggle button to the preview panel, allowing users to minimize it to a one-line summary.
  • The toggle should remember its state for the session or be configurable via a setting, such as claude-code.permissionPrompt.defaultCollapsed.
  • When collapsed, ensure the conversation history above the prompt is fully readable and scrollable.
  • Verify that the approve/deny buttons remain accessible in both collapsed and expanded states.

Example

No code snippet is provided as the issue does not contain specific implementation details.

Notes

The proposed solution aims to address a usability issue in the VS Code extension, but the implementation details may vary depending on the extension's architecture and technology stack.

Recommendation

Apply workaround: Add a collapse toggle to the permission prompt's code preview, as it directly addresses the reported issue and improves user productivity.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Allow collapsing the code preview in permission prompts (VS Code extension) [1 participants]