Skip to content

press ESC again to interrupt doesn't work in tmux + ghostty (recent regression) #22629

Closed

Description

@drichardson

Description

When opencode is running, it says "press ESC again to interrupt". This has worked flawlessly for me since I've been using opencode until today. Now it does nothing.

My setup is macOS running GhosTTY with tmux, and opencode inside of that.

  • tmux 3.6a
  • opencode 1.4.6
  • ghostty 1.3.1

If I use Kitty instead of ghostty, the problem does not occur.
If I use Ghostty without tmux, the problem does not occur.

This problem didn't occur in the last version of opencode I was running (I assume 1.4.5 but I'm not sure it wasn't an earlier version).

I'm not sure where the actual bug lies since there are 3 pieces of software involved, but starting here in opencode since this used to work and no longer does.

Plugins

No response

OpenCode version

1.4.6

Steps to reproduce

  1. Run Ghostty
  2. tmux
  3. opencode
  4. Run a command that takes a few seconds to complete... and while it's running press ESC twice.

opencode is not interrupted.

Screenshot and/or share link

No response

Operating System

macOS 26.4.1 (25E253)

Terminal

Ghostty

Activity

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

    @github-actions
    Contributor

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

    If your issue is covered by one of those, please consider adding your details there instead.

  3. FurryWolfX commented on Apr 15, 2026

    @FurryWolfX

    try edit .tmux.conf

    set-option -g escape-time 10
    
  4. drichardson commented on Apr 15, 2026

    @drichardson
    Author

    @FurryWolfX i was just about to try your suggestion, but first went through my reproduction steps... and to my surprise I CANNOT REPRODUCE THIS ANYMORE ;-;

    Something is afoot, but I clearly didn't capture enough info in this ticket, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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