You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
@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.
Yes, the same issue persits for me too (MacOS, VS Code) - clicking on the esc text at the bottom would also be nice to have for interrupting the currently running process
Reacted by vecdigital, Johan Ziruo Ye and Lucas Pottersky
Still doesn't work. Have to press repeatedly. The bug seems to be there's some concept of multiple items in some queue, and only last of some queue nobody knows exist is interrupted, not actually everything pending, so depending on whatever is happening, sometimes you need to esc esc esc popping some imaginary stack until it actually interrupts. Don't know what, never makes sense. Just know you gotta press it over and over. I have no idea the architecture but that's how it seems to behave and what's broken about it.
Activity
thdxr commentedon Jul 12, 2025
what model is this with? i tried to replicate and i could not
codyseally commentedon 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.
nitsanavni commentedon Jul 12, 2025
For me it's a hit and miss, most of the time it doesnt pick-up my double ESC.
bdeluca commentedon 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
MatejBransky commentedon Jul 14, 2025
I have the same problem with Sonnet 4.
izakfilmalter commentedon Jul 14, 2025
Ya running into this with sonnet 4
furai commentedon Jul 14, 2025
Having same issue with Claude Opus 4.
chriscarrollsmith commentedon Jul 14, 2025
Me too
rossvz commentedon Jul 14, 2025
Same issue with Sonnet 4
adamdotdevin commentedon Jul 14, 2025
this was fixed in a release today, can you all confirm?
furai commentedon Jul 15, 2025
So far seems to be working, will test more. Thank you!
nitsanavni commentedon Jul 15, 2025
works better here too
izakfilmalter commentedon Jul 15, 2025
Fixed for me.
PhunkyBob commentedon 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.
RoRep1ay commentedon Jul 22, 2025
Still having issue same as @PhunkyBob
gabrielmontagne commentedon Aug 5, 2025
Same here, on Debian, 0.3.131, I can't cancel operations. Opencode runs off until it runs out of steam.
nikhilmaddirala commentedon Sep 7, 2025
I faced this issue today with Grok Code
nandilugio commentedon 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
rekram1-node commentedon Oct 15, 2025
@nandilugio not able to kill? Is the process just hanging or are you saying when u restart it still says "generating...."
nandilugio commentedon 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.
rekram1-node commentedon Oct 16, 2025
I noticed a few places that hangs can occur and Im cleaning them up
Merge pull request anomalyco#888 from affaan-m/feat/ecc2-risk-scoring
fix(den): make admin backoffice lightweight (anomalyco#888)
faizananwerali commentedon May 16, 2026
it's still not working, i am mac, tried with all model, esc key doesn't work, i am working on JetBrain IDEs
stepanjakl commentedon May 29, 2026
Yes, the same issue persits for me too (MacOS, VS Code) - clicking on the
esctext at the bottom would also be nice to have for interrupting the currently running processem commentedon Aug 11, 2026
Still doesn't work. Have to press repeatedly. The bug seems to be there's some concept of multiple items in some queue, and only last of some queue nobody knows exist is interrupted, not actually everything pending, so depending on whatever is happening, sometimes you need to esc esc esc popping some imaginary stack until it actually interrupts. Don't know what, never makes sense. Just know you gotta press it over and over. I have no idea the architecture but that's how it seems to behave and what's broken about it.