Repository navigation
Fix Linux sparse archives and preserve Desktop data during identity switching - #83
Open
ShulingTang wants to merge 3 commits into
Open
ShulingTang wants to merge 3 commits into
ShulingTang wants to merge 3 commits into
Conversation
Write sparse cache files as regular tar entries and manage packaged Linux Desktop OAuth fields and login cookies through the verified identity transaction. Preserve non-login cookies, preferences, history and workspaces, include WAL snapshots, and match only supported Desktop executable paths. Refs liseami#82 AI-Co-Authored-By: Codex
Reject incompatible Cookie schemas and orphaned sidecars, vacuum filtered snapshots, and keep unreadable Desktop login state unknown. Match replaced packaged executables without broadening the process allowlist. Refs liseami#82. AI-Co-Authored-By: Codex
Abort on unique constraint collisions instead of replacing unrelated cookies. Cover identical schemas with default and explicit REPLACE policies, preserving both original login and non-login rows on failure. Refs liseami#82. AI-Co-Authored-By: Codex
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.
Linux identity switching could write a valid sparse GPU cache file as a GNU sparse tar entry and then reject its own archive. The packaged Linux Claude Desktop process and its OAuth login stores were also outside identity handling.
This change writes regular tar entries and adds narrow Desktop identity handling through the existing verified archive, clear/restore, and rollback transaction:
/usr/lib/claude-desktopexecutable paths for the current user, including running executables replaced by a package upgrade.config.json, preserving other settings.Refs #82.
Validation:
The Desktop layout covered here is the packaged Linux build using
XDG_CONFIG_HOME/Claudeand/usr/lib/claude-desktop/claude-desktop; unrelated third-party layouts are not guessed.