You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Permission prompt: diff preview not scrollable in compact view, keys not configurable #50903
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Description
When the TUI shows the permission prompt ("Allow once / Allow always / Reject") for an edit, the proposed diff in the prompt body is clipped at roughly 15 lines and there is no way to scroll it in the compact view. The diff only becomes scrollable after pressing ctrl+f (permission fullscreen mode), which is easy to miss.
Additionally, the scroll keys for this prompt (arrows / pageup / pagedown in fullscreen) are hardcoded — they cannot be remapped via tui.json. I tried dialog.select.page_up/page_down and the diff_* keybinds, but neither affects this prompt.
Expected behaviour
Either the compact permission prompt should be scrollable (e.g. with pageup/pagedown), or the prompt's scroll/fullscreen keys should be configurable in tui.json.
Confirming on V2 (2.0.18, Windows) and narrowing the ask to keyboard scrolling specifically.
In V2 the permission prompt has no keyboard scrolling: neither the compact view nor after ctrl+f (permission.prompt.fullscreen). up/down, pageup/pagedown, j/k, ctrl+u/ctrl+d do nothing; only the mouse wheel scrolls. Same on V1 as far as I can tell (I used V1 until recently), so I don't think this is a regression, the prompt simply never got keyboard scroll, unlike the /diff viewer and Shell output viewer, which both support it.
The scroll keys also aren't remappable: the diff.* IDs and dialog.select.page_up/page_down have no effect here.
Ask: add keyboard scrolling (and make it configurable), consistent with the diff viewer, at least when maximized with ctrl+f:
pageup/pagedown: one page
up/down, j/k: one line
home/end: start/end
e.g. as command IDs permission.prompt.page.down, permission.prompt.line.up, …
Why it matters: this is the only place to review a change before it's applied, so no keyboard scroll means deciding after reading only the visible portion, or reaching for the mouse.
Repro:
Edits/shell set to ask.
Ask for an edit whose diff is taller than the terminal.
Press ctrl+f in the Permission Required dialog.
Try the keys above, nothing scrolls; the wheel is the only option.
This is a basic feature and needs to be added..
I just tested opencode for the first time today.. compared to claude or codex it is really missing some basic features..
I could give this a shot if you're open to it. Keyboard scrolling for the permission prompt body (fullscreen), with configurable binds in cli.json. Can look into this after I get a design approval
@omarsrstt
Its looks like that there is already a PR open for this issue.
But it wouldn't be the first time that it would be closed automatically.. lets hope not.
You're on opencode 1.18.32, which is OpenCode v1 (the opencode-ai package). v1 now only gets fixes for critical bugs such as data loss, security problems or crashes with no workaround, so this request is unlikely to be picked up there. Until then, ctrl+f (permission fullscreen) is the way to scroll long diffs.
We'd encourage you to try OpenCode v2 (@opencode/cli, the opencode command), where all active development happens. In v2 the permission prompt's fullscreen toggle is a named keybind (permission.prompt.fullscreen) and the prompt shows its key, so it looks like it can be remapped. The compact view is still height-limited there.
If you try v2 and still want the compact prompt to scroll or the scroll keys to be configurable, please reply here or open a new issue. Please also reply if you think this is critical.
8. Thanks for the detailed write-up, @vgammieri-private!
You're on opencode 1.18.32, which is OpenCode v1 (the opencode-ai package). v1 now only gets fixes for critical bugs such as data loss, security problems or crashes with no workaround, so this request is unlikely to be picked up there. Until then, ctrl+f (permission fullscreen) is the way to scroll long diffs.
We'd encourage you to try OpenCode v2 (@opencode/cli, the opencode command), where all active development happens. In v2 the permission prompt's fullscreen toggle is a named keybind (permission.prompt.fullscreen) and the prompt shows its key, so it looks like it can be remapped. The compact view is still height-limited there.
If you try v2 and still want the compact prompt to scroll or the scroll keys to be configurable, please reply here or open a new issue. Please also reply if you think this is critical.
Here it comes again, a fucking stupid bot, closing once again a still open bug. You gotta love this..
Closing this as not planned. It was reported on opencode 1.18.32 (v1), which only gets critical fixes, and we haven't heard back since the note above.
Thank you for the clear report, @vgammieri-private. If you try OpenCode v2 (@opencode/cli) and the compact permission prompt still can't scroll long diffs, or the prompt's keys still can't be remapped in tui.json, please open a new issue with your v2 version and we'll take a look.
Activity
omarsrstt commentedon Oct 15, 2026
Confirming on V2 (2.0.18, Windows) and narrowing the ask to keyboard scrolling specifically.
In V2 the permission prompt has no keyboard scrolling: neither the compact view nor after
ctrl+f(permission.prompt.fullscreen).up/down,pageup/pagedown,j/k,ctrl+u/ctrl+ddo nothing; only the mouse wheel scrolls. Same on V1 as far as I can tell (I used V1 until recently), so I don't think this is a regression, the prompt simply never got keyboard scroll, unlike the/diffviewer and Shell output viewer, which both support it.The scroll keys also aren't remappable: the
diff.*IDs anddialog.select.page_up/page_downhave no effect here.Ask: add keyboard scrolling (and make it configurable), consistent with the diff viewer, at least when maximized with
ctrl+f:pageup/pagedown: one pageup/down,j/k: one linehome/end: start/ende.g. as command IDs
permission.prompt.page.down,permission.prompt.line.up, …Why it matters: this is the only place to review a change before it's applied, so no keyboard scroll means deciding after reading only the visible portion, or reaching for the mouse.
Repro:
ask.ctrl+fin the Permission Required dialog.Environment: opencode v2.0.18 · Windows 10.0.26200.9457 (x64) · xterm-256color · pwsh · latest.
Potentially related issues: #28191 (hardcoded
maxHeight: 15/ expanded state), #38526 and #51820 (long/permission command readability), #40953 (expose prompt commands to plugins), #10923 and #14797 (earlier permission-prompt scroll requests), #6901 and #7961 (permission buffer not scrollable).gysi commentedon Oct 17, 2026
This is a basic feature and needs to be added..
I just tested opencode for the first time today.. compared to claude or codex it is really missing some basic features..
omarsrstt commentedon Oct 26, 2026
I could give this a shot if you're open to it. Keyboard scrolling for the permission prompt body (fullscreen), with configurable binds in cli.json. Can look into this after I get a design approval
gysi commentedon Oct 26, 2026
@omarsrstt
Its looks like that there is already a PR open for this issue.
But it wouldn't be the first time that it would be closed automatically.. lets hope not.
opencodejr commentedon Oct 28, 2026
Thanks for the detailed write-up, @vgammieri-private!
You're on opencode 1.18.32, which is OpenCode v1 (the
opencode-aipackage). v1 now only gets fixes for critical bugs such as data loss, security problems or crashes with no workaround, so this request is unlikely to be picked up there. Until then,ctrl+f(permission fullscreen) is the way to scroll long diffs.We'd encourage you to try OpenCode v2 (
@opencode/cli, theopencodecommand), where all active development happens. In v2 the permission prompt's fullscreen toggle is a named keybind (permission.prompt.fullscreen) and the prompt shows its key, so it looks like it can be remapped. The compact view is still height-limited there.If you try v2 and still want the compact prompt to scroll or the scroll keys to be configurable, please reply here or open a new issue. Please also reply if you think this is critical.
gysi commentedon Oct 28, 2026
Here it comes again, a fucking stupid bot, closing once again a still open bug. You gotta love this..
opencodejr commentedon Oct 29, 2026
Closing this as not planned. It was reported on opencode 1.18.32 (v1), which only gets critical fixes, and we haven't heard back since the note above.
Thank you for the clear report, @vgammieri-private. If you try OpenCode v2 (
@opencode/cli) and the compact permission prompt still can't scroll long diffs, or the prompt's keys still can't be remapped intui.json, please open a new issue with your v2 version and we'll take a look.