Skip to content

[FEATURE]:unarchive sessions #41403

Closed as duplicate
Closed as duplicate

Description

@tobaba

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

When a session is archived, there is no way to unarchive it from the UI or CLI:

No keybind exists in the TUI for archiving/unarchiving sessions (checked the keybinds list — there is no session_archive / session_unarchive entry).
opencode session list does not show archived sessions, and there is no opencode session unarchive command.
The archive action only sets the time_archived field on the session row in opencode.db. The only workaround is manually clearing that field via direct DB access, which is not acceptable for regular users.

Proposed solution

Add an unarchive option, e.g.:

a TUI keybind (session_archive / session_unarchive) that toggles archive state, or an option in the session list UI to show archived sessions and restore them;
a CLI command like opencode session unarchive .
Steps to reproduce

Archive a session from the session list.
It disappears from opencode session list.
There is no supported way to restore it.
Environment

opencode version: 1.18.15
OS: Windows

Activity

  1. github-actions commented on Aug 9, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    Closing as a duplicate of #6680, which tracks viewing and restoring (unarchiving) archived sessions. The request there started with Desktop, but it's the one place we're tracking unarchive across the TUI, CLI and apps. Please add your TUI/CLI use case and 👍 there.

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

Metadata

Metadata

Assignees

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