docs: feat: Add workspace archiving and restoration functionality - #212
Merged
Conversation
Ziinc
force-pushed
the
claude/workspace-archiving-qhl87v
branch
from
August 8, 2026 09:45
5b5a090 to
d1fcb0f
Compare
Ziinc
force-pushed
the
claude/workspace-archiving-qhl87v
branch
2 times, most recently
from
August 8, 2026 20:50
53f866a to
b73288b
Compare
Ziinc
force-pushed
the
claude/workspace-archiving-qhl87v
branch
from
August 8, 2026 21:11
b73288b to
20f3a96
Compare
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.
Summary
This PR adds the ability to archive and restore workspaces. Archived workspaces are removed from the filesystem and jj registration but preserved in the database with their full history (sessions, pending reviews), allowing users to restore them later.
Key Changes
Backend (Rust)
archivedboolean field to theWorkspacestruct and workspaces tableget_archived_workspaces()- retrieves only archived workspacesupdate_workspace_archived()- sets the archived flagWORKSPACE_COLUMNSconstant for consistencyarchive_workspace()- marks workspace as archived, removes jj registration and directory (best-effort)restore_workspace()- recreates jj working copy and directory, clears archived flaglist_archived_workspaces()- public API for retrieving archived workspacesget_archived_workspaces,archive_workspace, andrestore_workspacecommandsFrontend (React/TypeScript)
ArchivedWorkspacesModaldisplays archived workspaces with restore buttonsgetArchivedWorkspaces(),archiveWorkspace(), andrestoreWorkspace()inapi-extra.tsarchived: booleanfield toWorkspaceinterfaceTesting
archived: falseImplementation Details
WORKSPACE_COLUMNSconstant to ensure thearchivedfield is consistently includedget_workspaces()filters to non-archived workspaces; archived workspaces require explicitget_archived_workspaces()callhttps://claude.ai/code/session_0115DsUDUmHFSMV2ziDkVPcX