Skip to content

Show archived CLI sessions in the import picker - #474

Open
Adam-Dalloul wants to merge 3 commits into
xintaofei:mainfrom
Adam-Dalloul:import-archived-session-filter
Open

Show archived CLI sessions in the import picker#474
Adam-Dalloul wants to merge 3 commits into
xintaofei:mainfrom
Adam-Dalloul:import-archived-session-filter

Conversation

@Adam-Dalloul

@Adam-Dalloul Adam-Dalloul commented Aug 15, 2026

Copy link
Copy Markdown

Import now keeps sessions the originating CLI marked archived, instead of dropping them.

The picker badges them and hides them behind a Hide archived filter that is on by default.

Includes a scan-path test and an import-window filter test (Codex + Claude rows).

Codex stores threads.archived in state_*.sqlite and Hermes already had
an archived column but hid those rows. Import now keeps them, badges
them, and hides them behind a Hide archived filter that is on by default.
Claude Code JSONL on this machine has no archive flag. Claude Desktop
Code sessions persist `isArchived` in
`%AppData%/Claude/claude-code-sessions/**/local_{id}.json`.

Import now reads `isArchived` from JSONL when present and overlays
Desktop sidecar ids so archived Claude sessions get the same Hide
archived filter as Codex and Hermes.
The Store app virtualizes Roaming Claude under
Local/Packages/Claude_*/LocalCache/Roaming/Claude/claude-code-sessions.
Import now scans that tree plus the classic AppData path, and matches
sessionId / cliSessionId as well as the local_ filename.
@Adam-Dalloul
Adam-Dalloul force-pushed the import-archived-session-filter branch from b69d41f to ffb342a Compare August 16, 2026 17:05
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