Repository navigation
Scope cloud-save status cache to the current sign-in - #405
Open
thehobbit85 wants to merge 2 commits into
Open
thehobbit85 wants to merge 2 commits into
thehobbit85 wants to merge 2 commits into
Conversation
…-in outside the match
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.
The newer-cloud-save badge cached results by game and local synced hash for five minutes. Switching accounts with the same local save could therefore reuse the previous account's list; a delayed list response could also repopulate the cache after switching.
Scope the cache to the data directory and current sign-in. Successful account changes invalidate cached lists and outstanding requests. Both the Saves tab and the badge admit results only for the sign-in that requested them. Refreshing the same account keeps valid cache hits, and accounts without a user ID remain supported through their token identity.
Synthetic filesystem regressions reproduce the account-switch and delayed-writer bugs before the fix. Controls cover same-account refresh, renewed tokens, sign-out, missing user IDs, failed account writes, separate data folders, sync changes and expiry. No real accounts or credentials are used. Save download/restore and HTTP authentication behavior are unchanged.
Validation: full Rust suite 963 passed / 1 ignored; full UI suite 661 passed / 11 platform skips;
git diff --checkclean. This is an additional correctness defect found while auditing the account/cloud-save reports.