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

Closed
opened 2026-02-16 17:36:22 -05:00 by yindo · 2 comments
Owner

Originally created by @markjaquith on GitHub (Nov 4, 2025).

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

Originally created by @markjaquith on GitHub (Nov 4, 2025). ### 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
yindo added the opentuibug labels 2026-02-16 17:36:22 -05:00
yindo closed this issue 2026-02-16 17:36:22 -05:00
Author
Owner

@arsham commented on GitHub (Nov 5, 2025):

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 commented on GitHub (Nov 5, 2025): 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.
Author
Owner

@thdxr commented on GitHub (Nov 5, 2025):

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

@thdxr commented on GitHub (Nov 5, 2025): i think we fixed this issue but will bring back double escape seperately
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2597