Repository navigation
Keep the session's options on a recovery reopen - #223
Merged
Merged
Conversation
Retry Ignoring Archives, Delete Orphans and Retry, and Rescan Ignoring Archives reopen the profile as a new session, and the reopen was requested with no options. A session scoped with -path Documents recovered by scanning the whole profile, and because ignoring archives makes existing items look new, the widened scan could surface far more than the user chose. The reopen now carries the options the session was opened with, exactly, read from the coordinator before the teardown clears them. A picker-opened session has none and still reopens with none. Later reconnects replay that same vector. The Ignoring Archives actions no longer edit the profile file. The override is a first-load argument of the reopen request itself: requestOpen takes firstLoadArgs, which ride with the request through the queue, are appended after the session's options for that one load, and are never part of sessionArgs. Session options apply after the profile loads and the last occurrence of an option wins, so the override also beats an explicit -ignorearchives=false. If the request is refused, cancelled or replaced the override goes with it, so a later ordinary open of the profile is not affected, and there is no profile edit to restore. The restore path and its state are removed; the launch-time cleanup stays to strip a suffix an earlier version left behind. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… profile alone Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 10, 2026
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.
Retry Ignoring Archives, Delete Orphans and Retry, and Rescan Ignoring Archives reopen the profile as a new session, and the reopen was requested with no options. A session scoped with
-path Documentsrecovered by scanning the whole profile, and because ignoring archives makes existing items look new, the widened scan could surface far more than the user chose.Change
sessionArgson the coordinator, read before the teardown clears them). A picker-opened session has none and reopens with none. Later reconnects replay that same vector.requestOpentakesfirstLoadArgs, which ride with the request through the queue, are appended after the session's options for that one load, and are never part ofsessionArgs.falsethentrueignores archives, the reverse does not), so the override also beats an explicit-ignorearchives=false.Evidence
a/andb/, sync, then change one file on one side. With a session scoped-path athe normal rescan showsModified →and the recovery scan shows theCreated ⚠︎conflict (archives ignored), coveringa/only. Same result with-path a -ignorearchives=falsein the session.P.prfis untouched. Onmainthe recovery scan widened from 1 item to 2.RecoveryReopenArgsTests(6): scoped recovery carries the options and a picker session carries none; ordinary recovery keeps an explicit-ignorearchives=trueor=falseunchanged; the action puts the override on its own first load only and leaves the profile unedited; a queued recovery that is cancelled or replaced leaves nothing for a later ordinary open (no override, no edit); a recovery promoted after a remote close overrides its first connect and the same session's reconnect then replays the original vector exactly.Limits
🤖 Generated with Claude Code