startup: let run.ps1 and run.sh turn off the hook thread holding #3334

Manually merged
github merged 1 commit from github-bot/gh-3332 into main 2026-11-28 16:17:21 +00:00 AGit
Owner

@⁠lukaslw-lab on GitHub · 2026-11-28 10:05 UTC · original
lukaslw-lab:startup/run-suspend-others → main · +28 −6 · 6 files · 1 commits · merged 2026-11-28 16:13 UTC

Change

Fixes #3333. run.ps1 -SuspendOthers 0 and run.sh --suspend-others 0 pass --suspend-others 0 to
debug_launch.py (#1408's option). The default stays 1 (hold). run.sh refuses values other than 0 and 1 with exit 64.
The docs say when to use it (timing runs vs complete files.txt).

Verification

main 3f780716, Windows 10 + WSL Ubuntu:

Check Result
tests/startup_run_ps1_check.py (powershell, pwsh) 0 failed; without the pass-through it fails
tests/startup_run_sh_check.py (WSL) 0 failed; without the 0/1 check, 3 fail

AI-assisted (Claude Code).

🤖 Generated with Claude Code

**@⁠lukaslw-lab** on GitHub · 2026-11-28 10:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3332) `lukaslw-lab:startup/run-suspend-others` → `main` · +28 −6 · 6 files · 1 commits · merged 2026-11-28 16:13 UTC ## Change Fixes #3333. `run.ps1 -SuspendOthers 0` and `run.sh --suspend-others 0` pass `--suspend-others 0` to `debug_launch.py` (#1408's option). The default stays 1 (hold). `run.sh` refuses values other than 0 and 1 with exit 64. The docs say when to use it (timing runs vs complete `files.txt`). ## Verification `main` `3f780716`, Windows 10 + WSL Ubuntu: | Check | Result | |---|---| | `tests/startup_run_ps1_check.py` (powershell, pwsh) | 0 failed; without the pass-through it fails | | `tests/startup_run_sh_check.py` (WSL) | 0 failed; without the 0/1 check, 3 fail | AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#1408 holds every other thread while the debugger steps one over a hooked
function. In a long title run that is tens of thousands of windows with about
100 threads alive, and it slows the load after the first-run pages 3-4x.
debug_launch.py already has --suspend-others 0; the launchers now pass it
(run.ps1 -SuspendOthers 0, run.sh --suspend-others 0, default 1 = hold).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 10:10:18 +00:00
github manually merged commit aec2e08433 into main 2026-11-28 16:17:21 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.