You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug / critical / data-loss] Accidental session deletion: Ctrl+Shift+Backspace deletes active session without confirmation #21236
Pressing Ctrl+Shift+Backspace (easily triggered when using Ctrl+Backspace to delete words) immediately and permanently deletes the active session, including any ongoing implementation work. No confirmation dialog appears, and there is no way to recover the deleted session.
Expected Behavior
The keybind should either not be assigned by default or should be configurable in settings
If assigned, deleting a session should require explicit user confirmation
The confirmation dialog should prevent accidental acceptance — the primary action button should be disabled for a minimum of 3 seconds
Alternative: Instead of deleting, the session could be paused/stopped, allowing the user to resume
Impact
Critical: Permanent data loss with no recovery path
High friction: Common keyboard shortcut collision makes accidental deletion likely
No safety net: No trash/recovery mechanism exists
Proposed Solution
Remove the Ctrl+Shift+Backspace keybind from the default configuration, or make it explicitly optional in settings
Add a confirmation modal before session deletion with:
Clear warning text explaining the action is irreversible
A 3-second delay before the "Delete" button becomes active (configurable in settings)
Consider implementing a soft-delete or session history to enable recovery within the current session
Plugins
oh-my-openagent (not related to the bug)
OpenCode version
OpenCode Desktop 1.3.17 (happened on previous versions as well)
Steps to reproduce
Open OpenCode Desktop
Start an implementation task (any task that involves multiple turns)
Begin typing a prompt or code
While typing, press Ctrl+Backspace to delete the previous word
Accidentally also press Shift (creating Ctrl+Shift+Backspace)
Observe: The entire session is immediately deleted with no confirmation dialog
Attempt to recover the session — no recovery option exists
Additional Observation
After deletion, the session appears gone from the UI but agents/tasks spawned within it may still be executing. This creates:
This issue might be a duplicate of existing issues. Please check:
[UX] Ctrl+D to delete session too easily exits the app #13950: Same UX concern — a session-deletion keybind triggers too easily without confirmation (Ctrl+D in that case, Ctrl+Shift+Backspace here). Both request a confirmation dialog and safer default keybind behavior.
For keybind-related issues, please also check our pinned keybinds documentation: #4997
This issue might be a duplicate of existing issues. Please check:
[UX] Ctrl+D to delete session too easily exits the app #13950: Same UX concern — a session-deletion keybind triggers too easily without confirmation (Ctrl+D in that case, Ctrl+Shift+Backspace here). Both request a confirmation dialog and safer default keybind behavior.
For keybind-related issues, please also check our pinned keybinds documentation: #4997
No, it is not exactly the same, but UX inconsistency seems close.
Ok, in the OpenCode Desktop settings, in the Shortcut section, you can find "Archive session," which exactly does the stated behaviour. You can either change or unassign it. To unassign the shortcut, just press on the shortcut keybind field and press "Delete," or if you still need this feature, use something much harder to press accidentally, e.g., "Ctrl+Shift+Delete".
Activity
github-actions commentedon Apr 6, 2026
This issue might be a duplicate of existing issues. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997
PVLPM commentedon Apr 7, 2026
No, it is not exactly the same, but UX inconsistency seems close.
PVLPM commentedon Apr 18, 2026
Ok, in the OpenCode Desktop settings, in the Shortcut section, you can find "Archive session," which exactly does the stated behaviour. You can either change or unassign it. To unassign the shortcut, just press on the shortcut keybind field and press "Delete," or if you still need this feature, use something much harder to press accidentally, e.g., "Ctrl+Shift+Delete".