Before submitting#
Area#
apps/desktop
Steps to reproduce#
- Open a terminal drawer and use
vim to open a file.
- press escape to enter command mode so that you can type q and exit
- it did not exit, vim never entered command mode
- Repeat steps 1 and 2 in cmux, this time it works
Expected behavior#
I expected the escape key to send vim into command mode so that I could exit
Actual behavior#
the escape is swallowed and vim does not enter command mode, and I'm unable to exit. I have to close the terminal.
Note this also means it's not possible to save changes to a file in vim from a t3code terminal pane
Impact#
Major degradation or frequent failure
Version or commit#
0.0.34-nightly.20260812.1077 (b73232bdd31e)
Environment#
MacOS 26.5
Logs or stack traces#
Screenshots, recordings, or supporting files#
Notice the q appears in the bottom right:
In CMUX this is what it looks like:
and if I press escape then :q in cmux:
T3Code never reaches this point and is unable to enter command mode in nvim
Workaround#
No response
Opened a fix in https://github.com/pingdotgg/t3code/pull/7203.
Bare Escape is forwarded to the PTY while the terminal drawer has focus, so vim/nvim can leave insert mode. The drawer still closes with
mod+w. Escape continues to dismiss the command palette and other overlays when those are actually open.