Description
In the macOS desktop app, pressing Escape while the prompt input is focused triggers higher-level handlers. This can stop a running agent and also exit fullscreen. Escape inside the input should be handled locally first.
Plugins
None
OpenCode version
Current dev branch (e35a4131d)
Steps to reproduce
- Open the desktop app on macOS and enter fullscreen.
- Focus the prompt input.
- Start a running agent response.
- Press
Escape with the cursor still in the prompt input.
Expected behavior
Escape in the prompt input should resolve the nearest input state first (close popover, exit shell mode, stop agent if running, blur when idle) and should not also trigger fullscreen exit from the same keypress.
Actual behavior
The same Escape keypress propagates beyond the prompt input, stopping the agent and potentially exiting fullscreen.
Screenshot and/or share link
Provided in local repro discussion.
Operating System
macOS
Terminal
N/A (desktop app)
Description
In the macOS desktop app, pressing
Escapewhile the prompt input is focused triggers higher-level handlers. This can stop a running agent and also exit fullscreen.Escapeinside the input should be handled locally first.Plugins
None
OpenCode version
Current
devbranch (e35a4131d)Steps to reproduce
Escapewith the cursor still in the prompt input.Expected behavior
Escapein the prompt input should resolve the nearest input state first (close popover, exit shell mode, stop agent if running, blur when idle) and should not also trigger fullscreen exit from the same keypress.Actual behavior
The same
Escapekeypress propagates beyond the prompt input, stopping the agent and potentially exiting fullscreen.Screenshot and/or share link
Provided in local repro discussion.
Operating System
macOS
Terminal
N/A (desktop app)