[Bug][WSL][tmux]: Cannot be interrupted by ESC #7756

Closed
opened 2026-02-16 18:08:08 -05:00 by yindo · 4 comments
Owner

Originally created by @FurryWolfX on GitHub (Jan 27, 2026).

Originally assigned to: @kommander on GitHub.

Description

[Bug][WSL][tmux]: Cannot be interrupted by ESC

Plugins

No response

OpenCode version

1.1.35

Steps to reproduce

  1. run opencode in tmux
  2. Press ESC when generating text

Screenshot and/or share link

No response

Operating System

Ubuntu 24 (WSL)

Terminal

Windows Terminal

Originally created by @FurryWolfX on GitHub (Jan 27, 2026). Originally assigned to: @kommander on GitHub. ### Description [Bug][WSL][tmux]: Cannot be interrupted by ESC ### Plugins _No response_ ### OpenCode version 1.1.35 ### Steps to reproduce 1. run opencode in tmux 2. Press ESC when generating text ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 24 (WSL) ### Terminal Windows Terminal
yindo added the windowsopentuibug labels 2026-02-16 18:08:08 -05:00
yindo closed this issue 2026-02-16 18:08:08 -05:00
Author
Owner

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

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

  • #3699: Interrupting Session via ESC does not work
  • #4354: Esc key doesn't interrupt AI generation in the Opencode VS Code extension
  • #5752: session_interrupt command doesn't work when binded in non-default
  • #8230: ESC key causes crash and permanent error message
  • #9942: Copy-on-Select fails when running opencode via Tmux in Kitty terminal (Linux)

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

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #3699: Interrupting Session via ESC does not work - #4354: Esc key doesn't interrupt AI generation in the Opencode VS Code extension - #5752: `session_interrupt` command doesn't work when binded in non-default - #8230: ESC key causes crash and permanent error message - #9942: Copy-on-Select fails when running opencode via Tmux in Kitty terminal (Linux) Feel free to ignore if none of these address your specific case. For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@FurryWolfX commented on GitHub (Jan 27, 2026):

It's good if not in tmux.

@FurryWolfX commented on GitHub (Jan 27, 2026): It's good if not in tmux.
Author
Owner

@mrjared16 commented on GitHub (Jan 28, 2026):

same here. tmux kill-pane also fail to terminate the process like older versions, maybe that's related?

@mrjared16 commented on GitHub (Jan 28, 2026): same here. tmux kill-pane also fail to terminate the process like older versions, maybe that's related?
Author
Owner

@kaikozlov commented on GitHub (Jan 29, 2026):

I was able to get around this issue by putting "tmux set-option -g escape-time 10" in my tmux config

@kaikozlov commented on GitHub (Jan 29, 2026): I was able to get around this issue by putting "tmux set-option -g escape-time 10" in my tmux config
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7756