[FEATURE]: TUI: Add full-file diff toggle in permission fullscreen view #6562

Open
opened 2026-02-16 18:04:36 -05:00 by yindo · 1 comment
Owner

Originally created by @liangxiao777 on GitHub (Jan 17, 2026).

Originally assigned to: @kommander on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem
Permission preview only shows a 4-line context diff by default. Reviewing code changes in isolation can make it hard to understand the surrounding logic, especially for larger files.

Desired Behavior
Add a keyboard shortcut ctrl+o in fullscreen permission view to toggle between:

  • Default diff (4-line context)
  • Full-file diff (all lines as context)
    The toggle should only appear when in fullscreen mode (after ctrl+f).
  • Press Ctrl+O again to return to the default 4-line context diff.

User Value

  • Better context when reviewing changes
  • Faster approval decisions with full-file understanding
  • No breaking changes—default behavior unchanged

Design Review Required
This is a UI/core product feature and requires design review per CONTRIBUTING guidelines before implementation.

Implementation Status
Implementation is complete and ready for PR after design approval.

Originally created by @liangxiao777 on GitHub (Jan 17, 2026). Originally assigned to: @kommander on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request **Problem** Permission preview only shows a 4-line context diff by default. Reviewing code changes in isolation can make it hard to understand the surrounding logic, especially for larger files. **Desired Behavior** Add a keyboard shortcut `ctrl+o` in fullscreen permission view to toggle between: - Default diff (4-line context) - Full-file diff (all lines as context) The toggle should only appear when in fullscreen mode (after `ctrl+f`). - Press Ctrl+O again to return to the default 4-line context diff. **User Value** - Better context when reviewing changes - Faster approval decisions with full-file understanding - No breaking changes—default behavior unchanged **Design Review Required** This is a UI/core product feature and requires design review per CONTRIBUTING guidelines before implementation. **Implementation Status** ✅ Implementation is complete and ready for PR after design approval.
yindo added the opentuidiscussion labels 2026-02-16 18:04:36 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 17, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7091: [FEATURE]: permission required section too small for reviewing code before approving it
  • #7189: I want to off internal scroll of diffs when its asking for permission to edit files
  • #7961: When the permission request window is too large I can't scroll to the bottom to see it
  • #8955: expanded permission prompt shows content behind it

Feel free to ignore if none of these address your specific case.

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #7091: [FEATURE]: permission required section too small for reviewing code before approving it - #7189: I want to off internal scroll of diffs when its asking for permission to edit files - #7961: When the permission request window is too large I can't scroll to the bottom to see it - #8955: expanded permission prompt shows content behind it Feel free to ignore if none of these address your specific case. For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6562