Skip to content

Data loss due to session closure without confirmation (OpenCode Desktop for macOS) #10815

@DancecardJK

Description

@DancecardJK

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:

  1. Avoid overloading system-wide key combinations
  2. Avoid any key combinations that can cause irreversible data loss (of a session, or of anything else)
  3. Ensure that if there is a function that has the potential to cause loss, that it must have a confirmation step
  4. 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

  1. Open a session (in OpenCode Desktop on macOS)
  2. Type command-shift-delete while you're editing your prompt

Screenshot and/or share link

No response

Operating System

macOS 26

Terminal

Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions