Repository navigation
F2: guard protected queries through session restoration and account changes - #48
Merged
Merged
Conversation
…tions (Refs #14) Extend the session store with a local lock that holds until the adapter reports a newer state. Protected AUTH_REQUIRED/EMAIL_NOT_VERIFIED reads in the current epoch lock the session, clear caches and abort pending work; late results, failures and rejections from an earlier epoch are replaced and can never expire a newer account. Guard signout so protected UI and caches lock before the adapter answers; a failed signout stays locked. Remove the App's now-redundant signing-out UI. Add session lifecycle component tests with a protected sentinel and delayed reads, and browser checks for restore without a modal flash and workspace-key preservation through signout and account switching. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 tasks
5 tasks
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.
Refs #14
Behavior
AUTH_REQUIREDorEMAIL_NOT_VERIFIEDduring the current epoch, the session locks into an error state and the modal opens. The same failure arriving from an earlier epoch is ignored, so a late response for one account can't sign out the next one.guardAuthServicelocks the UI and clears caches before the adapter answers sign-out. A sign-out that fails stays locked, so App's old signing-out UI and inline error were removed.Authentication context changed. A caller's own abort still propagates.Checks (rootless workspace container)
./dev checkPASSnpm ci: 230 packages, lockfile unchanged@smoke).Details:
docs/engineering/f2-session-verification.md.Limitations
🤖 Generated with Claude Code