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
Desktop: Archive session shortcut does nothing #62601
The “Archive session” shortcut shown in Desktop settings does nothing for the foreground idle session. Assigning a different shortcut does not help. I expect the session to be archived.
Source inspection at 6a89e9f287 suggests a stale command entry: Shortcuts lists persisted catalog entries, but no session.archive handler is registered. The Inbox layout has a separate right-click Archive action calling session.update({ sessionID, archived: true }), but does not register the keyboard command either.
OpenCode version
Desktop 2.2.6
Steps to reproduce
Open an existing session and wait until it is idle.
In Settings → Shortcuts, find “Archive session” and note its binding.
Close settings, return to the session, and press that binding. Nothing happens.
Assign a different binding to “Archive session” and repeat. Nothing happens.
This is on an existing user profile. I have not checked a fresh profile; the shortcut entry may be retained from an older version. I have not interactively compared layouts.
Thanks for the detailed report and the source pointers, @ldelelis!
I couldn't run the Desktop app here, so I haven't seen this happen myself. A maintainer with the Desktop app will need to confirm it. The code points the same way you did, though:
In 2.2.6 and on the current dev branch, no session.archive command is registered, so no keyboard shortcut can trigger it.
mod+shift+backspace → session.archive was introduced in 5fbcb20 (Dec 2025).
a1b4843 (refactor(app): remove legacy layout #40947, Aug 7) removed the legacy layout and kept the command in the new layout but disabled, with // TODO: Restore the command when the V2 client exposes session archive.
Since 5caf1f9 ("chore: promote v2 to dev", Oct 10), dev no longer registers session.archive anywhere, and the command.session.archive i18n key is gone too. I couldn't find an explicit removal rationale in the v2 history, so this may have been lost in the rewrite rather than intentionally dropped.
Notes in case a restore is wanted: archiving itself works today through the Inbox UI and session.update({ archived }) on the V2 client, and the command catalog intentionally persists keybinds for commands that aren't currently registered ("catalog remembers commands that are not registered right now"), so re-registering would pick existing user keybinds back up.
Was dropping the command intentional, or would you like it restored?
Same gap, without the keyboard: with Settings -> General -> Interface layout set to Top tabs, there is no archive action at all.
the session tab has no context menu
the command palette has no archive command
the only archive affordances I can find are the home session rows and the sidebar/inbox right-click menu, and neither surface is visible in the Top tabs layout
So it is not only a stale keybinding: the action itself is missing from the top-tabs surface. On Desktop 2.3.0 (Windows 11 x64), switching to Side tabs or Inbox makes Archive appear under right-click; switching back to Top tabs removes the only entry point.
I can reproduce this on OpenCode Desktop 2.3.0 on macOS 26.6.2 (Apple Silicon).
Open a session and go to Settings → Keyboard shortcuts.
Search for Archive session. It shows ⇧⌘Backspace.
Close Settings, return to the session, and press the shortcut. Nothing happens.
Assign a different shortcut and try again. The session still isn’t archived.
Expected: The shortcut archives the current session. Workaround: Right-click the session in the sidebar or Inbox and choose Archive. That works. The session’s ⋯ menu doesn’t have an Archive option.
This was fixed in #65428, which brings back the session.archive command on mod+shift+s and in the command palette. If you still see this on the latest version, comment here and we'll reopen.
Activity
opencodejr commentedon Nov 7, 2026
Thanks for the detailed report and the source pointers, @ldelelis!
I couldn't run the Desktop app here, so I haven't seen this happen myself. A maintainer with the Desktop app will need to confirm it. The code points the same way you did, though:
devbranch, nosession.archivecommand is registered, so no keyboard shortcut can trigger it.command.catalog.v1), which keeps entries for built-in commands that no longer exist. Only renamed commands and removed plugins (fix(app): register each shortcut once and drop removed plugins from Shortcuts #59499) are cleaned out. An "Archive session" entry from an older version (it was registered in 1.x by fix(app): register archive session command in both layouts #41741) would stay listed and could be rebound, but would never do anything.Related issues:
session.updateignoresarchivedtomwangcn commentedon Nov 7, 2026
I dug into the history of this command:
mod+shift+backspace→session.archivewas introduced in 5fbcb20 (Dec 2025).// TODO: Restore the command when the V2 client exposes session archive.useSessionArchive, once the V2 client exposed archive.devno longer registerssession.archiveanywhere, and thecommand.session.archivei18n key is gone too. I couldn't find an explicit removal rationale in the v2 history, so this may have been lost in the rewrite rather than intentionally dropped.Notes in case a restore is wanted: archiving itself works today through the Inbox UI and
session.update({ archived })on the V2 client, and the command catalog intentionally persists keybinds for commands that aren't currently registered ("catalog remembers commands that are not registered right now"), so re-registering would pick existing user keybinds back up.Was dropping the command intentional, or would you like it restored?
csb666 commentedon Nov 16, 2026
Same gap, without the keyboard: with Settings -> General -> Interface layout set to Top tabs, there is no archive action at all.
So it is not only a stale keybinding: the action itself is missing from the top-tabs surface. On Desktop 2.3.0 (Windows 11 x64), switching to Side tabs or Inbox makes Archive appear under right-click; switching back to Top tabs removes the only entry point.
Happy to test a build if that helps.
MorganTrench commentedon Nov 22, 2026
I can reproduce this on OpenCode Desktop 2.3.0 on macOS 26.6.2 (Apple Silicon).
Expected: The shortcut archives the current session.
Workaround: Right-click the session in the sidebar or Inbox and choose Archive. That works. The session’s ⋯ menu doesn’t have an Archive option.
neriousy commentedon Nov 23, 2026
This was fixed in #65428, which brings back the
session.archivecommand on mod+shift+s and in the command palette. If you still see this on the latest version, comment here and we'll reopen.