Skip to content

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

Closed as not planned

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 8, 2026
  2. github-actions commented on Jan 8, 2026

    @github-actions
    Contributor

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

    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.

  3. kommander commented on Jan 8, 2026

    @kommander
    Contributor

    Will be fixed in the next release.

  4. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  5. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions