Skip to content

feat(ui): add minimize keybinding to diff permission dialogs#3192

Open
jan-xyz wants to merge 2 commits into
charmbracelet:mainfrom
jan-xyz:feat/diff-view-minimize
Open

feat(ui): add minimize keybinding to diff permission dialogs#3192
jan-xyz wants to merge 2 commits into
charmbracelet:mainfrom
jan-xyz:feat/diff-view-minimize

Conversation

@jan-xyz

@jan-xyz jan-xyz commented Jun 23, 2026

Copy link
Copy Markdown

When Crush asks for permission to edit a file, the diff view takes over the entire screen. There's no way to scroll back through the conversation to check context — what the agent was trying to do, what files it already touched — before deciding to allow or deny. This makes it hard to make an informed decision, especially in longer sessions.

This adds an m keybinding to diff permission dialogs (edit, write, multi-edit) that completely hides the dialog and gives back the full chat view. While minimized, the editor input is replaced by a ⚠ Permission pending banner so the state is always visible, and only scroll keys are active — typing is intentionally blocked since a decision is still pending. Pressing m again restores the dialog exactly as it was.

Screenshot 2026-06-23 at 14 55 44 Screenshot 2026-06-23 at 14 55 33

AI attribution: Claude Sonnet (eu.anthropic.claude-sonnet-4-6) via Crush.

@jan-xyz jan-xyz marked this pull request as ready for review June 23, 2026 13:07
jan-xyz and others added 2 commits June 23, 2026 15:32
Adds an 'm' keybinding to permission dialogs that show a diff (edit,
write, multi-edit). Pressing 'm' hides the dialog entirely and replaces
the editor input area with a '⚠ Permission pending · press m to restore
diff view' banner, letting users scroll through the chat history to
review context before deciding. Pressing 'm' again restores the full
permission dialog.

While minimized, only scroll keys and 'm' are active; all other keys
are blocked to prevent accidental input while a permission is pending.

💘 Generated with Crush

Assisted-by: Crush:eu.anthropic.claude-sonnet-4-6
Co-authored-by: eu.anthropic.claude-sonnet-4-6 via Crush <charmcrush@users.noreply.github.com>
Co-authored-by: claude-sonnet-4-6 via Crush <charmcrush@users.noreply.github.com>
@jan-xyz jan-xyz force-pushed the feat/diff-view-minimize branch from 694b3ad to 4135ba7 Compare June 23, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant