You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
Activity
[-]Session archive[/-][+][Feature] Session archive[/+]pascalandr commentedon Oct 30, 2026
As soon as tere is an API for that we 'll do
#929
pascalandr commentedon Nov 8, 2026
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 --archivedannouncement 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.listfiltersarchived=true(only archived), false (exclude archived), omission (both), retaining the selection in native cursor pagination.session.archived/session.unarchived,time.archivedand the stored flag agree.Sources: 2.2.3 update contract, 2.2.6 list filter, native implementation. The runnable probe is
scripts/test-session-archive-native.mjsonfeat/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.
feat(sessions): archive and restore native conversations (#1406)
pascalandr commentedon Nov 9, 2026
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.