opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Pressing Esc when a modal pane (Ctrl-p, etc) is open will interrupt the LLM

Open markjaquith opened this issue 1 month ago • 1 comments

Description

If I press Ctrl-p and then press Esc (to dismiss the modal pane), the LLM quits with "The operation was aborted."

OpenCode version

1.0.23

Steps to reproduce

  1. Start an LLM task.
  2. While it is still running, press Ctrl-p
  3. While it is still running, press Esc

Note that pane was dismissed, but:

The operation was aborted.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty

markjaquith avatar Nov 04 '25 22:11 markjaquith

A double escape would be much safer to cancel any operations. I've hit the escape multiple times by accident since I have mapped the caps lock to escape and control keys.

arsham avatar Nov 05 '25 13:11 arsham

i think we fixed this issue but will bring back double escape seperately

thdxr avatar Nov 05 '25 17:11 thdxr