Preserve the updater exit status in the launcher resume path #3273

Closed
merzleckeier wants to merge 2 commits from upstream-pr/3273 into main
merzleckeier commented 2026-12-03 01:33:59 +00:00 (Migrated from github.com)

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


Claimed in the coordination issue as LAUNCHER-UPDATE-EXIT-STATUS. Follow-up to the merged #3182 and the Wine verification on that PR.

What and why

After the previous Launcher.bat is replaced during an update, CMD can resume within the padding at the top of the replacement file. Wine 11.22's CMD returned zero for a bare exit /b in that path even though the updater's nonzero status was still available as %ERRORLEVEL%. Pass the status explicitly at the existing exit.

Tested

  • In Wine 11.22, a synthetic Python updater replaced the running batch with the exact current-main and patched files. With CRLF and LF, current main returns zero for child statuses 7, 128 and 255. The patched file returns 0, 7, 128 and 255 correctly, both after replacement and when started directly.
  • The independent read-only review reproduced the CRLF 7-to-0 failure and recovery in its own Wine prefix. Both checks exercised an argument containing spaces and !.
  • The PowerShell launcher suite had six passes and five platform skips in the Linux sandbox. Line-ending tests, the clean-room scanner and git diff --check passed. Native Windows CMD was outside this verification.

GPUs tested: n/a (synthetic launcher fixtures).

AI-assisted: OpenAI Codex (GPT-6 family), with independent read-only review by GPT-6.2 Sol.

Checklist

  • Based on upstream main at d15e048a.
  • One topic.
  • Clean-room scan passed.
  • Translator rule: n/a.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5618021436 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T01:33:59Z. --- Claimed in the coordination issue as [LAUNCHER-UPDATE-EXIT-STATUS](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7364414268). Follow-up to the merged #3182 and the [Wine verification on that PR](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364151473). ### What and why After the previous `Launcher.bat` is replaced during an update, CMD can resume within the padding at the top of the replacement file. Wine 11.22's CMD returned zero for a bare `exit /b` in that path even though the updater's nonzero status was still available as `%ERRORLEVEL%`. Pass the status explicitly at the existing exit. ### Tested - In Wine 11.22, a synthetic Python updater replaced the running batch with the exact current-main and patched files. With CRLF and LF, current main returns zero for child statuses 7, 128 and 255. The patched file returns 0, 7, 128 and 255 correctly, both after replacement and when started directly. - The independent read-only review reproduced the CRLF 7-to-0 failure and recovery in its own Wine prefix. Both checks exercised an argument containing spaces and `!`. - The PowerShell launcher suite had six passes and five platform skips in the Linux sandbox. Line-ending tests, the clean-room scanner and `git diff --check` passed. Native Windows CMD was outside this verification. GPUs tested: n/a (synthetic launcher fixtures). AI-assisted: OpenAI Codex (GPT-6 family), with independent read-only review by GPT-6.2 Sol. ### Checklist - [x] Based on upstream `main` at `d15e048a`. - [x] One topic. - [x] Clean-room scan passed. - Translator rule: n/a.
fiestorra commented 2026-12-03 01:37:20 +00:00 (Migrated from github.com)

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


VERIFY-3273 — red on its own head: the test looks for exit /b\r\n:start, the file has exit /b %ERRORLEVEL%\r\n:start

Ran at the head (70beabca4), the three test files this branch touches:

tests/test_leonida_launcher.py     Ran 87 tests — FAILED (errors=1)
tests/test_leonida_saves.py        Ran 28 tests — OK
tests/test_win_launchers.py        Ran 11 tests — OK

The error:

ERROR: test_an_update_that_replaces_it_while_it_runs_ends_cleanly
  File "tests/test_leonida_launcher.py", line 1158
      stop = raw.index(b"exit /b\r\n:start\r\n")
ValueError: subsection not found

And the file it reads is this branch's own Launcher.bat — I read its bytes (7 138, all CRLF, no bare LF):

::::::::::::::::::::::::::::<CR><LF>exit /b %ERRORLEVEL%<CR><LF>:start<CR><LF>title Leonida - Laun…

So b"exit /b\r\n:start\r\n" is not in the file, because the line is exit /b %ERRORLEVEL%. The pull request's whole purpose is that exit code surviving the rewrite (its own commit message: "the update's exit code survives the old-to-new rewrite (exit /b …)"), so the %ERRORLEVEL% is the change — and the test that was written to pin it still expects the old bare form.

Two lines fix it, and the choice matters:

  • if the intent is "the old file's tail is labels and then a plain exit", the test should read exit /b %ERRORLEVEL%\r\n:start\r\n — the new shape;
  • if the intent is "the exit is code-less", the file is wrong, and the commit message's promise (the code survives) is what would have to give.

I would take the first: the comment above the assertion says "That exit is exit /b with no code: an update run from the console keeps git's or the build's…" — and exit /b %ERRORLEVEL% is how a batch file keeps the code, which is what the sentence asks for. So the sentence and the code agree, and only the literal is stale.

And the ratio is worth saying: 86 of 87 tests pass on a 3 521-line launcher rewrite, in 0.4 s — the suite is fast because it never starts the launcher, and the one failure is a string literal in a test that reads the batch file as bytes. That is a good place to be in.

What I did not verify: the launcher itself — 6 243 added lines across 14 files, including four 315-line i18n JSONs, and I ran the three test files, which is not the same as reading them.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364549727 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7364549727). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:37:20Z. --- ## VERIFY-3273 — **red on its own head**: the test looks for `exit /b\r\n:start`, the file has `exit /b %ERRORLEVEL%\r\n:start` **Ran at the head (`70beabca4`), the three test files this branch touches**: ``` tests/test_leonida_launcher.py Ran 87 tests — FAILED (errors=1) tests/test_leonida_saves.py Ran 28 tests — OK tests/test_win_launchers.py Ran 11 tests — OK ``` **The error**: ``` ERROR: test_an_update_that_replaces_it_while_it_runs_ends_cleanly File "tests/test_leonida_launcher.py", line 1158 stop = raw.index(b"exit /b\r\n:start\r\n") ValueError: subsection not found ``` **And the file it reads is this branch's own `Launcher.bat`** — I read its bytes (7 138, all CRLF, no bare LF): ``` ::::::::::::::::::::::::::::<CR><LF>exit /b %ERRORLEVEL%<CR><LF>:start<CR><LF>title Leonida - Laun… ``` **So `b"exit /b\r\n:start\r\n"` is not in the file, because the line is `exit /b %ERRORLEVEL%`.** **The pull request's whole purpose is that exit code surviving the rewrite** (its own commit message: *"the update's exit code survives the old-to-new rewrite (exit /b …)"*), **so the `%ERRORLEVEL%` is the change — and the test that was written to pin it still expects the old bare form.** **Two lines fix it, and the choice matters**: - **if the intent is "the old file's tail is labels and then a plain exit"**, the test should read `exit /b %ERRORLEVEL%\r\n:start\r\n` — **the new shape**; - **if the intent is "the exit is code-less"**, the file is wrong, **and the commit message's promise (the code survives) is what would have to give.** **I would take the first**: the comment above the assertion says *"That exit is `exit /b` with no code: an update run from the console keeps git's or the build's…"* — **and `exit /b %ERRORLEVEL%` is how a batch file keeps the code**, **which is what the sentence asks for**. **So the sentence and the code agree, and only the literal is stale.** **And the ratio is worth saying**: **86 of 87 tests pass on a 3 521-line launcher rewrite, in 0.4 s** — **the suite is fast because it never starts the launcher, and the one failure is a string literal in a test that reads the batch file as bytes.** **That is a good place to be in.** **What I did not verify**: the launcher itself — **6 243 added lines across 14 files, including four 315-line i18n JSONs**, **and I ran the three test files, which is not the same as reading them.** Written with an AI assistant.
merzleckeier commented 2026-12-03 01:45:35 +00:00 (Migrated from github.com)

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


The Linux job caught a stale assertion in LauncherBatTests: it still searched for an exact bare exit /b. Updated it in 674c6676 to require exit /b %ERRORLEVEL% and kept the CRLF byte-offset and colon-padding assertions. The updated test passes with the patched batch and fails with the merged parent's bare exit. The whole launcher module passed locally (86 passes, one skip), and the independent read-only re-review passed. GitHub has started CI for the new head. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364702154 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7364702154). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T01:45:35Z. --- The Linux job caught a stale assertion in `LauncherBatTests`: it still searched for an exact bare `exit /b`. Updated it in `674c6676` to require `exit /b %ERRORLEVEL%` and kept the CRLF byte-offset and colon-padding assertions. The updated test passes with the patched batch and fails with the merged parent's bare exit. The whole launcher module passed locally (86 passes, one skip), and the independent read-only re-review passed. GitHub has started CI for the new head. AI-assisted.
fiestorra commented 2026-12-03 01:46:20 +00:00 (Migrated from github.com)

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


After #3182 landed: #3273 is one line away from main, and it is the line its test wants

main moved to d15e048a7 at 01:11 — #3182 (the launcher overhaul) is in, tools/leonida_launcher.py +3 521 lines, 10 files, +6 110/−465.

And the whole of this pull request's content went with it, except one line:

git diff origin/main...pr/3273
  diff --git a/Launcher.bat b/Launcher.bat
  -exit /b
  +exit /b %ERRORLEVEL%

Which is exactly the line that made this branch red in my last comment: its own test looks for exit /b\r\n:start\r\n, the file has exit /b %ERRORLEVEL%, and %ERRORLEVEL% is the change the commit message promises ("the update's exit code survives the old-to-new rewrite").

So the picture is now: main has the exit /b (no code), this branch has the fix, and its test — 87 of them — is also in the branch and not in main (main's test_leonida_launcher.py runs 26 tests; this branch runs 87).

What that means, and it is a single decision:

  • if the exit code should survive, this pull request is a one-line merge plus its 61 added tests, and the test needs the literal fixed (exit /b %ERRORLEVEL%\r\n:start\r\n, as I said) — the branch is the source of both;
  • if exit /b is right, the pull request is closed and only its tests are worth salvaging — 61 tests that main does not have.

And #3272 is no longer a duplicate of it either: it is 6 files and +335/−95 against the new main — its launcher changes did not all land with #3182 — so the two are now different work, not two versions of one.

I would take the first: %ERRORLEVEL% is how a batch file keeps an exit code, main losing it is the bug, and 61 tests come with the fix. The literal is one word of the test.

My i18n branch still needs #3272 (the folder is not in main — I checked), and the two branches I pushed today are unaffected by d15e048a7: pr-3233-rebased and pr-3253-rebased still rebase on a main whose launcher files they do not touch.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364716139 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7364716139). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:46:20Z. --- ## After `#3182` landed: `#3273` is **one line** away from `main`, and it is the line its test wants **`main` moved to `d15e048a7` at 01:11 — `#3182` (the launcher overhaul) is in**, `tools/leonida_launcher.py` +3 521 lines, 10 files, +6 110/−465. **And the whole of this pull request's content went with it, except one line**: ``` git diff origin/main...pr/3273 diff --git a/Launcher.bat b/Launcher.bat -exit /b +exit /b %ERRORLEVEL% ``` **Which is exactly the line that made this branch red in my last comment**: **its own test looks for `exit /b\r\n:start\r\n`, the file has `exit /b %ERRORLEVEL%`, and `%ERRORLEVEL%` is the change the commit message promises** (*"the update's exit code survives the old-to-new rewrite"*). **So the picture is now**: **`main` has the `exit /b` (no code), this branch has the fix, and its test — 87 of them — is also in the branch and not in `main`** (`main`'s `test_leonida_launcher.py` runs **26** tests; this branch runs **87**). **What that means, and it is a single decision**: - **if the exit code should survive**, **this pull request is a one-line merge plus its 61 added tests**, **and the test needs the literal fixed** (`exit /b %ERRORLEVEL%\r\n:start\r\n`, as I said) — **the branch is the source of both**; - **if `exit /b` is right**, **the pull request is closed and only its tests are worth salvaging** — **61 tests that `main` does not have**. **And `#3272` is no longer a duplicate of it either**: **it is 6 files and +335/−95 against the new `main`** — **its launcher changes did not all land with `#3182`** — **so the two are now different work, not two versions of one.** **I would take the first**: **`%ERRORLEVEL%` is how a batch file keeps an exit code, `main` losing it is the bug, and 61 tests come with the fix.** **The literal is one word of the test.** **My i18n branch still needs `#3272`** (the folder is not in `main` — I checked), **and the two branches I pushed today are unaffected by `d15e048a7`**: **`pr-3233-rebased` and `pr-3253-rebased` still rebase on a `main` whose launcher files they do not touch.**
fiestorra commented 2026-12-03 01:48:26 +00:00 (Migrated from github.com)

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


Correction, and the branch is rebased: #3273 is now 3 added lines against main, green on all 87 tests

First, a number I got wrong in my last comment: I said main's test_leonida_launcher.py runs 26 tests. It runs 87 — and they all pass. The 26 was my working tree, still at d5b30be1c while origin/main had already moved to d15e048a7. I ran the old checkout and reported it as main — the same trap as the filters I complained about an hour ago, this time in a cd I did not re-do after fetching.

What d15e048a7 actually has, measured after git reset --hard origin/main:

tests/test_leonida_launcher.py        Ran 87 tests — OK
Launcher.bat contains 'exit /b %ERRORLEVEL%'   →  false

So main has the bare exit /b, and this pull request's whole remaining content against it is:

Launcher.bat                    -exit /b          +exit /b %ERRORLEVEL%
tests/test_leonida_launcher.py  the literal the test reads, which now has %ERRORLEVEL% in it

Two lines, and I rebased and pushed it so nobody has to:

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

Verified on that branch:

python tests/test_leonida_launcher.py     Ran 87 tests — OK
git diff --stat origin/main..HEAD         2 files changed, 3 insertions(+), 2 deletions(-)

Why the test had to move with the code, said once more plainly: it reads Launcher.bat as bytes and wanted exit /b\r\n:start; the change makes that line exit /b %ERRORLEVEL%\r\n:start, so the test that pinned the old spelling now pins the new one. The comment above the assertion already says what the code is for — "That exit is exit /b with no code: an update run from the console keeps git's or the build's…" — and %ERRORLEVEL% is how a batch file keeps it.

What this does not change: #3272 is still different work (6 files, +335/−95 against d15e048a7), and my test-launcher-i18n branch still needs #3272 — the folder is not in main.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364755695 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7364755695). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:48:26Z. --- ## Correction, and the branch is rebased: **`#3273` is now 3 added lines against `main`, green on all 87 tests** **First, a number I got wrong in my last comment**: I said `main`'s `test_leonida_launcher.py` **runs 26 tests**. **It runs 87 — and they all pass.** **The 26 was my working tree, still at `d5b30be1c` while `origin/main` had already moved to `d15e048a7`.** **I ran the old checkout and reported it as `main`** — the same trap as the filters I complained about an hour ago, this time in a `cd` I did not re-do after fetching. **What `d15e048a7` actually has, measured after `git reset --hard origin/main`**: ``` tests/test_leonida_launcher.py Ran 87 tests — OK Launcher.bat contains 'exit /b %ERRORLEVEL%' → false ``` **So `main` has the bare `exit /b`, and this pull request's whole remaining content against it is**: ``` Launcher.bat -exit /b +exit /b %ERRORLEVEL% tests/test_leonida_launcher.py the literal the test reads, which now has %ERRORLEVEL% in it ``` **Two lines, and I rebased and pushed it so nobody has to**: ``` https://github.com/fiestorra/leonida-carry/pull/new/pr-3273-rebased head f6c547c05, based on d15e048a7, author unchanged (Luiz Neves) ``` **Verified on that branch**: ``` python tests/test_leonida_launcher.py Ran 87 tests — OK git diff --stat origin/main..HEAD 2 files changed, 3 insertions(+), 2 deletions(-) ``` **Why the test had to move with the code, said once more plainly**: **it reads `Launcher.bat` as bytes and wanted `exit /b\r\n:start`; the change makes that line `exit /b %ERRORLEVEL%\r\n:start`, so the test that pinned the old spelling now pins the new one.** **The comment above the assertion already says what the code is for** — *"That exit is `exit /b` with no code: an update run from the console keeps git's or the build's…"* — **and `%ERRORLEVEL%` is how a batch file keeps it.** **What this does not change**: **`#3272` is still different work** (6 files, +335/−95 against `d15e048a7`), **and my `test-launcher-i18n` branch still needs `#3272`** — **the folder is not in `main`.** Written with an AI assistant.
merzleckeier commented 2026-12-03 01:51:57 +00:00 (Migrated from github.com)

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


Thanks for checking the launcher tests. This PR already contains the runtime and test changes at 674c6676 on d15e048a, including the original byte-offset and padding checks. GitHub’s linux-python-and-viewer job now passes on that commit. The remaining check job is running. Please keep any follow-up reviews on this PR and commit. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364822268 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7364822268). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T01:51:57Z. --- Thanks for checking the launcher tests. This PR already contains the runtime and test changes at `674c6676` on `d15e048a`, including the original byte-offset and padding checks. GitHub’s `linux-python-and-viewer` job now passes on that commit. The remaining `check` job is running. Please keep any follow-up reviews on this PR and commit. AI-assisted.
fiestorra commented 2026-12-03 01:53:52 +00:00 (Migrated from github.com)

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


Confirmed on 674c6676e — and my pr-3273-rebased is superseded by it

Your fix is the one, and the branch is red no more:

head 674c6676e, on d15e048a7
tests/test_leonida_launcher.py     Ran 87 tests — OK
tests/test_leonida_saves.py        Ran 28 tests — OK
git diff --stat origin/main...head  2 files changed, 6 insertions(+), 4 deletions(-)

So the stale literal is gone, and the two-file, six-line diff is the whole of it — the exit /b %ERRORLEVEL% line plus the assertion that reads it.

Which means the branch I pushed an hour ago is dead, and I am saying so rather than leaving it in the queue: pr-3273-rebased (f6c547c05) does the same two files by hand, and yours is better — it comes from the author, it is on the current base, and it carries your own wording of why the assertion moved. Nobody should open mine; if you want it gone from the fork, say so and I will delete the branch.

What I keep from it is the confirmation, not the patch: two of us, with two different checkouts, found the same stale assertion in the same test — you from the Linux job, I from reading Launcher.bat's bytes — and that is the useful part: the same test failed for the same reason from a CI runner and from a Windows machine, which is what a test that reads a file should do.

And the part of my earlier comment that still stands: main's Launcher.bat has the bare exit /b, this pull request's change is the line that keeps the code, and the comment above the assertion — "That exit is exit /b with no code…" — is now describing the old spelling. Your 674c6676 moves the assertion; the sentence above it may want the same treatment in a later pass.

Thank you for the reply and for the fix.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364857545 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7364857545). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:53:52Z. --- ## Confirmed on `674c6676e` — and my `pr-3273-rebased` is superseded by it **Your fix is the one, and the branch is red no more**: ``` head 674c6676e, on d15e048a7 tests/test_leonida_launcher.py Ran 87 tests — OK tests/test_leonida_saves.py Ran 28 tests — OK git diff --stat origin/main...head 2 files changed, 6 insertions(+), 4 deletions(-) ``` **So the stale literal is gone, and the two-file, six-line diff is the whole of it** — **the `exit /b %ERRORLEVEL%` line plus the assertion that reads it.** **Which means the branch I pushed an hour ago is dead, and I am saying so rather than leaving it in the queue**: **`pr-3273-rebased` (`f6c547c05`) does the same two files by hand, and yours is better** — **it comes from the author, it is on the current base, and it carries your own wording of why the assertion moved.** **Nobody should open mine; if you want it gone from the fork, say so and I will delete the branch.** **What I keep from it is the confirmation, not the patch**: **two of us, with two different checkouts, found the same stale assertion in the same test** — **you from the Linux job, I from reading `Launcher.bat`'s bytes** — **and that is the useful part: the same test failed for the same reason from a CI runner and from a Windows machine, which is what a test that reads a file should do.** **And the part of my earlier comment that still stands**: **`main`'s `Launcher.bat` has the bare `exit /b`**, **this pull request's change is the line that keeps the code**, **and the comment above the assertion — *"That exit is `exit /b` with no code…"* — is now describing the old spelling.** **Your `674c6676` moves the assertion; the sentence above it may want the same treatment in a later pass.** **Thank you for the reply and for the fix.**
OreoFR commented 2026-12-03 03:36:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:36:34Z.


Thanks @merzleckeier. At OreoFR's request (one PR for the launcher's follow-ups), both commits are carried into #3272 with your authorship kept, cherry-picked with -x: f88239534 and 29085dbf2 on its branch. Launcher.bat now passes the updater's status explicitly on the resume path. The launcher suite and the line-ending checks pass there. This PR can be closed once #3272 merges. (oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7366746304 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7366746304). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T03:36:34Z. --- Thanks @merzleckeier. At OreoFR's request (one PR for the launcher's follow-ups), both commits are carried into #3272 with your authorship kept, cherry-picked with `-x`: f88239534 and 29085dbf2 on its branch. Launcher.bat now passes the updater's status explicitly on the resume path. The launcher suite and the line-ending checks pass there. This PR can be closed once #3272 merges. (oreofr-agent, AI-assisted)
merzleckeier commented 2026-12-03 04:29:40 +00:00 (Migrated from github.com)

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


Closing as carried by #3272, now merged into main at d9b618f10. Both commits (f88239534 and 29085dbf2) are in main, and Launcher.bat retains the explicit updater exit status.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367708376 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7367708376). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T04:29:40Z. --- Closing as carried by #3272, now merged into `main` at `d9b618f10`. Both commits (`f88239534` and `29085dbf2`) are in `main`, and `Launcher.bat` retains the explicit updater exit status.
ecox982745 commented 2026-12-03 05:07:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-12-03T05:07:01Z.


The updater status fix carried into #3272 also reproduces on native Windows CMD. In a temporary folder I started the CRLF Launcher.bat from 1a163523. A synthetic updater verified the argument containing a space and an exclamation mark, replaced the running batch, and returned 0, 7, 128 or 255.

With the d15e048a replacement, direct invocation returned 0 for all four, while CALL already preserved the four statuses on Windows. With the d9b618f1 replacement, both direct invocation and CALL returned all four expected statuses. That adds native CMD coverage to the Wine check in this PR. No real update, game or GPU workload. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368391194 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3273#issuecomment-7368391194). Originally posted by [ecox982745](https://github.com/ecox982745) on 2026-12-03T05:07:01Z. --- The updater status fix carried into #3272 also reproduces on native Windows CMD. In a temporary folder I started the CRLF Launcher.bat from 1a163523. A synthetic updater verified the argument containing a space and an exclamation mark, replaced the running batch, and returned 0, 7, 128 or 255. With the d15e048a replacement, direct invocation returned 0 for all four, while CALL already preserved the four statuses on Windows. With the d9b618f1 replacement, both direct invocation and CALL returned all four expected statuses. That adds native CMD coverage to the Wine check in this PR. No real update, game or GPU workload. AI-assisted with OpenAI Codex.

Pull request closed

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!3273
No description provided.