refactor(ui): the engine is controls' behaviour, the kit their look, and the one place mods take them from #3069

Merged
HumanBean merged 15 commits from HumanBean/Longshot:refactor/ui-kit into main 2026-12-03 23:35:54 +00:00
Owner

Summary

Work in progress: the menu still needs trying by hand in the game.

On top of the engine and kit split described below, this PR now also has:

  • Fixes: holding a key moves through lists again; the banner's menu opens under its button; "DLAA before the bloom" shows only where it can be changed.
  • Teleport as a page of places, shorter rows, no "Unsafe" or "need you" labels for system mods, no confirmation for Enable cheats.
  • Menu themes as data mods; the built-in themes ship in the menu mod.
  • The menu reorganised: Cheats grouped, an inventory that shows what Link has, time of day on its row, Graphics and Developer sections on pages of their own.
  • A search over every setting (full width, with an icon). The field sits at the top of each page and scrolls with it; searching works a step a frame.
  • Fixed from review: quick successive changes of an inventory row build on each other (a game-free test).
  • mod test faster: a test per system mod, and the crates they run optimised in dev builds (about 11 minutes to under 3; these crates rebuild more slowly after an edit).

Testing of the later commits:

  • On the head 6bc22d6d (main 6318f405), Linux, game-free: shaders, FFI and schema generation, cargo check --workspace --all-targets, cargo test of the touched crates, the four mod tests (menu 71/71), Linux and Windows host builds, selected Python tests.
  • modtool: 269 passed, 1 failed (a_mod_written_off_the_first_time_is_installed_over_without_replace), which fails the same way on plain main.
  • Not passing, believed to be main's (the branch does not touch the code): clippy stops at builder/crates/build-core/src/sandbox_linux.rs:1050, so the touched crates are not fully linted on this base; website test 27 (table/menu graphics coverage mismatch at Profile). run_all was not re-run after the last rebase.
  • Search's worst frame in the menu test: 1.67 ms against a 2.00 ms limit (loaded PC, scaled).
  • In the game: an earlier head was played on Linux (RTX 3090); teleport and key repeat worked. This head has not run in the game.

With #3105: a copied mod starts off, and a mod that has only themes does not load into the running game: it needs a restart.

The engine and kit split

Mods' UI had two places to take controls from, and most inputs drew their look in Rust. Now the engine
(game/crates/ui) does controls' behaviour with as little look as it can, and the kit (longshot/ui/kit) draws
every look from theme tokens. The kit is also the one place a mod imports controls from.

What changes for mod authors (breaking; the mod API is not stable yet):

  • One import path. Import every control from longshot/ui/kit: Button, Checkbox, Choice, Slider,
    Keybind, TextInput, Tabs, HelpLine, plus the containers and rows. longshot/ui keeps the primitives and the
    headless engine parts the kit is made of: ChoiceBase, SliderBase, KeybindBase, TextInputBase, TabsBase.
  • The kit draws four inputs.
    • Choice: the engine keeps the arrows and the dropdown over everything; the kit draws the well, the value and
      the chevrons.
    • Slider: the engine maps the drag onto the child with part: "track", sizes the part: "fill" child to the
      value's share, and writes the part: "value" text.
    • Keybind: its children are selected while it waits for a key.
    • TextInput: the kit draws its box; the engine keeps typing, the caret and the selection.
  • New keys style state. It applies while the player uses the keyboard or a controller.
  • Every disabled input looks disabled (visible change): dimmed like a disabled Button. The Checkbox goes from
    0.5 to 0.45 opacity.
  • HelpLine and onHelp. HelpLine is a kit component; onHelp is a new prop on any Box. A mod's own window
    can show the label and help of the control the player is at, as the Insert menu's help card does for a hosted page.
  • Removed: Toggle; use Checkbox.
  • New tokens: $shadow, $sandInk, $icon, and "transparent" as a colour. The kit and the key cap no longer
    hardcode colours or icon sizes.
  • Tests: game.ui.theme(n) draws in a given Menu theme.
  • New example: ui-gallery shows every kit control in one window.

Fixed: a dropdown now opens on the side with room. In the compact menu, Render resolution's list opened down past
the card and under the hint bar, so options were cut off. A dropdown now opens below when its list fits there, above
when it fits there, otherwise on the side with more room and scrolls. It stays inside the hosted page above the hint
bar, and on screen for a window. This is the engine's placement (widgets::popup_rect, Core::popup_room), so every
mod's dropdown gets it.

Not moved:

  • Tabs' look stays in the engine. Its strip of titles, their scroll and the hosted page's titles drawn in the host's
    banner are about 500 lines of engine code.
  • The dropdown list keeps the engine's look (the popup layer).
  • The hint bar and compact mode stay the Insert menu's.

Read first:

  • game/modapi/ui/kit.tsx: Choice, Slider, Keybind, TextInput, HelpLine.
  • game/crates/ui/src/layout.rs: the Slider parts.
  • paint.rs: the input looks taken out.
  • core.rs: set_ring, set_listening, tell_help, popup_room.
  • widgets.rs: popup_rect.

Testing

Tested: Linux, RTX 3090, game-free:

  • Tests: game-ui, longshot-game, api, modtool (every system mod's and example's tests, the gallery's too).
  • Checks: fmt, clippy -D warnings, schema-gen and ffi-gen --check, tsgo on the gallery, dev.py rt. In the game: PASS on Linux, RTX 3090: headless dev.py smoke, in play from the kokiri-start save, 900 frames, the Insert menu opened and its page hosted; run_all --strict: 868 passed, 2 failed not from this change (test_vk_wb_cpu_words_fast.py: a renderer C++ test's std::min types under GCC 16; test_lifter.py: build-driver's dev_runtime test hit a file lock, WouldBlock), and modtool's sparkline cost test failed once under load and passes alone.
  • Pictures: made-up data, before and after, three themes × pointer and keys. They are the same except the
    disabled inputs, now dimmed. The Slider's track ends about 2 px earlier.
  • Website check: fails on main the same way ("The table names no condition for Dynamic resolution minimum"),
    not this change.

Still to test:

  • Any PC: the Insert menu, every tab, with mouse, keyboard and controller. Choices, sliders and keybinds look and
    behave as before. Switching from the mouse to the keys swaps a Choice's chevron for its arrows. Disabled rows look
    dimmed. (by hand)
  • Compact menu, Graphics tab: open Render resolution near the card's bottom with the mouse and with the controller.
    The list opens upward, inside the card, never under the hint bar. (by hand)
  • System/menu stopped: the fallback menu's Output resolution Choice. (by hand)

Measurements

Verdict: the menu's script cost is the same as main's within the spread between runs, well under every ceiling.

Setup: Linux, this PC, mod test --echo game/mods/menu (optimised builder), its menu cost: line; main and this
branch run alternately, twice each, in one queued job.

Before: main @ 796fdb0b After: this PR @ b915ae04
start (least of 5) 0.57, 0.58 ms 0.57, 0.59 ms
steady redraw (median of 60) 0.24, 0.27 ms 0.21, 0.29 ms
switch to Graphics 2.17, 2.16 ms 1.89, 2.26 ms
Graphics first shown 0.5, 0.4 ms 0.4, 0.5 ms

Risks

  • Mods: mods importing controls from longshot/ui, or using Toggle, need the new import path.
  • Bare parts draw nothing: a ChoiceBase, SliderBase or KeybindBase drawn without children shows nothing,
    which is intended.
  • Nothing changes in saves or options.
  • Undo: a revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (headless smoke passed; the menu still needs trying by hand, Still to test)
  • mise run test passes (any failure that also fails on main is named). (Run as its parts: run_all --strict 868 passed, 2 failed, neither from this change: test_vk_wb_cpu_words_fast and test_lifter (a build-driver file-lock test under load), both on main; the website check fails on main too, "Dynamic resolution minimum".)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. (dropdown placement: widgets and core tests)
  • A check under tests/ that reads changed source is updated, not weakened.
  • Screenshots of the same spot on main and here, for a change that shows on screen. (reference renderer, above)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ

## Summary **Work in progress:** the menu still needs trying by hand in the game. On top of the engine and kit split described below, this PR now also has: - Fixes: holding a key moves through lists again; the banner's menu opens under its button; "DLAA before the bloom" shows only where it can be changed. - Teleport as a page of places, shorter rows, no "Unsafe" or "need you" labels for system mods, no confirmation for Enable cheats. - Menu themes as data mods; the built-in themes ship in the menu mod. - The menu reorganised: Cheats grouped, an inventory that shows what Link has, time of day on its row, Graphics and Developer sections on pages of their own. - A search over every setting (full width, with an icon). The field sits at the top of each page and scrolls with it; searching works a step a frame. - Fixed from review: quick successive changes of an inventory row build on each other (a game-free test). - `mod test` faster: a test per system mod, and the crates they run optimised in dev builds (about 11 minutes to under 3; these crates rebuild more slowly after an edit). **Testing of the later commits:** - On the head `6bc22d6d` (main `6318f405`), Linux, game-free: shaders, FFI and schema generation, `cargo check --workspace --all-targets`, `cargo test` of the touched crates, the four mod tests (menu 71/71), Linux and Windows host builds, selected Python tests. - `modtool`: 269 passed, 1 failed (`a_mod_written_off_the_first_time_is_installed_over_without_replace`), which fails the same way on plain `main`. - Not passing, believed to be `main`'s (the branch does not touch the code): clippy stops at `builder/crates/build-core/src/sandbox_linux.rs:1050`, so the touched crates are not fully linted on this base; website test 27 (`table/menu graphics coverage mismatch at Profile`). `run_all` was not re-run after the last rebase. - Search's worst frame in the menu test: 1.67 ms against a 2.00 ms limit (loaded PC, scaled). - In the game: an earlier head was played on Linux (RTX 3090); teleport and key repeat worked. This head has not run in the game. **With #3105:** a copied mod starts off, and a mod that has only themes does not load into the running game: it needs a restart. ## The engine and kit split Mods' UI had two places to take controls from, and most inputs drew their look in Rust. Now the engine (`game/crates/ui`) does controls' behaviour with as little look as it can, and the kit (`longshot/ui/kit`) draws every look from theme tokens. The kit is also the one place a mod imports controls from. **What changes for mod authors** (breaking; the mod API is not stable yet): - **One import path.** Import every control from `longshot/ui/kit`: `Button`, `Checkbox`, `Choice`, `Slider`, `Keybind`, `TextInput`, `Tabs`, `HelpLine`, plus the containers and rows. `longshot/ui` keeps the primitives and the headless engine parts the kit is made of: `ChoiceBase`, `SliderBase`, `KeybindBase`, `TextInputBase`, `TabsBase`. - **The kit draws four inputs.** - `Choice`: the engine keeps the arrows and the dropdown over everything; the kit draws the well, the value and the chevrons. - `Slider`: the engine maps the drag onto the child with `part: "track"`, sizes the `part: "fill"` child to the value's share, and writes the `part: "value"` text. - `Keybind`: its children are `selected` while it waits for a key. - `TextInput`: the kit draws its box; the engine keeps typing, the caret and the selection. - **New `keys` style state.** It applies while the player uses the keyboard or a controller. - **Every disabled input looks disabled** (visible change): dimmed like a disabled Button. The Checkbox goes from 0.5 to 0.45 opacity. - **`HelpLine` and `onHelp`.** `HelpLine` is a kit component; `onHelp` is a new prop on any Box. A mod's own window can show the label and help of the control the player is at, as the Insert menu's help card does for a hosted page. - **Removed:** `Toggle`; use `Checkbox`. - **New tokens:** `$shadow`, `$sandInk`, `$icon`, and `"transparent"` as a colour. The kit and the key cap no longer hardcode colours or icon sizes. - **Tests:** `game.ui.theme(n)` draws in a given Menu theme. - **New example:** [ui-gallery](docs/modding/examples/ui-gallery) shows every kit control in one window. **Fixed:** a dropdown now opens on the side with room. In the compact menu, Render resolution's list opened down past the card and under the hint bar, so options were cut off. A dropdown now opens below when its list fits there, above when it fits there, otherwise on the side with more room and scrolls. It stays inside the hosted page above the hint bar, and on screen for a window. This is the engine's placement (`widgets::popup_rect`, `Core::popup_room`), so every mod's dropdown gets it. **Not moved:** - Tabs' look stays in the engine. Its strip of titles, their scroll and the hosted page's titles drawn in the host's banner are about 500 lines of engine code. - The dropdown list keeps the engine's look (the popup layer). - The hint bar and compact mode stay the Insert menu's. **Read first:** - `game/modapi/ui/kit.tsx`: Choice, Slider, Keybind, TextInput, HelpLine. - `game/crates/ui/src/layout.rs`: the Slider parts. - `paint.rs`: the input looks taken out. - `core.rs`: `set_ring`, `set_listening`, `tell_help`, `popup_room`. - `widgets.rs`: `popup_rect`. ## Testing **Tested:** Linux, RTX 3090, game-free: - **Tests:** game-ui, longshot-game, api, modtool (every system mod's and example's tests, the gallery's too). - **Checks:** fmt, clippy `-D warnings`, schema-gen and ffi-gen `--check`, tsgo on the gallery, `dev.py rt`. In the game: PASS on Linux, RTX 3090: headless dev.py smoke, in play from the kokiri-start save, 900 frames, the Insert menu opened and its page hosted; run_all --strict: 868 passed, 2 failed not from this change (test_vk_wb_cpu_words_fast.py: a renderer C++ test's std::min types under GCC 16; test_lifter.py: build-driver's dev_runtime test hit a file lock, WouldBlock), and modtool's sparkline cost test failed once under load and passes alone. - **Pictures:** made-up data, before and after, three themes × pointer and keys. They are the same except the disabled inputs, now dimmed. The Slider's track ends about 2 px earlier. - **Website check:** fails on main the same way ("The table names no condition for Dynamic resolution minimum"), not this change. **Still to test:** - Any PC: the Insert menu, every tab, with mouse, keyboard and controller. Choices, sliders and keybinds look and behave as before. Switching from the mouse to the keys swaps a Choice's chevron for its arrows. Disabled rows look dimmed. (by hand) - Compact menu, Graphics tab: open Render resolution near the card's bottom with the mouse and with the controller. The list opens upward, inside the card, never under the hint bar. (by hand) - System/menu stopped: the fallback menu's Output resolution Choice. (by hand) ## Measurements **Verdict:** the menu's script cost is the same as `main`'s within the spread between runs, well under every ceiling. Setup: Linux, this PC, `mod test --echo game/mods/menu` (optimised builder), its `menu cost:` line; `main` and this branch run alternately, twice each, in one queued job. | | Before: main @ 796fdb0b | After: this PR @ b915ae04 | |---|---|---| | start (least of 5) | 0.57, 0.58 ms | 0.57, 0.59 ms | | steady redraw (median of 60) | 0.24, 0.27 ms | 0.21, 0.29 ms | | switch to Graphics | 2.17, 2.16 ms | 1.89, 2.26 ms | | Graphics first shown | 0.5, 0.4 ms | 0.4, 0.5 ms | ## Risks - **Mods:** mods importing controls from `longshot/ui`, or using `Toggle`, need the new import path. - **Bare parts draw nothing:** a `ChoiceBase`, `SliderBase` or `KeybindBase` drawn without children shows nothing, which is intended. - **Nothing changes in saves or options.** - **Undo:** a revert is enough. ## Checklist ### Ready for review - [ ] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (headless smoke passed; the menu still needs trying by hand, Still to test) - [ ] `mise run test` passes (any failure that also fails on `main` is named). *(Run as its parts: `run_all --strict` 868 passed, 2 failed, neither from this change: `test_vk_wb_cpu_words_fast` and `test_lifter` (a `build-driver` file-lock test under load), both on `main`; the website check fails on `main` too, "Dynamic resolution minimum".)* - [ ] Measured against `main`, or Measurements says why there is nothing to measure. - [ ] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [ ] A fix: a game-free test that fails on `main` and passes here. (dropdown placement: `widgets` and `core` tests) - [ ] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. (reference renderer, above) - [ ] Docs updated. - [ ] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
refactor(ui): the engine is controls' behaviour, the kit their look, and the one place mods take them from
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 18s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 18m20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m19s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m5s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m46s
CI / Website build and checks (pull_request) Failing after 37s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 50m0s
b915ae046b
The engine keeps what a script cannot do well and draws as little as it can; the kit (longshot/ui/kit) draws every
look from theme tokens, over headless engine parts in longshot/ui.

- Choice, Slider, Keybind and TextInput are the kit's: ChoiceBase (Left and Right, its dropdown over everything),
  SliderBase (its drag mapped onto the child with part "track", the "fill" child sized to the value's share, the
  "value" Text worded as dragged), KeybindBase (selected while it waits for a key) and TextInputBase (the engine types
  and draws the text, caret and selection; its box is its style's). Their insides are memoised, so a page of rows
  drawn again costs their Bases.
- Styles get a `keys` state block: the keys' and the controller's mode, the whole UI's. A switch of mode lays out
  again the roots that use it.
- The kit exports Choice, Slider, Keybind, TextInput and Tabs; longshot/ui keeps the primitives and the *Base parts.
  Tabs still draws its look in the engine. Toggle (Checkbox's old name) is gone.
- Every disabled input looks disabled, at the opacity a disabled Button has (Checkbox 0.5 -> 0.45): a visible change.
- HelpLine in the kit, and `onHelp` on a Box: a mod's window shows the label and help of the control the player is
  at, as the Insert menu's help card does for a hosted page.
- A dropdown opens on the side with room: below when its list fits, above when it fits there, else on the side with
  more room, scrolling; inside the hosted page above the host's hint bar (it opened under the bar in the compact
  menu, its options cut off), on screen for a window.
- Theme tokens for what was hardcoded: $shadow, $sandInk, $icon, and "transparent" as a colour.
- The engine's fallback menu draws its Choice as the kit does.
- game.ui.theme(n) in mod tests; the ui-gallery example shows every kit control.
- Docs: the primitives, the kit and its controls (ui.md), the d.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
Author
Owner

Tested in game: Linux, RTX 3090, NVIDIA 620.70.06: headless dev.py smoke on b915ae04, in play from the kokiri-start save, 900 frames, the Insert menu opened and its page hosted. The menu has not been tried by hand with mouse, keys or a pad.

Tested in game: Linux, RTX 3090, NVIDIA 620.70.06: headless dev.py smoke on b915ae04, in play from the kokiri-start save, 900 frames, the Insert menu opened and its page hosted. The menu has not been tried by hand with mouse, keys or a pad.
HumanBean force-pushed refactor/ui-kit from b915ae046b
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 18s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 18m20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m19s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m5s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m46s
CI / Website build and checks (pull_request) Failing after 37s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 50m0s
to 01c213bdf1
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 20:47:56 +00:00
Compare
HumanBean changed title from refactor(ui): the engine is controls' behaviour, the kit their look, and the one place mods take them from to WIP: refactor(ui): the engine is controls' behaviour, the kit their look, and the one place mods take them from 2026-12-03 20:48:09 +00:00
Author
Owner
@review
BeanBot requested changes 2026-12-03 20:50:31 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Rapid inventory edits can queue changes against stale counts and give Link the wrong amount. The current head also needs in-game validation and measurement; the reported menu measurements predate the search and later changes.

The PR separates control behavior from appearance, adds theme mods and search, and reorganizes menu and cheat pages. It expands the UI and modding API, but adds substantial menu and inventory logic that needs further review and testing.

Blocking (2): must change before merging.

  1. L1 game/mods/cheats/src/system_mod.rs:501: Each inventory change computes its edits from the last game snapshot without accounting for edits already queued for the same row. (more on the line) Do: Track the projected inventory state including queued edits, or coalesce each row's pending target and compute its next edit from a fresh game state. Add a test with consecutive changes before the inventory snapshot refreshes.
  2. L3: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2: The current head's menu behavior and search cost have not been validated in game. When: The reported play run predates the last two commits and did not exercise the menu by hand; the reported cost comparison predates the search, whose frame-cost check has failed under load. Do: Exercise the menu, dropdowns, search and cheats with mouse, keyboard and controller on the current head, and compare search and menu frame costs against the base in repeated interleaved runs. Cover the affected Tier 1 Windows, Linux, AMD and Steam Deck configurations before merge. (@fix does its part first: Reduce or spread search indexing and matching work across frames.)

@fix can do L1 and L2.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven at the current head. The PR reports two interleaved menu-cost runs for an earlier commit, with steady redraw medians of 0.24/0.27 ms before and 0.21/0.29 ms after; those numbers do not cover the later search or test-splitting commits.

Other systems: The changes affect hosted and standalone mod UIs, keyboard and controller navigation, theme persistence, settings, inventory cheats, Windows and Linux, and all GPU vendors. The reported in-game smoke run was on Linux with an RTX 3090 before the latest commits; the menu was not exercised by hand.

Switches: HOS_SYSTEM_MODS_DIR and HOS_MODS_WATCH are used by the theme reload path; no switch-table change was identified in the portions reviewed.

Reviewed: 01c213bdf1 against 9a1f19b462: Read repository rules and the PR template, commit log, theme loader and theme registry, cheat system mod, inventory action logic, and menu search in full. Inspected selected UI engine, menu, settings persistence, host watcher, renderer input and test diffs. The 158-file change and all surrounding callers were not read in full, and generated files, translations and recorded runs were not comprehensively checked; this review is therefore incomplete.; nothing run (a code review).

Checked and fine:

  • The listed commits include AI co-author trailers.
  • The PR describes the breaking control imports and the later menu and theme additions.
  • The theme registry publishes its shared list under a lock and uses an atomic generation counter.

Testing: No code, tests or project scripts were run, as requested. CI is still running; the PR reports earlier runs and their known failures.

Overlaps and merge order: Not checked; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Rapid inventory edits can queue changes against stale counts and give Link the wrong amount. The current head also needs in-game validation and measurement; the reported menu measurements predate the search and later changes. The PR separates control behavior from appearance, adds theme mods and search, and reorganizes menu and cheat pages. It expands the UI and modding API, but adds substantial menu and inventory logic that needs further review and testing. **Blocking (2)**: must change before merging. 1. **L1** `game/mods/cheats/src/system_mod.rs:501`: Each inventory change computes its edits from the last game snapshot without accounting for edits already queued for the same row. (more on the line) **Do:** Track the projected inventory state including queued edits, or coalesce each row's pending target and compute its next edit from a fresh game state. Add a test with consecutive changes before the inventory snapshot refreshes. 2. **L3**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The current head's menu behavior and search cost have not been validated in game. *When:* The reported play run predates the last two commits and did not exercise the menu by hand; the reported cost comparison predates the search, whose frame-cost check has failed under load. **Do:** Exercise the menu, dropdowns, search and cheats with mouse, keyboard and controller on the current head, and compare search and menu frame costs against the base in repeated interleaved runs. Cover the affected Tier 1 Windows, Linux, AMD and Steam Deck configurations before merge. *(`@fix` does its part first: Reduce or spread search indexing and matching work across frames.)* `@fix` can do L1 and L2. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven at the current head. The PR reports two interleaved menu-cost runs for an earlier commit, with steady redraw medians of 0.24/0.27 ms before and 0.21/0.29 ms after; those numbers do not cover the later search or test-splitting commits. **Other systems:** The changes affect hosted and standalone mod UIs, keyboard and controller navigation, theme persistence, settings, inventory cheats, Windows and Linux, and all GPU vendors. The reported in-game smoke run was on Linux with an RTX 3090 before the latest commits; the menu was not exercised by hand. **Switches:** HOS_SYSTEM_MODS_DIR and HOS_MODS_WATCH are used by the theme reload path; no switch-table change was identified in the portions reviewed. **Reviewed:** 01c213bdf1fb against 9a1f19b46292: Read repository rules and the PR template, commit log, theme loader and theme registry, cheat system mod, inventory action logic, and menu search in full. Inspected selected UI engine, menu, settings persistence, host watcher, renderer input and test diffs. The 158-file change and all surrounding callers were not read in full, and generated files, translations and recorded runs were not comprehensively checked; this review is therefore incomplete.; nothing run (a code review). **Checked and fine:** - The listed commits include AI co-author trailers. - The PR describes the breaking control imports and the later menu and theme additions. - The theme registry publishes its shared list under a lock and uses an atomic generation counter. **Testing:** No code, tests or project scripts were run, as requested. CI is still running; the PR reports earlier runs and their known failures. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -398,0 +498,4 @@
if follow.shown == Some(want) {
return;
}
let counts = game_core::travel::inventory().counts;
Member

L1 (blocking): Each inventory change computes its edits from the last game snapshot without accounting for edits already queued for the same row.

When: If a count is 0 and the player moves its slider to 1 and then 2 before the twice-per-second inventory refresh, the two changes queue +1 and +2 from the same 0 snapshot. Link receives 3 instead of 2; repeated toggle or tier changes can likewise enqueue edits based on stale state.

Do: Track the projected inventory state including queued edits, or coalesce each row's pending target and compute its next edit from a fresh game state. Add a test with consecutive changes before the inventory snapshot refreshes.

**L1** (blocking): Each inventory change computes its edits from the last game snapshot without accounting for edits already queued for the same row. *When:* If a count is 0 and the player moves its slider to 1 and then 2 before the twice-per-second inventory refresh, the two changes queue +1 and +2 from the same 0 snapshot. Link receives 3 instead of 2; repeated toggle or tier changes can likewise enqueue edits based on stale state. **Do:** Track the projected inventory state including queued edits, or coalesce each row's pending target and compute its next edit from a fresh game state. Add a test with consecutive changes before the inventory snapshot refreshes.
HumanBean force-pushed refactor/ui-kit from 01c213bdf1
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to f9a16bc09f
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 21:45:23 +00:00
Compare
HumanBean force-pushed refactor/ui-kit from f9a16bc09f
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 6bc22d6d0e
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 22:03:35 +00:00
Compare
Author
Owner

Replying to the review of 01c213bd:

  • L1 (inventory edits against stale counts): fixed in a02db651. Each inventory row remembers what Link will hold once its queued edits are made and computes the next change from that, for counts, toggles and tiers. Test: a_change_before_the_game_has_the_last_one_edits_from_where_that_leaves_link, which fails with the fix disabled. Two cases remain, found by reading: a count the game caps (a small ammo bag) followed by another change within about 1.5 s works from the amount asked for, and a song toggled twice before the game updates may lose the second toggle.
  • L3 (conflicts): rebased onto main 6318f405.
  • L2, the code part: search indexing and matching are spread over frames; the worst frame in the menu test went from about 1.8 ms to 1.4 ms on a quiet PC (limit 2.00 ms). The by-hand testing in the game is still to do, as are runs on Windows, AMD and Steam Deck.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ

Replying to the review of 01c213bd: - **L1 (inventory edits against stale counts):** fixed in a02db651. Each inventory row remembers what Link will hold once its queued edits are made and computes the next change from that, for counts, toggles and tiers. Test: `a_change_before_the_game_has_the_last_one_edits_from_where_that_leaves_link`, which fails with the fix disabled. Two cases remain, found by reading: a count the game caps (a small ammo bag) followed by another change within about 1.5 s works from the amount asked for, and a song toggled twice before the game updates may lose the second toggle. - **L3 (conflicts):** rebased onto main 6318f405. - **L2, the code part:** search indexing and matching are spread over frames; the worst frame in the menu test went from about 1.8 ms to 1.4 ms on a quiet PC (limit 2.00 ms). The by-hand testing in the game is still to do, as are runs on Windows, AMD and Steam Deck. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
Author
Owner
@review
BeanBot requested changes 2026-12-03 22:04:50 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Successive inventory edits can still leave Link with a different value from the one selected. The current head also needs its in-game menu and search validation, and Forgejo reports it as not mergeable.

The PR separates control behavior from their themed appearance and expands and reorganizes the menu. The follow-up spreads search work across frames and tracks pending inventory edits, but that tracking still assumes every queued edit produces the requested result.

Blocking (1): must change before merging.

  1. L1 game/mods/cheats/src/system_mod.rs:501: Pending inventory state assumes queued edits reach the requested value, including when the game caps a count. When: With an ammo capacity of 20, request 30 and then 29 before the pending state settles. The game caps the first edit at 20, but the second is computed as 30 to 29 and removes one, leaving 19 instead of 29 or the capacity-limited 20. Do: Track the actual result of each queued edit, including game limits, before computing subsequent edits; ensure successive song changes also wait for or account for queued flag writes.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2: The current head's menu behavior and search cost still need validation in game. When: The game-free timing does not show how the current menu and incremental search behave during play. Do: Exercise the menu and search in game on the current head and measure search frame cost. (@fix does its part first: Reduce or spread search indexing and matching work across frames.)

@fix can do L1 and L2.

Since the last review (on 01c213bdf1)
Resolved: L3 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L1 (Pending inventory state assumes queued edits reach the requested value, including when the…); L2 (The current head's menu behavior and search cost still need validation in game.)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven for the current head: the reported game-free search worst frame is 1.67 ms against a 2.00 ms limit, but the menu and search have not been exercised in game on this head. Earlier menu cost comparisons were on different commits.

Other systems: The shared UI engine affects mod windows and the fallback menu as well as the system menu. The reported Linux NVIDIA game run was on an earlier head; Windows, other GPUs and Steam Deck remain unvalidated in game.

Switches: No switches added or changed by the follow-up.

Reviewed: 6bc22d6d0e against 6318f4056e: Read the repository rules and PR template, the inventory changes and their queue and game-action paths; inspected the menu search, main and view code and the supplied rebase and test reports. The full PR diff and all changed files were not read in full; generated files and translations were not independently reviewed.; nothing run (a code review).

Checked and fine:

  • The inventory follow-up includes game-free cases for successive ordinary count, toggle and tier edits.
  • The search follow-up reports a game-free worst frame below its stated limit.
  • The stated base is the base used for the rebased diff.

Testing: No commands that build or run project code were executed. The author reports game-free checks on the current head and an earlier Linux NVIDIA game run; CI is still running.

Overlaps and merge order: #3105 changes mod loading behavior; the PR description records the resulting theme-mod restart behavior.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Successive inventory edits can still leave Link with a different value from the one selected. The current head also needs its in-game menu and search validation, and Forgejo reports it as not mergeable. The PR separates control behavior from their themed appearance and expands and reorganizes the menu. The follow-up spreads search work across frames and tracks pending inventory edits, but that tracking still assumes every queued edit produces the requested result. **Blocking (1)**: must change before merging. 1. **L1** `game/mods/cheats/src/system_mod.rs:501`: Pending inventory state assumes queued edits reach the requested value, including when the game caps a count. *When:* With an ammo capacity of 20, request 30 and then 29 before the pending state settles. The game caps the first edit at 20, but the second is computed as 30 to 29 and removes one, leaving 19 instead of 29 or the capacity-limited 20. **Do:** Track the actual result of each queued edit, including game limits, before computing subsequent edits; ensure successive song changes also wait for or account for queued flag writes. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The current head's menu behavior and search cost still need validation in game. *When:* The game-free timing does not show how the current menu and incremental search behave during play. **Do:** Exercise the menu and search in game on the current head and measure search frame cost. *(`@fix` does its part first: Reduce or spread search indexing and matching work across frames.)* `@fix` can do L1 and L2. **Since the last review** (on 01c213bdf1fb) Resolved: L3 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L1 (Pending inventory state assumes queued edits reach the requested value, including when the…); L2 (The current head's menu behavior and search cost still need validation in game.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the current head: the reported game-free search worst frame is 1.67 ms against a 2.00 ms limit, but the menu and search have not been exercised in game on this head. Earlier menu cost comparisons were on different commits. **Other systems:** The shared UI engine affects mod windows and the fallback menu as well as the system menu. The reported Linux NVIDIA game run was on an earlier head; Windows, other GPUs and Steam Deck remain unvalidated in game. **Switches:** No switches added or changed by the follow-up. **Reviewed:** 6bc22d6d0e30 against 6318f4056eed: Read the repository rules and PR template, the inventory changes and their queue and game-action paths; inspected the menu search, main and view code and the supplied rebase and test reports. The full PR diff and all changed files were not read in full; generated files and translations were not independently reviewed.; nothing run (a code review). **Checked and fine:** - The inventory follow-up includes game-free cases for successive ordinary count, toggle and tier edits. - The search follow-up reports a game-free worst frame below its stated limit. - The stated base is the base used for the rebased diff. **Testing:** No commands that build or run project code were executed. The author reports game-free checks on the current head and an earlier Linux NVIDIA game run; CI is still running. **Overlaps and merge order:** #3105 changes mod loading behavior; the PR description records the resulting theme-mod restart behavior. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean changed title from WIP: refactor(ui): the engine is controls' behaviour, the kit their look, and the one place mods take them from to refactor(ui): the engine is controls' behaviour, the kit their look, and the one place mods take them from 2026-12-03 23:23:50 +00:00
BeanBot left a comment

Recommendation: Request changes. Rapid inventory edits can still leave Link with the wrong count or song state. The current menu and search also need an in-game run.

The change separates control behavior from appearance, reorganizes the menu, and adds search and theme mods. It improves mod authors’ control API and adds menu features, but pending inventory edits can produce incorrect results.

Blocking (1): must change before merging.

  1. L1 game/mods/cheats/src/system_mod.rs:501: Pending inventory state assumes queued edits reach the requested value, including when the game caps a count. When: With an ammo capacity of 20, request 30 and then 29 before the pending state settles. The game caps the first edit at 20, but the second is computed as 30 to 29 and removes one, leaving 19 instead of 29 or the capacity-limited 20. Do: Track the actual result of each queued edit, including game limits, before computing subsequent edits; ensure successive song changes also wait for or account for queued flag writes.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2: The current head's menu behavior and search cost still need validation in game. When: The game-free timing does not show how the current menu and incremental search behave during play. Do: Exercise the menu and search in game on the current head and measure search frame cost. (@fix does its part first: Reduce or spread search indexing and matching work across frames.)

@fix can do L1 and L2.

Since the last review (on 6bc22d6d0e)
Still open: L1 (Pending inventory state assumes queued edits reach the requested value, including when the…); L2 (The current head's menu behavior and search cost still need validation in game.)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the current head has not been tried in game. The reported game-free search worst frame is 1.67 ms against a 2.00 ms limit; the earlier before-and-after menu timings are within run-to-run spread and are not for the current head.

Other systems: The UI engine and kit serve mod windows and the fallback menu as well as the Insert menu. The reported in-game smoke was on an earlier Linux NVIDIA head; current-head behavior on Windows, other GPUs and Steam Deck remains unverified.

Switches: No switch changes were checked in this re-check.

Reviewed: 6bc22d6d0e against 6318f4056e: Read AGENTS.md and CONTRIBUTING.md, the inventory follow and action code, menu search, the diff statistics and commit list. The full pull-request diff, remaining changed files, generated files, translations, checklist and template were not read in this re-check; the sibling Tooling repository was unavailable.; nothing run (a code review).

Checked and fine:

  • Follow::edits carries expected inventory values across rapid changes for ordinary uncapped counts, toggles and tiers.
  • Search indexing and matching are divided into frame steps.

Testing: No commands that build or run the project were executed. The author reports game-free checks on this head and an in-game smoke on an earlier head; CI is still running.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Rapid inventory edits can still leave Link with the wrong count or song state. The current menu and search also need an in-game run. The change separates control behavior from appearance, reorganizes the menu, and adds search and theme mods. It improves mod authors’ control API and adds menu features, but pending inventory edits can produce incorrect results. **Blocking (1)**: must change before merging. 1. **L1** `game/mods/cheats/src/system_mod.rs:501`: Pending inventory state assumes queued edits reach the requested value, including when the game caps a count. *When:* With an ammo capacity of 20, request 30 and then 29 before the pending state settles. The game caps the first edit at 20, but the second is computed as 30 to 29 and removes one, leaving 19 instead of 29 or the capacity-limited 20. **Do:** Track the actual result of each queued edit, including game limits, before computing subsequent edits; ensure successive song changes also wait for or account for queued flag writes. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The current head's menu behavior and search cost still need validation in game. *When:* The game-free timing does not show how the current menu and incremental search behave during play. **Do:** Exercise the menu and search in game on the current head and measure search frame cost. *(`@fix` does its part first: Reduce or spread search indexing and matching work across frames.)* `@fix` can do L1 and L2. **Since the last review** (on 6bc22d6d0e30) Still open: L1 (Pending inventory state assumes queued edits reach the requested value, including when the…); L2 (The current head's menu behavior and search cost still need validation in game.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the current head has not been tried in game. The reported game-free search worst frame is 1.67 ms against a 2.00 ms limit; the earlier before-and-after menu timings are within run-to-run spread and are not for the current head. **Other systems:** The UI engine and kit serve mod windows and the fallback menu as well as the Insert menu. The reported in-game smoke was on an earlier Linux NVIDIA head; current-head behavior on Windows, other GPUs and Steam Deck remains unverified. **Switches:** No switch changes were checked in this re-check. **Reviewed:** 6bc22d6d0e30 against 6318f4056eed: Read AGENTS.md and CONTRIBUTING.md, the inventory follow and action code, menu search, the diff statistics and commit list. The full pull-request diff, remaining changed files, generated files, translations, checklist and template were not read in this re-check; the sibling Tooling repository was unavailable.; nothing run (a code review). **Checked and fine:** - Follow::edits carries expected inventory values across rapid changes for ordinary uncapped counts, toggles and tiers. - Search indexing and matching are divided into frame steps. **Testing:** No commands that build or run the project were executed. The author reports game-free checks on this head and an in-game smoke on an earlier head; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.</sub>
HumanBean force-pushed refactor/ui-kit from 6bc22d6d0e
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 1f6178f0cf
Some checks failed
PR description / Title and description (pull_request_target) Failing after 8s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 11s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m5s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 14m14s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 15m1s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 15m2s
CI / Website build and checks (pull_request) Failing after 1m15s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 14m52s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 52m44s
2026-12-03 23:34:03 +00:00
Compare
Author
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The inventory fix now waits for fresh game counts before applying a later change, including capped counts and song toggles. The current head still needs an in-game menu and search-cost run. Recommend approval; not approved on the forge.

The PR consolidates mod controls in a themed UI kit and expands the menu, including search and inventory editing. The latest fix avoids predicting inventory results, at the cost of delaying successive edits until fresh counts arrive.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2: The current head's menu behavior and search cost still need validation in game. When: The game-free timing does not show how the current menu and incremental search behave during play. Do: Exercise the menu and search in game on the current head and measure search frame cost. (@fix does its part first: Reduce or spread search indexing and matching work across frames.)

@fix can do L2.

Since the last review (on 6bc22d6d0e)
Resolved: L1 (Pending inventory state assumes queued edits reach the requested value, including when the…)
Still open: L2 (The current head's menu behavior and search cost still need validation in game.)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven for the current head: earlier menu script measurements were within run-to-run spread, and the current head has not been exercised by hand in game.

Other systems: The UI engine and kit affect mod windows and hosted pages on Windows and Linux, with mouse, keyboard and controller. The reported Linux smoke run used an earlier head; the current menu behavior remains untested in game.

Switches: No switch changes identified in the lines changed since the ledger.

Reviewed: 1f6178f0cf against f2cd2f4b34: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the latest fix diff, and the inventory queue and count-refresh code around it. Skimmed the earlier inventory diff and commit list; the full PR and its other changed files were not reread.; nothing run (a code review).

Checked and fine:

  • Held inventory changes retain the newest requested value, and are cleared when cheats are disabled or no save is loaded.
  • The added game-free test covers a capped count followed by a later request and a successive toggle.

Testing: No commands that run project code or tests were executed. CI is still running; the supplied report records game-free checks and an earlier Linux smoke run.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The inventory fix now waits for fresh game counts before applying a later change, including capped counts and song toggles. The current head still needs an in-game menu and search-cost run. Recommend approval; not approved on the forge. The PR consolidates mod controls in a themed UI kit and expands the menu, including search and inventory editing. The latest fix avoids predicting inventory results, at the cost of delaying successive edits until fresh counts arrive. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The current head's menu behavior and search cost still need validation in game. *When:* The game-free timing does not show how the current menu and incremental search behave during play. **Do:** Exercise the menu and search in game on the current head and measure search frame cost. *(`@fix` does its part first: Reduce or spread search indexing and matching work across frames.)* `@fix` can do L2. **Since the last review** (on 6bc22d6d0e30) Resolved: L1 (Pending inventory state assumes queued edits reach the requested value, including when the…) Still open: L2 (The current head's menu behavior and search cost still need validation in game.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the current head: earlier menu script measurements were within run-to-run spread, and the current head has not been exercised by hand in game. **Other systems:** The UI engine and kit affect mod windows and hosted pages on Windows and Linux, with mouse, keyboard and controller. The reported Linux smoke run used an earlier head; the current menu behavior remains untested in game. **Switches:** No switch changes identified in the lines changed since the ledger. **Reviewed:** 1f6178f0cf09 against f2cd2f4b34f9: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the latest fix diff, and the inventory queue and count-refresh code around it. Skimmed the earlier inventory diff and commit list; the full PR and its other changed files were not reread.; nothing run (a code review). **Checked and fine:** - Held inventory changes retain the newest requested value, and are cleared when cheats are disabled or no save is loaded. - The added game-free test covers a capped count followed by a later request and a successive toggle. **Testing:** No commands that run project code or tests were executed. CI is still running; the supplied report records game-free checks and an earlier Linux smoke run. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch refactor/ui-kit 2026-12-03 23:35:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3069
No description provided.