Launcher: add a Series S profile radio to the UI #3130

Open
Raesdf wants to merge 4 commits from upstream-pr/3130 into main
Raesdf commented 2026-12-02 12:59:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Raesdf on 2026-12-02T12:59:07Z.


Fixes #3108

Summary

The Launcher's Settings page had no way to pick the Series S console profile — Series X was the only console option (as a checkbox), so Series S was only reachable from the PowerShell -SeriesS switch. This adds a "Console profile" radio group (Series X / Series S) to the Settings page, so exactly one profile is always selected.

Design note: I used a radio group instead of a second checkbox because two checkboxes can't guarantee exactly one profile is active (both could be unchecked). A radio always has one selected. When neither profile is saved, the radio defaults to the platform profile: Series X on Windows (play-d3d12.ps1 defaults to Series X) and Series S on Linux (play-linux.sh defaults to Series S).

Changes

  • tools/leonida_launcher.py: removed the Series X checkbox from the checks list; added a "Console profile" radio group (one shared StringVar, series_x / series_s); the radio restores a saved Series S choice and defaults to the platform profile; collect_settings maps the radio value back to series_s / series_x (no new settings key). The backend (DEFAULTS, normalise(), switch_args(), play_command()) is unchanged — it already handled series_s / series_x correctly.

Tests

  • python -I tests/test_leonida_launcher.py — 23 tests, OK.
  • Opened the Launcher: the "Console profile" radio shows with Series X selected by default (Windows); selecting Series S and pressing PLAY runs the game with -SeriesS (verified: the game launched on Series S and started building its pipelines).
  • Linux default verified by code reading (no Linux machine available); the unit test covers the Linux play_command path.

GPUs tested

  • RTX 2070 8 GB, i5-9600K, 16 GB RAM, Windows 11

AI assistance

  • Drafted with DeepSeek V4.1 Flash via OpenCode; reviewed and tested by me. A separate read-only reviewer agent reviewed the change (per CONTRIBUTING.md).
    image
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5606893278 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130). Originally posted by [Raesdf](https://github.com/Raesdf) on 2026-12-02T12:59:07Z. --- Fixes #3108 ## Summary The Launcher's Settings page had no way to pick the Series S console profile — Series X was the only console option (as a checkbox), so Series S was only reachable from the PowerShell `-SeriesS` switch. This adds a "Console profile" radio group (Series X / Series S) to the Settings page, so exactly one profile is always selected. Design note: I used a radio group instead of a second checkbox because two checkboxes can't guarantee exactly one profile is active (both could be unchecked). A radio always has one selected. When neither profile is saved, the radio defaults to the platform profile: Series X on Windows (play-d3d12.ps1 defaults to Series X) and Series S on Linux (play-linux.sh defaults to Series S). ## Changes - `tools/leonida_launcher.py`: removed the Series X checkbox from the `checks` list; added a "Console profile" radio group (one shared StringVar, `series_x` / `series_s`); the radio restores a saved Series S choice and defaults to the platform profile; `collect_settings` maps the radio value back to `series_s` / `series_x` (no new settings key). The backend (`DEFAULTS`, `normalise()`, `switch_args()`, `play_command()`) is unchanged — it already handled `series_s` / `series_x` correctly. ## Tests - `python -I tests/test_leonida_launcher.py` — 23 tests, OK. - Opened the Launcher: the "Console profile" radio shows with Series X selected by default (Windows); selecting Series S and pressing PLAY runs the game with `-SeriesS` (verified: the game launched on Series S and started building its pipelines). - Linux default verified by code reading (no Linux machine available); the unit test covers the Linux `play_command` path. ## GPUs tested - RTX 2070 8 GB, i5-9600K, 16 GB RAM, Windows 11 ## AI assistance - Drafted with DeepSeek V4.1 Flash via OpenCode; reviewed and tested by me. A separate read-only reviewer agent reviewed the change (per CONTRIBUTING.md). <img width="1088" height="693" alt="image" src="https://github.com/user-attachments/assets/65c5e6c5-849f-42fc-83a4-3a52b3d2ae56" />
merzleckeier commented 2026-12-02 14:00:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T14:00:34Z.

Review: COMMENTED


Windows regression with existing settings and an F1 console choice. With both launcher profile flags unset, simply collecting the untouched Settings page writes series_x=True. PLAY then sends -SeriesX as an explicit switch. play-d3d12.ps1 adds it to Typed, and play-nvidia.ps1 gives that switch precedence and removes the saved F1 console value.

I ran the actual Settings methods with synthetic Tk widgets, then both PowerShell wrappers (PowerShell 7.4.21 on Linux with synthetic CIM responses and a child that only reports its arguments). Starting with LEONIDA_MENU_CONSOLE=series-s:

Arm Launcher profile switch Child receives F1 console retained
main 2fc7383b9 none Series S yes
main + d787ada5b -SeriesX Series X no

Explicit Series S and X both work on Windows. The Linux default leaves the flag out and selecting X sends --series-x. All 23 launcher tests passed, and the tested files are unchanged on current main 69cd4106c. Please keep an unset legacy profile implicit until a user chooses a radio option, so a displayed platform fallback does not become an explicit override. CPU only, synthetic inputs. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6152271463 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#pullrequestreview-6152271463). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T14:00:34Z. **Review:** COMMENTED --- **Windows regression with existing settings and an F1 console choice.** With both launcher profile flags unset, simply collecting the untouched Settings page writes `series_x=True`. PLAY then sends `-SeriesX` as an explicit switch. `play-d3d12.ps1` adds it to `Typed`, and `play-nvidia.ps1` gives that switch precedence and removes the saved F1 console value. I ran the actual Settings methods with synthetic Tk widgets, then both PowerShell wrappers (PowerShell 7.4.21 on Linux with synthetic CIM responses and a child that only reports its arguments). Starting with `LEONIDA_MENU_CONSOLE=series-s`: | Arm | Launcher profile switch | Child receives | F1 console retained | |---|---|---|---| | main `2fc7383b9` | none | Series S | yes | | main + `d787ada5b` | `-SeriesX` | Series X | no | Explicit Series S and X both work on Windows. The Linux default leaves the flag out and selecting X sends `--series-x`. All 23 launcher tests passed, and the tested files are unchanged on current main `69cd4106c`. Please keep an unset legacy profile implicit until a user chooses a radio option, so a displayed platform fallback does not become an explicit override. CPU only, synthetic inputs. AI-assisted with OpenAI Codex.
Raesdf commented 2026-12-02 14:20:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Raesdf on 2026-12-02T14:20:44Z.


Thanks for catching this — fixed in the latest push. A legacy profile with neither flag set now stays implicit until the user picks a radio option (tracked with _console_touched), so the displayed platform fallback no longer becomes an explicit override. Also styled TRadiobutton dark in every state, so hovering a radio option no longer turns its label white.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348388919 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7348388919). Originally posted by [Raesdf](https://github.com/Raesdf) on 2026-12-02T14:20:44Z. --- Thanks for catching this — fixed in the latest push. A legacy profile with neither flag set now stays implicit until the user picks a radio option (tracked with _console_touched), so the displayed platform fallback no longer becomes an explicit override. Also styled TRadiobutton dark in every state, so hovering a radio option no longer turns its label white.
merzleckeier commented 2026-12-02 15:02:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T15:02:03Z.


Retested the F1-preference fix in 11099d76 merged onto main 43fc605e. In a real Tk 8.6.16 launcher with a temporary legacy launcher.json, changing Resolution and invoking Save kept both console flags false. The generated Windows command had no console option, so the existing script’s F1 preference remains eligible. Invoking each radio option then saved exactly one flag and generated the matching -SeriesS or -SeriesX. For the Linux command, only Series X generated --series-x, with Series S using the shell script’s default.

All 23 launcher tests passed and the Settings grid had no overlapping cells in the Tk probe. The GUI ran on Linux with the Windows branch simulated. This verifies the settings and generated commands using synthetic data. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7349587929 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7349587929). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T15:02:03Z. --- Retested the F1-preference fix in `11099d76` merged onto `main` `43fc605e`. In a real Tk 8.6.16 launcher with a temporary legacy `launcher.json`, changing Resolution and invoking Save kept both console flags false. The generated Windows command had no console option, so the existing script’s F1 preference remains eligible. Invoking each radio option then saved exactly one flag and generated the matching `-SeriesS` or `-SeriesX`. For the Linux command, only Series X generated `--series-x`, with Series S using the shell script’s default. All 23 launcher tests passed and the Settings grid had no overlapping cells in the Tk probe. The GUI ran on Linux with the Windows branch simulated. This verifies the settings and generated commands using synthetic data. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-02 18:28:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:28:03Z.


Re-checked #3130 at 4d2bb4f37: it now merges cleanly with main and the launcher tests pass. Headless only (no Tk here). It conflicts with #3182, which adds its own Series S / X control.

Head 4d2bb4f37 (merge of main 5b1fff821 into 11099d76d; no new code commits)
main 45dc41f95, merge base 5b1fff821 (3 commits behind: #3172)
Merge git merge --no-ff onto main: clean (e7c66de5). The needs rebase label is stale
CI no check runs on this head (mergeable_state blocked)
Machine Linux, Python 3.13, no tkinter, no GPU, no game files

Conflict resolution checked. The merge commit copied #3172's precompile lines (precompile_all default True, -PrecompileUsed, the normalise clear) into the branch, so git diff origin/main <merge> on tools/leonida_launcher.py is only the radio change (+28/-1): the TRadiobutton style, the console_row with two radios, and the collect_settings branch that keeps an untouched legacy profile implicit. The grid still fits: 10 check boxes on rows 0 to 4, the console row on row 5 (len(checks) // 2), resolution on 6.

Ran on the merge

Command Result
python -I tests/test_leonida_launcher.py 26 tests, OK
python -m compileall -q tools/leonida_launcher.py OK
python -I scripts/check_no_game_data.py tools/leonida_launcher.py exit 0
git diff --check origin/main HEAD clean

Red/green does not apply: the change is GUI-only and adds no test. merzleckeier's Tk retest of the F1-preference fix (on 11099d76d + 43fc605e) covers the same code, which the merge did not change.

Findings

  1. Overlap with #3182: git merge-tree --write-tree refs/pr/3182 refs/pr/3130 conflicts in tools/leonida_launcher.py. #3182 rewrites the Settings page and already has a Series S / Series X "Profile" control (tools/leonida_launcher.py:1692 there) with the same "leave the F1 choice alone on Windows" rule. Whichever lands second must be reconciled, and if #3182 lands, this PR is superseded. Worth agreeing on one before more work.
  2. The collect_settings console logic (lines around 948-957 on the merge) has no unit test; it is reachable only through Tk. Moving the mapping into a small pure function (console_flags(settings, value, touched)) would let tests/test_leonida_launcher.py cover the legacy case headlessly.

Verdict: ready if #3182 is not taken; otherwise superseded. The earlier conflict with main is fixed. Not seen on a real display at this head.

AI-assisted: Claude Opus 5.5 (Claude Code), verification only.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354633233 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7354633233). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:28:03Z. --- **Re-checked #3130 at `4d2bb4f37`: it now merges cleanly with `main` and the launcher tests pass. Headless only (no Tk here). It conflicts with #3182, which adds its own Series S / X control.** | | | |---|---| | Head | `4d2bb4f37` (merge of `main` `5b1fff821` into `11099d76d`; no new code commits) | | `main` | `45dc41f95`, merge base `5b1fff821` (3 commits behind: #3172) | | Merge | `git merge --no-ff` onto `main`: clean (`e7c66de5`). The `needs rebase` label is stale | | CI | no check runs on this head (`mergeable_state` blocked) | | Machine | Linux, Python 3.13, no tkinter, no GPU, no game files | **Conflict resolution checked.** The merge commit copied #3172's precompile lines (`precompile_all` default True, `-PrecompileUsed`, the `normalise` clear) into the branch, so `git diff origin/main <merge>` on `tools/leonida_launcher.py` is only the radio change (+28/-1): the `TRadiobutton` style, the `console_row` with two radios, and the `collect_settings` branch that keeps an untouched legacy profile implicit. The grid still fits: 10 check boxes on rows 0 to 4, the console row on row 5 (`len(checks) // 2`), resolution on 6. **Ran on the merge** | Command | Result | |---|---| | `python -I tests/test_leonida_launcher.py` | 26 tests, OK | | `python -m compileall -q tools/leonida_launcher.py` | OK | | `python -I scripts/check_no_game_data.py tools/leonida_launcher.py` | exit 0 | | `git diff --check origin/main HEAD` | clean | Red/green does not apply: the change is GUI-only and adds no test. merzleckeier's Tk retest of the F1-preference fix (on `11099d76d` + `43fc605e`) covers the same code, which the merge did not change. **Findings** 1. Overlap with #3182: `git merge-tree --write-tree refs/pr/3182 refs/pr/3130` conflicts in `tools/leonida_launcher.py`. #3182 rewrites the Settings page and already has a Series S / Series X "Profile" control (`tools/leonida_launcher.py:1692` there) with the same "leave the F1 choice alone on Windows" rule. Whichever lands second must be reconciled, and if #3182 lands, this PR is superseded. Worth agreeing on one before more work. 2. The `collect_settings` console logic (lines around 948-957 on the merge) has no unit test; it is reachable only through Tk. Moving the mapping into a small pure function (`console_flags(settings, value, touched)`) would let `tests/test_leonida_launcher.py` cover the legacy case headlessly. **Verdict: ready if #3182 is not taken; otherwise superseded.** The earlier conflict with `main` is fixed. Not seen on a real display at this head. AI-assisted: Claude Opus 5.5 (Claude Code), verification only. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
fiestorra commented 2026-12-03 00:16:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T00:16:59Z.


VERIFY-3130 — rojo en su propio head: rompe un test que main pasa

This is the first pull request tonight whose own suite is red, and the difference is measurable:

main (81efe4566):        python -I tests/test_leonida_launcher.py   Ran 26 tests — OK
the PR's head (4d2bb4f37):                                        Ran 26 tests — FAILED (failures=1)
FAIL: test_precompile_all_only_with_the_precompile
  self.assertIn("-PrecompileAll", launcher.switch_args(settings(precompile_all=True)))
  AssertionError: '-PrecompileAll' not found in []

And the pull request does not touch the test file (tools/leonida_launcher.py only, +34/−6), so this is not a test that needs updating with the change — it is a test the change contradicts.

What the change does, from its own diff:

-    "precompile_all": False, # -PrecompileAll
+    "precompile_all": True, # off = -PrecompileUsed
+    if not settings["precompile"]:
+        settings["precompile_all"] = False
-    elif settings["precompile_all"]:
-        args.append("-PrecompileAll")
+    elif not settings["precompile_all"]:
+        args.append("-PrecompileUsed")

precompile_all becomes the default and the switch flips to -PrecompileUsed — a coherent design, and precisely the one the old test forbids: "precompile all only with the precompile" asserts that -PrecompileAll is passed when precompile_all=True, which the new code no longer does because it is the default.

So the change may well be right and the test wrong — but then the test has to change in the same pull request, because the alternative is merging a red suite and calling the red "expected". Two lines in tests/test_leonida_launcher.py would settle it: assert -PrecompileUsed for precompile_all=False, and assert no switch at all for True.

The other half of the change looks right and is untested: "keep an unset console profile implicit and fix the radio hover background" — an unset value should not become an explicit one, and a hover colour is a UI detail, neither of which the suite can see.

What I could not test

  • The launcher's menu: the tests drive switch_args and the settings; the hover colour is behind a window.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7363010120 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7363010120). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T00:16:59Z. --- ## VERIFY-3130 — **rojo en su propio head**: rompe un test que `main` pasa **This is the first pull request tonight whose own suite is red, and the difference is measurable:** ``` main (81efe4566): python -I tests/test_leonida_launcher.py Ran 26 tests — OK the PR's head (4d2bb4f37): Ran 26 tests — FAILED (failures=1) ``` ``` FAIL: test_precompile_all_only_with_the_precompile self.assertIn("-PrecompileAll", launcher.switch_args(settings(precompile_all=True))) AssertionError: '-PrecompileAll' not found in [] ``` **And the pull request does not touch the test file** (`tools/leonida_launcher.py` only, +34/−6), so **this is not a test that needs updating with the change — it is a test the change contradicts.** **What the change does, from its own diff**: ```diff - "precompile_all": False, # -PrecompileAll + "precompile_all": True, # off = -PrecompileUsed + if not settings["precompile"]: + settings["precompile_all"] = False - elif settings["precompile_all"]: - args.append("-PrecompileAll") + elif not settings["precompile_all"]: + args.append("-PrecompileUsed") ``` **`precompile_all` becomes the default and the switch flips to `-PrecompileUsed`** — **a coherent design, and precisely the one the old test forbids**: *"precompile all only with the precompile"* asserts that **`-PrecompileAll` is passed when `precompile_all=True`**, **which the new code no longer does because it is the default.** **So the change may well be right and the test wrong** — **but then the test has to change in the same pull request**, **because the alternative is merging a red suite and calling the red "expected".** **Two lines in `tests/test_leonida_launcher.py` would settle it**: assert `-PrecompileUsed` for `precompile_all=False`, and assert **no switch at all** for `True`. **The other half of the change looks right and is untested**: *"keep an unset console profile implicit and fix the radio hover background"* — **an unset value should not become an explicit one**, **and a hover colour is a UI detail**, **neither of which the suite can see.** ## What I could not test - **The launcher's menu**: the tests drive `switch_args` and the settings; **the hover colour is behind a window**. Written with an AI assistant.
fiestorra commented 2026-12-03 01:27:05 +00:00 (Migrated from github.com)

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


Correction: this does not break a test — its copy of the test is older than main's

I said earlier tonight that this pull request "contradicts" an existing test and needed two lines in tests/test_leonida_launcher.py. That was wrong, and here is the measurement that says so.

The branch's script + main's test file:

python tests/test_leonida_launcher.py       Ran 26 tests — OK

The branch's own copy of the test file differs from main's by 8 insertions and 5 deletions, and the difference is exactly this rule:

# main (the current one)
def test_precompile_all_only_with_the_precompile(self):
    defaults = launcher.normalise({})
    self.assertTrue(defaults["precompile_all"])
    self.assertEqual(launcher.switch_args(defaults), [])          # no switch: it is the default
    saved = launcher.normalise({"precompile_all": False})
    self.assertEqual(launcher.switch_args(saved), ["-PrecompileUsed"])

# the branch's copy
    self.assertIn("-PrecompileAll", launcher.switch_args(settings(precompile_all=True)))

So main already asserts what this pull request implements — precompile_all on by default, -PrecompileUsed when it is off — and the red at the branch's head is a copy that has not seen that commit.

What this changes: no test needs writing; the branch needs rebasing onto main, and after that its suite is green (26/26, measured here with its own script and main's test).

I have corrected my comment rather than left the wrong diagnosis standing, because "a test contradicts the change" and "the branch has not seen main" lead to different work, and the second is a rebase that whoever merges it can do.

What the change itself does is fine: the restart keeps an unset console profile implicit, and the radio hover's background is fixed — neither of which the suite can see.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364356646 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7364356646). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:27:05Z. --- ## Correction: this does **not** break a test — **its copy of the test is older than `main`'s** **I said earlier tonight that this pull request "contradicts" an existing test and needed two lines in `tests/test_leonida_launcher.py`.** **That was wrong, and here is the measurement that says so.** **The branch's script + `main`'s test file:** ``` python tests/test_leonida_launcher.py Ran 26 tests — OK ``` **The branch's own copy of the test file differs from `main`'s by 8 insertions and 5 deletions**, and the difference is exactly this rule: ```python # main (the current one) def test_precompile_all_only_with_the_precompile(self): defaults = launcher.normalise({}) self.assertTrue(defaults["precompile_all"]) self.assertEqual(launcher.switch_args(defaults), []) # no switch: it is the default saved = launcher.normalise({"precompile_all": False}) self.assertEqual(launcher.switch_args(saved), ["-PrecompileUsed"]) # the branch's copy self.assertIn("-PrecompileAll", launcher.switch_args(settings(precompile_all=True))) ``` **So `main` already asserts what this pull request implements** — **`precompile_all` on by default, `-PrecompileUsed` when it is off** — **and the red at the branch's head is a copy that has not seen that commit.** **What this changes**: **no test needs writing; the branch needs rebasing onto `main`**, **and after that its suite is green** (`26/26`, measured here with its own script and `main`'s test). **I have corrected my comment rather than left the wrong diagnosis standing**, **because "a test contradicts the change" and "the branch has not seen `main`" lead to different work**, **and the second is a rebase that whoever merges it can do.** **What the change itself does is fine**: **the restart keeps an unset console profile implicit**, **and the radio hover's background is fixed** — **neither of which the suite can see.** Written with an AI assistant.
fiestorra commented 2026-12-03 02:08:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:08:02Z.


Half of this landed in main with #3182; what is left is the console-profile row, and it is worth keeping

I said earlier tonight that this branch only needed a rebase. That was true at d5b30be1c; at d15e048a7 it is half-done.

main now has the precompile_all inversion — checked in its own file:

L60:   "precompile_all": True, # off = -PrecompileUsed
L124:  settings["precompile_all"] = False
L177:  elif not settings["precompile_all"]:
L178:      args.append("-PrecompileUsed")

So these four hunks of this pull request are now redundant — the default, the if not settings["precompile"] guard, and the -PrecompileUsed branch — and they are exactly the four that conflict with tools/leonida_launcher.py.

What is not in main, and is the reason to keep the branch:

  • the console-profile radio row — Console profile, Series X (-SeriesX, much slower), Series S (-SeriesS, for 8 GB cards), with its own _console_touched flag;
  • and that flag's comment is the whole design, stated better than I could:
# A legacy profile with neither flag set stays implicit until the
# user picks a radio option. The displayed platform fallback must
# not become an explicit override, or it would clobber a console
# chosen in the in-game F1 menu.

That is the same rule as #3104's and #3233's, in a third place: what the UI shows is not what the launcher must write. Showing Series X on Windows and saving -SeriesX would override the player's in-game choice — and doing nothing until they touch it is the correct half-measure.

  • and the radio hover styling (s.configure("TRadiobutton", …), s.map(…)), which is cosmetic and fine.

So the re-cut is small and mechanical: drop the four precompile_all hunks, keep the console row, the _console_touched logic and the styling — and the branch stops conflicting, because the only file it shares with main's rewrite is the one whose lines it no longer touches.

I would do it here, but the decision about which hunks to drop is this pull request's own history, not mine to cut — and the four I named are unambiguous, which is why I named them instead of "rebase it".

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365121834 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7365121834). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T02:08:02Z. --- ## Half of this landed in `main` with `#3182`; what is left is the console-profile row, and it is worth keeping **I said earlier tonight that this branch only needed a rebase. That was true at `d5b30be1c`; at `d15e048a7` it is half-done.** **`main` now has the `precompile_all` inversion** — **checked in its own file**: ``` L60: "precompile_all": True, # off = -PrecompileUsed L124: settings["precompile_all"] = False L177: elif not settings["precompile_all"]: L178: args.append("-PrecompileUsed") ``` **So these four hunks of this pull request are now redundant** — **the default, the `if not settings["precompile"]` guard, and the `-PrecompileUsed` branch** — **and they are exactly the four that conflict with `tools/leonida_launcher.py`.** **What is *not* in `main`, and is the reason to keep the branch**: - **the console-profile radio row** — **`Console profile`, `Series X (-SeriesX, much slower)`, `Series S (-SeriesS, for 8 GB cards)`**, **with its own `_console_touched` flag**; - **and that flag's comment is the whole design, stated better than I could**: ```python # A legacy profile with neither flag set stays implicit until the # user picks a radio option. The displayed platform fallback must # not become an explicit override, or it would clobber a console # chosen in the in-game F1 menu. ``` **That is the same rule as `#3104`'s and `#3233`'s, in a third place**: **what the UI shows is not what the launcher must write.** **Showing `Series X` on Windows and *saving* `-SeriesX` would override the player's in-game choice** — **and doing nothing until they touch it is the correct half-measure.** - **and the radio hover styling** (`s.configure("TRadiobutton", …)`, `s.map(…)`), **which is cosmetic and fine**. **So the re-cut is small and mechanical**: **drop the four `precompile_all` hunks, keep the console row, the `_console_touched` logic and the styling** — **and the branch stops conflicting**, **because the only file it shares with `main`'s rewrite is the one whose lines it no longer touches.** **I would do it here, but the decision about which hunks to drop is this pull request's own history, not mine to cut** — **and the four I named are unambiguous, which is why I named them instead of "rebase it".** Written with an AI assistant.
MoonEyes commented 2026-12-03 07:01:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T07:01:22Z.


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 latest main into 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370502620 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7370502620). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T07:01:22Z. --- 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 latest `main` into 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).
Raesdf commented 2026-12-03 10:39:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Raesdf on 2026-12-03T10:39:24Z.


While rebasing #3130 onto the new main (#3182), I checked the new Profile control against the behaviour #3130 had, and found one difference worth flagging:

Explicit "Series X" in the Launcher does not force Series X on Windows.

In settings_now() (tools/leonida_launcher.py, lines 4259-4264), for key == "profile":

settings["series_s"] = value == "s"
if value == "s":
    settings["series_x"] = False
if not WINDOWS:
    settings["series_x"] = value == "x"

So on Windows series_x is never set to True by the Profile control, and -SeriesX (switch_args(), lines 183-184, only sent if series_x and not series_s) is never sent for an explicit X choice.

Repro: set Series S in the in-game F1 menu and save, then pick "Series X" in the Launcher Profile and play. The Launcher shows Series X (series_s is False), but the game runs Series S — the saved F1 choice wins, because no -SeriesX is passed.

In #3130 an explicit X choice wrote series_x=True and sent -SeriesX, so the Launcher choice overrode F1. Here only S can be forced; X is just the default. (On non-Windows the series_x = value == "x" line does run, so this looks Windows-only.)

The rest matches #3130's design: platform default (X on Windows / S on Linux), a legacy profile with neither flag stays implicit, both flags can never be True at once, and the F1 choice is preserved when the Profile is untouched.

@MoonEyes — is this intended (X = default, F1 may override it) or a bug? Happy to look at a fix if you consider it one.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7375562829 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3130#issuecomment-7375562829). Originally posted by [Raesdf](https://github.com/Raesdf) on 2026-12-03T10:39:24Z. --- While rebasing #3130 onto the new main (#3182), I checked the new Profile control against the behaviour #3130 had, and found one difference worth flagging: **Explicit "Series X" in the Launcher does not force Series X on Windows.** In `settings_now()` (`tools/leonida_launcher.py`, lines 4259-4264), for `key == "profile"`: settings["series_s"] = value == "s" if value == "s": settings["series_x"] = False if not WINDOWS: settings["series_x"] = value == "x" So on Windows `series_x` is never set to `True` by the Profile control, and `-SeriesX` (`switch_args()`, lines 183-184, only sent if `series_x` and not `series_s`) is never sent for an explicit X choice. **Repro:** set Series S in the in-game F1 menu and save, then pick "Series X" in the Launcher Profile and play. The Launcher shows Series X (`series_s` is False), but the game runs Series S — the saved F1 choice wins, because no `-SeriesX` is passed. In #3130 an explicit X choice wrote `series_x=True` and sent `-SeriesX`, so the Launcher choice overrode F1. Here only S can be forced; X is just the default. (On non-Windows the `series_x = value == "x"` line does run, so this looks Windows-only.) The rest matches #3130's design: platform default (X on Windows / S on Linux), a legacy profile with neither flag stays implicit, both flags can never be True at once, and the F1 choice is preserved when the Profile is untouched. @MoonEyes — is this intended (X = default, F1 may override it) or a bug? Happy to look at a fix if you consider it one.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3130:upstream-pr/3130'
git switch 'upstream-pr/3130'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/3130'
git switch 'upstream-pr/3130'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3130'
git switch 'upstream-pr/3130'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3130'
git switch 'main'
git merge --squash 'upstream-pr/3130'
git switch 'main'
git merge --ff-only 'upstream-pr/3130'
git switch 'main'
git merge 'upstream-pr/3130'
git push origin 'main'
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!3130
No description provided.