Skip to content

[Feature] Session archive #1207

Closed
Closed

Description

@mutantcornholio

Hi! I like to keep the session list neat and tidy, and I tend to delete sessions when I'm done with them, but sometimes I want to go back at the older ones to check something.
What's your take on an option to archive a session, alongside with deletion?
That also implies some kind of tab/modal to browse the archive, with a way to unarchive a session.

Activity

  1. changed the title [-]Session archive[/-] [+][Feature] Session archive[/+] on Oct 30, 2026
  2. pascalandr commented on Oct 30, 2026

    @pascalandr
    Contributor

    As soon as tere is an API for that we 'll do
    #929

  3. pascalandr commented on Nov 8, 2026

    @pascalandr
    Contributor

    The API-waiting condition of #929 is satisfied; this also covers #1207. Exact-tag inspection and real isolated CLI tests on both 2.2.6 and the supported minimum 2.2.3 confirm the native archive API works. The 2.2.6 opencode run --archived announcement is a CLI convenience, not the first archive mutation API.

    Contract verified:

    • PATCH /api/session/{sessionID} / client.session.update({ sessionID, archived: true }); false restores; repeating the current state is a no-op.
    • session.list filters archived=true (only archived), false (exclude archived), omission (both), retaining the selection in native cursor pagination.
    • session.archived / session.unarchived, time.archived and the stored flag agree.
    • Transcript content is retained, a child's own archive flag is unchanged, and archiving does not prompt or execute the model.

    Sources: 2.2.3 update contract, 2.2.6 list filter, native implementation. The runnable probe is scripts/test-session-archive-native.mjs on feat/native-session-archives.

    UI integration is being implemented: native archive/restore actions, hidden archived sessions during normal browsing, discovery through the existing session filter/search surface, and explicit selected-session/descendant behavior. No local archive state, SQL mutation or runtime-minimum increase. These issues stay open until the feature is implemented and validated.

  4. pascalandr commented on Nov 9, 2026

    @pascalandr
    Contributor

    Implemented and merged into dev in #1406. Native archive/restore actions and an Archived/All session filter retain transcripts and keep selected or active conversations reachable. Verified with isolated OpenCode 2.2.3 and 2.2.6, store tests and real browser journeys. Included in the draft 1.1.0 release notes; not yet a published stable release.

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