Skip to content

[FEATURE]: ability to view and restore archived sessions via UI/CLI #26552

Closed

Description

@deximple

Archived sessions are stored in the local SQLite DB (session.time_archived), but there's no way to view or restore them through the Desktop app UI or the CLI. Users must manually edit the database to unarchive a session.

Current workaround:

UPDATE session SET time_archived = NULL WHERE id = '<session_id>';

Request: Add commands or UI support for:

  • Listing archived sessions (opencode session list --archived)
  • Restoring an archived session (opencode session restore <id>)
  • Desktop app UI showing archived sessions with an option to restore

Context: An archived session still retains all its messages (1k+ in my case), so restoring is seamless once time_archived is cleared.

Activity

  1. github-actions commented on May 9, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Feature requests must use the [FEATURE]: prefix in the title (e.g. [FEATURE]: ability to view and restore archived sessions via UI/CLI)
    • The feature request template requires checking the verification checkbox confirming the feature hasn't been suggested before

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:compliance
    on May 9, 2026
  3. changed the title [-]Feature request: ability to view and restore archived sessions via UI/CLI[/-] [+][FEATURE]: ability to view and restore archived sessions via UI/CLI[/+] on May 9, 2026
  4. github-actions commented on May 9, 2026

    @github-actions
    Contributor

    Thank you for updating the title to include the [FEATURE]: prefix and for adding detailed content — the description looks great!

    However, the issue still needs one more fix to be fully compliant:

    • Verification checkbox missing: The feature request template requires checking the box confirming this feature hasn't been suggested before. Please edit the issue body to include:

      - [x] I have verified this feature I'm about to request hasn't been suggested before.
      

    Once that's added, the issue will be compliant. Note: there are several existing issues on this same topic (e.g. #6680, #16000, #24153, #26078) — please verify this isn't a duplicate before re-submitting.

  5. deximple commented on May 9, 2026

    @deximple
    Author

    Closing as duplicate. Existing issues covering this:

    Apologies for the duplicate — thanks for the automated check.

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

Metadata

Metadata

Assignees

Labels

needs:compliance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions