Skip to content

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

Closed

Description

@liangxiao777

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.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 17, 2026
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 17, 2026
  3. github-actions commented on Jan 17, 2026

    @github-actions
    Contributor

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

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

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

  4. merge-debug-consult commented on Feb 18, 2026

    @merge-debug-consult

    Agree with this - also the current keybinding to fullscreen is ctrl + f - clashes with text search in VSCode, but is standard so I don't want to change the VSCode version

  5. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions