TUI: Commands modal passes Esc key 'through to the model #4460

Open
opened 2026-02-16 17:43:50 -05:00 by yindo · 2 comments
Owner

Originally created by @spiffytech on GitHub (Jan 8, 2026).

Originally assigned to: @kommander on GitHub.

Description

When I close the commands modal, the Esc keypress also interacts with permission prompts

Plugins

No response

OpenCode version

1.1.7

Steps to reproduce

  1. Get the model to prompt you for permission to do something (prompt: Run 'ls' here)
  2. Open the commands modal: ctrl-p
  3. Press Esc key
  4. Observe that the permission request has been cancelled, and the model (usually?) behaves as if it was rejected.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @spiffytech on GitHub (Jan 8, 2026). Originally assigned to: @kommander on GitHub. ### Description When I close the commands modal, the `Esc` keypress also interacts with permission prompts ### Plugins _No response_ ### OpenCode version 1.1.7 ### Steps to reproduce 1. Get the model to prompt you for permission to do something (prompt: `Run 'ls' here`) 2. Open the commands modal: ctrl-p 3. Press `Esc` key 4. Observe that the permission request has been cancelled, and the model (usually?) behaves as if it was rejected. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:43:50 -05:00
Author
Owner

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

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

  • #6901: TUI buffer not scrollable when permission is prompted - related to keyboard/input handling with permission prompts
  • #7319: [FEATURE]: Add double-ESC to clear input field - related to ESC key handling in TUI

Additionally, since this involves keybinds and keyboard shortcuts, please also check our pinned keybinds documentation: #4997

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

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #6901: TUI buffer not scrollable when permission is prompted - related to keyboard/input handling with permission prompts - #7319: [FEATURE]: Add double-ESC to clear input field - related to ESC key handling in TUI Additionally, since this involves keybinds and keyboard shortcuts, please also check our pinned keybinds documentation: #4997 Feel free to ignore if none of these address your specific case.
Author
Owner

@kommander commented on GitHub (Jan 8, 2026):

Will be fixed in the next release.

@kommander commented on GitHub (Jan 8, 2026): Will be fixed in the next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4460