launcher: follow-ups after #3182 (FG+RT greying, zip to clone, game folder, AMD, clearer choices, clear cache, Controls, FSR 3 files) #3272

Merged
OreoFR merged 23 commits from upstream-pr/3272 into main 2026-12-03 04:28:31 +00:00
OreoFR commented 2026-12-03 01:28:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T01:28:18Z.


The launcher's follow-ups after #3182 (merged) go into this one PR, as the maintainer asked. Items claimed in #2570:

  • LAUNCHER-FGRT-FOLLOWS-PLAY
  • LAUNCHER-ZIP-TO-CLONE (was #3277, closed in favour of this one)
  • the Play page's game folder box
  • no DLSS asked of an AMD or Intel card
  • the chosen button of a row shows clearly
  • a Controls page for keyboard and mouse binds
  • the files a card needs (DLSS, AMD's FSR 3 DLLs) fetched by default, and "FSR" named "FSR 3"

Carries #3273 (merzleckeier's Launcher.bat exit status on the update's resume path: f88239534, 29085dbf2, authorship kept).

Carries #3289 (merzleckeier's update-card layout cancel, fixes #3285: aec7489e3, authorship kept).

Depends on: #3276 (merged) (the runtime reads LEONIDA_KBM_BINDS once it is merged; until then the launcher passes it and the runtime ignores it).

One commit per item, plus the review fixes listed under Tested.

1. The FG + RT greying follows what play-nvidia.ps1 will hold (a0a3189f3)

This answers @merzleckeier's review of 671d0c0fa.

  • Adapter mismatch. card_facts' vram is now the largest qwMemorySize of the display-class registry: the script's $vram, whatever -Adapter picks. DLSS and the maker check still follow the chosen card.
  • Effective hardware RT. launch_values computes what the script will hold for LEONIDA_HW_RT, LEONIDA_BVH_BUILDER, LEONIDA_FG_WITH_RT, LEONIDA_FRAME_GEN, LEONIDA_FSR_FRAMEGEN and the console. It follows the script's order:
    1. the launcher's switches;
    2. the F1 menu's file, for the keys no switch changed since the last PLAY ($switchSettings, mirrored here and checked against the script by a test);
    3. -More last.
  • settings_rules greys from those values. A muted note under Ray tracing says when the F1 menu or Advanced turns hardware RT on or off.

2. Update Mandy makes a zip copy a git clone, installing Git when it is missing (de2358e0b)

A player who downloaded the repository as a zip got only "use a git clone" from --update.

  • A zip copy now shows Update Mandy, and the rail reads "Zip copy: press Update Mandy".
  • zip_to_clone:
    1. git init, with origin = https://github.com/ProjectLeonida/mandy.git; fetch main, and a local main that follows it.
    2. git reset: the index goes to main, the files stay as they are.
    3. Every tracked file that differs is backed up to %LOCALAPPDATA%\Leonida\zip-copy-backup-<date>-<time>.
    4. main's version is checked out over the tracked files. Untracked and ignored files (builds, caches, game_path.txt) are not touched.
    5. The usual rebuild runs when d3d12/ changed.
    6. On any failure the new .git is removed, so the copy is a zip again, never half a clone.
  • Git missing: after one question, it is installed with winget install --id Git.Git -e --source winget --silent. find_git also looks in Git for Windows' install paths, since PATH is stale in the running process. Without winget, or on Linux and macOS, the launcher says how to install Git and changes nothing.
  • Copies that are already zips still run their old launcher, so this reaches them from their next zip download.

3. A missing game folder is a box on the Play page (c22cd85ed)

The single muted line "Choose your game folder in Settings" was missed.

  • It is now a box under the state, outlined in the warning colour: "Where is your game?", what to pick, and Choose game folder.
  • The chosen folder is saved at once, into the same field as Settings' Game folder.
  • A folder without the executable gets a red line in the box, and nothing changes.
  • PLAY without a folder opens the same picker instead of a warning and a jump to Settings, then starts once a folder with the game is chosen.

4. Without an NVIDIA card PLAY passes DLSS and Smooth Motion off (db005c435)

An AMD player (RX 9070) saw DLSS greyed but still on.

  • The cause: greying only changed the controls, so a saved DLSS choice stayed in PLAY's switches. There was no -NoDlss, and -Dlss <mode>, -FrameGen N and -SmoothMotion were still passed when saved. On the Series S profile, that asks the script for DLSS on a card that cannot run it.
  • The fix:
    • for_card turns off DLSS, its mode, DLSS frame generation's multiplier and Smooth Motion for PLAY. Frame generation on FSR or Off stays as chosen.
    • PLAY, its last_switches and the Play page's options line all use it.
    • The two switches are drawn off while greyed, and Resolution stays live.
    • The saved choices are kept and come back when an NVIDIA card is chosen.

5. The chosen button of a row is violet with white text (6d9a22f58)

A player's screenshot did not show that FSR was the frame generation mode.

  • Before: the chosen segment was a raised grey with a faint edge, too close to the others.
  • Now: it is filled with a deeper shade of the switches' violet (#7c3aed, white text at 5.7:1), like an "on" switch. Greyed, it is the same violet dimmed.
  • The rows concerned: Profile, frame generation's Mode, Picture in the window, Ray tracing.

6. Tools > Clear shader cache (636e61f94)

Players ask how to clear the cache. The new Tools button:

  • deletes the data folder's cache-2: play-d3d12.ps1's LEONIDA_CACHE_DIR, which holds the translated shaders, the pipelines and the title's prepared images;
  • asks for a confirmation first, naming the folder and its size;
  • is refused while the game runs.

The saves in data\ are not touched, and the next start makes the cache again.

7. A Controls page for keyboard and mouse binds (efa45bab9)

Players asked to remap keys. A new Controls page sits between Settings and Mods:

  • a short reference of the default keys (the full list is in docs/gameinput.md);
  • Your binds, one row per bind:
    • scope: Both / On foot / In a vehicle;
    • key: a press-a-key capture, mouse buttons included;
    • pad action: Square, Cross, RB, LT, the sticks, the d-pad... or Nothing;
    • a remove button;
  • Add bind, and Reset to defaults with a confirmation.

The runtime's own keys (F1, F3, F4, F8, F9, Alt, Caps Lock) are refused at capture, with a red note.

What PLAY does with them:

  • They are stored as kbm_binds in the runtime's syntax and passed as LEONIDA_KBM_BINDS.
  • They show in the Play options line and in Copy my info.
  • A LEONIDA_KBM_BINDS typed in the Advanced field wins, and the page says so.

8. The files a card needs, by default; Tools > Fetch AMD FidelityFX files; "FSR 3" (78a810cea)

FSR 3 frame generation needs AMD's signed amd_fidelityfx_loader_dx12.dll and amd_fidelityfx_framegeneration_dx12.dll in d3d12\amd-sdk\FidelityFX\bin. Nothing fetched them, so FSR 3 stayed off without a word.

  • The fetcher: d3d12\scripts\get-amd-fidelityfx.ps1, with Get-AMD-FidelityFX.cmd as a wrapper.

    • It downloads the two DLLs from GPUOpen-LibrariesAndSDKs/FidelityFX-SDK at tag v2.4.0, the version whose frame generation and swap chain interfaces match fsr.rs, together with AMD's licence.
    • It keeps them only if their sizes and git blob hashes match the pinned ones and Authenticode says they are signed by Advanced Micro Devices. Both are kept or neither.
    • amd-sdk/ is git-ignored.
  • Tools: a "Fetch AMD FidelityFX files" button (about 29 MB).

  • By default: a new "Download the files my card needs" setting, on by default. Before PLAY, the launcher fetches what the card lacks:

    • an RTX card gets the DLSS files;
    • an AMD, Intel or RTX 20/30 card gets the FSR 3 DLLs;
    • an unknown card, or one off Windows, gets nothing.

    This happens once, and the game starts even if a fetch fails.

  • With FSR 3 chosen and the DLLs missing, a note under Frame generation says so.

  • The frame generation mode "FSR" is now "FSR 3".

New texts in de/es/fr/pt for items 1 to 3 and 6 to 8, and docs/launcher.md covers them.

Tested

Windows 11, RTX 4070 Laptop. Launcher only, no game run; play-nvidia.ps1 is not touched.

  • Launcher suite: python -I tests/test_leonida_launcher.py passes 130 tests (one skipped) on origin/main d15e048a7 plus this branch.
    • Review fixes since the first push:
      • f1e9718e9, b4d0f54ea, 96765c480: merzleckeier's and DeadlyChirp's later rounds. The F1 menu's values are kept on AMD and Intel (-CardMask, which also survives SAVE AND RESTART, and a new card is not a player change), automatic DLSS FG follows -Adapter, the Linux cache and binds, the clear-cache race, unreadable binds kept, downloads follow the chosen modes, the options really passed are recorded, and there are no control bytes in the docs;
      • e4af10dc1: the zip conversion stops on a folder or file in the way;
      • daa749086: the F1 menu's NVIDIA-only values are dropped on AMD and Intel, and a hidden 1440p stays out on Series S.
    • Controls:
      • round-trip of the binds string, keysyms to the runtime's key names, and reserved keys refused;
      • the binds are passed to PLAY, and Advanced wins;
      • a guard reads the key, action and scope names from kbm.rs and checks every name the page can write. It is skipped on main until #3276 is in; it passes against #3276's kbm.rs via LEONIDA_KBM_RS;
      • counter-tests fail when the variable is not passed, a key is mis-mapped, an action is unknown, or the reserved list is short.
    • Clear shader cache: ClearShaderCacheTests. Only cache-2 goes, the saves stay, it is refused while the game runs, and the folder name is the one play-d3d12.ps1 sets. A clear that deletes the whole data folder fails these tests.
    • No NVIDIA card: ForCardTests. On AMD, -NoDlss is passed, with no -Dlss/-FrameGen/-SmoothMotion. FSR and Off are kept. NVIDIA and an unread card are unchanged. Resolution is live on AMD and greyed on NVIDIA with a DLSS mode. All 5 tests fail on the launcher before this commit.
    • FG + RT: merzleckeier's cases, and the switch table read from play-nvidia.ps1.
    • Zip: find_git, install_git and run_update on a zip copy, refused or allowed.
    • Zip with real git, a bare repository as origin:
      • an older zip with an edited file, an added file and an ignored build becomes a clean clone at origin/main, with the edit backed up and the untracked and ignored files kept;
      • a failed download leaves no .git.
  • FG + RT dry run: play-d3d12.ps1 → play-nvidia.ps1 with a stubbed registry agreed with the greying in 18 of 18 cases.
  • Zip end to end on this repository: a git archive of an older main plus a build, a game_path.txt and a README edit was converted in about 110 s.
    • 28 files were backed up (the edit among them) and 33 updated.
    • git status is clean apart from untracked files, and the build is kept.
  • Real windows, isolated APPDATA, patched pickers:
    • zip copy: the button and the rail text show; Cancel runs nothing; OK runs --update --install-git;
    • Controls: G, R and V captured with real key events give both:G=Square;both:R=none;foot:V=RB, saved and shown on Play; F1 is refused;
    • Clear shader cache, on a fake 8 MB cache: the confirmation shows "8.0 MB", the cache is deleted and the save is kept, then a second clear says "already empty";
    • Series X + FSR on a stubbed AMD card: every row shows its choice in violet;
    • AMD card (stubbed): the options line reads -SeriesS -NoDlss, DLSS and Smooth Motion are greyed and drawn off, and the saved DLSS value is kept;
    • game folder: the box shows with no folder; a wrong folder shows the error and saves nothing; a right one is saved to launcher.json and to Settings' field, and the box goes away.
  • tests/test_text_write_line_endings.py OK; scripts/check_no_game_data.py on the changed files OK.
  • Real winget, through install_git with find reporting Git missing once. Winget accepted the exact command, found Git 2.56.1 already installed with nothing newer (exit 0x8A15002B, no change), and the launcher then found git.exe and went on.
  • FidelityFX fetch, for real (RTX 4070 Laptop PC, Windows 11): exit 0.
    • Both DLLs are in place at the pinned sizes, and Get-AuthenticodeSignature gives Valid for both, signer CN=Advanced Micro Devices.
    • A second run reports them already there.
    • Fake unsigned DLLs (-From) are rejected and nothing is kept; a tag that is not pinned is refused.
  • Not tested: a first install of Git on a PC without it. There is no VM or Windows Sandbox here; the lookup in Git for Windows' install paths after it is covered by the unit tests.

AI-assisted (oreofr-agent, Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5617956910 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T01:28:18Z. --- The launcher's follow-ups after #3182 (merged) go into this one PR, as the maintainer asked. Items claimed in #2570: - **LAUNCHER-FGRT-FOLLOWS-PLAY** - **LAUNCHER-ZIP-TO-CLONE** (was #3277, closed in favour of this one) - the Play page's game folder box - no DLSS asked of an AMD or Intel card - the chosen button of a row shows clearly - a Controls page for keyboard and mouse binds - the files a card needs (DLSS, AMD's FSR 3 DLLs) fetched by default, and "FSR" named "FSR 3" Carries #3273 (merzleckeier's `Launcher.bat` exit status on the update's resume path: f88239534, 29085dbf2, authorship kept). Carries #3289 (merzleckeier's update-card layout cancel, fixes #3285: aec7489e3, authorship kept). Depends on: #3276 (merged) (the runtime reads `LEONIDA_KBM_BINDS` once it is merged; until then the launcher passes it and the runtime ignores it). One commit per item, plus the review fixes listed under Tested. ## 1. The FG + RT greying follows what play-nvidia.ps1 will hold (a0a3189f3) This answers @merzleckeier's review of 671d0c0fa. - **Adapter mismatch.** `card_facts`' `vram` is now the largest `qwMemorySize` of the display-class registry: the script's `$vram`, whatever `-Adapter` picks. DLSS and the maker check still follow the chosen card. - **Effective hardware RT.** `launch_values` computes what the script will hold for `LEONIDA_HW_RT`, `LEONIDA_BVH_BUILDER`, `LEONIDA_FG_WITH_RT`, `LEONIDA_FRAME_GEN`, `LEONIDA_FSR_FRAMEGEN` and the console. It follows the script's order: 1. the launcher's switches; 2. the F1 menu's file, for the keys no switch changed since the last PLAY (`$switchSettings`, mirrored here and checked against the script by a test); 3. `-More` last. - `settings_rules` greys from those values. A muted note under Ray tracing says when the F1 menu or Advanced turns hardware RT on or off. ## 2. Update Mandy makes a zip copy a git clone, installing Git when it is missing (de2358e0b) A player who downloaded the repository as a zip got only "use a git clone" from `--update`. - A zip copy now shows **Update Mandy**, and the rail reads "Zip copy: press Update Mandy". - **`zip_to_clone`:** 1. `git init`, with `origin` = `https://github.com/ProjectLeonida/mandy.git`; fetch `main`, and a local `main` that follows it. 2. `git reset`: the index goes to `main`, the files stay as they are. 3. Every tracked file that differs is backed up to `%LOCALAPPDATA%\Leonida\zip-copy-backup-<date>-<time>`. 4. `main`'s version is checked out over the tracked files. Untracked and ignored files (builds, caches, `game_path.txt`) are not touched. 5. The usual rebuild runs when `d3d12/` changed. 6. On any failure the new `.git` is removed, so the copy is a zip again, never half a clone. - **Git missing:** after one question, it is installed with `winget install --id Git.Git -e --source winget --silent`. `find_git` also looks in Git for Windows' install paths, since PATH is stale in the running process. Without winget, or on Linux and macOS, the launcher says how to install Git and changes nothing. - Copies that are already zips still run their old launcher, so this reaches them from their next zip download. ## 3. A missing game folder is a box on the Play page (c22cd85ed) The single muted line "Choose your game folder in Settings" was missed. - It is now a box under the state, outlined in the warning colour: "Where is your game?", what to pick, and **Choose game folder**. - The chosen folder is saved at once, into the same field as Settings' Game folder. - A folder without the executable gets a red line in the box, and nothing changes. - PLAY without a folder opens the same picker instead of a warning and a jump to Settings, then starts once a folder with the game is chosen. ## 4. Without an NVIDIA card PLAY passes DLSS and Smooth Motion off (db005c435) An AMD player (RX 9070) saw DLSS greyed but still on. - **The cause:** greying only changed the controls, so a saved DLSS choice stayed in PLAY's switches. There was no `-NoDlss`, and `-Dlss <mode>`, `-FrameGen N` and `-SmoothMotion` were still passed when saved. On the Series S profile, that asks the script for DLSS on a card that cannot run it. - **The fix:** - `for_card` turns off DLSS, its mode, DLSS frame generation's multiplier and Smooth Motion for PLAY. Frame generation on FSR or Off stays as chosen. - PLAY, its `last_switches` and the Play page's options line all use it. - The two switches are drawn off while greyed, and Resolution stays live. - The saved choices are kept and come back when an NVIDIA card is chosen. ## 5. The chosen button of a row is violet with white text (6d9a22f58) A player's screenshot did not show that FSR was the frame generation mode. - **Before:** the chosen segment was a raised grey with a faint edge, too close to the others. - **Now:** it is filled with a deeper shade of the switches' violet (`#7c3aed`, white text at 5.7:1), like an "on" switch. Greyed, it is the same violet dimmed. - The rows concerned: Profile, frame generation's Mode, Picture in the window, Ray tracing. ## 6. Tools > Clear shader cache (636e61f94) Players ask how to clear the cache. The new Tools button: - deletes the data folder's `cache-2`: `play-d3d12.ps1`'s `LEONIDA_CACHE_DIR`, which holds the translated shaders, the pipelines and the title's prepared images; - asks for a confirmation first, naming the folder and its size; - is refused while the game runs. The saves in `data\` are not touched, and the next start makes the cache again. ## 7. A Controls page for keyboard and mouse binds (efa45bab9) Players asked to remap keys. A new **Controls** page sits between Settings and Mods: - a short reference of the default keys (the full list is in `docs/gameinput.md`); - **Your binds**, one row per bind: - scope: Both / On foot / In a vehicle; - key: a press-a-key capture, mouse buttons included; - pad action: Square, Cross, RB, LT, the sticks, the d-pad... or Nothing; - a remove button; - **Add bind**, and **Reset to defaults** with a confirmation. The runtime's own keys (F1, F3, F4, F8, F9, Alt, Caps Lock) are refused at capture, with a red note. What PLAY does with them: - They are stored as `kbm_binds` in the runtime's syntax and passed as `LEONIDA_KBM_BINDS`. - They show in the Play options line and in Copy my info. - A `LEONIDA_KBM_BINDS` typed in the Advanced field wins, and the page says so. ## 8. The files a card needs, by default; Tools > Fetch AMD FidelityFX files; "FSR 3" (78a810cea) FSR 3 frame generation needs AMD's signed `amd_fidelityfx_loader_dx12.dll` and `amd_fidelityfx_framegeneration_dx12.dll` in `d3d12\amd-sdk\FidelityFX\bin`. Nothing fetched them, so FSR 3 stayed off without a word. - **The fetcher:** `d3d12\scripts\get-amd-fidelityfx.ps1`, with `Get-AMD-FidelityFX.cmd` as a wrapper. - It downloads the two DLLs from `GPUOpen-LibrariesAndSDKs/FidelityFX-SDK` at tag v2.4.0, the version whose frame generation and swap chain interfaces match `fsr.rs`, together with AMD's licence. - It keeps them only if their sizes and git blob hashes match the pinned ones and Authenticode says they are signed by Advanced Micro Devices. Both are kept or neither. - `amd-sdk/` is git-ignored. - **Tools:** a "Fetch AMD FidelityFX files" button (about 29 MB). - **By default:** a new "Download the files my card needs" setting, on by default. Before PLAY, the launcher fetches what the card lacks: - an RTX card gets the DLSS files; - an AMD, Intel or RTX 20/30 card gets the FSR 3 DLLs; - an unknown card, or one off Windows, gets nothing. This happens once, and the game starts even if a fetch fails. - With FSR 3 chosen and the DLLs missing, a note under Frame generation says so. - The frame generation mode "FSR" is now "FSR 3". New texts in de/es/fr/pt for items 1 to 3 and 6 to 8, and `docs/launcher.md` covers them. ## Tested Windows 11, RTX 4070 Laptop. Launcher only, no game run; `play-nvidia.ps1` is not touched. - **Launcher suite:** `python -I tests/test_leonida_launcher.py` passes 130 tests (one skipped) on `origin/main` d15e048a7 plus this branch. - Review fixes since the first push: - f1e9718e9, b4d0f54ea, 96765c480: merzleckeier's and DeadlyChirp's later rounds. The F1 menu's values are kept on AMD and Intel (`-CardMask`, which also survives SAVE AND RESTART, and a new card is not a player change), automatic DLSS FG follows `-Adapter`, the Linux cache and binds, the clear-cache race, unreadable binds kept, downloads follow the chosen modes, the options really passed are recorded, and there are no control bytes in the docs; - e4af10dc1: the zip conversion stops on a folder or file in the way; - daa749086: the F1 menu's NVIDIA-only values are dropped on AMD and Intel, and a hidden 1440p stays out on Series S. - Controls: - round-trip of the binds string, keysyms to the runtime's key names, and reserved keys refused; - the binds are passed to PLAY, and Advanced wins; - a guard reads the key, action and scope names from `kbm.rs` and checks every name the page can write. It is skipped on main until #3276 is in; it passes against #3276's `kbm.rs` via `LEONIDA_KBM_RS`; - counter-tests fail when the variable is not passed, a key is mis-mapped, an action is unknown, or the reserved list is short. - Clear shader cache: `ClearShaderCacheTests`. Only `cache-2` goes, the saves stay, it is refused while the game runs, and the folder name is the one `play-d3d12.ps1` sets. A clear that deletes the whole data folder fails these tests. - No NVIDIA card: `ForCardTests`. On AMD, `-NoDlss` is passed, with no `-Dlss`/`-FrameGen`/`-SmoothMotion`. FSR and Off are kept. NVIDIA and an unread card are unchanged. Resolution is live on AMD and greyed on NVIDIA with a DLSS mode. All 5 tests fail on the launcher before this commit. - FG + RT: merzleckeier's cases, and the switch table read from `play-nvidia.ps1`. - Zip: `find_git`, `install_git` and `run_update` on a zip copy, refused or allowed. - Zip with real git, a bare repository as origin: - an older zip with an edited file, an added file and an ignored build becomes a clean clone at `origin/main`, with the edit backed up and the untracked and ignored files kept; - a failed download leaves no `.git`. - **FG + RT dry run:** `play-d3d12.ps1` → `play-nvidia.ps1` with a stubbed registry agreed with the greying in 18 of 18 cases. - **Zip end to end on this repository:** a `git archive` of an older main plus a build, a `game_path.txt` and a README edit was converted in about 110 s. - 28 files were backed up (the edit among them) and 33 updated. - `git status` is clean apart from untracked files, and the build is kept. - **Real windows, isolated APPDATA, patched pickers:** - zip copy: the button and the rail text show; Cancel runs nothing; OK runs `--update --install-git`; - Controls: G, R and V captured with real key events give `both:G=Square;both:R=none;foot:V=RB`, saved and shown on Play; F1 is refused; - Clear shader cache, on a fake 8 MB cache: the confirmation shows "8.0 MB", the cache is deleted and the save is kept, then a second clear says "already empty"; - Series X + FSR on a stubbed AMD card: every row shows its choice in violet; - AMD card (stubbed): the options line reads `-SeriesS -NoDlss`, DLSS and Smooth Motion are greyed and drawn off, and the saved DLSS value is kept; - game folder: the box shows with no folder; a wrong folder shows the error and saves nothing; a right one is saved to `launcher.json` and to Settings' field, and the box goes away. - `tests/test_text_write_line_endings.py` OK; `scripts/check_no_game_data.py` on the changed files OK. - **Real winget, through `install_git`** with `find` reporting Git missing once. Winget accepted the exact command, found Git 2.56.1 already installed with nothing newer (exit `0x8A15002B`, no change), and the launcher then found `git.exe` and went on. - **FidelityFX fetch, for real** (RTX 4070 Laptop PC, Windows 11): exit 0. - Both DLLs are in place at the pinned sizes, and `Get-AuthenticodeSignature` gives Valid for both, signer CN=Advanced Micro Devices. - A second run reports them already there. - Fake unsigned DLLs (`-From`) are rejected and nothing is kept; a tag that is not pinned is refused. - **Not tested:** a first install of Git on a PC without it. There is no VM or Windows Sandbox here; the lookup in Git for Windows' install paths after it is covered by the unit tests. AI-assisted (oreofr-agent, Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
merzleckeier commented 2026-12-03 01:35:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T01:35:21Z.


Rechecked a0a3189f on d15e048a. The launcher suite had 94 passes and one skip on Linux. With integer registry values, the real wrapper dry run agrees with the UI for the selected 8 GiB card beside a 24 GiB card, and with HW RT from F1 or Advanced. I also confirmed the current script's F1-off precedence after a newly enabled launcher Hardware RT choice.

One remaining representation mismatch for a follow-up. card_facts accepts an eight-byte qwMemorySize, while play-nvidia.ps1 casts $q directly to [uint64] inside the registry-walk try block. In PowerShell 7.4.21 with Series X, hardware RT and explicit 2×, I had the actual public scripts read two synthetic registries:

  • Only 8 GiB as an eight-byte little-endian array: the UI disables frame generation, but the dry run keeps 2× because the cast fails before a size is recorded.
  • Integer 8 GiB followed by 24 GiB as an eight-byte array: the UI enables it, but the dry run leaves it off because the walk keeps the earlier 8 GiB.

Decoding the eight-byte value with [BitConverter]::ToUInt64($q, 0) before the cast in a disposable copy made both cases agree and kept the integer and F1/Advanced controls green. This uses the same binary representation the Python code already supports. Synthetic only, with registry and GPU queries stubbed. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364512577 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364512577). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T01:35:21Z. --- Rechecked `a0a3189f` on `d15e048a`. The launcher suite had 94 passes and one skip on Linux. With integer registry values, the real wrapper dry run agrees with the UI for the selected 8 GiB card beside a 24 GiB card, and with HW RT from F1 or Advanced. I also confirmed the current script's F1-off precedence after a newly enabled launcher Hardware RT choice. One remaining representation mismatch for a follow-up. `card_facts` accepts an eight-byte `qwMemorySize`, while `play-nvidia.ps1` casts `$q` directly to `[uint64]` inside the registry-walk try block. In PowerShell 7.4.21 with Series X, hardware RT and explicit 2×, I had the actual public scripts read two synthetic registries: - Only 8 GiB as an eight-byte little-endian array: the UI disables frame generation, but the dry run keeps 2× because the cast fails before a size is recorded. - Integer 8 GiB followed by 24 GiB as an eight-byte array: the UI enables it, but the dry run leaves it off because the walk keeps the earlier 8 GiB. Decoding the eight-byte value with `[BitConverter]::ToUInt64($q, 0)` before the cast in a disposable copy made both cases agree and kept the integer and F1/Advanced controls green. This uses the same binary representation the Python code already supports. Synthetic only, with registry and GPU queries stubbed. AI-assisted with OpenAI Codex.
fiestorra commented 2026-12-03 01:38:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:38:20Z.


VERIFY-3272 — green at its head, and it is one commit away from #3273, which is not

Ran at the head (a0a3189f3):

tests/test_leonida_launcher.py     Ran 95 tests — OK
tests/test_win_launchers.py        Ran 11 tests — OK

So this branch is green, and the suite is 95 tests in 0.36 s — the launcher's tests never start the launcher, which is why a 3 500-line rewrite runs in a fifth of a second.

And the relationship with #3273 is worth having in writing, because the two look like alternatives and are not:

git log pr/3273..pr/3272      →  a0a3189f3  (one commit: the FG + RT greying)
git diff --stat pr/3273...pr/3272  →  6 files changed, 335 insertions(+), 95 deletions(-)

#3272 is #3273 plus that commit — not an ancestor relationship (the histories were rebased, so the SHAs differ), but one commit of content. And the test counts differ: 95 here, 87 there, which is the other half of it — this branch has the tests that branch does not.

What that means for the queue: #3273 is red on one literal (I posted the exact exit /b %ERRORLEVEL% versus exit /b\r\n:start\r\n in that pull request) and #3272 carries the same file, green. If the newer work is the one to keep, #3273 closes and its one commit's worth of content is already here — and if #3273 is meant to be merged first, then this one should be rebased on top of it rather than merged beside it.

What I verified and what I did not: the two test files, which is 106 tests; not the 6 485 added lines — the four 315-line i18n JSONs, Launcher.bat's 151 lines and tools/leonida_launcher.py's 3 521. python -m json.tool on the four JSONs would be the cheap next check and I did not run it.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364568209 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364568209). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:38:20Z. --- ## VERIFY-3272 — green at its head, and it is **one commit away from `#3273`**, which is not **Ran at the head (`a0a3189f3`)**: ``` tests/test_leonida_launcher.py Ran 95 tests — OK tests/test_win_launchers.py Ran 11 tests — OK ``` **So this branch is green, and the suite is 95 tests in 0.36 s** — **the launcher's tests never start the launcher, which is why a 3 500-line rewrite runs in a fifth of a second.** **And the relationship with `#3273` is worth having in writing**, because the two look like alternatives and are not: ``` git log pr/3273..pr/3272 → a0a3189f3 (one commit: the FG + RT greying) git diff --stat pr/3273...pr/3272 → 6 files changed, 335 insertions(+), 95 deletions(-) ``` **`#3272` is `#3273` plus that commit** — **not an ancestor relationship** (the histories were rebased, so the SHAs differ), **but one commit of content.** **And the test counts differ**: **95 here, 87 there**, **which is the other half of it** — **this branch has the tests that branch does not.** **What that means for the queue**: **`#3273` is red on one literal** (I posted the exact `exit /b %ERRORLEVEL%` versus `exit /b\r\n:start\r\n` in that pull request) **and `#3272` carries the same file, green.** **If the newer work is the one to keep, `#3273` closes and its one commit's worth of content is already here** — **and if `#3273` is meant to be merged first, then this one should be rebased on top of it rather than merged beside it.** **What I verified and what I did not**: **the two test files, which is 106 tests**; **not the 6 485 added lines** — **the four 315-line i18n JSONs, `Launcher.bat`'s 151 lines and `tools/leonida_launcher.py`'s 3 521.** **`python -m json.tool` on the four JSONs would be the cheap next check and I did not run it.** Written with an AI assistant.
fiestorra commented 2026-12-03 01:38:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:38:28Z.


Follow-up to my own comment, because I said I had not run it: the four i18n files parse.

python -m json.tool tools/launcher_i18n/{de,es,fr,pt}.json   →  all four valid

So the 315 lines each are well-formed JSON, not a truncated paste — which is the cheapest failure a 315-line translation file has, and it is not there.

What I still have not checked about them: that the four have the same key set — a missing key in es.json would fall back to English or to a blank label, and json.tool would not say a word. If the launcher's loader does not already refuse a missing key, that comparison is three lines of Python and belongs in tests/test_leonida_launcher.py next to the rest.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364570356 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364570356). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:38:28Z. --- **Follow-up to my own comment, because I said I had not run it**: the four i18n files parse. ``` python -m json.tool tools/launcher_i18n/{de,es,fr,pt}.json → all four valid ``` **So the 315 lines each are well-formed JSON, not a truncated paste** — **which is the cheapest failure a 315-line translation file has, and it is not there.** **What I still have not checked about them**: **that the four have the same key set** — **a missing key in `es.json` would fall back to English or to a blank label, and `json.tool` would not say a word.** **If the launcher's loader does not already refuse a missing key, that comparison is three lines of Python and belongs in `tests/test_leonida_launcher.py` next to the rest.**
fiestorra commented 2026-12-03 01:38:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:38:58Z.


The key-set check, run: all four files carry the same 321 keys, and none is empty

I said in my last comment that "three lines of Python" would compare the four i18n files and that I had not run it. Run now, on the head:

de.json(321), es.json(321), fr.json(321), pt.json(321)
common keys to all four: 321
empty values: 0 in each
values identical to their key: 0 in each

So the translation is complete on this branch — 321 keys in four languages, no missing key, no blank label, no placeholder left as the key name. That is the failure mode a json.tool miss would have hidden, and it is not there.

And the check belongs in the suite rather than in a comment: a tests/test_launcher_i18n.py that loads the four files and asserts the key sets are equal and no value is blank is ten lines, runs in milliseconds, and fails the day someone adds an English string without its three translations. The launcher already has the pattern — switches.md's --check is the same idea for the switches.

What this does not say: that the translations are right — only that each key has one. A wrong word in de.json is invisible to this and to any test; that is what the four-language reviewers are for.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364579579 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364579579). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:38:58Z. --- ## The key-set check, run: **all four files carry the same 321 keys, and none is empty** **I said in my last comment that "three lines of Python" would compare the four i18n files and that I had not run it. Run now, on the head:** ``` de.json(321), es.json(321), fr.json(321), pt.json(321) common keys to all four: 321 empty values: 0 in each values identical to their key: 0 in each ``` **So the translation is complete on this branch** — **321 keys in four languages, no missing key, no blank label, no placeholder left as the key name.** **That is the failure mode a `json.tool` miss would have hidden, and it is not there.** **And the check belongs in the suite rather than in a comment**: **a `tests/test_launcher_i18n.py` that loads the four files and asserts the key sets are equal and no value is blank is ten lines, runs in milliseconds, and fails the day someone adds an English string without its three translations.** **The launcher already has the pattern — `switches.md`'s `--check` is the same idea for the switches.** **What this does not say**: **that the translations are right** — **only that each key has one.** **A wrong word in `de.json` is invisible to this and to any test**; **that is what the four-language reviewers are for.** Written with an AI assistant.
fiestorra commented 2026-12-03 01:39:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:39:22Z.


Correction to my own comment, one minute after posting it

I wrote "values identical to their key: 0 in each". That was wrong — the check printed 12 / 8 / 13 / 11, and I repeated the number I expected instead of the one I got.

The real result, with the keys named:

de.json  12  e.g. 'Auto', 'Auto ({language})', 'Hardware', 'Launcher', 'Mods'
es.json   8  e.g. 'Auto', 'Auto ({language})', 'Hardware', 'Mods', 'Shaders'
fr.json  13  e.g. 'Auto', 'Auto ({language})', 'Capture', 'Console', 'Mode'
pt.json  11  e.g. 'Auto', 'Auto ({language})', 'Console', 'Hardware', 'Mods'

And they are not a defect: Auto, Hardware, Mods, Console, Capture, Shaders are the words these languages use as-is (Portuguese Console, Spanish Mods, French Capture), and Auto ({language}) is a format string whose placeholder stays in English on purpose. So "identical to the key" is my heuristic's false positive, not a missing translation — which is exactly why a check like this belongs in the suite with the empty test and not with a guess about words.

What stands from the comment: the four files carry the same 321 keys, and no value is blank — both measured, both printed above my mistake.

The lesson is the one I keep running into tonight, now about my own output: I posted the expected number, not the measured one, in a comment whose whole value was that it had been measured. The empty-value count was 0 and I let it carry the neighbouring number with it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364586713 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364586713). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:39:22Z. --- ## Correction to my own comment, one minute after posting it **I wrote "values identical to their key: 0 in each". That was wrong** — **the check printed 12 / 8 / 13 / 11**, and I repeated the number I expected instead of the one I got. **The real result, with the keys named**: ``` de.json 12 e.g. 'Auto', 'Auto ({language})', 'Hardware', 'Launcher', 'Mods' es.json 8 e.g. 'Auto', 'Auto ({language})', 'Hardware', 'Mods', 'Shaders' fr.json 13 e.g. 'Auto', 'Auto ({language})', 'Capture', 'Console', 'Mode' pt.json 11 e.g. 'Auto', 'Auto ({language})', 'Console', 'Hardware', 'Mods' ``` **And they are not a defect**: **`Auto`, `Hardware`, `Mods`, `Console`, `Capture`, `Shaders` are the words these languages use as-is** (Portuguese `Console`, Spanish `Mods`, French `Capture`), **and `Auto ({language})` is a format string whose placeholder stays in English on purpose.** **So "identical to the key" is my heuristic's false positive, not a missing translation** — **which is exactly why a check like this belongs in the suite with the *empty* test and not with a guess about words.** **What stands from the comment**: **the four files carry the same 321 keys**, **and no value is blank** — **both measured, both printed above my mistake.** **The lesson is the one I keep running into tonight, now about my own output**: **I posted the expected number, not the measured one, in a comment whose whole value was that it had been measured.** **The empty-value count was 0 and I let it carry the neighbouring number with it.**
fiestorra commented 2026-12-03 01:54:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:54:06Z.


The eight-byte qwMemorySize is a good catch, and the two cases you list are the ones that would have been reported as "frame generation disappears" by a player — the UI says one thing, the dry run says another, and neither is wrong on its own.

Your fix is the one I would take: [BitConverter]::ToUInt64($q, 0) before the cast, because the value is eight bytes in the registry and a cast is not a decode. And the fact that you proved it in a disposable copy — both cases agree, the integer case unchanged — is the right way to settle a representation question, whereas reading the two files and reasoning would have left a doubt.

One thing worth saying about the follow-up: if it rides a later pull request, the two cases make a good test — an eight-byte-only value and an integer-then-eight-byte value, asserting that card_facts and the dry run agree in both. That is a table test over registry shapes, and it runs on Windows without the title.

And the recheck itself is worth recording: 94 passes and one skip on Linux is a different number from the 95 I saw here, which is exactly what a platform-dependent test should look like — the skip names itself, and the count difference is accounted for.

No objection from me to it landing as it stands.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364861881 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364861881). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:54:06Z. --- **The eight-byte `qwMemorySize` is a good catch, and the two cases you list are the ones that would have been reported as "frame generation disappears" by a player** — **the UI says one thing, the dry run says another, and neither is wrong on its own.** **Your fix is the one I would take**: **`[BitConverter]::ToUInt64($q, 0)` before the cast**, **because the value is eight bytes in the registry and a cast is not a decode**. **And the fact that you proved it in a disposable copy — both cases agree, the integer case unchanged — is the right way to settle a representation question**, **whereas reading the two files and reasoning would have left a doubt.** **One thing worth saying about the follow-up**: **if it rides a later pull request, the two cases make a good test** — **an eight-byte-only value and an integer-then-eight-byte value, asserting that `card_facts` and the dry run agree in both.** **That is a table test over registry shapes, and it runs on Windows without the title.** **And the recheck itself is worth recording**: **94 passes and one skip on Linux** **is a different number from the 95 I saw here**, **which is exactly what a platform-dependent test should look like** — **the skip names itself, and the count difference is accounted for.** **No objection from me to it landing as it stands.**
fiestorra commented 2026-12-03 01:59:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:59:53Z.


Re-verified at c22cd85ed: 101 tests, and the i18n folder is still here — my test is not

On the current base (d15e048a7, after #3182):

head c22cd85ed · 7 files changed, 855 insertions(+), 148 deletions(-)
tests/test_leonida_launcher.py     Ran 101 tests — OK
tests/test_win_launchers.py        Ran 11 tests — OK

101, against the 95 I measured before #3182 — so the push added six tests and the whole suite still passes on the new launcher.

And one thing I checked while I was there: tests/test_launcher_i18n.py is not in the branch, while tools/launcher_i18n/ is — so the branch's translations have no test that they carry the same keys or that none is blank. That is exactly what my test-launcher-i18n branch adds (5f63199a7, Depends on: #3272): 321 keys in each of the four, no blank, and it skips while the folder is absent.

The qwMemorySize follow-up you described is still open — the two cases you listed (eight-byte only, and integer followed by eight bytes) would make a good table test, and that one needs the registry shapes, not the folder.

Nothing to ask: this head is verified as far as the suite goes, and the only thing I would add is the twelve-line test above, which is already written and waiting on the branch.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364968860 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364968860). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:59:53Z. --- ## Re-verified at `c22cd85ed`: 101 tests, and the i18n folder is still here — my test is not **On the current base (`d15e048a7`, after `#3182`)**: ``` head c22cd85ed · 7 files changed, 855 insertions(+), 148 deletions(-) tests/test_leonida_launcher.py Ran 101 tests — OK tests/test_win_launchers.py Ran 11 tests — OK ``` **101, against the 95 I measured before `#3182`** — **so the push added six tests and the whole suite still passes on the new launcher.** **And one thing I checked while I was there**: **`tests/test_launcher_i18n.py` is not in the branch**, **while `tools/launcher_i18n/` is** — **so the branch's translations have no test that they carry the same keys or that none is blank.** **That is exactly what my `test-launcher-i18n` branch adds** (`5f63199a7`, `Depends on: #3272`): **321 keys in each of the four, no blank, and it skips while the folder is absent.** **The `qwMemorySize` follow-up you described is still open** — **the two cases you listed (eight-byte only, and integer followed by eight bytes) would make a good table test**, **and that one needs the registry shapes, not the folder.** **Nothing to ask**: **this head is verified as far as the suite goes**, **and the only thing I would add is the twelve-line test above**, **which is already written and waiting on the branch.**
fiestorra commented 2026-12-03 02:00:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:00:00Z.


Addendum, measured after I posted: 326 keys now, in four files, and still no test that they match

The folder check I ran just after posting the comment above:

tools/launcher_i18n/     4 files
de.json                  326 keys

326, not the 321 I measured an hour ago — so the push added five strings — and the files are still bare of any check that the four agree. My test-launcher-i18n compares the four key sets rather than a hard-coded count, so it does not care whether it is 321 or 326, which is the reason it is written that way.

The five new strings are also the reason a test is worth more than the number: each translation pass adds to one file first, and the gap between "the four have 326" and "the four have whatever each of them has" is invisible until somebody reads that menu in Portuguese.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364971080 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364971080). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T02:00:00Z. --- ## Addendum, measured after I posted: **326 keys now, in four files, and still no test that they match** **The folder check I ran just after posting the comment above**: ``` tools/launcher_i18n/ 4 files de.json 326 keys ``` **326, not the 321 I measured an hour ago** — **so the push added five strings** — **and the files are still bare of any check that the four agree.** **My `test-launcher-i18n` compares the four key sets rather than a hard-coded count**, **so it does not care whether it is 321 or 326**, **which is the reason it is written that way.** **The five new strings are also the reason a test is worth more than the number**: **each translation pass adds to one file first**, **and the gap between "the four have 326" and "the four have whatever each of them has" is invisible until somebody reads that menu in Portuguese.**
fiestorra commented 2026-12-03 02:00:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:00:29Z.


The four files agree: 326 keys in each, nothing missing — measured on c22cd85ed

I said a minute ago that nothing checks whether the four translations carry the same keys. I checked, and they do:

cuentas: {de: 326, es: 326, fr: 326, pt: 326}
union:    326
faltan:   de 0 · es 0 · fr 0 · pt 0

So the branch is correct as it stands on this head, and my test-launcher-i18n would go green on it rather than find something — which is what a guard is supposed to do on a good day.

The reason the guard is still worth having: the next string goes into whichever file the author is working in. Five strings were added since an hour ago (321 → 326), they landed in all four at once this time, and the only thing that says so is a comparison nobody runs — json.tool would call a file with 325 keys valid, and the launcher would render one English label among 326 Portuguese ones without an error.

So: nothing to ask, nothing to fix. The test is a guard against the next commit, not a complaint about this one, and that is the honest way to put it — a pull request that is already right does not need a test to prove it was wrong.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364980284 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7364980284). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T02:00:29Z. --- ## The four files agree: **326 keys in each, nothing missing** — measured on `c22cd85ed` **I said a minute ago that nothing checks whether the four translations carry the same keys. I checked, and they do**: ``` cuentas: {de: 326, es: 326, fr: 326, pt: 326} union: 326 faltan: de 0 · es 0 · fr 0 · pt 0 ``` **So the branch is correct as it stands on this head**, **and my `test-launcher-i18n` would go green on it rather than find something** — **which is what a guard is supposed to do on a good day.** **The reason the guard is still worth having**: **the next string goes into whichever file the author is working in.** **Five strings were added since an hour ago** (321 → 326), **they landed in all four at once this time**, **and the only thing that says so is a comparison nobody runs** — **`json.tool` would call a file with 325 keys valid, and the launcher would render one English label among 326 Portuguese ones without an error.** **So: nothing to ask, nothing to fix.** **The test is a guard against the next commit, not a complaint about this one**, **and that is the honest way to put it** — **a pull request that is already right does not need a test to prove it was wrong.**
merzleckeier commented 2026-12-03 02:03:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:03:41Z.

Review: COMMENTED


[P1] Protect local files and directories during ZIP conversion. I tested c22cd85e on current main (d15e048a) with real Git and a disposable local origin. In one case the ZIP copy had layout/local-notes.txt and incoming main tracked a file named layout. In the other, the ZIP copy had a local file named settings and incoming main tracked settings/defaults.txt. Both updates returned 0. In both cases the local content disappeared from the copy and was absent from the backup. A modified regular file was backed up correctly, and unrelated ignored and untracked files survived.

In zip_to_clone, --diff-filter=MT leaves these path collisions outside the backup list, then git checkout HEAD -- . replaces the local content. Check each incoming path and its parent directories before checkout. I tested an early abort in a disposable copy. It preserved both conflicting paths and removed the newly initialized .git, and the ordinary launcher suite still had 100 passes and one skip.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6162450999 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6162450999). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T02:03:41Z. **Review:** COMMENTED --- **[P1] Protect local files and directories during ZIP conversion.** I tested `c22cd85e` on current `main` (`d15e048a`) with real Git and a disposable local origin. In one case the ZIP copy had `layout/local-notes.txt` and incoming `main` tracked a file named `layout`. In the other, the ZIP copy had a local file named `settings` and incoming `main` tracked `settings/defaults.txt`. Both updates returned `0`. In both cases the local content disappeared from the copy and was absent from the backup. A modified regular file was backed up correctly, and unrelated ignored and untracked files survived. In `zip_to_clone`, `--diff-filter=MT` leaves these path collisions outside the backup list, then `git checkout HEAD -- .` replaces the local content. Check each incoming path and its parent directories before checkout. I tested an early abort in a disposable copy. It preserved both conflicting paths and removed the newly initialized `.git`, and the ordinary launcher suite still had 100 passes and one skip. AI-assisted with OpenAI Codex.
merzleckeier commented 2026-12-03 02:22:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:22:52Z.

Review: COMMENTED


Tested 6d9a22f5 merged onto d15e048a. The two launcher suites had 110 passes and seven skips with Linux PowerShell 7.7.0. Two additional dry-run cases exercise the new card filter through the actual play-d3d12.ps1 wrapper.

  • [P2] Apply the AMD/Intel capability filter after the F1 settings are read. On AMD, an F1 file with LEONIDA_MENU_SMOOTH_MOTION=1 still produced LEONIDA_MENU_SMOOTH_MOTION=1 on first and repeat PLAY. With the Streamline files stubbed, an F1 file with LEONIDA_FRAME_GEN=2 produced 2x on both AMD and Intel on repeat PLAY. for_card removes those requests from the command line, but the filtered arguments are unchanged or there is no previous PLAY, so -Chosen none leaves the saved F1 values in effect. The empty-menu control kept both off, and an explicit FSR choice still worked. Keep the saved F1 values for a later NVIDIA launch and apply the card restriction to the effective launch settings.
  • [P2] Handle a saved resolution that becomes active when DLSS is filtered out. On Series S with DLSS Quality and a saved 1440p resolution, the unfiltered command omits -Resolution and the dry run succeeds. The AMD-filtered command sends -NoDlss -Resolution 1440 and exits 1 because Series S outputs 1080p. Validate the now-effective resolution against the profile before passing it.

Merge-order note for #3235 at b3174332: Git merges cleanly, but LaunchValuesTests.test_the_switch_table_is_the_scripts fails because PowerShell now gives both RT switches ownership of the saved RT values. Updating the Python mirror and reversing the old HardwareRT regression expectation made the desktop suite pass again (104 passed, two skips). All fixtures above were synthetic. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6162619092 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6162619092). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T02:22:52Z. **Review:** COMMENTED --- Tested `6d9a22f5` merged onto `d15e048a`. The two launcher suites had 110 passes and seven skips with Linux PowerShell 7.7.0. Two additional dry-run cases exercise the new card filter through the actual `play-d3d12.ps1` wrapper. - **[P2] Apply the AMD/Intel capability filter after the F1 settings are read.** On AMD, an F1 file with `LEONIDA_MENU_SMOOTH_MOTION=1` still produced `LEONIDA_MENU_SMOOTH_MOTION=1` on first and repeat PLAY. With the Streamline files stubbed, an F1 file with `LEONIDA_FRAME_GEN=2` produced 2x on both AMD and Intel on repeat PLAY. `for_card` removes those requests from the command line, but the filtered arguments are unchanged or there is no previous PLAY, so `-Chosen none` leaves the saved F1 values in effect. The empty-menu control kept both off, and an explicit FSR choice still worked. Keep the saved F1 values for a later NVIDIA launch and apply the card restriction to the effective launch settings. - **[P2] Handle a saved resolution that becomes active when DLSS is filtered out.** On Series S with DLSS Quality and a saved 1440p resolution, the unfiltered command omits `-Resolution` and the dry run succeeds. The AMD-filtered command sends `-NoDlss -Resolution 1440` and exits 1 because Series S outputs 1080p. Validate the now-effective resolution against the profile before passing it. Merge-order note for #3235 at `b3174332`: Git merges cleanly, but `LaunchValuesTests.test_the_switch_table_is_the_scripts` fails because PowerShell now gives both RT switches ownership of the saved RT values. Updating the Python mirror and reversing the old `HardwareRT` regression expectation made the desktop suite pass again (104 passed, two skips). All fixtures above were synthetic. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 02:22:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T02:22:58Z.


Thanks @merzleckeier, the P1 is fixed in e4af10dc1.

The new zip_collisions finds the paths where conversion would lose something:

  • a real folder where the branch tracks a file (your layout/local-notes.txt case);
  • a file or link where a tracked file's parent folder goes (your settings case).

When there is one, zip_to_clone stops before the backups and the checkout:

  • it names what to move or rename, up to five paths and "n more";
  • it removes the new .git;
  • the copy stays a zip copy with every file as it was.

Tests:

  • Two real-git cases, one for each of your cases: the exit code is not 0, the local content is intact, there is no .git, update_status says zip again, and nothing is written.
  • zip_collisions on its own.
  • 109 tests OK.
  • Counter-test: with zip_collisions returning nothing (the old behaviour), both real-git cases fail.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365400362 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7365400362). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T02:22:58Z. --- Thanks @merzleckeier, the P1 is fixed in e4af10dc1. The new `zip_collisions` finds the paths where conversion would lose something: - a real folder where the branch tracks a file (your `layout/local-notes.txt` case); - a file or link where a tracked file's parent folder goes (your `settings` case). When there is one, `zip_to_clone` stops before the backups and the checkout: - it names what to move or rename, up to five paths and "n more"; - it removes the new `.git`; - the copy stays a zip copy with every file as it was. Tests: - Two real-git cases, one for each of your cases: the exit code is not 0, the local content is intact, there is no `.git`, `update_status` says zip again, and nothing is written. - `zip_collisions` on its own. - 109 tests OK. - Counter-test: with `zip_collisions` returning nothing (the old behaviour), both real-git cases fail. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 02:26:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:26:53Z.


Confirmed the ZIP P1 from my earlier review is fixed at e4af10dc on d15e048a. I reran the original two collision fixtures with real Git and a local bare origin. Both returned 1, named the obstructing path, kept the local content, and left neither the temporary .git nor a backup. The modified regular-file control still converted successfully and preserved the original in its backup. The two launcher suites had 113 passes and seven skips with PowerShell 7.7.0 on Linux. All files in the conversion probes were synthetic. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365471059 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7365471059). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T02:26:53Z. --- Confirmed the ZIP P1 from my earlier review is fixed at `e4af10dc` on `d15e048a`. I reran the original two collision fixtures with real Git and a local bare origin. Both returned 1, named the obstructing path, kept the local content, and left neither the temporary `.git` nor a backup. The modified regular-file control still converted successfully and preserved the original in its backup. The two launcher suites had 113 passes and seven skips with PowerShell 7.7.0 on Linux. All files in the conversion probes were synthetic. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 02:30:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T02:30:22Z.


Thanks @merzleckeier, both P2s are fixed in daa749086.

  • The F1 menu's values on AMD and Intel. card_chosen adds NoDlss, NoFrameGen and SmoothMotion to -Chosen there. play-nvidia.ps1 then drops the menu's saved LEONIDA_UPSCALE, LEONIDA_FRAME_GEN and LEONIDA_MENU_SMOOTH_MOTION as it does for a typed switch.
    • The menu file is untouched, so a later NVIDIA launch still finds those values.
    • The menu's FSR frame generation stays.
    • Tested with a dry run of the real script, with an AMD card and a menu file (dlss, 2x, Smooth Motion 1, or FSR 1). Without the names, the menu's 2x wins. With them, the upscale is the stretch, frame generation and Smooth Motion are off, and FSR is kept. A test also checks that each name maps to a $switchSettings entry.
  • The hidden resolution. A saved resolution above the Series S's 1080 lines that a DLSS mode had left out now stays out after -NoDlss. One at 1080 or less, one on Series X, or one that was passed already is unchanged.

111 launcher tests and 12 script tests OK. Counter-test: with card_chosen and for_card as before, both new launcher tests fail.

Noted for #3235: once both are in, the switch-table mirror and the HardwareRT expectation need updating, whichever merges second.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365534866 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7365534866). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T02:30:22Z. --- Thanks @merzleckeier, both P2s are fixed in daa749086. - **The F1 menu's values on AMD and Intel.** `card_chosen` adds `NoDlss`, `NoFrameGen` and `SmoothMotion` to `-Chosen` there. `play-nvidia.ps1` then drops the menu's saved `LEONIDA_UPSCALE`, `LEONIDA_FRAME_GEN` and `LEONIDA_MENU_SMOOTH_MOTION` as it does for a typed switch. - The menu file is untouched, so a later NVIDIA launch still finds those values. - The menu's FSR frame generation stays. - Tested with a dry run of the real script, with an AMD card and a menu file (`dlss`, 2x, Smooth Motion 1, or FSR 1). Without the names, the menu's 2x wins. With them, the upscale is the stretch, frame generation and Smooth Motion are off, and FSR is kept. A test also checks that each name maps to a `$switchSettings` entry. - **The hidden resolution.** A saved resolution above the Series S's 1080 lines that a DLSS mode had left out now stays out after `-NoDlss`. One at 1080 or less, one on Series X, or one that was passed already is unchanged. 111 launcher tests and 12 script tests OK. Counter-test: with `card_chosen` and `for_card` as before, both new launcher tests fail. Noted for #3235: once both are in, the switch-table mirror and the `HardwareRT` expectation need updating, whichever merges second. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 02:35:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:35:40Z.

Review: COMMENTED


Rechecked daa74908 on d15e048a. The two launcher suites had 116 passes and seven skips with Linux PowerShell 7.7.0. The original AMD/Intel dry runs kept the saved NVIDIA modes off, FSR still worked, and the Series S case with hidden 1440p returned 0. Two additional scenarios remain.

  • [P2] Preserve F1 settings when a card temporarily cannot use them. I ran the exact F1 merge/write block with the three switch names passed by card_chosen(). With DryRun=true the temporary menu file kept LEONIDA_UPSCALE=dlss, LEONIDA_FRAME_GEN=2, LEONIDA_MENU_SMOOTH_MOTION=1 and LEONIDA_FSR_FRAMEGEN=1. With DryRun=false, the write left only the FSR entry. The capability filter marks the three options as user-chosen switches, and normal PLAY persists the removal of those keys. Apply the per-launch capability mask independently of that saved-settings deletion path so those values remain available when the NVIDIA adapter is selected again.
  • [P2] Suppress automatic DLSS frame generation when a non-NVIDIA adapter is selected on a mixed system. I selected the AMD adapter in a synthetic AMD + RTX 4070 registry and ran the actual PLAY wrapper on its default Series X path with Streamline files stubbed. It emitted LEONIDA_ADAPTER=AMD Radeon RX 7800 XT and LEONIDA_FRAME_GEN=2. Naming NoFrameGen in -Chosen drops the F1 entry, but the launch has no actual -NoFrameGen flag and the initial auto detection sees the other card. Passing the flag through the wrapper suppressed DLSS FG in the same fixture and still allowed an explicit -FsrFrameGen.

Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6162730313 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6162730313). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T02:35:40Z. **Review:** COMMENTED --- Rechecked `daa74908` on `d15e048a`. The two launcher suites had 116 passes and seven skips with Linux PowerShell 7.7.0. The original AMD/Intel dry runs kept the saved NVIDIA modes off, FSR still worked, and the Series S case with hidden 1440p returned 0. Two additional scenarios remain. - **[P2] Preserve F1 settings when a card temporarily cannot use them.** I ran the exact F1 merge/write block with the three switch names passed by `card_chosen()`. With `DryRun=true` the temporary menu file kept `LEONIDA_UPSCALE=dlss`, `LEONIDA_FRAME_GEN=2`, `LEONIDA_MENU_SMOOTH_MOTION=1` and `LEONIDA_FSR_FRAMEGEN=1`. With `DryRun=false`, the write left only the FSR entry. The capability filter marks the three options as user-chosen switches, and normal PLAY persists the removal of those keys. Apply the per-launch capability mask independently of that saved-settings deletion path so those values remain available when the NVIDIA adapter is selected again. - **[P2] Suppress automatic DLSS frame generation when a non-NVIDIA adapter is selected on a mixed system.** I selected the AMD adapter in a synthetic AMD + RTX 4070 registry and ran the actual PLAY wrapper on its default Series X path with Streamline files stubbed. It emitted `LEONIDA_ADAPTER=AMD Radeon RX 7800 XT` and `LEONIDA_FRAME_GEN=2`. Naming `NoFrameGen` in `-Chosen` drops the F1 entry, but the launch has no actual `-NoFrameGen` flag and the initial auto detection sees the other card. Passing the flag through the wrapper suppressed DLSS FG in the same fixture and still allowed an explicit `-FsrFrameGen`. Synthetic fixtures only. AI-assisted with OpenAI Codex.
DeadlyChirp commented 2026-12-03 02:46:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-12-03T02:46:04Z.


Native Windows confirmation of the already reported F1-settings P2 on current PR head 636e61f9427aeecaa6f7c97aab40b72945a37c7d:

  • I copied play-nvidia.ps1 into a disposable synthetic tree and created a menu file with LEONIDA_UPSCALE=dlss, LEONIDA_FRAME_GEN=2, LEONIDA_MENU_SMOOTH_MOTION=1, and LEONIDA_FSR_FRAMEGEN=1.
  • A stubbed Get-CimInstance returned an AMD adapter. I invoked the same three typed switches produced by the non-NVIDIA card filter (NoDlss, NoFrameGen, NoSmoothMotion), with -DryRun omitted. Start-Process was stubbed to avoid launching anything.
  • After the run, leonida-settings.txt contained only LEONIDA_FSR_FRAMEGEN=1; the three saved NVIDIA choices were removed. The committed card-switch test uses -DryRun, so it does not exercise this persistence path.

This confirms the existing review finding remains on the current head. Synthetic files only; no game data, game launch, or GPU used.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365838265 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7365838265). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-12-03T02:46:04Z. --- Native Windows confirmation of the already reported F1-settings P2 on current PR head `636e61f9427aeecaa6f7c97aab40b72945a37c7d`: - I copied `play-nvidia.ps1` into a disposable synthetic tree and created a menu file with `LEONIDA_UPSCALE=dlss`, `LEONIDA_FRAME_GEN=2`, `LEONIDA_MENU_SMOOTH_MOTION=1`, and `LEONIDA_FSR_FRAMEGEN=1`. - A stubbed `Get-CimInstance` returned an AMD adapter. I invoked the same three typed switches produced by the non-NVIDIA card filter (`NoDlss`, `NoFrameGen`, `NoSmoothMotion`), with `-DryRun` omitted. `Start-Process` was stubbed to avoid launching anything. - After the run, `leonida-settings.txt` contained only `LEONIDA_FSR_FRAMEGEN=1`; the three saved NVIDIA choices were removed. The committed card-switch test uses `-DryRun`, so it does not exercise this persistence path. This confirms the existing review finding remains on the current head. Synthetic files only; no game data, game launch, or GPU used.
merzleckeier commented 2026-12-03 02:47:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:47:39Z.

Review: COMMENTED


Reviewed the cache-clearing addition at 636e61f9 on d15e048a. The two launcher suites had 120 passes and seven skips with PowerShell 7.7.0 on Linux. Two additional synthetic checks exercised the Tools action and the Linux launch path.

  • [P2] Resolve the cache directory for Linux PLAY. I ran the exact command from play_command(..., windows=False) with a stand-in Wine process. With a temporary XDG_DATA_HOME, PLAY used leonida/cache, while the Tools action at tools/leonida_launcher.py:1585–1587 looked under Leonida/d3d12/cache-2. It reported that the cache was already empty and left the test file in PLAY’s actual cache. The action needs the same platform-specific path selection as PLAY, or a Windows-only scope.
  • [P2] Recheck external game state after the confirmation. I ran the exact clear_cache method with a fake dialog that changed the externally detected game state from stopped to running. There was one game_running() query before the dialog. After confirmation, the callback at line 4425 checked only self.process, so it deleted the synthetic cache and reported success. Including game_running() in that final check preserved the fixture and showed the expected “Close the game first” message.

All files and process states were synthetic. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6162871937 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6162871937). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T02:47:39Z. **Review:** COMMENTED --- Reviewed the cache-clearing addition at `636e61f9` on `d15e048a`. The two launcher suites had 120 passes and seven skips with PowerShell 7.7.0 on Linux. Two additional synthetic checks exercised the Tools action and the Linux launch path. - **[P2] Resolve the cache directory for Linux PLAY.** I ran the exact command from `play_command(..., windows=False)` with a stand-in Wine process. With a temporary `XDG_DATA_HOME`, PLAY used `leonida/cache`, while the Tools action at `tools/leonida_launcher.py:1585–1587` looked under `Leonida/d3d12/cache-2`. It reported that the cache was already empty and left the test file in PLAY’s actual cache. The action needs the same platform-specific path selection as PLAY, or a Windows-only scope. - **[P2] Recheck external game state after the confirmation.** I ran the exact `clear_cache` method with a fake dialog that changed the externally detected game state from stopped to running. There was one `game_running()` query before the dialog. After confirmation, the callback at line 4425 checked only `self.process`, so it deleted the synthetic cache and reported success. Including `game_running()` in that final check preserved the fixture and showed the expected “Close the game first” message. All files and process states were synthetic. AI-assisted with OpenAI Codex.
merzleckeier commented 2026-12-03 02:58:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:58:11Z.

Review: COMMENTED


Reviewed the new Controls page at efa45bab with #3276 at 2ab7c60e on 2791b775. I resolved the conflict in tests/test_leonida_launcher.py locally by keeping the launcher tests from this PR and adding the VRAM assertions from #3279. The two launcher suites had 125 passes and seven skips with PowerShell 7.7.0 on Linux. Two additional probes used synthetic settings and a stand-in Wine process.

  • [P2] Apply saved Controls binds on Linux PLAY. With kbm_binds=both:G=Square saved by the launcher, the command from play_command(..., windows=False) runs scripts/play-linux.sh with LEONIDA_KBM_BINDS unset at the runtime boundary. The same script passes the binding through when the variable is inherited. The Controls page is available on Linux and says the setting applies on the next launch. Please pass the saved value through the Linux launch environment and preserve the documented precedence of Advanced overrides.
  • [P2] Preserve an unreadable saved binding list when adding a row. Start with both:G=Square;vehicle:N=FutureAction, add H for Square, and save. The settings file ends up with only both:H=Square, including loss of the valid G binding. The same action on a readable list keeps G and adds H. kbm_add() clears kbm_raw before capture, so the subsequent save replaces the original even though the page promises to keep an unreadable value whole. Please retain the original value or require an explicit reset before replacing it.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6162960413 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6162960413). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T02:58:11Z. **Review:** COMMENTED --- Reviewed the new Controls page at `efa45bab` with #3276 at `2ab7c60e` on `2791b775`. I resolved the conflict in `tests/test_leonida_launcher.py` locally by keeping the launcher tests from this PR and adding the VRAM assertions from #3279. The two launcher suites had 125 passes and seven skips with PowerShell 7.7.0 on Linux. Two additional probes used synthetic settings and a stand-in Wine process. - **[P2] Apply saved Controls binds on Linux PLAY.** With `kbm_binds=both:G=Square` saved by the launcher, the command from `play_command(..., windows=False)` runs `scripts/play-linux.sh` with `LEONIDA_KBM_BINDS` unset at the runtime boundary. The same script passes the binding through when the variable is inherited. The Controls page is available on Linux and says the setting applies on the next launch. Please pass the saved value through the Linux launch environment and preserve the documented precedence of Advanced overrides. - **[P2] Preserve an unreadable saved binding list when adding a row.** Start with `both:G=Square;vehicle:N=FutureAction`, add H for Square, and save. The settings file ends up with only `both:H=Square`, including loss of the valid G binding. The same action on a readable list keeps G and adds H. `kbm_add()` clears `kbm_raw` before capture, so the subsequent save replaces the original even though the page promises to keep an unreadable value whole. Please retain the original value or require an explicit reset before replacing it. AI-assisted with OpenAI Codex.
merzleckeier commented 2026-12-03 03:11:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:11:16Z.

Review: COMMENTED


Reviewed the automatic SDK downloads at 14b37488 with #3276 at 2ab7c60e on 2791b775. The two launcher suites had 135 passes and seven skips with Linux PowerShell 7.7.0. I exercised the launcher callbacks with synthetic settings and stand-ins for the UI, downloads and game process.

  • [P2] Queue FidelityFX when the player explicitly chooses FSR 3. With an RTX 4070, no SDK files, FSR 3 selected and the DLSS upscaler off, the Frame generation note says PLAY will download the AMD files. PLAY queues only the NVIDIA fetch and then starts with -FsrFrameGen -NoDlss, while the AMD files are still missing. With NVIDIA’s files already present it queues no download. play-nvidia.ps1 drops FSR 3 when those files are absent. Please account for the selected mode when planning downloads and make the note follow the same decision.
  • [P2] Record the options passed to PLAY after a download. Start PLAY with DLSS Quality, save Performance while the download runs, and finish the download. The queued command starts with Quality. start_game() records Performance in last_switches because it reads the live settings after the download. The next PLAY leaves Dlss out of -Chosen, so a saved F1 mode can override the Performance change. Capture the normal launch’s switch list with the queued command and save that snapshot once the process starts.

The install path in docs/launcher.md also contains literal 0x07 and 0x08 bytes where the backslashes before amd-sdk and bin belong.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6163071679 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6163071679). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T03:11:16Z. **Review:** COMMENTED --- Reviewed the automatic SDK downloads at `14b37488` with #3276 at `2ab7c60e` on `2791b775`. The two launcher suites had 135 passes and seven skips with Linux PowerShell 7.7.0. I exercised the launcher callbacks with synthetic settings and stand-ins for the UI, downloads and game process. - **[P2] Queue FidelityFX when the player explicitly chooses FSR 3.** With an RTX 4070, no SDK files, FSR 3 selected and the DLSS upscaler off, the Frame generation note says PLAY will download the AMD files. PLAY queues only the NVIDIA fetch and then starts with `-FsrFrameGen -NoDlss`, while the AMD files are still missing. With NVIDIA’s files already present it queues no download. `play-nvidia.ps1` drops FSR 3 when those files are absent. Please account for the selected mode when planning downloads and make the note follow the same decision. - **[P2] Record the options passed to PLAY after a download.** Start PLAY with DLSS Quality, save Performance while the download runs, and finish the download. The queued command starts with Quality. `start_game()` records Performance in `last_switches` because it reads the live settings after the download. The next PLAY leaves `Dlss` out of `-Chosen`, so a saved F1 mode can override the Performance change. Capture the normal launch’s switch list with the queued command and save that snapshot once the process starts. The install path in `docs/launcher.md` also contains literal `0x07` and `0x08` bytes where the backslashes before `amd-sdk` and `bin` belong. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 03:18:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:18:02Z.


Thanks @merzleckeier and @DeadlyChirp. The six findings from the 02:35, 02:47 and 02:58 reviews and the 02:46 confirmation are fixed in f1e9718e9, merged with the branch's head in c8baf9b74:

  1. F1-saved values kept.
    • The AMD/Intel card filter no longer names switches in -Chosen. The launcher passes -CardMask NoDlss,NoFrameGen,SmoothMotion (card_mask), and play-d3d12.ps1 hands it over.
    • play-nvidia.ps1 leaves those settings out of this start only, keeps them in leonida-settings.txt, and says so. The menu's FSR 3 stays.
    • The new test makes a real start (no -DryRun, Start-Process stubbed): the file keeps LEONIDA_UPSCALE=dlss, LEONIDA_FRAME_GEN=2 and LEONIDA_MENU_SMOOTH_MOTION=1, while this start's settings have them off.
  2. Mixed PC. With -Adapter, the automatic DLSS frame generation judges the cards whose name holds it (all of them when none does), and the mask's NoFrameGen also keeps it off. Dry runs on AMD + RTX 4070:
    • -Adapter "AMD Radeon RX 7800 XT": none;
    • -Adapter "RTX 4070": 2x;
    • no -Adapter: 2x;
    • with the mask: none.
  3. Clear shader cache on Linux uses play-linux.sh's LEONIDA_CACHE_DIR, or ${XDG_DATA_HOME:-~/.local/share}/leonida/cache.
  4. Clear shader cache race. After the confirmation, it asks game_running() again. In a real window, a game started during the dialog leaves the cache in place and gives "close the game first".
  5. Linux PLAY passes the extra variables in play-linux.sh's environment (env NAME=value sh play-linux.sh ...): the Controls binds and the advanced options, with Advanced winning. Neither was passed on Linux before.
  6. Unreadable binds kept. split_kbm_binds keeps the entries the page cannot read, and they are written back after the rows.
    • Adding H to both:G=Square;vehicle:N=FutureAction now saves G, H and the unknown entry, checked in a real window.
    • The page's note called t() with text=, which crashed it as soon as an unreadable entry showed. The placeholder is now {entries}, and a test guards against any t(..., text=...).

Tests:

  • launcher suite OK (one skip);
  • tests/test_win_launchers.py: 12 OK;
  • docs links, line endings and check_no_game_data OK.

Counter-tests: with the mask ignored, the adapter filter off, the Linux env or cache path, split_kbm_binds or card_mask reverted, each fails its test.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7366416112 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7366416112). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T03:18:02Z. --- Thanks @merzleckeier and @DeadlyChirp. The six findings from the 02:35, 02:47 and 02:58 reviews and the 02:46 confirmation are fixed in f1e9718e9, merged with the branch's head in c8baf9b74: 1. **F1-saved values kept.** - The AMD/Intel card filter no longer names switches in `-Chosen`. The launcher passes `-CardMask NoDlss,NoFrameGen,SmoothMotion` (`card_mask`), and `play-d3d12.ps1` hands it over. - `play-nvidia.ps1` leaves those settings out of this start only, keeps them in `leonida-settings.txt`, and says so. The menu's FSR 3 stays. - The new test makes a real start (no `-DryRun`, `Start-Process` stubbed): the file keeps `LEONIDA_UPSCALE=dlss`, `LEONIDA_FRAME_GEN=2` and `LEONIDA_MENU_SMOOTH_MOTION=1`, while this start's settings have them off. 2. **Mixed PC.** With `-Adapter`, the automatic DLSS frame generation judges the cards whose name holds it (all of them when none does), and the mask's `NoFrameGen` also keeps it off. Dry runs on AMD + RTX 4070: - `-Adapter "AMD Radeon RX 7800 XT"`: none; - `-Adapter "RTX 4070"`: 2x; - no `-Adapter`: 2x; - with the mask: none. 3. **Clear shader cache on Linux** uses `play-linux.sh`'s `LEONIDA_CACHE_DIR`, or `${XDG_DATA_HOME:-~/.local/share}/leonida/cache`. 4. **Clear shader cache race.** After the confirmation, it asks `game_running()` again. In a real window, a game started during the dialog leaves the cache in place and gives "close the game first". 5. **Linux PLAY** passes the extra variables in `play-linux.sh`'s environment (`env NAME=value sh play-linux.sh ...`): the Controls binds and the advanced options, with Advanced winning. Neither was passed on Linux before. 6. **Unreadable binds kept.** `split_kbm_binds` keeps the entries the page cannot read, and they are written back after the rows. - Adding H to `both:G=Square;vehicle:N=FutureAction` now saves G, H and the unknown entry, checked in a real window. - The page's note called `t()` with `text=`, which crashed it as soon as an unreadable entry showed. The placeholder is now `{entries}`, and a test guards against any `t(..., text=...)`. Tests: - launcher suite OK (one skip); - `tests/test_win_launchers.py`: 12 OK; - docs links, line endings and `check_no_game_data` OK. Counter-tests: with the mask ignored, the adapter filter off, the Linux env or cache path, `split_kbm_binds` or `card_mask` reverted, each fails its test. (oreofr-agent, AI-assisted)
OreoFR commented 2026-12-03 03:21:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:21:49Z.


Thanks @merzleckeier, the three points of your 03:11 review are fixed in b4d0f54ea, merged on top of the 1-6 fixes as 4b64ba9e4.

  • FSR 3 chosen queues AMD's files. needed_files now takes PLAY's settings as well as the card:

    • FSR 3 chosen fetches the FidelityFX DLLs on any card, including when no card was read;
    • an RTX card fetches DLSS only when DLSS or DLSS frame generation is in use;
    • a card without DLSS frame generation still gets AMD's files whatever is chosen;
    • the Frame generation note promises the download only when that same plan has it.

    Your case, an RTX 4070 with FSR 3 and no SDK files, now queues get_fidelityfx.

  • Recorded options. launch_snapshot takes the normal launch's switches together with the command, and start_game records that snapshot. A mode saved during the download no longer counts as passed.

  • Control bytes. The BEL and BS in docs/launcher.md's d3d12\amd-sdk\FidelityFX\bin are replaced with the backslashes. A new NoControlCharactersTests fails on any control byte but tab, LF and CR in docs/*.md, the READMEs, the launcher and its translations.

  • 133 launcher tests OK, and the script, docs-links and line-ending tests too. Counter-tests: modes ignored, live settings recorded, or a BEL appended each fail their test.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7366483778 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7366483778). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T03:21:49Z. --- Thanks @merzleckeier, the three points of your 03:11 review are fixed in b4d0f54ea, merged on top of the 1-6 fixes as 4b64ba9e4. - **FSR 3 chosen queues AMD's files.** `needed_files` now takes PLAY's settings as well as the card: - FSR 3 chosen fetches the FidelityFX DLLs on any card, including when no card was read; - an RTX card fetches DLSS only when DLSS or DLSS frame generation is in use; - a card without DLSS frame generation still gets AMD's files whatever is chosen; - the Frame generation note promises the download only when that same plan has it. Your case, an RTX 4070 with FSR 3 and no SDK files, now queues `get_fidelityfx`. - **Recorded options.** `launch_snapshot` takes the normal launch's switches together with the command, and `start_game` records that snapshot. A mode saved during the download no longer counts as passed. - **Control bytes.** The BEL and BS in `docs/launcher.md`'s `d3d12\amd-sdk\FidelityFX\bin` are replaced with the backslashes. A new `NoControlCharactersTests` fails on any control byte but tab, LF and CR in `docs/*.md`, the READMEs, the launcher and its translations. - 133 launcher tests OK, and the script, docs-links and line-ending tests too. Counter-tests: modes ignored, live settings recorded, or a BEL appended each fail their test. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 03:26:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:26:02Z.

Review: COMMENTED


Rechecked 4b64ba9e on current main (516c9eaa, with #3276). Confirmed that explicit FSR 3 now queues FidelityFX on the RTX 4070, a save during the download no longer overwrites the recorded launch options, and the documentation path has no control bytes. The Controls setting and Advanced override now reach Linux PLAY, adding a bind keeps the unreadable entry, and the default Linux cache and confirmation-race fixtures pass. The first AMD PLAY kept the F1 file intact, and mixed-adapter automatic DLSS FG followed the selected adapter. I found four remaining cases.

  • [P2] Fix the Linux cache tests. test_only_the_cache_goes and test_the_default_data_folder_and_sizes expect Windows cache-2 paths while calling the platform-default Linux resolver. On Linux PowerShell 7.7.0 the two launcher suites had 140 passes, two failures and seven skips. The newer Linux-specific cache tests pass.
  • [P2] Keep F1 choices when switching from NVIDIA to AMD. I derived last_switches from the preceding NVIDIA PLAY and changed only the adapter to AMD. With the actual wrapper and a stand-in runtime, PLAY sent -Chosen Adapter,Dlss,FrameGen,NoDlss,SmoothMotion as well as -CardMask. The F1 merge dropped the saved LEONIDA_UPSCALE, LEONIDA_FRAME_GEN and LEONIDA_MENU_SMOOTH_MOTION values. Comparing options after the card filter makes the filter look like user edits. Please separate the user’s switch changes from the per-card output.
  • [P2] Carry the card mask through F1 SAVE AND RESTART. The first AMD launch suppresses a saved LEONIDA_FRAME_GEN=2. I used the exact generated LEONIDA_MENU_ARGS for a second dry run with the same adapter. It contains -MenuRestart and omits -CardMask, so the second launch emits LEONIDA_FRAME_GEN=2. Please replay the mask and cover the generated restart command.
  • [P2] Honor the Advanced cache path in Clear shader cache. With LEONIDA_CACHE_DIR set through the launcher’s Advanced options, the actual Linux launch script uses the custom cache. The Tools action resolves the default path, reports success after clearing it, and leaves the active cache intact. Both cache directories and the save were synthetic.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6163201392 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6163201392). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T03:26:02Z. **Review:** COMMENTED --- Rechecked `4b64ba9e` on current `main` (`516c9eaa`, with #3276). Confirmed that explicit FSR 3 now queues FidelityFX on the RTX 4070, a save during the download no longer overwrites the recorded launch options, and the documentation path has no control bytes. The Controls setting and Advanced override now reach Linux PLAY, adding a bind keeps the unreadable entry, and the default Linux cache and confirmation-race fixtures pass. The first AMD PLAY kept the F1 file intact, and mixed-adapter automatic DLSS FG followed the selected adapter. I found four remaining cases. - **[P2] Fix the Linux cache tests.** `test_only_the_cache_goes` and `test_the_default_data_folder_and_sizes` expect Windows `cache-2` paths while calling the platform-default Linux resolver. On Linux PowerShell 7.7.0 the two launcher suites had 140 passes, two failures and seven skips. The newer Linux-specific cache tests pass. - **[P2] Keep F1 choices when switching from NVIDIA to AMD.** I derived `last_switches` from the preceding NVIDIA PLAY and changed only the adapter to AMD. With the actual wrapper and a stand-in runtime, PLAY sent `-Chosen Adapter,Dlss,FrameGen,NoDlss,SmoothMotion` as well as `-CardMask`. The F1 merge dropped the saved `LEONIDA_UPSCALE`, `LEONIDA_FRAME_GEN` and `LEONIDA_MENU_SMOOTH_MOTION` values. Comparing options after the card filter makes the filter look like user edits. Please separate the user’s switch changes from the per-card output. - **[P2] Carry the card mask through F1 SAVE AND RESTART.** The first AMD launch suppresses a saved `LEONIDA_FRAME_GEN=2`. I used the exact generated `LEONIDA_MENU_ARGS` for a second dry run with the same adapter. It contains `-MenuRestart` and omits `-CardMask`, so the second launch emits `LEONIDA_FRAME_GEN=2`. Please replay the mask and cover the generated restart command. - **[P2] Honor the Advanced cache path in Clear shader cache.** With `LEONIDA_CACHE_DIR` set through the launcher’s Advanced options, the actual Linux launch script uses the custom cache. The Tools action resolves the default path, reports success after clearing it, and leaves the active cache intact. Both cache directories and the save were synthetic. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 03:33:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:33:33Z.


Thanks @merzleckeier, all four are fixed in 96765c480, which also merges main with #3276.

  • Linux cache tests. Both tests now pass windows=True, and clear_shader_cache takes windows. The suite passes 139 tests under Linux (WSL Ubuntu, Python 3.12), where the old tests fail on these two exactly as in CI.
  • NVIDIA → AMD keeps the F1 choices. -Chosen now compares the player's own switches (the saved settings, plus -Log for a diagnostic start), and last_switches keeps those too. It is still taken with the queued command. The card's part goes only as -CardMask. In your case it is now -Chosen Adapter with -CardMask NoDlss,NoFrameGen,SmoothMotion.
  • SAVE AND RESTART. LEONIDA_MENU_ARGS carries -CardMask. test_win_launchers runs the generated restart command: LEONIDA_FRAME_GEN stays masked and the upscale is the stretch.
  • Advanced cache dir. Clear shader cache clears a LEONIDA_CACHE_DIR typed in the Advanced options, on both systems, instead of the default cache.

Counter-tests: the old snapshot and chosen logic plus no Advanced lookup fail 3 of 3 tests, and a restart without -CardMask fails the restart case. test_win_launchers: 12 OK.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7366694459 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7366694459). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T03:33:33Z. --- Thanks @merzleckeier, all four are fixed in 96765c480, which also merges main with #3276. - **Linux cache tests.** Both tests now pass `windows=True`, and `clear_shader_cache` takes `windows`. The suite passes 139 tests under Linux (WSL Ubuntu, Python 3.12), where the old tests fail on these two exactly as in CI. - **NVIDIA → AMD keeps the F1 choices.** `-Chosen` now compares the player's own switches (the saved settings, plus `-Log` for a diagnostic start), and `last_switches` keeps those too. It is still taken with the queued command. The card's part goes only as `-CardMask`. In your case it is now `-Chosen Adapter` with `-CardMask NoDlss,NoFrameGen,SmoothMotion`. - **SAVE AND RESTART.** `LEONIDA_MENU_ARGS` carries `-CardMask`. `test_win_launchers` runs the generated restart command: `LEONIDA_FRAME_GEN` stays masked and the upscale is the stretch. - **Advanced cache dir.** Clear shader cache clears a `LEONIDA_CACHE_DIR` typed in the Advanced options, on both systems, instead of the default cache. Counter-tests: the old snapshot and chosen logic plus no Advanced lookup fail 3 of 3 tests, and a restart without `-CardMask` fails the restart case. `test_win_launchers`: 12 OK. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 03:39:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:39:57Z.

Review: COMMENTED


Rechecked 29085dbf on 516c9eaa. The two launcher suites had 144 passes and seven skips with Linux PowerShell 7.7.0. All four earlier cases pass: the Linux cache tests, the NVIDIA-to-AMD switch preserving all F1 keys, the generated F1 restart retaining -CardMask, and clearing an absolute Advanced cache path while keeping the default cache. Thanks for carrying both #3273 commits. I reran the old-batch-to-new-batch update with a synthetic updater under Wine CMD. Statuses 0, 7, 128 and 255 all reached the caller.

[P1] Resolve relative cache paths consistently before recursive cleanup. In a Linux fixture launched from outside its checkout, PLAY ran the shell with the checkout as its working directory. A relative Advanced cache path was therefore created under the checkout. The Tools action resolved that same setting from the GUI’s working directory and selected a different existing directory. I intercepted the removal call and observed the two resolved paths. Please use the same absolute cache path for PLAY, confirmation and deletion. The Advanced value currently becomes the recursive deletion target directly, so the cleanup also needs to reject paths overlapping the saves or installation directories.

The path fixtures were synthetic. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6163314908 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6163314908). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T03:39:57Z. **Review:** COMMENTED --- Rechecked `29085dbf` on `516c9eaa`. The two launcher suites had 144 passes and seven skips with Linux PowerShell 7.7.0. All four earlier cases pass: the Linux cache tests, the NVIDIA-to-AMD switch preserving all F1 keys, the generated F1 restart retaining `-CardMask`, and clearing an absolute Advanced cache path while keeping the default cache. Thanks for carrying both #3273 commits. I reran the old-batch-to-new-batch update with a synthetic updater under Wine CMD. Statuses 0, 7, 128 and 255 all reached the caller. **[P1] Resolve relative cache paths consistently before recursive cleanup.** In a Linux fixture launched from outside its checkout, PLAY ran the shell with the checkout as its working directory. A relative Advanced cache path was therefore created under the checkout. The Tools action resolved that same setting from the GUI’s working directory and selected a different existing directory. I intercepted the removal call and observed the two resolved paths. Please use the same absolute cache path for PLAY, confirmation and deletion. The Advanced value currently becomes the recursive deletion target directly, so the cleanup also needs to reject paths overlapping the saves or installation directories. The path fixtures were synthetic. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 03:46:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:46:15Z.


Thanks @merzleckeier, the P1 is fixed in 69925a7c0.

  • One absolute path. shader_cache_dir makes an Advanced LEONIDA_CACHE_DIR absolute from where the runtime starts: d3d12 on Windows, where play-nvidia.ps1 pushes, and the checkout on Linux. The confirmation and the deletion use that same path.
  • A deletion guard. cache_dir_problem refuses a drive's root, a folder that holds the home folder or the data folder, and any folder that holds or sits in the saves, the game folder or Mandy's own folder. A relative value always resolves inside the checkout, so it is refused too. The default <data>/cache-2 stays allowed.
  • Tests: CacheDirGuardTests covers both. 141 OK. Counter-test with the guard off and the removal stubbed: both tests fail.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7366916369 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7366916369). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T03:46:15Z. --- Thanks @merzleckeier, the P1 is fixed in 69925a7c0. - **One absolute path.** `shader_cache_dir` makes an Advanced `LEONIDA_CACHE_DIR` absolute from where the runtime starts: `d3d12` on Windows, where play-nvidia.ps1 pushes, and the checkout on Linux. The confirmation and the deletion use that same path. - **A deletion guard.** `cache_dir_problem` refuses a drive's root, a folder that holds the home folder or the data folder, and any folder that holds or sits in the saves, the game folder or Mandy's own folder. A relative value always resolves inside the checkout, so it is refused too. The default `<data>/cache-2` stays allowed. - **Tests:** `CacheDirGuardTests` covers both. 141 OK. Counter-test with the guard off and the removal stubbed: both tests fail. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 03:50:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:50:07Z.

Review: COMMENTED


Rechecked 69925a7c on 516c9eaa. The two launcher suites had 146 passes and seven skips with Linux PowerShell 7.7.0. An Advanced cache path relative to the checkout is resolved correctly: the in-checkout case is refused, and a dedicated sibling cache resolves to the same folder in PLAY and Tools.

  • [P1] Protect the effective Linux saves directory. cache_dir_problem always builds the protected Saves path from data_root(settings)/data. In a synthetic Linux run, play-linux.sh selected its platform-specific saves directory, and the validator accepted that effective path as a cache cleanup target. I tested the validator directly for this case. Please protect the effective saves location, including LEONIDA_DATA_DIR overrides, using the same defaults and resolution as PLAY.
  • [P2] Apply the same resolution to inherited and typed cache paths. An inherited relative LEONIDA_CACHE_DIR still skips normalization. With the GUI started outside its checkout, PLAY used the checkout-relative cache and Tools selected the working-directory-relative one. A typed tilde path also differed: PLAY used it literally while Tools expanded it. I intercepted the removal call in both fixtures. Please resolve the same absolute cache path for launch and cleanup.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6163392827 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#pullrequestreview-6163392827). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T03:50:07Z. **Review:** COMMENTED --- Rechecked `69925a7c` on `516c9eaa`. The two launcher suites had 146 passes and seven skips with Linux PowerShell 7.7.0. An Advanced cache path relative to the checkout is resolved correctly: the in-checkout case is refused, and a dedicated sibling cache resolves to the same folder in PLAY and Tools. - **[P1] Protect the effective Linux saves directory.** `cache_dir_problem` always builds the protected Saves path from `data_root(settings)/data`. In a synthetic Linux run, `play-linux.sh` selected its platform-specific saves directory, and the validator accepted that effective path as a cache cleanup target. I tested the validator directly for this case. Please protect the effective saves location, including `LEONIDA_DATA_DIR` overrides, using the same defaults and resolution as PLAY. - **[P2] Apply the same resolution to inherited and typed cache paths.** An inherited relative `LEONIDA_CACHE_DIR` still skips normalization. With the GUI started outside its checkout, PLAY used the checkout-relative cache and Tools selected the working-directory-relative one. A typed tilde path also differed: PLAY used it literally while Tools expanded it. I intercepted the removal call in both fixtures. Please resolve the same absolute cache path for launch and cleanup. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 03:54:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:54:20Z.


Thanks @merzleckeier, both are fixed in 9fa65d1e7.

  • [P1] The effective saves are protected. The new runtime_dir gives the runtime's own folder for LEONIDA_DATA_DIR and LEONIDA_CACHE_DIR, in this order:

    1. Advanced's value;
    2. on Linux, the inherited environment;
    3. each system's default: <data>/cache-2 and <data>/data on Windows, ${XDG_DATA_HOME:-~/.local/share}/leonida/{cache,data} on Linux.

    cache_dir_problem now refuses anything that holds or sits in those effective saves, on top of <data_root>/data.

  • [P2] One resolution for inherited and typed paths. Relative values resolve from where the runtime starts: d3d12 on Windows, the checkout on Linux. ~ is no longer expanded, matching leonida-core's config, which takes the value as it is.

  • Tests: RuntimeDirTests. An inherited relative path, a typed ~, the Linux default saves and their parent, and an Advanced LEONIDA_DATA_DIR on both systems are covered. The Linux default cache stays allowed. 143 OK. With the old saves guard, the new test fails.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367059016 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7367059016). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T03:54:20Z. --- Thanks @merzleckeier, both are fixed in 9fa65d1e7. - **[P1] The effective saves are protected.** The new `runtime_dir` gives the runtime's own folder for `LEONIDA_DATA_DIR` and `LEONIDA_CACHE_DIR`, in this order: 1. Advanced's value; 2. on Linux, the inherited environment; 3. each system's default: `<data>/cache-2` and `<data>/data` on Windows, `${XDG_DATA_HOME:-~/.local/share}/leonida/{cache,data}` on Linux. `cache_dir_problem` now refuses anything that holds or sits in those effective saves, on top of `<data_root>/data`. - **[P2] One resolution for inherited and typed paths.** Relative values resolve from where the runtime starts: `d3d12` on Windows, the checkout on Linux. `~` is no longer expanded, matching leonida-core's config, which takes the value as it is. - **Tests:** `RuntimeDirTests`. An inherited relative path, a typed `~`, the Linux default saves and their parent, and an Advanced `LEONIDA_DATA_DIR` on both systems are covered. The Linux default cache stays allowed. 143 OK. With the old saves guard, the new test fails. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 03:58:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:58:30Z.


Rechecked the two cache findings at 9fa65d1e. In a synthetic Linux launch through play-linux.sh, inherited relative and typed tilde paths now resolve from the checkout in both PLAY and Tools. The guard refuses the in-checkout targets, and a dedicated sibling cache still resolves to the same folder in both. The validator now rejects the effective Linux saves directory. The added default and Advanced saves tests passed, with removal intercepted in my separate alignment fixture.

I also checked the new update-card fix #3289 (26f7d4a1) together with this head. They merge cleanly and the real-Tk regression and four cache tests pass together. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367130544 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7367130544). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T03:58:30Z. --- Rechecked the two cache findings at `9fa65d1e`. In a synthetic Linux launch through `play-linux.sh`, inherited relative and typed tilde paths now resolve from the checkout in both PLAY and Tools. The guard refuses the in-checkout targets, and a dedicated sibling cache still resolves to the same folder in both. The validator now rejects the effective Linux saves directory. The added default and Advanced saves tests passed, with removal intercepted in my separate alignment fixture. I also checked the new update-card fix #3289 (`26f7d4a1`) together with this head. They merge cleanly and the real-Tk regression and four cache tests pass together. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 04:21:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T04:21:08Z.


Merging (OreoFR's OK): head aec7489e3, CI green on all six checks against main, no conflict, all review rounds addressed (merzleckeier's last recheck at 03:58 found nothing new; #3273 and #3289 carried with authorship kept). Sent to the merge queue. (oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367543729 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3272#issuecomment-7367543729). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T04:21:08Z. --- Merging (OreoFR's OK): head `aec7489e3`, CI green on all six checks against main, no conflict, all review rounds addressed (merzleckeier's last recheck at 03:58 found nothing new; #3273 and #3289 carried with authorship kept). Sent to the merge queue. (oreofr-agent, AI-assisted)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!3272
No description provided.