pingdotgg / pingdotgg/t3code

[Bug]: Unable to exit nvim in terminal drawer using escape key

Open
#6,362 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
Dominant language
TypeScript
Stars
23k
Forks
5.9k
Avg merge
11h 14m
Merged PRs (30d)
357

Description

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/desktop

Steps to reproduce
  1. Open a terminal drawer and use vim to open a file.
  2. press escape to enter command mode so that you can type q and exit
  3. it did not exit, vim never entered command mode
  4. 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
Image

Notice the q appears in the bottom right:

Image

In CMUX this is what it looks like:

Image

and if I press escape then :q in cmux:

Image

T3Code never reaches this point and is unable to enter command mode in nvim

Workaround

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the apps/desktop terminal drawer by reproducing the issue with nvim on macOS and comparing it with cmux. Trace how the Escape key is handled, then verify that Escape enters command mode and that :q and saving a file work without closing the terminal.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim, typescript
Domain
cli, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.