Skip to content

feat(drawer): restore archived sessions from the inbox - #52

Merged
Tarquinen merged 1 commit into
devfrom
inbox-archived
Nov 12, 2026
Merged

Tarquinen merged 1 commit into
devfrom
inbox-archived

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

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 dev once #51 merges.

Archived section, light: before vs after Archived section, dark: before vs after

  • scripts/check.sh :server :feature:drawer passes, with new tests for the archived list, unarchive and a failed unarchive.
  • On the emulator against session-lab: archived three sessions, expanded Archived, opened one, and unarchived one back into the list, in light and dark.

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
Tarquinen changed the base branch from inbox-row-menu to dev November 12, 2026 04:52
@Tarquinen
Tarquinen merged commit b89066e into dev Nov 12, 2026
5 of 6 checks passed
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.
@Tarquinen Tarquinen mentioned this pull request Nov 12, 2026

This branch was previously deployed

1 inactive deployment
release — d083bb6c Deployed Nov 12, 2026 by Tarquinen via check #157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant