Quit and Restart from the launcher end the title cleanly and keep its pipelines #531
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/531"
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 readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T02:48:50Z.
The bug
The launcher's "Quit the game" and "Restart the game" call
Process.CloseMainWindow, which postsWM_CLOSEto the title's window.The window procedure only treated
SC_CLOSEas the user closing: the close button, Alt+F4, or the window or taskbar menu. AWM_CLOSEwent on to the title, which did nothing with it. The launcher then ended the process 2.5 s later. So:Logs of runs closed that way end with no "suspending the title" line.
The fix
lifecycle.rs:WM_CLOSEends the title asSC_CLOSEdoes, throughend_title.end_titlealready returns at once when it is called a second time, so a close that arrives both ways is safe.Launcher.cs:EndGamewaits up to 15 s, instead of 2.5 s, before it ends the process itself.Tested
Eight sessions closed with the launcher's Quit, each logged on its own. Setup: Ryzen 7 5700X, RTX 4070 SUPER, a build of my fork based on v0.8.3.3 (main
7dbcdcb, the base of this PR). Each log ends with:Checks
scripts/build-launcher.ps1's compiler and flags.cargo clippy --workspace --all-targets --locked -- -D warnings: clean.--all-features: clean.cargo test --workspace --locked: all pass.cargo xtask policy: ok.🤖 Generated with Claude Code
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.