Show archived CLI sessions in the import picker - #474
Open
Adam-Dalloul wants to merge 3 commits into
Open
Conversation
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
force-pushed
the
import-archived-session-filter
branch
from
August 16, 2026 17:05
b69d41f to
ffb342a
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.
Import now keeps sessions the originating CLI marked archived, instead of dropping them.
state_*.sqlitethreads.archived.sessions.archivedbut hid those rows.isArchivedin%AppData%/Claude/claude-code-sessions/**/local_{id}.json([BUG] Archived Code sessions not visible in Archive filter on Claude Desktop (Windows) anthropics/claude-code#24534). Import reads that field from JSONL when present and overlays Desktop sidecar ids.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).