d3d12 play-nvidia: F1 SAVE AND RESTART keeps -PcGlyphs (D3D12-F1-RESTART-PCGLYPHS) #3233
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3233"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.ps1again withLEONIDA_MENU_ARGS(host/menu.rsrestart()hands it topowershell.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:PcGlyphsjoins the replayed string switches. It uses the same'→''quoting as-Exe,-DlssDirand the others.tests/test_win_launchers.py:test_nvidia_menu_restart_preserves_pc_glyphs_folderruns a-DryRunwith a glyph folder whose name has a space and an apostrophe. It checks thatLEONIDA_MENU_ARGScarries-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)
.ps1change reverted, the new test fails (-PcGlyphsis missing fromLEONIDA_MENU_ARGS). With the change, it passes.python -I tests/test_win_launchers.py: 10 tests OK.python -I scripts/check_no_game_data.pyon both files: exit 0..ps1keeps CRLF, as.gitattributesrequires.Pre-existing, not changed here (reviewer notes)
-PcGlyphs,-DlssDir,-StreamlineDiror-FidelityFxDirresolves againstd3d12\on restart. The runtime is started afterPush-Location $root, so the path no longer points at the user's folder. Only-Exeis made absolute.-Moreis not replayed on restart.'. 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
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T21:51:57Z.
VERIFY-3233 — Windows nativo:
red then greenen su propio commit9f84a4498—play-nvidia.ps1+1/-1,tests/test_win_launchers.py+46Ran at the branch head
Negative control (only
9f84a4498's one line inplay-nvidia.ps1reverted, the test kept):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.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T21:51:58Z.
Review: COMMENTED
Independent check on
9f84a449, merged locally with currentmainf3865caeand #32200beb7d26. I passed the actualLEONIDA_MENU_ARGSfrom the first dry run to a second PowerShell-Command, using a stub launcher that reports its bound parameters. With a synthetic absolute folder namedBob's custom prompts, the stub received the full path and-MenuRestarton this head. Onmainit received an emptyPcGlyphsvalue. 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.Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-02T21:53:37Z.
The
d3d12 (windows-latest)failure here ismain's own E0599 inleonida-lua/src/tests.rs:1089(sincebc20b75ba), not this change. This PR touches no Rust. The fix is #3237.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:mainSHA it was merged onto;mainalone 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).
Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-02T22:23:58Z.
Thanks for the checks. Two notes:
86e92f66c): I rewrote the commit without a co-author trailer. The tree is byte-identical to the reviewed9f84a4498.mainf3865cae8(git rev-list --count origin/main..HEAD= 1). #3204 and #3210 are already merged into thatmain; 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.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 reinicio86e92f66c—play-nvidia.ps1(2),tests/test_win_launchers.py(+46)Ran at the head
Negative control:
main'splay-nvidia.ps1back, tests kept: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):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
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:23:08Z.
An audit that backs this fix:
PcGlyphsis the only parameter the restart list does not carryMethod (on
main,d5b30be1c):play-nvidia.ps1declares 23 parameters in itsparam(...)block, and the list the menu replays is built at lines 738 and 742 —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:That is this pull request.
WindowsBarMBhas its own line,PrecompileAll/PrecompileUsedtheir own,DryRunandMenuRestartshould not be replayed — and every other switch and value is in one of the twoforeachlists.PcGlyphsis 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
paramblock, parse the two lists, assert the difference is exactly{DryRun, MenuRestart}— would have caught-PcGlyphs,-Moreand-NoFrameGenthe day each was added, and it does not need a script to run: it is a text comparison, like theswitches.mdcheck.Credit where it is due: the
$againconstruction 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.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T01:29:18Z.
I checked
86e92f66after #3230 landed. The conflict was intests/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 on1a163523and the #3182 merged15e048a.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 promptsintact. A folder using the typographic apostrophe inAvery’s promptsmakes the generated command fail to parse, so in that case the whole restart is lost. #3253 at51bb0da2, 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.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#3247landed at 23:59 (d5b30be1c) and made four pull requests conflict withmain, this one among them — intests/test_win_launchers.py, because#3247added 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.What the resolution is, and why it needs no judgement: the two tests assert different switches of the same restart —
#3247'stest_nvidia_menu_restart_replays_more(the-Moretable) and this one'stest_nvidia_menu_restart_preserves_pc_glyphs_folder— so the file keeps both, and the PR's test is appended after the onesmainhas.Verified on the rebased branch, this machine:
11, which is the 10
mainhas plus this one — and both restart tests are in the file (2 of 2).Why it matters beyond this pull request:
#3253is stacked on this one (git merge-base --is-ancestor: yes; its own commit is51bb0da2d), so it cannot merge first and it becomes clean the moment this one does. The rebased branch keeps the stack intact —#3253can be rebased on top offcaed1015directly.Two notes for whoever merges:
#3233still needs-PcGlyphsreplayed in$again— it is the only one of the script's 23 parameters that is not (I mapped them in an earlier comment), andtests/test_restart_switch_coverage.py(my branch,Depends on: #3233) goes green once this merges.tests/test_win_launchers.pyis 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, appendtest_nvidia_menu_restart_preserves_pc_glyphs_folderfrom this branch, and run the file.Written with an AI assistant.
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"#3182landed at 01:11 and movedtests/test_win_launchers.pyagain, so the rebased branch I pushed earlier went stale in the same file — 12 tests now, not 11.Done, verified, pushed:
The same rule applied mechanically:
main's file, then this pull request'stest_nvidia_menu_restart_preserves_pc_glyphs_folder(43 lines) inserted after the testsmainhas — no judgement, because the two tests assert different switches of the same restart.And
mainstill does not carry the change, which I checked before rebasing: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.pyis now the single most contested file in the queue —#3247,#3182, this pull request and#3253all add tests to it, and every merge re-opens the others. Merging#3233and#3253next to each other is the only way this file stops being a conflict generator.Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-03T02:11:09Z.
Rebased onto
maind15e048a7(after #3247 and #3182) as5418b7fac. It is mergeable again. I resolvedtests/test_win_launchers.pythe way @fiestorra described:main's file plus this PR'stest_nvidia_menu_restart_preserves_pc_glyphs_folder, unchanged.python -I tests/test_win_launchers.py: 12 tests OK (main's 11 plus this one).main'splay-nvidia.ps1put 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.
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 heads5418b7faandbddb2e52each conflict only intests/test_win_launchers.py. The carry headsd1260605andcbc295d1are 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"), andself.assertNotIn("-PcGlyphs", restart_args[1])for the start without an explicit setting. With PowerShell absent, both carry heads currently callsubprocess.run()withNoneand fail withTypeError. Restoring those lines in a scratch copy ofcbc295d1gives 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.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 latestmaininto 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).
Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-03T11:51:59Z.
@MoonEyes rebased onto current
main(b053a1813) as5fcc7ab9c. 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 asmain's file plus this PR'stest_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 andself.assertNotIn("-PcGlyphs", restart_args[1]).python -I tests/test_win_launchers.py: 13 tests OK (main's 12 plus this one).main'splay-nvidia.ps1put back, the new test fails.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
5fcc7ab9cf7cd671019b5b5e84171d46323b82f4merged ontomainb053a1813c8980c4357d51bbe6e69a35dc8c476cas7378c755106da366276b117fe3a54b210527dc8d, Windows 11 Home.AI-assisted: Codex GPT-6.2 Sol. Verified from the synthetic fixture outputs; no game content attached.
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
5fcc7ab9cand dependent #3253499088156were merged locally onb053a1813for 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.