Permission prompt intercept keyboard inputs when a dialog is open #7378

Closed
opened 2026-02-16 18:06:59 -05:00 by yindo · 1 comment
Owner

Originally created by @tomzhu1024 on GitHub (Jan 23, 2026).

Originally assigned to: @kommander on GitHub.

Description

The permission prompts still intercept and respond to keyboard inputs when a dialog is open. For example, in the following video, the permission prompt in the back will still intercept keyboard inputs like "L", "LEFT", "ENTER" while the command dialog is open -- so you can't type "L" or move cursor in the search bar, also, pressing "ENTER" will not only trigger the command but also trigger the action on the permission prompt.

Plugins

N/A

OpenCode version

1.1.34

Steps to reproduce

  1. Change the permission "edit": "ask"
  2. Ask the model to edit a file
  3. Leave the permission prompt untouched
  4. Open "command dialog" with "Ctrl+P"
  5. Type "L" in the search bar --> unable
  6. Press "ENTER" on one item --> trigger the permission prompt

Screenshot and/or share link

https://github.com/user-attachments/assets/d5fc4db1-9123-4bfa-9ae3-348fe397cfe4

Operating System

macOS 26.2

Terminal

iTerm2

Originally created by @tomzhu1024 on GitHub (Jan 23, 2026). Originally assigned to: @kommander on GitHub. ### Description The permission prompts still intercept and respond to keyboard inputs when a dialog is open. For example, in the following video, the permission prompt in the back will still intercept keyboard inputs like "L", "LEFT", "ENTER" while the command dialog is open -- so you can't type "L" or move cursor in the search bar, also, pressing "ENTER" will not only trigger the command but also trigger the action on the permission prompt. ### Plugins N/A ### OpenCode version 1.1.34 ### Steps to reproduce 1. Change the permission `"edit": "ask"` 2. Ask the model to edit a file 3. Leave the permission prompt untouched 4. Open "command dialog" with "Ctrl+P" 5. Type "L" in the search bar --> unable 6. Press "ENTER" on one item --> trigger the permission prompt ### Screenshot and/or share link https://github.com/user-attachments/assets/d5fc4db1-9123-4bfa-9ae3-348fe397cfe4 ### Operating System macOS 26.2 ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 18:06:59 -05:00
yindo closed this issue 2026-02-16 18:07:00 -05:00
Author
Owner

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

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

  • #6616: [BUG]: UI becomes unresponsive when tool permission dialog appears - describes general unresponsiveness when permission dialogs are open
  • #7384: TUI: Commands modal passes Esc key 'through to the model - permission prompts capture Esc keys that should close the commands modal
  • #5820: [BUG] Autocomplete dropdown conflicts with permission dialog - visual overlap and keyboard event capture - describes keyboard conflict between dialogs and permission prompts
  • #3455: [FEATURE]: Make permissions dialog non-blocking and add modifier key shortcuts - requests non-blocking permissions and modifier key shortcuts to avoid accidental triggers

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

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #6616: [BUG]: UI becomes unresponsive when tool permission dialog appears - describes general unresponsiveness when permission dialogs are open - #7384: TUI: Commands modal passes `Esc` key 'through to the model - permission prompts capture Esc keys that should close the commands modal - #5820: [BUG] Autocomplete dropdown conflicts with permission dialog - visual overlap and keyboard event capture - describes keyboard conflict between dialogs and permission prompts - #3455: [FEATURE]: Make permissions dialog non-blocking and add modifier key shortcuts - requests non-blocking permissions and modifier key shortcuts to avoid accidental triggers Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7378