Repository navigation
Cloud save status for each game from this PC alone, and a save-sync event - #289
Merged
elripalda merged 4 commits intoNov 18, 2026
Merged
Conversation
…y didn't Each game's save state keeps when this PC and the cloud last agreed (and when and where that save was made), a conflict until the player picks, and the reason a sync didn't go through. sync_state turns that into one word for the game page, without asking the website.
…ve-sync event Uploads, restores and checks say what they're doing (check, up, down, idle) and record how they ended. A copy too big for the cloud and a save folder too big to look through are kept as problems, so a page no longer shows them as waiting for good. The Saves page list carries each game's state too.
…connected in one place saves_status and the Saves page ask provider_name and cloud_ready (RecompStore and signed in, for now), so a second cloud only has to answer those two. A conflict a cloud reports as an upload error is kept like one the website list shows, and a copy that went up is recorded the same way whichever cloud took it.
…er it's connected in one place" This reverts commit 377017d.
Xarishark
added a commit
to innateessence/RecompLauncher
that referenced
this pull request
Nov 18, 2026
Brings in main since Beta 55 and the cloud save status from elripalda#289, which this branch now builds on. Conflicts in cloud.rs (take_cloud, upload_current, check_saves, the tests) and lib.rs (the command list) keep both sides: Drive's provider branches, with the status hooks around them.
7 of 8 tasks
8 tasks done
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.
What this changes
The backend for a cloud save status on each game's page (the badge itself comes in a follow-up PR). Today the only way to see whether a save reached the cloud is the Saves tab, and that asks the website every time. Some things aren't remembered at all: a conflict is only a toast, and a copy too big to send is only a toast.
Each game's
saves/<id>/state.jsonon this PC now also keeps:synced_at,synced_made,synced_device);conflict);problem: offline, full, paused, too-big-copy, too-big-folder or error).Older state files read as before, with the new fields empty.
New:
saves_status(id): one game's status from this PC alone, never asking the website.stateis one word:signed-out,off,conflict,problem,waiting,noneorup-to-date. With it come the sync time and PC, the copies waiting, the next retry and the problem. It's inSAVE_CMDSingames.js, so a game of a recomp with several asks with its own id.save-syncevent{id, phase}:check,upordownwhile a check, upload or download runs, thenidleon every way out of it. Before, the window only heard about saves once a new local copy was made, so background retries and restores were silent.saves_overviewgives each game the samestate, for the Saves page.Fixed along the way: a copy over 95 MB cleared
pendingwithout movingsynced_hash, so it looked like it was waiting to go up forever. It's now recorded as atoo-big-copyproblem.No website change is needed: the saves list already returns
made,device,playedandhashfor each copy. Nothing changes inrecomplauncher.json.Google Drive (#228): this only knows RecompStore. I'll put the changes Drive needs on that branch and say what they are there.
How you tested it
On bazzite-kde (Fedora 43 toolbox), on main at 0a053e8:
cargo test --lib: 724 passed, 0 failed, 1 ignored. 23 new tests: 14 insaves.rsfor the state word and syncing (a too-big copy is a problem, not waiting; an offline problem is still only waiting; a conflict until a sync; an old state file still reads), and 9 incloud.rsfor recording failures and the too-big folder.node --test tests/games.test.cjs: 24 of 25. Test 23 fails the same way on main when the files are checked out with Windows line endings (its regex expects\n); nothing to do with this change.npm run dev): nothing to see yet; the badge is the next PR.Checklist
recomplauncher.json: the schema and docs are updated too (nothing new to write)