Add scroll keybindings to permission prompt, error screen, and sidebar #7789

Open
opened 2026-02-16 18:08:13 -05:00 by yindo · 3 comments
Owner

Originally created by @felipemadero on GitHub (Jan 27, 2026).

Originally assigned to: @kommander on GitHub.

Description

Several scrollbox components in the TUI lack keyboard scroll support. Additionally, the error screen buttons only work with mouse clicks.

  1. Permission prompt - Shows diffs for edit permissions but has no way to scroll
  2. Error screen - Shows stack traces but can't scroll; buttons only work with mouse
  3. Sidebar - Shows session info but can't scroll when content overflows

Changes

Permission prompt & Error screen

Add scroll keybindings:

  • up / down / j / k - scroll one line
  • pageup / pagedown - scroll half page
  • home / end - scroll to top/bottom

Error screen buttons

Add keyboard shortcuts for buttons (previously mouse-only):

  • c - Copy issue URL
  • r - Reset TUI
  • x / escape - Exit

Sidebar

Add scroll keybindings:

  • ctrl+shift+up / ctrl+shift+down - scroll one line

Documentation

Updated keybinds.mdx with sidebar scroll keybindings.

Originally created by @felipemadero on GitHub (Jan 27, 2026). Originally assigned to: @kommander on GitHub. ## Description Several scrollbox components in the TUI lack keyboard scroll support. Additionally, the error screen buttons only work with mouse clicks. 1. **Permission prompt** - Shows diffs for edit permissions but has no way to scroll 2. **Error screen** - Shows stack traces but can't scroll; buttons only work with mouse 3. **Sidebar** - Shows session info but can't scroll when content overflows ## Changes ### Permission prompt & Error screen Add scroll keybindings: - `up` / `down` / `j` / `k` - scroll one line - `pageup` / `pagedown` - scroll half page - `home` / `end` - scroll to top/bottom ### Error screen buttons Add keyboard shortcuts for buttons (previously mouse-only): - `c` - Copy issue URL - `r` - Reset TUI - `x` / `escape` - Exit ### Sidebar Add scroll keybindings: - `ctrl+shift+up` / `ctrl+shift+down` - scroll one line ## Documentation Updated `keybinds.mdx` with sidebar scroll keybindings.
yindo added the opentui label 2026-02-16 18:08:13 -05:00
Author
Owner

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

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

Critical Duplicates (Same or Very Similar Feature):

  • #6901: TUI buffer not scrollable when permission is prompted
  • #7961: Permission request window too large - can't scroll to see bottom
  • #4934: Scrolling induces permission rejection
  • #7189: Disable internal scroll of diffs in permission prompt

Related Issues (Permission Prompt Keyboard Support):

  • #7954: Regression - Permission prompt keyboard shortcuts (enter/a/d) were removed and need restoration
  • #9447: Allow numeric key press to select permission request answers
  • #10623: Add consistent ESC key support to close all popup dialogs

Related Issues (General TUI Scrolling):

  • #8978: Scroll line-by-line like Vim ctrl-e and ctrl-y
  • #9314: TUI status dialog is not scrollable
  • #8955: Expanded permission prompt shows content behind it

General Keybinding Reference:

  • #4997: Main keybinds documentation and discussion - please check for context on TUI keybinding standards
  • #8730: Keybind hints and discoverability

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

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: ## Critical Duplicates (Same or Very Similar Feature): - #6901: TUI buffer not scrollable when permission is prompted - #7961: Permission request window too large - can't scroll to see bottom - #4934: Scrolling induces permission rejection - #7189: Disable internal scroll of diffs in permission prompt ## Related Issues (Permission Prompt Keyboard Support): - #7954: Regression - Permission prompt keyboard shortcuts (enter/a/d) were removed and need restoration - #9447: Allow numeric key press to select permission request answers - #10623: Add consistent ESC key support to close all popup dialogs ## Related Issues (General TUI Scrolling): - #8978: Scroll line-by-line like Vim ctrl-e and ctrl-y - #9314: TUI status dialog is not scrollable - #8955: Expanded permission prompt shows content behind it ## General Keybinding Reference: - **#4997**: Main keybinds documentation and discussion - please check for context on TUI keybinding standards - #8730: Keybind hints and discoverability Feel free to ignore if none of these address your specific case.
Author
Owner

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

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

@github-actions[bot] commented on GitHub (Jan 27, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@mynameistito commented on GitHub (Jan 27, 2026):

Already done here bro: https://github.com/anomalyco/opencode/pull/9315

Open to colab on it though!

@mynameistito commented on GitHub (Jan 27, 2026): Already done here bro: https://github.com/anomalyco/opencode/pull/9315 Open to colab on it though!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7789