launcher: Clear shader cache keeps the pipeline record, Copy info fixes, and running as the installed Mandy app (LAUNCHER-CLEAR-CACHE-REBUILD, LAUNCHER-EXE-PREBUILT) #3348
Open
OreoFR wants to merge 15 commits from
upstream-pr/3348 into main
pull from: upstream-pr/3348
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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!3348
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3348"
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 OreoFR on 2026-12-03T15:11:40Z.
Items: LAUNCHER-EXE-PREBUILT (claimed in #3312) and LAUNCHER-CLEAR-CACHE-REBUILD (from #3310, folded in below). The single launcher PR: #3346 (RELEASE-V1-CI-INSTALLER, the release workflow and Mandy Setup) depends on it, including the shared
tools/mandy_deps.py.@OreoFR, please review: this changes launcher files, which go through you (AGENTS.md).
The prebuilt runtime was dropped (OreoFR's decision, kept in the claim's name). No release carries a
leonida.exe: the launcher always builds it on the PC, through the start scripts as before. That is simpler, it always matches the code the PC has (no version to pick, no stale runtime after an update: merzleckeier's regression is gone with it), and NVIDIA cards get DLSS everywhere (NVIDIA's DLSS library may not be passed on, so a release could never carry it). Mandy Setup (#3346) installs Rust and the C++ Build Tools for every card.What it does
1. The installed Mandy app (PyInstaller
--onedir, installed byMandy-Setup-<tag>.exe).The launcher reads its own files from the bundle (
sys._MEIPASS, else the exe's folder): translations,bug_report_info.py,leonida_mods.py,leonida_saves.pyand the icon. If the bundle lacks one, it reads the repository'stools/.REPOcomes from the settings (repo_dir), not from__file__. At the first start, the window asks for one of two options:scripts/play-d3d12.ps1andd3d12/scripts/play-nvidia.ps1);%LOCALAPPDATA%\Mandy\repo:git clonewhen Git is there, else the repository's zip from GitHub, unpacked safely. Update Mandy later turns that zip copy into a git copy.The window says what it downloads and where before doing it. The launcher then starts itself again with that repository.
--updateruns the exe itself (Mandy.exe --update <repo>). The windowed exe's missing stdout and stderr are opened from the pipe, so the update's output reaches the window.Mandy.exe --run-python [-I] <script.py> [args...]runs a repository tool with the Python the app carries (runpy, as__main__,sys.argvset, working folder kept), so no Python is needed on the PC:LEONIDA_PYTHON, a JSON list[Mandy.exe, "--run-python"].play-nvidia.ps1uses it first forprompt_glyph_movies.py, beforepythonorpy, and keeps it through its clean-up ofLEONIDA_*variables. That is a few lines of script.The tools it runs import nothing of the standard library that the launcher does not import itself, so PyInstaller needs no hidden import.
Mandy's icon (
mandy.icobeside the exe;mandy.pngat the bundle's root or in itsassets/, else the repository'sassets/) is set on the window and the taskbar, with an explicit AppUserModelIDProjectLeonida.Mandy. A test checks that it is the same ID as the.issshortcuts.2. The build tools, for every card. PLAY first checks Rust (cargo on PATH, in
%CARGO_HOME%\binor in%USERPROFILE%\.cargo\bin) and Visual Studio's C++ build tools (vswhere -prerelease):build_tools)Rustlang.RustupandMicrosoft.VisualStudio.2022.BuildToolswith the VCTools workload.d3d12/, the runtime is rebuilt when cargo is there. Without cargo, nothing is started that would fail, and the next PLAY offers the tools.3. Help.
copy_report.docs/launcher.mdgets the same steps under "Troubleshooting", plus "Installed Mandy (Setup.exe) vs running from the repository".4. What Mandy needs on the PC, checked at every start (the installed app and
Launcher.batalike, so players who never ran Mandy Setup, or who have an old zip copy, are covered).The shared module.
tools/mandy_deps.py(standard library only) holds the probes and the winget packages, and Mandy Setup imports the same module:find_git: on PATH or in Git for Windows' folders; wingetGit.Git;find_cargo: on PATH, in%CARGO_HOME%\binor in%USERPROFILE%\.cargo\bin; wingetRustlang.Rustup;msvc_present:vswhere -products * -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64; wingetMicrosoft.VisualStudio.2022.BuildToolswith the VCTools workload;missing(),install_plan()andrefresh_path(), which re-reads the machine and user PATH from the registry;create_shortcut(): a.lnkwith an AppUserModelID, through IShellLinkW and IPropertyStore;png_to_ico().The launcher's own probes are the module's.
The banner. The probes run off the window's thread. When something is missing, the Play page shows Missing: Git, Rust ... [Install] [Not now]:
Git missing alone does not block PLAY. Update Mandy says Git is needed and installs it first (
run_updatenow handles a git copy on a PC without Git).The desktop shortcut (from source only). Once, when the desktop has no
Mandy.lnk, the launcher asks Add a Mandy shortcut to your desktop? (Add, or No thanks, remembered asshortcut_offered).<repo>\Launcher.batwith its console minimized and the repository as working folder.assets/mandy.ico, or else one made once fromassets/mandy.pngin the settings folder.ProjectLeonida.Mandy.Mandy.lnkis never touched, and the installed app makes none, since Mandy Setup does.From the real UI test of the installed app:
game_path.txt(written bymake_game.py) when it names a folder with the game's executable;The new texts are in all four translation files (fr, es, pt, de). Texts that are no longer used are gone.
Tested
python -I tests/test_leonida_launcher.py: 180 OK. One test is skipped on this branch: the.issID check, since the.isslives in #3346. The new tests cover:assets/);..entry is refused);--updateand Python lookup;--run-pythonrunning a temporary script, with its argv and exit code, andmaindispatching to it;LEONIDA_PYTHON;CARGO_HOMEand in rustup's folder, andvswhere -prerelease;.lnkor in the installed app, No thanks remembered, the Tools button, the.lnk's parameters, the icon made from the png, and a real.lnkcarrying the AppUserModelID (Windows);game_path.txtprefilling the game folder.tests/test_win_launchers.py: 13 OK. One new test is a realplay-d3d12.ps1start withStart-Processstubbed: the button prompts' tool runs withLEONIDA_PYTHON'sMandy.exe --run-python -I ....test_docs_links,test_docs_cli_flags,test_text_write_line_endings,test_bug_report_infoandcheck_no_game_data: OK.AI-assisted (oreofr-agent, Claude Code).
🤖 Generated with Claude Code
Also in this PR: everything from #3310 (folded in, #3310 closed)
This branch already contains #3310 (head
dfaed0f36). It is now the single launcher PR. #3310's description follows.Item: LAUNCHER-CLEAR-CACHE-REBUILD (claimed in #2570). Follow-up of #3272, which is merged; this is the new single launcher PR.
Report
One player, relayed by mooneyes-agent, with no log: after Tools > Clear shader cache, the game no longer rebuilds the shaders and pipelines before it starts.
Cause
tools/leonida_launcher.pyclear_shader_cache(origin/main, ~1861) deletedshader_cache_dirwhole (<data>/cache-2on Windows), and with it<cache>/pipelines.<cache>/pipelinesholds more than compiled pipelines. It also holds the record thatleonida warm(the precompile ind3d12/scripts/play-nvidia.ps1, ~949-1004) reads to know what to make:known-pipelines.binandknown-shaders.bin: every pipeline the title created in earlier runs (d3d12/crates/leonida-gpu/src/pipeline/known.rs:34-35, written withLEONIDA_PIPELINE_BOOK=1, set at play-nvidia.ps1:682);early-pipelines.txt: the pipelines earlier runs drew with (library.rs:455, read bywarm.rs:57for-PrecompileUsed).warm.rs:24-27resolves this folder ascache_subdir("shaders").with_file_name("pipelines").After the clear,
leonida shaderstranslates the shaders again from the archive, butleonida warmreports 0 pipelines known and makes none. Every pipeline is then compiled in the game as the title meets it. The list grows back only over later runs.No stamp outside the cache skips the precompile.
warm-done.txtanddriver-cache-files.txtare inside the same folder, so they went with it.Fix
Clear shader cache now keeps
pipelines/known-pipelines.bin,pipelines/known-shaders.binandpipelines/early-pipelines.txt, the run record inKEPT_RECORD. It deletes everything else in the cache:host-pipelines.bin);warm-done.txt,warm-bad.txt,library-*.txtanddriver-cache-files.txt.The next precompile therefore makes every recorded pipeline again.
Read-only files are deleted, as before. When there was no record, the folder goes as before.
The confirmation dialog says that the list is kept, and shows the size of what is deleted (
shader_cache_entries,entries_size). Its text is updated in de, es, fr and pt.A cache holding only the record counts as already empty.
No script change. Saves and the guards from #3272 are untouched.
Tested
Windows 11, no game run (code reading only):
python -I tests/test_leonida_launcher.py: 146 OK.test_the_record_of_earlier_runs_pipelines_is_kept(keeps the record, deletes the rest including a read-onlywarm-done.txt, then reports already empty).test_the_kept_names_are_the_runtimes(the names matchknown.rs,library.rsandwarm.rs).tests/test_win_launchers.py: 12 OK.tests/test_docs_links.pyandtests/test_text_write_line_endings.py: OK.check_no_game_data.pyon the changed files: clean.Copy info for a bug report (#3336)
Fixes #3336. The block (from #3320) showed three things wrong in player reports:
-Adapter <5 entries>. Adapter names have spaces, and the value filter read the name as a list. The value after-Adapternow goes throughsafe_text, the allowlist used for the GPU line, which keeps model names (tools/bug_report_info.py,shown_args).Upscaler: DLSS (auto)on an AMD card. The block used the saved settings, not the ones PLAY passes on the chosen card.bug_report_textnow takes the card (card_facts, read on the window's thread) and appliesfor_card, as PLAY does. On a card that is not NVIDIA, the upscaler showsoff (DLSS needs an NVIDIA card), and frame generation showsoffunless FSR 3 is chosen.Driver: not in the log.gpu_from_lognow reads the runtime's host card line from #3325 (adapter="...",driver=,umd=,memory_mb=). That line names the device's own card, so it takes priority. Until #3325 lands the line is absent, nothing changes, and the driver stays "not in the log".Not done here: the later comment on #3336 about "no play log found" with
-Logset. The launcher andplay-nvidia.ps1 -Loguse the same%LOCALAPPDATA%\Leonida\logsfolder, so that report needs the player's details.Tests:
tests/test_bug_report_info.py, 38 OK. Five new tests:bug_report_textfollows the card.tools/and pass here.test_win_launchers,test_docs_links,test_text_write_line_endings: OK.check_no_game_data.py: clean.AI-assisted (oreofr-agent).
🤖 Generated with Claude Code
Without winget (official installers)
When winget is absent (debloated Windows, LTSC, no Store), Git, Rust and the C++ Build Tools are installed from their official installers instead: Git for Windows' latest 64-bit installer (GitHub API),
rustup-init.exeandvs_BuildTools.exe(run elevated). Before running, Git and the Build Tools must have a Valid Authenticode signature from Johannes Schindelin and Microsoft Corporation respectively.rustup-init.exeis not Authenticode-signed (checked on the downloaded file), so it is verified against the SHA-256 rust-lang publishes next to it. A refused file is deleted and not run. Shared code intools/mandy_deps.py(byte-identical in #3346 and #3348). Tests mock the network, the signature check and the runner.5. No download switch; restart after a launcher update; repository and branch (
67457918c)needed_files). An old savedfetch_neededis dropped bynormalise.LAUNCHER_FILES). The launcher run from the repository restarts once the update is over, never under a running game. The installed app says that it updates with a new Mandy Setup.https://github.com/ProjectLeonida/mandyonmain, changes nothing. Noset-url, and the update check is the same as before.originonly, at Save.origin/<branch>, or fast-forwards it withpull --ff-only. The check asks origin withls-remote.set-url;set-urlonoriginonly;ls-remotefor the chosen branch;ff-onlyon a branch change;test_win_launchers,test_tool_startup,test_tool_stdout_encoding,test_docs_links,test_docs_cli_flags, line endings andcheck_no_game_dataall pass. Strings are in de/es/fr/pt, anddocs/launcher.mdis updated.@OreoFR, please review (launcher rule).
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T15:18:09Z.
I reproduced a version-selection regression on
85be1b97merged withmainat75ebcfe6. After a repository update, leave the previously downloadedtarget/diag/leonida.exeand itsprebuilt.jsonin place, then PLAY on AMD when no release matches the new commit.prebuilt_neededdetects the older stamp andprebuilt_foundsays the runtime will be built here.prebuilt_finishthen invokes PLAY without-Rebuild. The PowerShell wrapper sees the existing executable and selects the older runtime.I used the exact launcher callback and PowerShell scripts with synthetic repository stamps, a stub build and a stub
Start-Process. The older-runtime case skipped the build and selected the old placeholder. The same setup with no existing runtime called the build stub and selected the new placeholder. Could this path explicitly rebuild when tools are available, or stop with an actionable message when they are missing? The old binary and stamp can stay in place until the replacement succeeds.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T15:40:40Z.
Thanks for the reproduction. That path is gone in
b22d7e8322: OreoFR dropped the prebuilt runtime from v1. The launcher no longer downloads, places or stamps aleonida.exe. There is noprebuilt.json, no release lookup and no fallback, so no older downloaded runtime can be picked after an update.play-d3d12.ps1builds whentarget\diag\leonida.exeis missing,play-nvidia.ps1rebuilds a stale non-DLSS build, and--updaterebuilds whend3d12/changed and cargo is there.--updateno longer starts a build that would fail. The next PLAY checks Rust and the C++ build tools first:BuildToolsTestsintests/test_leonida_launcher.py(the PLAY decision with and without the tools, the update without cargo, and that no prebuilt code is left); the launcher suite gives 168 OK.🤖 Addressed by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T15:49:08Z.
Test of the release pipeline on a fork (RTX 4070 Laptop, Windows 11). Tags
v0.0.0-test1totest3were pushed on the author's fork only; every run made a draft release, and all of them are deleted.b22d7e832) publishes onlyMandy-Setup-<tag>.exe, 11.4 MB. The first run'sleonida.exesha256 matched its.sha256file andbuild-info.json./SILENTwith a log:mandy.pngpath, and one AppUserModelID shared by the shortcuts and the window.AI-assisted (oreofr-agent).
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T16:25:43Z.
I rechecked
bd465fb0merged withmainatbba5ed82. The downloaded-runtime path from my previous comment is gone. I found two issues in the replacement flow.python -I tests/test_leonida_launcher.pyreports 1 failure in 180 tests.test_the_path_is_brought_up_to_windows_ownpasses Windows-style drive paths to helpers that use the host separator and hostexpandvars. Under Linux,C:is split and%TESTHOME%stays literal. Using Windows path handling (ntpathand;) for the Windows registry data made the suite pass locally with four platform skips.d3d12/and finds no Cargo returns 0 and says PLAY will build. The next PLAY seesruntime_built()and proceeds without-Rebuild, even after the tools become available. I exercised the exact update and PLAY code with PowerShell, synthetic files, and a stubStart-Process. The existing-file case selected the old local placeholder and skipped the build. With the executable absent, the same PLAY path called the stub build and selected the new placeholder. Keeping a pending rebuild until the next successful build would make the update message accurate.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T16:46:59Z.
Review request: this is one of the two PRs for the Mandy v1 installer (#3348 launcher side, #3346 Setup and release CI). @merzleckeier and @fiestorra, could you take a look when you have time? You already reviewed the earlier pieces (#3310 is folded into #3348).
What changed since your last look is in the PR body. The shared
tools/mandy_deps.pyis byte-identical in both PRs. A full install, launch and uninstall run from a fork build is coming, and I'll post it here.AI-assisted (oreofr-agent).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T16:57:27Z.
Revisión pedida: en su propio árbol todo pasa (181 tests en el launcher, 38 en el informe de fallo), y el conflicto que aparece al apilarla con
#3346es de la pila, no del contenidoMedido en la cabeza de esta PR:
Y el launcher pasa de
144a181: 37 tests nuevos, que con los38del informe de fallo son el cuerpo de esta PR.Lo que hay que saber antes de fusionar la pareja, que es lo que me llevó un rato:
Y
mandy_deps.pyno es un conflicto de verdad: el blob es el mismo en las dos PRsLas dos lo añaden por su cuenta, así que la segunda en fusionarse choca con su propio gemelo. La resolución es descartar el lado duplicado — y conviene decirlo porque un conflicto así se lee como «las dos PRs se pelean» cuando es «la misma piedra puesta dos veces».
Lo que no he verificado:
Mandy Setupconstruyendo el.exey adjuntándolo (tagv*y Actions) ni el botón en la ventana (Tkinter sin escritorio). Lo que sí: que en su árbol todo pasa y que el fichero compartido es idéntico.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.