opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open spiffytech opened this issue 6 days ago • 2 comments

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

spiffytech avatar Jan 08 '26 21:01 spiffytech