Skip to content

Desktop: Archive session shortcut does nothing #62601

Closed

Description

@ldelelis

Description

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

  1. Open an existing session and wait until it is idle.
  2. In Settings → Shortcuts, find “Archive session” and note its binding.
  3. Close settings, return to the session, and press that binding. Nothing happens.
  4. 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.

Operating System

macOS 26.5.2 (Apple Silicon)

Activity

  1. opencodejr commented on Nov 7, 2026

    @opencodejr
    Contributor

    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.
    • Settings → Shortcuts lists the saved command catalog (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.
    • Archiving itself is not exposed in v2's default layouts yet. The Home archive action currently fails with "Session archiving is unavailable".

    Related issues:

  2. tomwangcn commented on Nov 7, 2026

    @tomwangcn

    I dug into the history of this command:

    • 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.
    • f357e70 (fix(app): register archive session command in both layouts #41741, Aug 21) then re-registered and enabled it in both layouts via useSessionArchive, once the V2 client exposed 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?

  3. csb666 commented on Nov 16, 2026

    @csb666

    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.

    Happy to test a build if that helps.

  4. MorganTrench commented on Nov 22, 2026

    @MorganTrench

    I can reproduce this on OpenCode Desktop 2.3.0 on macOS 26.6.2 (Apple Silicon).

    1. Open a session and go to Settings → Keyboard shortcuts.
    2. Search for Archive session. It shows ⇧⌘Backspace.
    3. Close Settings, return to the session, and press the shortcut. Nothing happens.
    4. 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.

  5. neriousy commented on Nov 23, 2026

    @neriousy
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions