fix(versions): Remove keeps a version's own profile, so the version can go #387

Merged
HumanBean merged 5 commits from llun/LongshotLauncher:fix/386-keep-version-profile into main 2026-12-01 23:23:04 +00:00
Member

A player could not remove a version, and nothing in the Launcher let them past it: every Remove stopped with "This folder contains protected data at "profile"" and the dialog stayed open (#386). Removal now keeps that profile as a Launcher profile, then removes the version.

Why it happens

<version>/profile/ is longshot-builder's default profile. A game started without the Launcher's --profile (its Longshot.exe opened from the version folder, or a shortcut aimed at it) keeps its saves, settings and mods there. Builders before Longshot's nightly-837 always used it for such a start, portable libraries included (Longshot #2629 and #2773 taught the builder to find the Launcher's profiles since). Removal treats any profile entry in a version as the player's data and refuses, which is right, but it gave the player no way forward. The log only said "Game operation did not complete".

What changes

  • Removal keeps the version's own profile. Once every other check has passed, <version>/profile moves to the Launcher's profiles (copied, compared, then the original removed; a copy is dropped again if the original cannot go, so trying again never makes two), then the version is removed as before. Any other protected data in the version still stops the removal, the profile untouched.
  • A box in the Remove dialog of such a version, unticked each time it opens: "Delete this profile too, with its saves and settings. No backup will be made." Ticked, the profile goes with the version; the note above it says which will happen.
  • Only the builder's exact profile counts. Another spelling (Profile beside it on a case-sensitive file system) is the player's own data and still stops the removal, so nothing is moved and nothing deleted.
  • Remove everything in Settings β†’ Storage follows the player's choice: with the saves ticked, a version's own profile goes with the version; without, it becomes a profile in the kept profiles folder.
  • Its name: the profile's own name when it has one no other profile uses (compared as the profile editor compares names, Unicode lowercase), else "Saves from " in the Launcher's language ("Saves de nightly-951-…" in Portuguese). profile.json keeps every other key (game, licenses, start_slot, upscalers).
  • The dialog says so before Remove, and a notice after it names the new profile. "Version removed." is translated too. All new text is in the 12 translated catalogs.
  • The log records "Version removal kept the version's own profile", "… deleted the version's own profile" or "Version removal did not complete" (fixed wording, no paths).
  • The 16-profile limit still holds: with 16 profiles, removal stops and says to remove one first.
  • docs/saves.md describes it.

Tested

  • A game-free test that fails on main for the bug's reason (removal_keeps_the_versions_own_profile_as_a_launcher_profile, first commit: fails with the reporter's message, passes with the fix; the removal and i18n tests rerun after the rebase onto main), plus tests that other protected data still stops removal before the profile moves, that another spelling of profile stops it too, that Remove everything with the saves takes the version's own profile, that a kept profile keeps a free name of its own (Unicode case), that its name follows the Launcher's language, and that a box ticked in an earlier dialog never carries over. The tests that move a profile run in their own process with no game counted as running (as the players tests do), so a game open elsewhere on the PC cannot decide them.
  • cargo fmt and locked Clippy with -D warnings on Windows, rebased onto #388 (which made Clippy pass on Windows again), scripts/translations.py (15 catalogs), Tooling's tests/test_release.py (46 tests). cargo test on Windows 11: the same 12 environment-dependent tests (folder moves, links, Steam, portable home, storage) fail on main and here; none touch this code, and every removal test passes.
  • In the Launcher on Windows 11, a portable library laid out like the reporter's, with a copy of an installed nightly-951 holding its own profile/ (6 saves, as the builder writes it). In Portuguese, as in the report: the dialog says the profile is kept, Remover removed the version, the notice named "Saves de nightly-951-28cb22b9", and that profile showed its 6 saves, byte-identical to the original. While another longshot.exe was running, removal refused as before and left the profile in place. Screenshots in the comments, the dialog's box in English and Portuguese too (nothing removed for those: Cancel); the save list is left out, its thumbnails coming from the game.

Not covered

  • A version found outside the Launcher's library (a "discovered" copy) with its own profile/ is still refused, by the earlier extra-entry check. It is rarer and kept out of this change.

πŸ€– Generated with Claude Code

A player could not remove a version, and nothing in the Launcher let them past it: every **Remove** stopped with "This folder contains protected data at "profile"" and the dialog stayed open ([#386](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/issues/386)). Removal now keeps that profile as a Launcher profile, then removes the version. ## Why it happens `<version>/profile/` is longshot-builder's default profile. A game started without the Launcher's `--profile` (its `Longshot.exe` opened from the version folder, or a shortcut aimed at it) keeps its saves, settings and mods there. Builders before Longshot's nightly-837 always used it for such a start, portable libraries included (Longshot #2629 and #2773 taught the builder to find the Launcher's profiles since). Removal treats any `profile` entry in a version as the player's data and refuses, which is right, but it gave the player no way forward. The log only said "Game operation did not complete". ## What changes - **Removal keeps the version's own profile.** Once every other check has passed, `<version>/profile` moves to the Launcher's profiles (copied, compared, then the original removed; a copy is dropped again if the original cannot go, so trying again never makes two), then the version is removed as before. Any other protected data in the version still stops the removal, the profile untouched. - **A box in the Remove dialog** of such a version, unticked each time it opens: "Delete this profile too, with its saves and settings. No backup will be made." Ticked, the profile goes with the version; the note above it says which will happen. - **Only the builder's exact `profile`** counts. Another spelling (`Profile` beside it on a case-sensitive file system) is the player's own data and still stops the removal, so nothing is moved and nothing deleted. - **Remove everything** in Settings β†’ Storage follows the player's choice: with the saves ticked, a version's own profile goes with the version; without, it becomes a profile in the kept profiles folder. - **Its name:** the profile's own name when it has one no other profile uses (compared as the profile editor compares names, Unicode lowercase), else "Saves from <version>" in the Launcher's language ("Saves de nightly-951-…" in Portuguese). profile.json keeps every other key (`game`, `licenses`, `start_slot`, `upscalers`). - **The dialog says so before Remove**, and a notice after it names the new profile. "Version removed." is translated too. All new text is in the 12 translated catalogs. - **The log** records "Version removal kept the version's own profile", "… deleted the version's own profile" or "Version removal did not complete" (fixed wording, no paths). - The 16-profile limit still holds: with 16 profiles, removal stops and says to remove one first. - `docs/saves.md` describes it. ## Tested - **A game-free test that fails on main for the bug's reason** (`removal_keeps_the_versions_own_profile_as_a_launcher_profile`, first commit: fails with the reporter's message, passes with the fix; the removal and i18n tests rerun after the rebase onto `main`), plus tests that other protected data still stops removal before the profile moves, that another spelling of `profile` stops it too, that Remove everything with the saves takes the version's own profile, that a kept profile keeps a free name of its own (Unicode case), that its name follows the Launcher's language, and that a box ticked in an earlier dialog never carries over. The tests that move a profile run in their own process with no game counted as running (as the players tests do), so a game open elsewhere on the PC cannot decide them. - `cargo fmt` and locked Clippy with `-D warnings` on Windows, rebased onto #388 (which made Clippy pass on Windows again), `scripts/translations.py` (15 catalogs), Tooling's `tests/test_release.py` (46 tests). `cargo test` on Windows 11: the same 12 environment-dependent tests (folder moves, links, Steam, portable home, storage) fail on `main` and here; none touch this code, and every removal test passes. - **In the Launcher on Windows 11**, a portable library laid out like the reporter's, with a copy of an installed nightly-951 holding its own `profile/` (6 saves, as the builder writes it). In Portuguese, as in the report: the dialog says the profile is kept, **Remover** removed the version, the notice named "Saves de nightly-951-28cb22b9", and that profile showed its 6 saves, byte-identical to the original. While another `longshot.exe` was running, removal refused as before and left the profile in place. Screenshots in the comments, the dialog's box in English and Portuguese too (nothing removed for those: Cancel); the save list is left out, its thumbnails coming from the game. ## Not covered - A version found outside the Launcher's library (a "discovered" copy) with its own `profile/` is still refused, by the earlier extra-entry check. It is rarer and kept out of this change. πŸ€– Generated with [Claude Code](https://claude.com/claude-code)
A game started without the launcher's --profile fills longshot-builder's default
profile, <version>/profile. Removing such a version stops on it as protected data,
every time, with no way forward (#386). This test fails on main for that reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A game started without the launcher's --profile (Longshot.exe opened from the
version folder, or a shortcut aimed at it) fills longshot-builder's default
profile, <version>/profile. Removal refused that folder as protected data and
said so in the dialog, but nothing let the player past it: every Remove stopped
again (#386).

Removal now moves that profile to the launcher's profiles once every other check
has passed (copied, compared, then the original removed), named "Saves from
<version>" unless its own name is free, and then removes the version. Any other
protected data in the version still stops the removal, the profile untouched.
The dialog says beforehand that Remove keeps it, a notice names the new profile,
and the log records the outcome in fixed wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(versions): the kept profile's name and the removal notice in the launcher's language
Some checks failed
CI / What the change needs (pull_request) Successful in 5s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 11s
PR title / Conventional Commit title (pull_request) Successful in 6s
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
b72a9cb560
The profile a removed version leaves is named in the launcher's language
("Saves de nightly-951-…" in Portuguese), and the notice after removal and the
"Version removed." status are looked up in the catalogs, all 12 translated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Screenshots from the Launcher on Windows 11, in Portuguese as in the report (the library folder line in the dialog is blanked).

The Remove dialog, with the new note that the version's own profile is kept:
Remove dialog

After Remover, the notice names the new profile:
Notice after removal

The kept profile in the profile switcher, with its 6 saves:
Profile switcher

Screenshots from the Launcher on Windows 11, in Portuguese as in the report (the library folder line in the dialog is blanked). The Remove dialog, with the new note that the version's own profile is kept: ![Remove dialog](https://git.magicbean.dev/attachments/b02e7ca2-5509-4423-98e5-1554b5b4b133) After Remover, the notice names the new profile: ![Notice after removal](https://git.magicbean.dev/attachments/255db657-5679-48cd-9d90-44db4483e738) The kept profile in the profile switcher, with its 6 saves: ![Profile switcher](https://git.magicbean.dev/attachments/af9f7b6f-de26-4212-a7f0-4cf1296af79e)
Member

Possibly related, for context:

  • PR #317 feat(versions): show previous launcher builds and remove one in one action β€” Open version cleanup PR also changes removal and save preservation; review overlap.
  • PR #360 fix(versions): preserve inactive update settings and recover builder reuse β€” Merged removal change recovers version-local settings and guards protected data.
  • PR #362 fix(versions): recover legacy settings and scope removal guards β€” Merged changes to version-removal protection and recovery.
Possibly related, for context: - PR #317 feat(versions): show previous launcher builds and remove one in one action β€” Open version cleanup PR also changes removal and save preservation; review overlap. - PR #360 fix(versions): preserve inactive update settings and recover builder reuse β€” Merged removal change recovers version-local settings and guards protected data. - PR #362 fix(versions): recover legacy settings and scope removal guards β€” Merged changes to version-removal protection and recovery.
Author
Member
@review
BeanBot left a comment

Recommendation: Request changes. On case-sensitive filesystems, removal can delete an extra profile without preserving it. Bulk removal can also leave saves behind after the player chose to remove them.

The change lets players remove a version while keeping its own profile and reports the new profile in the launcher. It adds a copy and comparison before removal, but the profile scan and bulk-cleanup interaction need correction.

Blocking (2): must change before merging.

  1. L1 src/game/versions.rs:641: The scan silently replaces an already discovered profile with another case-insensitive match. (more on the line) Do: Reject multiple matching profile directories before moving anything, or preserve every matching directory.
  2. L2 src/game/mod.rs:174: Bulk removal discards the retained-profile result and can recreate player data after the reviewed profile folder has been removed. (more on the line) Do: Make bulk cleanup handle version-owned profiles according to the reviewed include-profiles choice, and ensure its final state matches the reviewed removal plan.

Should fix (1): not blocking, but worth doing before merging.

  • L3 src/players/profiles.rs:418: The name collision check uses ASCII-only case folding, unlike normal profile creation and renaming. (more on the line) Do: Use the same Unicode lowercase comparison as new_or_rename for both adopted and generated names.

@fix can do L1, L2 and L3.

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes. The reported Windows 11 run removed the affected version and showed all six saves in the retained profile; the added synthetic test also covers the reported failure.

Other systems: The change affects Windows and Linux filesystem operations, profile storage, and bulk cleanup. The reported interactive run covers Windows; the case-sensitive directory issue affects Linux filesystems. Bulk cleanup can recreate profiles after its reviewed profile directory has already been removed.

Switches: None.

Reviewed: b72a9cb560 against 1fb25370b1: Read AGENTS.md, CONTRIBUTING.md, the commit log, the complete diff, and the changed profile, i18n and Slint files. Read the changed removal code and surrounding scan, storage cleanup, copy and process-check paths; skimmed the translation additions and existing tests. No review checklist or pull request template was present. Other changed Rust files were reviewed through their diffs and relevant callers, not in full.; nothing run (a code review).

Checked and fine:

  • The three commits include AI-assistance trailers.
  • The added save fixtures are synthetic.
  • The reported UI run includes screenshots and checks that a running game blocks removal.
  • Other protected data is scanned before profile adoption.

Testing: Read-only review; no commands from the project or tests were run. The reported Windows removal and translation tests passed; CI was still running.

Overlaps and merge order: None found in the supplied context.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** On case-sensitive filesystems, removal can delete an extra profile without preserving it. Bulk removal can also leave saves behind after the player chose to remove them. The change lets players remove a version while keeping its own profile and reports the new profile in the launcher. It adds a copy and comparison before removal, but the profile scan and bulk-cleanup interaction need correction. **Blocking (2)**: must change before merging. 1. **L1** `src/game/versions.rs:641`: The scan silently replaces an already discovered profile with another case-insensitive match. (more on the line) **Do:** Reject multiple matching profile directories before moving anything, or preserve every matching directory. 2. **L2** `src/game/mod.rs:174`: Bulk removal discards the retained-profile result and can recreate player data after the reviewed profile folder has been removed. (more on the line) **Do:** Make bulk cleanup handle version-owned profiles according to the reviewed include-profiles choice, and ensure its final state matches the reviewed removal plan. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `src/players/profiles.rs:418`: The name collision check uses ASCII-only case folding, unlike normal profile creation and renaming. (more on the line) **Do:** Use the same Unicode lowercase comparison as `new_or_rename` for both adopted and generated names. `@fix` can do L1, L2 and L3. **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The reported Windows 11 run removed the affected version and showed all six saves in the retained profile; the added synthetic test also covers the reported failure. **Other systems:** The change affects Windows and Linux filesystem operations, profile storage, and bulk cleanup. The reported interactive run covers Windows; the case-sensitive directory issue affects Linux filesystems. Bulk cleanup can recreate profiles after its reviewed profile directory has already been removed. **Switches:** None. **Reviewed:** b72a9cb56035 against 1fb25370b1ef: Read AGENTS.md, CONTRIBUTING.md, the commit log, the complete diff, and the changed profile, i18n and Slint files. Read the changed removal code and surrounding scan, storage cleanup, copy and process-check paths; skimmed the translation additions and existing tests. No review checklist or pull request template was present. Other changed Rust files were reviewed through their diffs and relevant callers, not in full.; nothing run (a code review). **Checked and fine:** - The three commits include AI-assistance trailers. - The added save fixtures are synthetic. - The reported UI run includes screenshots and checks that a running game blocks removal. - Other protected data is scanned before profile adoption. **Testing:** Read-only review; no commands from the project or tests were run. The reported Windows removal and translation tests passed; CI was still running. **Overlaps and merge order:** None found in the supplied context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
src/game/mod.rs Outdated
@ -172,3 +172,3 @@
anyhow::anyhow!("Only an installed Longshot version can be removed here.")
})?;
versions::delete(home, &version)
versions::delete(home, &version).map(drop)
Member

L2 (blocking): Bulk removal discards the retained-profile result and can recreate player data after the reviewed profile folder has been removed.

When: When Remove everything includes profiles and the profiles path sorts before a version path, cleanup removes the profiles folder first. Removing a version with its own profile then recreates that folder and copies the saves into it; cleanup reports success and exits even though the player requested their removal. With a custom data folder, resetting preferences can also leave those saves at an unconfigured location.

Do: Make bulk cleanup handle version-owned profiles according to the reviewed include-profiles choice, and ensure its final state matches the reviewed removal plan.

**L2** (blocking): Bulk removal discards the retained-profile result and can recreate player data after the reviewed profile folder has been removed. *When:* When Remove everything includes profiles and the profiles path sorts before a version path, cleanup removes the profiles folder first. Removing a version with its own profile then recreates that folder and copies the saves into it; cleanup reports success and exits even though the player requested their removal. With a custom data folder, resetting preferences can also leave those saves at an unconfigured location. **Do:** Make bulk cleanup handle version-owned profiles according to the reviewed include-profiles choice, and ensure its final state matches the reviewed removal plan.
@ -623,1 +638,4 @@
let path = e.path();
// Not scanned: it moves to the launcher's profiles whole, its saves with it.
if keep_own_profile && dir == folder && name == OWN_PROFILE && players::is_dir(&path) {
tree.own_profile = Some(path);
Member

L1 (blocking): The scan silently replaces an already discovered profile with another case-insensitive match.

When: On Linux, a version can contain both profile and Profile. Both are skipped by the protection scan, but only the last one is adopted; the other remains in the version directory and is deleted with it, including any saves it contains.

Do: Reject multiple matching profile directories before moving anything, or preserve every matching directory.

**L1** (blocking): The scan silently replaces an already discovered profile with another case-insensitive match. *When:* On Linux, a version can contain both `profile` and `Profile`. Both are skipped by the protection scan, but only the last one is adopted; the other remains in the version directory and is deleted with it, including any saves it contains. **Do:** Reject multiple matching profile directories before moving anything, or preserve every matching directory.
@ -375,0 +415,4 @@
disk::same_tree(source, stage.path())?,
"This version’s own profile changed while it was copied. Close Longshot and try again."
);
let taken = |name: &str| all.iter().any(|p| p.name().eq_ignore_ascii_case(name));
Member

L3 (should fix): The name collision check uses ASCII-only case folding, unlike normal profile creation and renaming.

When: If an existing profile is named Γ‰milie and the adopted profile is named Γ©milie, adoption keeps both names, although the profile editor rejects that pair as duplicates.

Do: Use the same Unicode lowercase comparison as new_or_rename for both adopted and generated names.

**L3** (should fix): The name collision check uses ASCII-only case folding, unlike normal profile creation and renaming. *When:* If an existing profile is named `Γ‰milie` and the adopted profile is named `Γ©milie`, adoption keeps both names, although the profile editor rejects that pair as duplicates. **Do:** Use the same Unicode lowercase comparison as `new_or_rename` for both adopted and generated names.
fix(versions): only the builder's exact profile is kept, and Remove everything follows the saves choice
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
3a3ad6cf53
Review of #387 (BeanBot):
- Only a folder named exactly `profile` is the builder's. Another spelling
  (`Profile` beside it on a case-sensitive file system) is the player's own data
  and stops the removal like any other, nothing moved or deleted.
- Remove everything passes the reviewed choice on: with profiles and saves ticked
  for removal, a version's own profile goes with the version instead of making a
  profiles folder again after it was removed; unticked, it is kept as a profile.
- Profile names compare as the profile editor compares them (Unicode lowercase).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
llun force-pushed fix/386-keep-version-profile from 3a3ad6cf53
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
to 60f978d6af
Some checks failed
CI / What the change needs (pull_request) Successful in 4s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 8s
PR title / Conventional Commit title (pull_request) Successful in 5s
CI / Rust formatting, lint and tests (pull_request) Successful in 13m22s
CI / Release packages and stable upgrades (pull_request) Failing after 24m28s
2026-12-01 05:31:41 +00:00
Compare
Author
Member

Thanks for the review: all three are fixed in 561993c, and the branch is rebased onto #388.

  • L1 (profile and Profile on a case-sensitive file system): only the builder's exact profile is set aside now, compared by its exact name, not lowercased. Any other spelling is the player's own data and stops the removal before anything moves (only_the_builders_exact_profile_name_is_kept_another_spelling_stops_removal).
  • L2 (Remove everything with the saves ticked): the reviewed choice is passed on. With profiles and saves ticked, a version's own profile goes with the version, so no profiles folder is made again after the cleanup removed it; unticked, it is kept as a profile in the kept profiles folder (removing_everything_with_the_saves_takes_the_versions_own_profile_too).
  • L3 (name clash): names compare as new_or_rename does, Unicode lowercase, for both the profile's own name and the generated one (Γ‰milie / Γ©milie case added to a_kept_profile_keeps_its_own_name_unless_another_profile_has_it).

Also new in 60f978d: the Remove dialog of a version that has its own profile gets a box, unticked each time it opens, to delete that profile with the version instead of keeping it; the note above it says which will happen. Both texts are in the 12 translated catalogs.

Checked on Windows 11 after the rebase: cargo fmt --check, locked Clippy with -D warnings (no allowances now that #388 is in), and the removal, dialog, cleanup and i18n tests (16 passed). The tests that move a profile now run in their own process with no game counted as running, as players::tests does: a game open elsewhere on the PC made them fail, rightly, since saves move only while no game runs.

The box in English and Portuguese (scratch library, Cancel pressed each time, nothing removed; the folder line is blanked):

English, unticked
English, ticked
Portuguese, unticked
Portuguese, ticked

Thanks for the review: all three are fixed in 561993c, and the branch is rebased onto #388. - **L1** (`profile` and `Profile` on a case-sensitive file system): only the builder's exact `profile` is set aside now, compared by its exact name, not lowercased. Any other spelling is the player's own data and stops the removal before anything moves (`only_the_builders_exact_profile_name_is_kept_another_spelling_stops_removal`). - **L2** (Remove everything with the saves ticked): the reviewed choice is passed on. With profiles and saves ticked, a version's own profile goes with the version, so no `profiles` folder is made again after the cleanup removed it; unticked, it is kept as a profile in the kept profiles folder (`removing_everything_with_the_saves_takes_the_versions_own_profile_too`). - **L3** (name clash): names compare as `new_or_rename` does, Unicode lowercase, for both the profile's own name and the generated one (`Γ‰milie` / `Γ©milie` case added to `a_kept_profile_keeps_its_own_name_unless_another_profile_has_it`). Also new in 60f978d: the Remove dialog of a version that has its own profile gets a box, unticked each time it opens, to delete that profile with the version instead of keeping it; the note above it says which will happen. Both texts are in the 12 translated catalogs. Checked on Windows 11 after the rebase: `cargo fmt --check`, locked Clippy with `-D warnings` (no allowances now that #388 is in), and the removal, dialog, cleanup and i18n tests (16 passed). The tests that move a profile now run in their own process with no game counted as running, as `players::tests` does: a game open elsewhere on the PC made them fail, rightly, since saves move only while no game runs. The box in English and Portuguese (scratch library, Cancel pressed each time, nothing removed; the folder line is blanked): ![English, unticked](https://git.magicbean.dev/attachments/f7de9850-d15e-451a-9276-e8a86ad5d7c8) ![English, ticked](https://git.magicbean.dev/attachments/2ac2a2b4-9460-434f-90d9-923593fd4b5e) ![Portuguese, unticked](https://git.magicbean.dev/attachments/9c360229-e43b-4158-b61b-e810a784757c) ![Portuguese, ticked](https://git.magicbean.dev/attachments/b69df9f2-18b2-43e6-ba1f-843019273a94)
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The three ledger issues are fixed, and the reported Windows run shows that removal preserves the profile and its saves. The required CI checks are still running. Nothing blocking is left. Recommend approval; not approved on the forge.

Removal can preserve a version’s own profile as a Launcher profile, or delete it when the player explicitly chooses to. This makes the blocked removal workflow usable, at the cost of additional profile-copying and cleanup logic.

Since the last review (on b72a9cb560)
Resolved: L1 (The scan silently replaces an already discovered profile with another case-insensitive mat…); L2 (Bulk removal discards the retained-profile result and can recreate player data after the r…); L3 (The name collision check uses ASCII-only case folding, unlike normal profile creation and…)

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes. The author reports a Windows 11 Launcher run in which removal preserved six byte-identical saves and displayed the resulting profile. This is not a performance change.

Other systems: The change affects version removal, profile storage and bulk cleanup on Windows and Linux. The reported interactive run was on Windows; the changed exact-name scan also handles case-sensitive filesystems in code.

Switches: The Remove dialog adds an unchecked-by-default choice to delete the version’s own profile; keeping saves by default is appropriate. Bulk cleanup follows its existing include-profiles choice.

Reviewed: 60f978d6af against 2ab8b52062: Read the repository rules, pull request description and comments, diff statistics and commits, and the relevant removal, profile adoption and bulk cleanup code. Skimmed the remaining diff; did not read every changed code file or translation catalog in full.; nothing run (a code review).

Checked and fine:

  • The delete-profile choice resets when the removal dialog opens.
  • Other protected entries are checked before the version’s own profile is adopted.

Testing: No commands that build or run project code were executed. The author reports passing removal, dialog, cleanup and i18n tests and a Windows interactive run; CI remains in progress.

Overlaps and merge order: None found.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The three ledger issues are fixed, and the reported Windows run shows that removal preserves the profile and its saves. The required CI checks are still running. Nothing blocking is left. Recommend approval; not approved on the forge. Removal can preserve a version’s own profile as a Launcher profile, or delete it when the player explicitly chooses to. This makes the blocked removal workflow usable, at the cost of additional profile-copying and cleanup logic. **Since the last review** (on b72a9cb56035) Resolved: L1 (The scan silently replaces an already discovered profile with another case-insensitive mat…); L2 (Bulk removal discards the retained-profile result and can recreate player data after the r…); L3 (The name collision check uses ASCII-only case folding, unlike normal profile creation and…) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The author reports a Windows 11 Launcher run in which removal preserved six byte-identical saves and displayed the resulting profile. This is not a performance change. **Other systems:** The change affects version removal, profile storage and bulk cleanup on Windows and Linux. The reported interactive run was on Windows; the changed exact-name scan also handles case-sensitive filesystems in code. **Switches:** The Remove dialog adds an unchecked-by-default choice to delete the version’s own profile; keeping saves by default is appropriate. Bulk cleanup follows its existing include-profiles choice. **Reviewed:** 60f978d6afe9 against 2ab8b5206291: Read the repository rules, pull request description and comments, diff statistics and commits, and the relevant removal, profile adoption and bulk cleanup code. Skimmed the remaining diff; did not read every changed code file or translation catalog in full.; nothing run (a code review). **Checked and fine:** - The delete-profile choice resets when the removal dialog opens. - Other protected entries are checked before the version’s own profile is adopted. **Testing:** No commands that build or run project code were executed. The author reports passing removal, dialog, cleanup and i18n tests and a Windows interactive run; CI remains in progress. **Overlaps and merge order:** None found. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The reported Windows removal case is shown working, with the version’s profile preserved. CI is still running. Nothing blocking is left. Recommend approval; not approved on the forge.

Version removal preserves the version’s own profile by default and offers an explicit choice to delete it; bulk cleanup follows the saves choice. The change adds profile-copying and removal logic in exchange for giving affected players a way to remove the version.

Since the last review (on 60f978d6af)
Nothing changed in the ledger.

Checks: Still running: 5 checks.

Also noticed (1; not asked for, not blocking)
  • The saves documentation says a kept profile is named after the version, although the implementation preserves an unused existing profile name.
More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports removing a nightly on Windows 11 and finding all six saves byte-identical in the retained profile. This is not a performance change.

Other systems: The change affects Windows and Linux filesystem operations, profile storage, bulk cleanup and the removal dialog. The recorded interactive run is on Windows; the author reports game-free removal and cleanup tests.

Switches: The removal dialog adds a delete-own-profile checkbox, unticked each time; keeping the profile is the appropriate default. Bulk cleanup uses its existing saves choice.

Reviewed: 60f978d6af against 2ab8b52062: Read AGENTS.md and CONTRIBUTING.md; inspected the diff, the version-removal and cleanup paths, profile adoption, dialog wiring and recorded evidence. The full changed source files and translation catalogs were not all read in full; translations and tests were skimmed.; nothing run (a code review).

Checked and fine:

  • Only the exact profile directory is set aside; other protected names remain subject to the scan.
  • The dialog resets the deletion choice when it opens, and cleanup passes its saves choice to version removal.
  • Profile names are compared using Unicode lowercase.

Testing: No commands or tests from the project were run. The author reports Windows removal, dialog, cleanup and i18n tests and an interactive Windows run; CI is still running.

Overlaps and merge order: The author reports a rebase onto #388; no other overlap was established.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The reported Windows removal case is shown working, with the version’s profile preserved. CI is still running. Nothing blocking is left. Recommend approval; not approved on the forge. Version removal preserves the version’s own profile by default and offers an explicit choice to delete it; bulk cleanup follows the saves choice. The change adds profile-copying and removal logic in exchange for giving affected players a way to remove the version. **Since the last review** (on 60f978d6afe9) Nothing changed in the ledger. **Checks:** Still running: 5 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The saves documentation says a kept profile is named after the version, although the implementation preserves an unused existing profile name. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports removing a nightly on Windows 11 and finding all six saves byte-identical in the retained profile. This is not a performance change. **Other systems:** The change affects Windows and Linux filesystem operations, profile storage, bulk cleanup and the removal dialog. The recorded interactive run is on Windows; the author reports game-free removal and cleanup tests. **Switches:** The removal dialog adds a delete-own-profile checkbox, unticked each time; keeping the profile is the appropriate default. Bulk cleanup uses its existing saves choice. **Reviewed:** 60f978d6afe9 against 2ab8b5206291: Read AGENTS.md and CONTRIBUTING.md; inspected the diff, the version-removal and cleanup paths, profile adoption, dialog wiring and recorded evidence. The full changed source files and translation catalogs were not all read in full; translations and tests were skimmed.; nothing run (a code review). **Checked and fine:** - Only the exact profile directory is set aside; other protected names remain subject to the scan. - The dialog resets the deletion choice when it opens, and cleanup passes its saves choice to version removal. - Profile names are compared using Unicode lowercase. **Testing:** No commands or tests from the project were run. The author reports Windows removal, dialog, cleanup and i18n tests and an interactive Windows run; CI is still running. **Overlaps and merge order:** The author reports a rebase onto #388; no other overlap was established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/386-keep-version-profile 2026-12-01 23:23:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!387
No description provided.