[PR #2053] [MERGED] Fix recipe book overlays surviving inventory changes #3969

Closed
opened 2026-11-03 04:13:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2053
Author: @rdbtCVS
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: rdbtcvs/fix-2019-recipe-screen-cleanup


📝 Commits (1)

  • cd7b6e0 Fix recipe book overlays surviving remote screen changes

📊 Changes

2 files changed (+52 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+5 -0)
📝 tools/lan_e2e.py (+47 -0)

📄 Description

🤖 Opened by rdbt’s AI agent (Codex, GPT-6.1 Sol), not by rdbt himself.

What and why

Fixes #2019.

Closing a server-backed inventory with E/Escape left its recipe alternatives popup and ghost recipe in the next screen. Reset the existing transient recipe UI state in the shared remote-close cleanup, when opening the local inventory, and when a server opens/replaces a menu (including workstations). Saved per-book open/filter preferences stay intact.

Extend the LAN recipes regression to open an alternatives popup, close with each key, then reopen inventory or furnace on both host and guest. It also checks that inventory remembers the book's open setting. The existing binary reproduces the stale popup on the guest; the in-frame host passes.

Vanilla reference

Pinned 26.3 bytecode inspected with tools/rea_vanilla.py: RecipeBookComponent.init and constructor, RecipeBookPage constructor, and OverlayRecipeComponent constructor. Each new component creates fresh ghost slots and a page with a fresh alternatives overlay; visibility comes from the player's recipe-book settings.

Self-check

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 3f5a323fd, 2 min 36 s)

Check Result
Scope ✅ 2 files, +52 −0
Cargo.lock ✅ unchanged
Public tree ✅ (2 s)
Python tests ✅ 305 passed (29 s)
rustfmt ✅ (6 s)
clippy ✅ (2 s)
tests: horizon-client ✅ 1299 passed (1 min 50 s)
doc tests ✅ 0 passed (3 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 29 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, lore_tooltip, mace, online_mode and 17 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

python3 tools/pr_ready.py --quick --base origin/main exited 0. Parity execution is left to CI.

Additional validation (both exited 0):

  • python3 tools/lan_e2e.py --check recipes --bin-dir "$PWD/target/fast" --out "$PWD/.local/2019-after-in-frame"
  • python3 tools/lan_e2e.py --server-thread --check recipes --bin-dir "$PWD/target/fast" --out "$PWD/.local/2019-after-server-thread"

The extended check fails against the existing unpatched binary with guest: stale popup and passes with this patch in both modes. All game runs used disposable game, launcher and XDG homes with audio and launcher self-update disabled.

Screenshots

The harness captured before/after UI screenshots in .local/2019-before, .local/2019-after-in-frame, and .local/2019-after-server-thread. Visually checked the guest's reopened inventory and furnace: the old popup is gone and the inventory book remains open. These local evidence files are not committed or attached to GitHub.

🤖 Generated with Codex (GPT-6.1 Sol).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2053 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `rdbtcvs/fix-2019-recipe-screen-cleanup` --- ### 📝 Commits (1) - [`cd7b6e0`](https://github.com/horizon-rust/horizon/commit/cd7b6e025e49f19ea8085e8d7734079962e919fe) Fix recipe book overlays surviving remote screen changes ### 📊 Changes **2 files changed** (+52 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+5 -0) 📝 `tools/lan_e2e.py` (+47 -0) </details> ### 📄 Description > 🤖 Opened by rdbt’s AI agent (Codex, GPT-6.1 Sol), not by rdbt himself. ## What and why Fixes #2019. Closing a server-backed inventory with E/Escape left its recipe alternatives popup and ghost recipe in the next screen. Reset the existing transient recipe UI state in the shared remote-close cleanup, when opening the local inventory, and when a server opens/replaces a menu (including workstations). Saved per-book open/filter preferences stay intact. Extend the LAN `recipes` regression to open an alternatives popup, close with each key, then reopen inventory or furnace on both host and guest. It also checks that inventory remembers the book's open setting. The existing binary reproduces the stale popup on the guest; the in-frame host passes. ## Vanilla reference Pinned 26.3 bytecode inspected with `tools/rea_vanilla.py`: `RecipeBookComponent.init` and constructor, `RecipeBookPage` constructor, and `OverlayRecipeComponent` constructor. Each new component creates fresh ghost slots and a page with a fresh alternatives overlay; visibility comes from the player's recipe-book settings. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 3f5a323fd, 2 min 36 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +52 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (2 s) | | Python tests | ✅ 305 passed (29 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (2 s) | | tests: horizon-client | ✅ 1299 passed (1 min 50 s) | | doc tests | ✅ 0 passed (3 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 29 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, lore_tooltip, mace, online_mode and 17 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | `python3 tools/pr_ready.py --quick --base origin/main` exited **0**. Parity execution is left to CI. Additional validation (both exited 0): - `python3 tools/lan_e2e.py --check recipes --bin-dir "$PWD/target/fast" --out "$PWD/.local/2019-after-in-frame"` - `python3 tools/lan_e2e.py --server-thread --check recipes --bin-dir "$PWD/target/fast" --out "$PWD/.local/2019-after-server-thread"` The extended check fails against the existing unpatched binary with `guest: stale popup` and passes with this patch in both modes. All game runs used disposable game, launcher and XDG homes with audio and launcher self-update disabled. ## Screenshots The harness captured before/after UI screenshots in `.local/2019-before`, `.local/2019-after-in-frame`, and `.local/2019-after-server-thread`. Visually checked the guest's reopened inventory and furnace: the old popup is gone and the inventory book remains open. These local evidence files are not committed or attached to GitHub. 🤖 Generated with [Codex](https://openai.com/codex/) (GPT-6.1 Sol). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:39 +07:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3969
No description provided.