feat(sessions): archive & unarchive sessions - #41
Merged
Conversation
U1: exclude archived sessions from ListSessionsForUser; add
ListArchivedSessionsForUser; ListSessions serves the archived view via
?archived=true.
U2: add POST /sessions/{id}/archive and /unarchive. Archive flips status
to archived first (so the reconciler stops managing it), then tears down
the DevPod container in the background by reusing the workspace delete
action; unarchive flips status back to active. Both are session-membership
write-gated and broadcast session_update.
U3: add listArchivedSessions, archiveSession, unarchiveSession API wrappers. U4: add archivedSessions slice plus loadArchivedSessions / archiveSession / restoreSession store actions. archiveSession optimistically drops the session from the sidebar and clears activeSessionId when the archived session was active; restoreSession drops it from the archived view. Kept archivedSessions separate from sessions so the session_update list refetch can't clobber it.
Complete the archive-sessions frontend: ArchiveSessionDialog and ArchivedSessionsDialog, wired into SessionSidebar with the store actions added in earlier commits. Also add planning docs and gitignore the air hot-reload build artifact (server/tmp/). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Adds the ability to archive and unarchive sessions, end to end.
archive/unarchiveendpoints + SQL, with archived sessions filtered out of the default session list (sessions.sql,sessions.go, handler +archive_test.go).api.tswrappers and Zustand store actions for archive/unarchive.ArchiveSessionDialogandArchivedSessionsDialog, wired intoSessionSidebar.server/tmp/(theairhot-reload build artifact,go build -o ./tmp/deuce, which was previously untracked-but-not-ignored). Includes a few planning docs underdocs/plans/.Notes
tsc -b) passes; backend archive tests pass.🤖 Generated with Claude Code