Skip to content

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

@spiffytech

Description

@spiffytech

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions