Description
On macOS, there is a very common system-wide key combination (Command-shift-delete) that is used for text editing. Its purpose is to delete a highlighted sentence or paragraph.
In OpenCode this key combination has been overridden and doesn't delete highlighted text, it force-closes your current session, without warning or confirmation.
The session is irrecoverable. You may have lost potentially hours of work in that interactive session.
Suggestions for fixing this:
- Avoid overloading system-wide key combinations
- Avoid any key combinations that can cause irreversible data loss (of a session, or of anything else)
- Ensure that if there is a function that has the potential to cause loss, that it must have a confirmation step
- Make closing a session a reversible/recoverable operation. (Archive or soft delete which is easily recoverable).
Plugins
None required to replicate this bug
OpenCode version
Version 1.1.36
Steps to reproduce
- Open a session (in OpenCode Desktop on macOS)
- Type command-shift-delete while you're editing your prompt
Screenshot and/or share link
No response
Operating System
macOS 26
Terminal
Terminal
Description
On macOS, there is a very common system-wide key combination (Command-shift-delete) that is used for text editing. Its purpose is to delete a highlighted sentence or paragraph.
In OpenCode this key combination has been overridden and doesn't delete highlighted text, it force-closes your current session, without warning or confirmation.
The session is irrecoverable. You may have lost potentially hours of work in that interactive session.
Suggestions for fixing this:
Plugins
None required to replicate this bug
OpenCode version
Version 1.1.36
Steps to reproduce
Screenshot and/or share link
No response
Operating System
macOS 26
Terminal
Terminal