press ESC again to interrupt does not work #641

Closed
opened 2026-02-16 17:27:41 -05:00 by yindo · 21 comments
Owner

Originally created by @codyseally on GitHub (Jul 11, 2025).

Originally assigned to: @thdxr on GitHub.

I logged into my Ubuntu machine and played with opencode a bit (I updated it to the latest version). I notice that I press ESC once and it tells me to press again to interrupt the LLM. No matter how many times I press ESC, it just oscillate between (ESC / Press again to interrupt). I finally have to Ctrl+C.

Originally created by @codyseally on GitHub (Jul 11, 2025). Originally assigned to: @thdxr on GitHub. I logged into my Ubuntu machine and played with opencode a bit (I updated it to the latest version). I notice that I press ESC once and it tells me to press again to interrupt the LLM. No matter how many times I press ESC, it just oscillate between (ESC / Press again to interrupt). I finally have to Ctrl+C.
yindo closed this issue 2026-02-16 17:27:41 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 11, 2025):

what model is this with? i tried to replicate and i could not

@thdxr commented on GitHub (Jul 11, 2025): what model is this with? i tried to replicate and i could not
Author
Owner

@codyseally commented on GitHub (Jul 12, 2025):

I tried it with Devstral. It seems when being asked to use tools and it was not responding / thinking , the ESC mode did not work to stop it.

@codyseally commented on GitHub (Jul 12, 2025): I tried it with Devstral. It seems when being asked to use tools and it was not responding / thinking , the ESC mode did not work to stop it.
Author
Owner

@nitsanavni commented on GitHub (Jul 12, 2025):

For me it's a hit and miss, most of the time it doesnt pick-up my double ESC.

@nitsanavni commented on GitHub (Jul 12, 2025): For me it's a hit and miss, most of the time it doesnt pick-up my double ESC.
Author
Owner

@bdeluca commented on GitHub (Jul 12, 2025):

I am just holding down escape watching it spend an hour systematically destroy all the work it had done, with Sonnet 4

@bdeluca commented on GitHub (Jul 12, 2025): I am just holding down escape watching it spend an hour systematically destroy all the work it had done, with Sonnet 4
Author
Owner

@MatejBransky commented on GitHub (Jul 14, 2025):

I have the same problem with Sonnet 4.

@MatejBransky commented on GitHub (Jul 14, 2025): I have the same problem with Sonnet 4.
Author
Owner

@izakfilmalter commented on GitHub (Jul 14, 2025):

Ya running into this with sonnet 4

@izakfilmalter commented on GitHub (Jul 14, 2025): Ya running into this with sonnet 4
Author
Owner

@furai commented on GitHub (Jul 14, 2025):

Having same issue with Claude Opus 4.

@furai commented on GitHub (Jul 14, 2025): Having same issue with Claude Opus 4.
Author
Owner

@chriscarrollsmith commented on GitHub (Jul 14, 2025):

Me too

@chriscarrollsmith commented on GitHub (Jul 14, 2025): Me too
Author
Owner

@rossvz commented on GitHub (Jul 14, 2025):

Same issue with Sonnet 4

@rossvz commented on GitHub (Jul 14, 2025): Same issue with Sonnet 4
Author
Owner

@adamdotdevin commented on GitHub (Jul 14, 2025):

this was fixed in a release today, can you all confirm?

@adamdotdevin commented on GitHub (Jul 14, 2025): this was fixed in a release today, can you all confirm?
Author
Owner

@furai commented on GitHub (Jul 15, 2025):

So far seems to be working, will test more. Thank you!

@furai commented on GitHub (Jul 15, 2025): So far seems to be working, will test more. Thank you!
Author
Owner

@nitsanavni commented on GitHub (Jul 15, 2025):

works better here too

@nitsanavni commented on GitHub (Jul 15, 2025): works better here too
Author
Owner

@izakfilmalter commented on GitHub (Jul 15, 2025):

Fixed for me.

@izakfilmalter commented on GitHub (Jul 15, 2025): Fixed for me.
Author
Owner

@PhunkyBob commented on GitHub (Jul 16, 2025):

Debian on WSL2, Google's Gemini 2.5 pro preview 06-05 -> double Escape doesn't work for me with version v0.3.13 when it's "working..." for a long time without doing anything.

My guess: when the model is unresponsive, double Escape doesn't work.

@PhunkyBob commented on GitHub (Jul 16, 2025): Debian on WSL2, Google's Gemini 2.5 pro preview 06-05 -> double Escape doesn't work for me with version v0.3.13 when it's "working..." for a long time without doing anything. My guess: when the model is unresponsive, double Escape doesn't work.
Author
Owner

@RoRep1ay commented on GitHub (Jul 22, 2025):

Still having issue same as @PhunkyBob

@RoRep1ay commented on GitHub (Jul 22, 2025): Still having issue same as @PhunkyBob
Author
Owner

@gabrielmontagne commented on GitHub (Aug 5, 2025):

Same here, on Debian, 0.3.131, I can't cancel operations. Opencode runs off until it runs out of steam.

@gabrielmontagne commented on GitHub (Aug 5, 2025): Same here, on Debian, 0.3.131, I can't cancel operations. Opencode runs off until it runs out of steam.
Author
Owner

@nikhilmaddirala commented on GitHub (Sep 7, 2025):

I faced this issue today with Grok Code

@nikhilmaddirala commented on GitHub (Sep 7, 2025): I faced this issue today with Grok Code
Author
Owner

@nandilugio commented on GitHub (Oct 15, 2025):

seeing this too using gpt 4.1 and grok code fast 1. I'm also not able to kill with ctrl-c

@nandilugio commented on GitHub (Oct 15, 2025): seeing this too using gpt 4.1 and grok code fast 1. I'm also not able to kill with ctrl-c
Author
Owner

@rekram1-node commented on GitHub (Oct 15, 2025):

@nandilugio not able to kill? Is the process just hanging or are you saying when u restart it still says "generating...."

@rekram1-node commented on GitHub (Oct 15, 2025): @nandilugio not able to kill? Is the process just hanging or are you saying when u restart it still says "generating...."
Author
Owner

@nandilugio commented on GitHub (Oct 16, 2025):

@rekram1-node I mean that hitting Ctrl+C doesn't kill the application, not even when idle waiting for a prompt. Ctrl+C reaches the terminal because it works on other programs and on the shell. Seems like the signal is trapped but not handled somehow.

Also, somehow, today double-Esc is working. Haven't upgraded or anything. Still on v0.15.3.

Thx for checking! let me know if you need any more info.

@nandilugio commented on GitHub (Oct 16, 2025): @rekram1-node I mean that hitting Ctrl+C doesn't kill the application, not even when idle waiting for a prompt. Ctrl+C reaches the terminal because it works on other programs and on the shell. Seems like the signal is trapped but not handled somehow. Also, somehow, today double-Esc _is_ working. Haven't upgraded or anything. Still on v0.15.3. Thx for checking! let me know if you need any more info.
Author
Owner

@rekram1-node commented on GitHub (Oct 16, 2025):

I noticed a few places that hangs can occur and Im cleaning them up

@rekram1-node commented on GitHub (Oct 16, 2025): I noticed a few places that hangs can occur and Im cleaning them up
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#641