d3d12 play-nvidia: F1 SAVE AND RESTART keeps -PcGlyphs (D3D12-F1-RESTART-PCGLYPHS) #3233

Merged
LouisRiverstone merged 1 commit from upstream-pr/3233 into main 2026-12-03 15:15:44 +00:00
LouisRiverstone commented 2026-12-02 21:41:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-02T21:41:38Z.


Claim: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7359528582 (D3D12-F1-RESTART-PCGLYPHS), following ubiquitarianism's finding on d3d12/scripts/play-nvidia.ps1:749.

Why

The F1 menu's SAVE AND RESTART starts play-nvidia.ps1 again with LEONIDA_MENU_ARGS (host/menu.rs restart() hands it to powershell.exe -Command). That list replays every string switch except -PcGlyphs, so after a restart the user's own keyboard-and-mouse prompt pictures were gone.

What changed

  • d3d12/scripts/play-nvidia.ps1:742: PcGlyphs joins the replayed string switches. It uses the same ' → '' quoting as -Exe, -DlssDir and the others.
  • tests/test_win_launchers.py: test_nvidia_menu_restart_preserves_pc_glyphs_folder runs a -DryRun with a glyph folder whose name has a space and an apostrophe. It checks that LEONIDA_MENU_ARGS carries -PcGlyphs '<path with ''>', and that a start without the switch does not.

Verification (Windows 11, Windows PowerShell 5.1, Python 3.11; no game files, no GPU needed)

  • Red/green by hand: with only the .ps1 change reverted, the new test fails (-PcGlyphs is missing from LEONIDA_MENU_ARGS). With the change, it passes.
  • python -I tests/test_win_launchers.py: 10 tests OK.
  • python -I scripts/check_no_game_data.py on both files: exit 0.
  • .ps1 keeps CRLF, as .gitattributes requires.

Pre-existing, not changed here (reviewer notes)

  • A relative -PcGlyphs, -DlssDir, -StreamlineDir or -FidelityFxDir resolves against d3d12\ on restart. The runtime is started after Push-Location $root, so the path no longer points at the user's folder. Only -Exe is made absolute.
  • -More is not replayed on restart.
  • The quoting doubles only the ASCII '. PowerShell also treats ‘ and ’ as quotes.

AI assistance

AI-assisted: written with Claude Code (Claude Opus 5.5). It was reviewed by a separate read-only reviewer agent (Claude Opus 5.5), which checked the restart consumer in menu.rs, every parameter in the param block, quoting, line endings and the clean-room rules, and found nothing blocking.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5615199583 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-02T21:41:38Z. --- Claim: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7359528582 (D3D12-F1-RESTART-PCGLYPHS), following ubiquitarianism's finding on `d3d12/scripts/play-nvidia.ps1:749`. ## Why The F1 menu's SAVE AND RESTART starts `play-nvidia.ps1` again with `LEONIDA_MENU_ARGS` (`host/menu.rs` `restart()` hands it to `powershell.exe -Command`). That list replays every string switch except `-PcGlyphs`, so after a restart the user's own keyboard-and-mouse prompt pictures were gone. ## What changed - `d3d12/scripts/play-nvidia.ps1:742`: `PcGlyphs` joins the replayed string switches. It uses the same `'` → `''` quoting as `-Exe`, `-DlssDir` and the others. - `tests/test_win_launchers.py`: `test_nvidia_menu_restart_preserves_pc_glyphs_folder` runs a `-DryRun` with a glyph folder whose name has a space and an apostrophe. It checks that `LEONIDA_MENU_ARGS` carries `-PcGlyphs '<path with ''>'`, and that a start without the switch does not. ## Verification (Windows 11, Windows PowerShell 5.1, Python 3.11; no game files, no GPU needed) - Red/green by hand: with only the `.ps1` change reverted, the new test fails (`-PcGlyphs` is missing from `LEONIDA_MENU_ARGS`). With the change, it passes. - `python -I tests/test_win_launchers.py`: 10 tests OK. - `python -I scripts/check_no_game_data.py` on both files: exit 0. - `.ps1` keeps CRLF, as `.gitattributes` requires. ## Pre-existing, not changed here (reviewer notes) - A relative `-PcGlyphs`, `-DlssDir`, `-StreamlineDir` or `-FidelityFxDir` resolves against `d3d12\` on restart. The runtime is started after `Push-Location $root`, so the path no longer points at the user's folder. Only `-Exe` is made absolute. - `-More` is not replayed on restart. - The quoting doubles only the ASCII `'`. PowerShell also treats `‘` and `’` as quotes. ## AI assistance AI-assisted: written with Claude Code (Claude Opus 5.5). It was reviewed by a separate read-only reviewer agent (Claude Opus 5.5), which checked the restart consumer in `menu.rs`, every parameter in the param block, quoting, line endings and the clean-room rules, and found nothing blocking. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fiestorra commented 2026-12-02 21:51:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T21:51:57Z.


VERIFY-3233 — Windows nativo: red then green en su propio commit

Own commit 9f84a4498 — play-nvidia.ps1 +1/-1, tests/test_win_launchers.py +46
Branch carries the same long stack of open pull requests as #3235; this review is of the commit above

Ran at the branch head

python -I tests/test_win_launchers.py      Ran 10 tests in 18.1s — OK

Negative control (only 9f84a4498's one line in play-nvidia.ps1 reverted, the test kept):

FAIL: test_nvidia_menu_restart_preserves_pc_glyphs_folder
Ran 10 tests — FAILED (failures=1)

The change is a one-word list addition: the F1 restart copies a fixed set of switches into the new command line, and PcGlyphs (its folder) was not in it — so a save-and-restart dropped the choice. The test builds the restart command and asserts the switch survives; it fails when the word is removed. Small, in the right place, and the failure it fixes is the silent kind (the setting looks saved and is gone after the restart).

What I could not test: the actual F1 save-and-restart in a running title; the test constructs the command line.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359892692 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7359892692). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T21:51:57Z. --- ## VERIFY-3233 — Windows nativo: `red then green` en su propio commit | | | |---|---| | Own commit | `9f84a4498` — `play-nvidia.ps1` +1/-1, `tests/test_win_launchers.py` +46 | | Branch | carries the same long stack of open pull requests as #3235; this review is of the commit above | **Ran at the branch head** ``` python -I tests/test_win_launchers.py Ran 10 tests in 18.1s — OK ``` **Negative control** (only `9f84a4498`'s one line in `play-nvidia.ps1` reverted, the test kept): ``` FAIL: test_nvidia_menu_restart_preserves_pc_glyphs_folder Ran 10 tests — FAILED (failures=1) ``` **The change is a one-word list addition**: the F1 restart copies a fixed set of switches into the new command line, and `PcGlyphs` (its folder) was not in it — so a save-and-restart dropped the choice. The test builds the restart command and asserts the switch survives; it fails when the word is removed. Small, in the right place, and the failure it fixes is the silent kind (the setting looks saved and is gone after the restart). **What I could not test**: the actual F1 save-and-restart in a running title; the test constructs the command line. Written with an AI assistant.
merzleckeier commented 2026-12-02 21:51:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T21:51:58Z.

Review: COMMENTED


Independent check on 9f84a449, merged locally with current main f3865cae and #3220 0beb7d26. I passed the actual LEONIDA_MENU_ARGS from the first dry run to a second PowerShell -Command, using a stub launcher that reports its bound parameters. With a synthetic absolute folder named Bob's custom prompts, the stub received the full path and -MenuRestart on this head. On main it received an empty PcGlyphs value. Omitting the option still leaves it empty. The combined launcher suite passed all six runnable cases on Linux PowerShell (five Windows-only skips). No findings for this change. Synthetic fixtures only. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6159669031 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#pullrequestreview-6159669031). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T21:51:58Z. **Review:** COMMENTED --- Independent check on `9f84a449`, merged locally with current `main` `f3865cae` and #3220 `0beb7d26`. I passed the actual `LEONIDA_MENU_ARGS` from the first dry run to a second PowerShell `-Command`, using a stub launcher that reports its bound parameters. With a synthetic absolute folder named `Bob's custom prompts`, the stub received the full path and `-MenuRestart` on this head. On `main` it received an empty `PcGlyphs` value. Omitting the option still leaves it empty. The combined launcher suite passed all six runnable cases on Linux PowerShell (five Windows-only skips). No findings for this change. Synthetic fixtures only. AI-assisted.
LouisRiverstone commented 2026-12-02 21:53:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-02T21:53:37Z.


The d3d12 (windows-latest) failure here is main's own E0599 in leonida-lua/src/tests.rs:1089 (since bc20b75ba), not this change. This PR touches no Rust. The fix is #3237.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359932471 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7359932471). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-02T21:53:37Z. --- The `d3d12 (windows-latest)` failure here is `main`'s own E0599 in `leonida-lua/src/tests.rs:1089` (since bc20b75ba), not this change. This PR touches no Rust. The fix is #3237.
MoonEyes commented 2026-12-02 21:59:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:59:57Z.


This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7360079782 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7360079782). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T21:59:57Z. --- This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
LouisRiverstone commented 2026-12-02 22:23:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-02T22:23:58Z.


Thanks for the checks. Two notes:

  • Head SHA changed (now 86e92f66c): I rewrote the commit without a co-author trailer. The tree is byte-identical to the reviewed 9f84a4498.
  • Branch base: the branch is one commit on main f3865cae8 (git rev-list --count origin/main..HEAD = 1). #3204 and #3210 are already merged into that main; it carries no open pull requests.

@MoonEyes about the in-game gate: this change is only in d3d12/scripts/play-nvidia.ps1's settings merge, plus a test. It touches no render-path code. If an in-game run is still wanted, I'll post one.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7360638364 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7360638364). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-02T22:23:58Z. --- Thanks for the checks. Two notes: - **Head SHA changed** (now `86e92f66c`): I rewrote the commit without a co-author trailer. The tree is byte-identical to the reviewed `9f84a4498`. - **Branch base:** the branch is one commit on `main` `f3865cae8` (`git rev-list --count origin/main..HEAD` = 1). #3204 and #3210 are already merged into that `main`; it carries no open pull requests. @MoonEyes about the in-game gate: this change is only in `d3d12/scripts/play-nvidia.ps1`'s settings merge, plus a test. It touches no render-path code. If an in-game run is still wanted, I'll post one.
fiestorra commented 2026-12-03 00:13:54 +00:00 (Migrated from github.com)

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


VERIFY-3233 — Windows nativo: red then green, y es la cuarta de la familia del reinicio

Own commit 86e92f66c — play-nvidia.ps1 (2), tests/test_win_launchers.py (+46)

Ran at the head

python -I tests/test_win_launchers.py     10 tests — OK

Negative control: main's play-nvidia.ps1 back, tests kept:

FAIL: test_nvidia_menu_restart_preserves_pc_glyphs_folder

It bites.

What the change is: F1 SAVE AND RESTART keeps -PcGlyphs — the restart is a second launch, and the second launch is built from the settings the menu saved, so anything the first launch accepted that is not in that list is lost. Two lines of script, and a test named after exactly the thing that was lost.

This is the fourth of the night, and the family is now a pattern worth naming (#3233, #3247, #3104, #3235):

the menu writes what it knows; the restart replays a list; every option that is not on the list is silently dropped at the second launch.

That is a shape, not four bugs — and the reason it keeps appearing is that the list is built by hand in one place and the options are accepted in another. The four tests are each one option; a fifth will come.

What I could not test

  • A real F1 SAVE AND RESTART: the test builds the command the restart would run.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362949235 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7362949235). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T00:13:54Z. --- ## VERIFY-3233 — Windows nativo: `red then green`, y es la cuarta de la familia del reinicio | | | |---|---| | Own commit | `86e92f66c` — `play-nvidia.ps1` (2), `tests/test_win_launchers.py` (+46) | **Ran at the head** ``` python -I tests/test_win_launchers.py 10 tests — OK ``` **Negative control**: `main`'s `play-nvidia.ps1` back, tests kept: ``` FAIL: test_nvidia_menu_restart_preserves_pc_glyphs_folder ``` **It bites.** **What the change is**: **F1 SAVE AND RESTART keeps `-PcGlyphs`** — **the restart is a second launch, and the second launch is built from the settings the menu saved, so anything the first launch accepted that is not in that list is lost.** **Two lines of script, and a test named after exactly the thing that was lost.** **This is the fourth of the night, and the family is now a pattern worth naming** (`#3233`, `#3247`, `#3104`, `#3235`): > **the menu writes what it knows; the restart replays a list; every option that is not on the list is silently dropped at the second launch.** **That is a shape, not four bugs** — **and the reason it keeps appearing is that the list is built by hand in one place and the options are accepted in another.** **The four tests are each one option; a fifth will come.** ## What I could not test - **A real F1 SAVE AND RESTART**: the test builds the command the restart would run. Written with an AI assistant.
fiestorra commented 2026-12-03 01:23:08 +00:00 (Migrated from github.com)

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


An audit that backs this fix: PcGlyphs is the only parameter the restart list does not carry

Method (on main, d5b30be1c): play-nvidia.ps1 declares 23 parameters in its param(...) block, and the list the menu replays is built at lines 738 and 742 —

foreach ($s in 'NoSmoothMotion', 'MotionBlur', 'NoDlss', 'NoFrameGen', 'SeriesX', 'Quality', 'RayTracing',
               'HardwareRT', 'FsrFrameGen', 'NoPrecompile', 'Log', 'Capture', 'Fullscreen') { … }
foreach ($s in 'Resolution', 'Lowest', 'Dlss', 'FrameGen', 'Aspect', 'PresentScale', 'Adapter', 'DlssDir',
               'StreamlineDir', 'FidelityFxDir') { … }
if ($precompileUsedOnly) { $again += '-PrecompileUsed' }
if ($PSBoundParameters.ContainsKey('WindowsBarMB')) { … }

Mapping the 23 parameters onto those four lines, exactly one is declared, accepted from the user, honoured on this launch — and never written into $again:

PcGlyphs

That is this pull request. WindowsBarMB has its own line, PrecompileAll/PrecompileUsed their own, DryRun and MenuRestart should not be replayed — and every other switch and value is in one of the two foreach lists. PcGlyphs is the hole.

Which means the audit is also the check that ends the family: every parameter must appear in one of those lines (or be excluded on purpose, with the reason written down). A run of that mapping as a test — parse the param block, parse the two lists, assert the difference is exactly {DryRun, MenuRestart} — would have caught -PcGlyphs, -More and -NoFrameGen the day each was added, and it does not need a script to run: it is a text comparison, like the switches.md check.

Credit where it is due: the $again construction already escapes the single quotes (-replace "'", "''"), which is the other half of tonight's quoting family (#3253, #3257) — so this part of the script was written by someone who had been bitten before.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364282391 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7364282391). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:23:08Z. --- ## An audit that backs this fix: `PcGlyphs` is the only parameter the restart list does not carry **Method** (on `main`, `d5b30be1c`): **`play-nvidia.ps1` declares 23 parameters** in its `param(...)` block, and **the list the menu replays is built at lines 738 and 742** — ```powershell foreach ($s in 'NoSmoothMotion', 'MotionBlur', 'NoDlss', 'NoFrameGen', 'SeriesX', 'Quality', 'RayTracing', 'HardwareRT', 'FsrFrameGen', 'NoPrecompile', 'Log', 'Capture', 'Fullscreen') { … } foreach ($s in 'Resolution', 'Lowest', 'Dlss', 'FrameGen', 'Aspect', 'PresentScale', 'Adapter', 'DlssDir', 'StreamlineDir', 'FidelityFxDir') { … } if ($precompileUsedOnly) { $again += '-PrecompileUsed' } if ($PSBoundParameters.ContainsKey('WindowsBarMB')) { … } ``` **Mapping the 23 parameters onto those four lines**, exactly one is declared, accepted from the user, honoured on this launch — **and never written into `$again`**: ``` PcGlyphs ``` **That is this pull request.** **`WindowsBarMB` has its own line, `PrecompileAll`/`PrecompileUsed` their own, `DryRun` and `MenuRestart` should not be replayed — and every other switch and value is in one of the two `foreach` lists.** **`PcGlyphs` is the hole.** **Which means the audit is also the check that ends the family**: **every parameter must appear in one of those lines (or be excluded on purpose, with the reason written down).** **A run of that mapping as a test — parse the `param` block, parse the two lists, assert the difference is exactly `{DryRun, MenuRestart}` — would have caught `-PcGlyphs`, `-More` and `-NoFrameGen` the day each was added**, and it does not need a script to run: **it is a text comparison, like the `switches.md` check.** **Credit where it is due**: **the `$again` construction already escapes the single quotes** (`-replace "'", "''"`), **which is the other half of tonight's quoting family** (`#3253`, `#3257`) — **so this part of the script was written by someone who had been bitten before.** Written with an AI assistant.
merzleckeier commented 2026-12-03 01:29:18 +00:00 (Migrated from github.com)

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


I checked 86e92f66 after #3230 landed. The conflict was in tests/test_win_launchers.py; keeping the complete frame-generation, More replay and PcGlyphs test methods gave seven passes and five Windows-only skips under PowerShell 7.4.21 on Linux. The files used by those tests are the same on 1a163523 and the #3182 merge d15e048a.

I also parsed and executed the generated F1 restart as a dry run. The old script restarts without the glyph argument. This head restarts with both a plain folder and Avery's prompts intact. A folder using the typographic apostrophe in Avery’s prompts makes the generated command fail to parse, so in that case the whole restart is lost. #3253 at 51bb0da2, which contains this head, round-trips all three names. That makes the previously noted quote limitation observable for the newly replayed argument and confirms the existing quoting fix covers it. The fixtures were synthetic. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364397422 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7364397422). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T01:29:18Z. --- I checked `86e92f66` after #3230 landed. The conflict was in `tests/test_win_launchers.py`; keeping the complete frame-generation, More replay and PcGlyphs test methods gave seven passes and five Windows-only skips under PowerShell 7.4.21 on Linux. The files used by those tests are the same on `1a163523` and the #3182 merge `d15e048a`. I also parsed and executed the generated F1 restart as a dry run. The old script restarts without the glyph argument. This head restarts with both a plain folder and `Avery's prompts` intact. A folder using the typographic apostrophe in `Avery’s prompts` makes the generated command fail to parse, so in that case the whole restart is lost. #3253 at `51bb0da2`, which contains this head, round-trips all three names. That makes the previously noted quote limitation observable for the newly replayed argument and confirms the existing quoting fix covers it. The fixtures were synthetic. AI-assisted with OpenAI Codex.
fiestorra commented 2026-12-03 01:31:27 +00:00 (Migrated from github.com)

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


The rebase is done, and it is on a branch you can take: fcaed1015

#3247 landed at 23:59 (d5b30be1c) and made four pull requests conflict with main, this one among them — in tests/test_win_launchers.py, because #3247 added its own restart test at the same place. So I did the rebase and pushed it, rather than leaving a note about a conflict somebody else has to resolve at 5 in the morning.

https://github.com/fiestorra/leonida-carry/pull/new/pr-3233-rebased
head fcaed1015, based on d5b30be1c, author unchanged (Luiz Neves)

What the resolution is, and why it needs no judgement: the two tests assert different switches of the same restart — #3247's test_nvidia_menu_restart_replays_more (the -More table) and this one's test_nvidia_menu_restart_preserves_pc_glyphs_folder — so the file keeps both, and the PR's test is appended after the ones main has.

Verified on the rebased branch, this machine:

python tests/test_win_launchers.py      Ran 11 tests — OK

11, which is the 10 main has plus this one — and both restart tests are in the file (2 of 2).

Why it matters beyond this pull request: #3253 is stacked on this one (git merge-base --is-ancestor: yes; its own commit is 51bb0da2d), so it cannot merge first and it becomes clean the moment this one does. The rebased branch keeps the stack intact — #3253 can be rebased on top of fcaed1015 directly.

Two notes for whoever merges:

  • #3233 still needs -PcGlyphs replayed in $again — it is the only one of the script's 23 parameters that is not (I mapped them in an earlier comment), and tests/test_restart_switch_coverage.py (my branch, Depends on: #3233) goes green once this merges.
  • tests/test_win_launchers.py is now the single file that four of the open pull requests touch (#3233, #3253, #3104, #3240-era ones) — merging them in a batch is cheaper than one per night, because each merge makes the others conflict.

If you would rather keep the rebase on the original branch, the same two-line resolution is all it is: keep main's file, append test_nvidia_menu_restart_preserves_pc_glyphs_folder from this branch, and run the file.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364438000 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7364438000). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:31:27Z. --- ## The rebase is done, and it is on a branch you can take: `fcaed1015` **`#3247` landed at 23:59 (`d5b30be1c`) and made four pull requests conflict with `main`, this one among them** — **in `tests/test_win_launchers.py`, because `#3247` added its own restart test at the same place.** **So I did the rebase and pushed it, rather than leaving a note about a conflict somebody else has to resolve at 5 in the morning.** ``` https://github.com/fiestorra/leonida-carry/pull/new/pr-3233-rebased head fcaed1015, based on d5b30be1c, author unchanged (Luiz Neves) ``` **What the resolution is, and why it needs no judgement**: **the two tests assert different switches of the same restart** — `#3247`'s `test_nvidia_menu_restart_replays_more` (the `-More` table) **and** this one's **`test_nvidia_menu_restart_preserves_pc_glyphs_folder`** — **so the file keeps both, and the PR's test is appended after the ones `main` has.** **Verified on the rebased branch, this machine**: ``` python tests/test_win_launchers.py Ran 11 tests — OK ``` **11, which is the 10 `main` has plus this one** — **and both restart tests are in the file** (2 of 2). **Why it matters beyond this pull request**: **`#3253` is stacked on this one** (`git merge-base --is-ancestor`: yes; its own commit is `51bb0da2d`), **so it cannot merge first and it becomes clean the moment this one does.** **The rebased branch keeps the stack intact** — **`#3253` can be rebased on top of `fcaed1015` directly.** **Two notes for whoever merges**: - **`#3233` still needs `-PcGlyphs` replayed in `$again`** — **it is the only one of the script's 23 parameters that is not** (I mapped them in an earlier comment), **and `tests/test_restart_switch_coverage.py` (my branch, `Depends on: #3233`) goes green once this merges.** - **`tests/test_win_launchers.py` is now the single file that four of the open pull requests touch** (`#3233`, `#3253`, `#3104`, `#3240`-era ones) — **merging them in a batch is cheaper than one per night, because each merge makes the others conflict.** **If you would rather keep the rebase on the original branch**, **the same two-line resolution is all it is**: **keep `main`'s file, append `test_nvidia_menu_restart_preserves_pc_glyphs_folder` from this branch, and run the file.** Written with an AI assistant.
fiestorra commented 2026-12-03 02:02:19 +00:00 (Migrated from github.com)

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


Re-based again onto d15e048a7: 3c2a1c728, and the resolution is still "keep both"

#3182 landed at 01:11 and moved tests/test_win_launchers.py again, so the rebased branch I pushed earlier went stale in the same file — 12 tests now, not 11.

Done, verified, pushed:

head 3c2a1c728, on d15e048a7
git diff --stat origin/main..head    2 files changed, 45 insertions(+), 1 deletion(-)
python tests/test_win_launchers.py   Ran 12 tests — OK

The same rule applied mechanically: main's file, then this pull request's test_nvidia_menu_restart_preserves_pc_glyphs_folder (43 lines) inserted after the tests main has — no judgement, because the two tests assert different switches of the same restart.

And main still does not carry the change, which I checked before rebasing:

main: 0 occurrences of `$again += '-PcGlyphs'`
main: 0 occurrences of `preserves_pc_glyphs_folder`

So the pull request is still the only place either exists, and it is two files and 45 lines.

The branch link is unchanged (https://github.com/fiestorra/leonida-carry/pull/new/pr-3233-rebased), and #3253 — which is stacked on this — will need the same treatment once this one lands; its conflict is in the same file for the same reason.

A note for the maintainer, since this is the third time tonight: tests/test_win_launchers.py is now the single most contested file in the queue — #3247, #3182, this pull request and #3253 all add tests to it, and every merge re-opens the others. Merging #3233 and #3253 next to each other is the only way this file stops being a conflict generator.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365015319 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7365015319). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T02:02:19Z. --- ## Re-based again onto `d15e048a7`: `3c2a1c728`, and the resolution is still "keep both" **`#3182` landed at 01:11 and moved `tests/test_win_launchers.py` again**, **so the rebased branch I pushed earlier went stale in the same file — 12 tests now, not 11.** **Done, verified, pushed**: ``` head 3c2a1c728, on d15e048a7 git diff --stat origin/main..head 2 files changed, 45 insertions(+), 1 deletion(-) python tests/test_win_launchers.py Ran 12 tests — OK ``` **The same rule applied mechanically**: **`main`'s file, then this pull request's `test_nvidia_menu_restart_preserves_pc_glyphs_folder` (43 lines) inserted after the tests `main` has** — **no judgement, because the two tests assert different switches of the same restart.** **And `main` still does not carry the change**, which I checked before rebasing: ``` main: 0 occurrences of `$again += '-PcGlyphs'` main: 0 occurrences of `preserves_pc_glyphs_folder` ``` **So the pull request is still the only place either exists**, and **it is two files and 45 lines.** **The branch link is unchanged** (`https://github.com/fiestorra/leonida-carry/pull/new/pr-3233-rebased`), **and `#3253` — which is stacked on this — will need the same treatment once this one lands**; **its conflict is in the same file for the same reason.** **A note for the maintainer, since this is the third time tonight**: **`tests/test_win_launchers.py` is now the single most contested file in the queue** — **`#3247`, `#3182`, this pull request and `#3253` all add tests to it**, **and every merge re-opens the others.** **Merging `#3233` and `#3253` next to each other is the only way this file stops being a conflict generator.**
LouisRiverstone commented 2026-12-03 02:11:09 +00:00 (Migrated from github.com)

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


Rebased onto main d15e048a7 (after #3247 and #3182) as 5418b7fac. It is mergeable again. I resolved tests/test_win_launchers.py the way @fiestorra described: main's file plus this PR's test_nvidia_menu_restart_preserves_pc_glyphs_folder, unchanged.

  • python -I tests/test_win_launchers.py: 12 tests OK (main's 11 plus this one).
  • With main's play-nvidia.ps1 put back on the new base, the new test fails.

Thanks @fiestorra for the parameter audit and the rebased branches. I rebased the original branch so the PR keeps its history. @merzleckeier the typographic-apostrophe case you found is what #3253 covers; it is rebased on top of this one.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365179370 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7365179370). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-03T02:11:09Z. --- Rebased onto `main` `d15e048a7` (after #3247 and #3182) as `5418b7fac`. It is mergeable again. I resolved `tests/test_win_launchers.py` the way @fiestorra described: `main`'s file plus this PR's `test_nvidia_menu_restart_preserves_pc_glyphs_folder`, unchanged. - `python -I tests/test_win_launchers.py`: 12 tests OK (`main`'s 11 plus this one). - With `main`'s `play-nvidia.ps1` put back on the new base, the new test fails. Thanks @fiestorra for the parameter audit and the rebased branches. I rebased the original branch so the PR keeps its history. @merzleckeier the typographic-apostrophe case you found is what #3253 covers; it is rebased on top of this one.
merzleckeier commented 2026-12-03 05:28:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T05:28:45Z.


I verified the latest carry pair against d9b618f10. The public PR heads 5418b7fa and bddb2e52 each conflict only in tests/test_win_launchers.py. The carry heads d1260605 and cbc295d1 are ordered correctly, and the launcher changes are carried over.

Two lines of the relocated PcGlyphs test need restoring from 5418b7fa: @unittest.skipUnless(POWERSHELL, "requires PowerShell"), and self.assertNotIn("-PcGlyphs", restart_args[1]) for the start without an explicit setting. With PowerShell absent, both carry heads currently call subprocess.run() with None and fail with TypeError. Restoring those lines in a scratch copy of cbc295d1 gives 1 pass and 12 skips without PowerShell, and 8 passes and 5 Windows-only skips with PowerShell 7.7.0. Restoring main’s launcher source then fails the positive replay assertion as expected. Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368782699 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7368782699). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T05:28:45Z. --- I verified the [latest carry pair against `d9b618f10`](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7368610041). The public PR heads `5418b7fa` and `bddb2e52` each conflict only in `tests/test_win_launchers.py`. The carry heads `d1260605` and `cbc295d1` are ordered correctly, and the launcher changes are carried over. Two lines of the relocated PcGlyphs test need restoring from `5418b7fa`: `@unittest.skipUnless(POWERSHELL, "requires PowerShell")`, and `self.assertNotIn("-PcGlyphs", restart_args[1])` for the start without an explicit setting. With PowerShell absent, both carry heads currently call `subprocess.run()` with `None` and fail with `TypeError`. Restoring those lines in a scratch copy of `cbc295d1` gives 1 pass and 12 skips without PowerShell, and 8 passes and 5 Windows-only skips with PowerShell 7.7.0. Restoring main’s launcher source then fails the positive replay assertion as expected. Synthetic fixtures only. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-03 07:01:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T07:01:40Z.


This pull request has a merge conflict with current main (d9b618f10), so it can't be run in game or merged as it is. Could you merge the latest main into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370508883 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7370508883). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T07:01:40Z. --- This pull request has a merge conflict with current `main` (`d9b618f10`), so it can't be run in game or merged as it is. Could you merge the latest `main` into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head. AI-assisted (Claude Code).
LouisRiverstone commented 2026-12-03 11:51:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-03T11:51:59Z.


@MoonEyes rebased onto current main (b053a1813) as 5fcc7ab9c. It is one commit with no merge conflict, ready for the gate run.

The only conflict was again tests/test_win_launchers.py. It is resolved as main's file plus this PR's test_nvidia_menu_restart_preserves_pc_glyphs_folder, copied verbatim from the PR commit. @merzleckeier the two lines you flagged in the carry heads are there: the @unittest.skipUnless(POWERSHELL, "requires PowerShell") decorator and self.assertNotIn("-PcGlyphs", restart_args[1]).

  • python -I tests/test_win_launchers.py: 13 tests OK (main's 12 plus this one).
  • With main's play-nvidia.ps1 put back, the new test fails.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7377281680 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7377281680). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-03T11:51:59Z. --- @MoonEyes rebased onto current `main` (`b053a1813`) as `5fcc7ab9c`. It is one commit with no merge conflict, ready for the gate run. The only conflict was again `tests/test_win_launchers.py`. It is resolved as `main`'s file plus this PR's `test_nvidia_menu_restart_preserves_pc_glyphs_folder`, copied verbatim from the PR commit. @merzleckeier the two lines you flagged in the carry heads are there: the `@unittest.skipUnless(POWERSHELL, "requires PowerShell")` decorator and `self.assertNotIn("-PcGlyphs", restart_args[1])`. - `python -I tests/test_win_launchers.py`: 13 tests OK (`main`'s 12 plus this one). - With `main`'s `play-nvidia.ps1` put back, the new test fails.
EdenBendheim commented 2026-12-03 12:24:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-03T12:24:56Z.


Independent Windows launcher verification, synthetic only (no in-game gate).

Head 5fcc7ab9cf7cd671019b5b5e84171d46323b82f4 merged onto main b053a1813c8980c4357d51bbe6e69a35dc8c476c as 7378c755106da366276b117fe3a54b210527dc8d, Windows 11 Home.

  • Clean-room/diff checks passed. Native Windows launcher suite: 13/13 passed. Reverting just the launcher fix produced 12 passed and the intended PcGlyphs regression failed; restoring the source byte-for-byte returned 13/13.
  • The stock launcher dry run with an absolute synthetic glyph folder containing a space and ASCII apostrophe emitted the correctly quoted path in its restart arguments. Replaying those exact arguments through actual Windows PowerShell 5.1 and the stock launcher (dry-run mode) preserved the path and MenuRestart flag, exit 0. Omitting the glyph switch omitted it from the replay arguments, exit 0.
  • No runtime launch or actual interactive F1 SAVE AND RESTART was performed. This does not satisfy the requested 300-second in-world gate.

AI-assisted: Codex GPT-6.2 Sol. Verified from the synthetic fixture outputs; no game content attached.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7378190611 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7378190611). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-03T12:24:56Z. --- **Independent Windows launcher verification, synthetic only (no in-game gate).** Head `5fcc7ab9cf7cd671019b5b5e84171d46323b82f4` merged onto `main` `b053a1813c8980c4357d51bbe6e69a35dc8c476c` as `7378c755106da366276b117fe3a54b210527dc8d`, Windows 11 Home. - Clean-room/diff checks passed. Native Windows launcher suite: 13/13 passed. Reverting just the launcher fix produced 12 passed and the intended PcGlyphs regression failed; restoring the source byte-for-byte returned 13/13. - The stock launcher dry run with an absolute synthetic glyph folder containing a space and ASCII apostrophe emitted the correctly quoted path in its restart arguments. Replaying those exact arguments through actual Windows PowerShell 5.1 and the stock launcher (dry-run mode) preserved the path and MenuRestart flag, exit 0. Omitting the glyph switch omitted it from the replay arguments, exit 0. - No runtime launch or actual interactive F1 SAVE AND RESTART was performed. This does not satisfy the requested 300-second in-world gate. AI-assisted: Codex GPT-6.2 Sol. Verified from the synthetic fixture outputs; no game content attached.
EdenBendheim commented 2026-12-03 13:12:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-03T13:12:06Z.


Follow-up to my synthetic-only report: both exact heads #3233 5fcc7ab9c and dependent #3253 499088156 were merged locally on b053a1813 for an actual RTX 3090 stock game gate. It completed 303.858 s in-world with actual exit 0 and no crashes or device losses. The initial launch preserved the glyph-path selection, and exact restart arguments were replayed successfully in the stock launcher dry run. Interactive F1 SAVE AND RESTART remains untested. Full settings, runtime-equivalent binary provenance, and gate limitations are in the stacked report. AI-assisted: Codex GPT-6.2 Sol.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7379461886 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3233#issuecomment-7379461886). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-03T13:12:06Z. --- Follow-up to my synthetic-only report: both exact heads #3233 5fcc7ab9c and dependent #3253 499088156 were merged locally on b053a1813 for an actual RTX 3090 stock game gate. It completed 303.858 s in-world with actual exit 0 and no crashes or device losses. The initial launch preserved the glyph-path selection, and exact restart arguments were replayed successfully in the stock launcher dry run. Interactive F1 SAVE AND RESTART remains untested. Full settings, runtime-equivalent binary provenance, and gate limitations are in the [stacked report](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7379458359). AI-assisted: Codex GPT-6.2 Sol.
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!3233
No description provided.