Skip to content

[FEATURE]: Desktop: add Undo to Archive current session #65242

Open

Description

@Santiago-j-s

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Give OpenCode Desktop’s Archive current session command a short undo window. I use the keyboard to clear finished conversations as I work, and I want to be able to catch an accidental press without opening the archive or confirming every time.

  1. Invoke Archive current session from the command palette or a configurable shortcut. I use ⌘⇧M on Mac, including while the composer has focus.
  2. Keep the session open and show a toast with Undo for about five seconds. Undo cancels the pending archive; nothing has been changed on the server.
  3. If the timer expires, archive the session that was originally targeted and close its tab. Switching tabs shouldn’t change the target. If the session has started running or is waiting for input, skip the archive.

#62601 tracks restoring the Desktop shortcut. This request is for the undo window and what happens before the archive is committed.

I built this as a small reference plugin for OpenCode Desktop 2.3.2 on macOS. I’d like to switch to the built-in command once this behavior is available.


Drafted by OpenCode and posted with my approval.

Activity

  1. opencodejr commented on Nov 20, 2026

    @opencodejr
    Contributor

    Thanks for the clear write-up and for building a reference plugin, @Santiago-j-s!

    To restate the request: Archive current session in Desktop would wait about five seconds and show an Undo toast before archiving. The target stays the session you started from, even if you switch tabs. The archive is skipped if that session starts running or is waiting for input, so an accidental keypress is easy to catch without a confirmation dialog. Maintainers will consider it.

    Related:

  2. added
    area/desktop
    type/feature
    version/v2
    on Nov 20, 2026
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

    area/desktopplatform/macostype/featureversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions