Skip to content

relocate: an offer is stale once the save folder was set by hand - #68

Merged
Omar-VF merged 1 commit into
Liquid-co:dev-publicfrom
ChakraFusion:pr/relocate-stale-offer
Oct 16, 2026
Merged

Omar-VF merged 1 commit into
Liquid-co:dev-publicfrom
ChakraFusion:pr/relocate-stale-offer

Conversation

@ChakraFusion

Copy link
Copy Markdown

The follow-up asked for on #24.

AcceptRelocation checked that the folder accepted was the one offered, but not that the game was still at the missing path the offer was made for. A save folder set by hand while an offer was open was then overwritten by accepting the old offer.

The offer now records the missing path it was made for (relocateFor). Accepting it after the game's save path changed is refused with a message saying why, and the stale offer is dropped. The record is cleared wherever an offer ends (accepted, dismissed, or the folder came back).

Test: TestRelocateToOtherDrive_AnOfferIsStaleOnceTheFolderIsSetByHand fails without the change (the hand-set folder is overwritten) and passes with it. The existing relocation tests still pass. CI on my fork is green.

🤖 Generated with Claude Code

AcceptRelocation checked that the folder accepted was the one offered, but
not that the game was still at the missing path the offer was made for. A
folder set by hand while the offer was open was then overwritten by
accepting the old offer. The offer now records the path it was made for,
and accepting it after the save path changed is refused and drops the
offer. (Follow-up asked for on Liquid-co#24.)

Test: TestRelocateToOtherDrive_AnOfferIsStaleOnceTheFolderIsSetByHand
(fails without this: the hand-set folder is overwritten).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 15, 2026

Copy link
Copy Markdown

@ChakraFusion is attempting to deploy a commit to the sivadaboi's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Omar-VF
Omar-VF merged commit c6665de into Liquid-co:dev-public Oct 16, 2026
10 of 11 checks passed
ChakraFusion pushed a commit to ChakraFusion/OpenSave that referenced this pull request Oct 16, 2026
Entries for Liquid-co#49, Liquid-co#70, Liquid-co#69, Liquid-co#72, Liquid-co#68 and Liquid-co#47, added at the end of the
Fixed list so they do not touch Liquid-co#75's own entry. Liquid-co#57 is test-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants