Repository navigation
feat(drawer): restore archived sessions from the inbox - #52
Merged
Merged
Conversation
Archived sessions couldn't be recovered on Android. With the Inbox
Sidebar on (Experimental), a collapsed "Archived" row now ends the list
whenever the server has archived sessions. Expanded, it shows them
muted; a tap opens one, and holding it offers Unarchive, which brings it
back to the list ("Couldn't unarchive ..." on failure).
Adds OpenCodeClient.archivedSessions (GET /api/session?archived=true,
50 newest roots, as desktop) and unarchiveSession (PATCH
{archived:false}). iOS has no unarchive; the parity rows note the
divergence.
Verified: scripts/check.sh :server :feature:drawer; on the emulator
with session-lab (plus archive support), archive, expand Archived, open
an archived session, and Unarchive.
Tarquinen
added a commit
that referenced
this pull request
Nov 12, 2026
…nto feat/assistant Conflicts kept both sides: the root page keeps the Assistant row next to #49's badge rows, the Experimental count still includes the assistant, and the sessions parity row keeps the archived-session routes and the assistant's session note. The Assistant experiment loses its caption, as #49 removed row captions; its footer now says what it does.
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users couldn't get archived sessions back: once archived from the Inbox Sidebar, a session was gone from the app.
Now, when the server has archived sessions, a collapsed Archived row sits at the end of the inbox list. Expanding it shows them muted, newest first, up to 50, as desktop's Archived list does. Tapping one opens it, and holding it offers Unarchive, which puts the session back in the list. A failed unarchive shows the same kind of error as a failed archive. iOS can't unarchive; this is a deliberate Android difference.
Builds on #51; change the base to
devonce #51 merges.scripts/check.sh :server :feature:drawerpasses, with new tests for the archived list, unarchive and a failed unarchive.