[PR #5632] [MERGED] Opening a menu closes the one already open #6400

Closed
opened 2026-11-03 06:19:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5632
Author: @rdbtCVS
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/open-menu-closes-previous


📝 Commits (2)

  • 322d45f Close a leaving guest's open menu before the player is saved
  • ff6ef16 Every guest menu open closes the previous menu first

📊 Changes

7 files changed (+79 additions, -31 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+27 -6)
📝 crates/horizon-client/src/game/lan_actions.rs (+34 -4)
📝 crates/horizon-client/src/game/lan_crafting.rs (+2 -4)
📝 crates/horizon-client/src/game/lan_mount_menu.rs (+2 -4)
📝 crates/horizon-client/src/game/lan_stations.rs (+4 -7)
📝 crates/horizon-client/src/game/lan_trading.rs (+2 -3)
📝 crates/horizon-client/src/game/native_menus.rs (+8 -3)

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Sonnet 5.5), not by rdbtCVS personally.

Stacked on #5630: the first commit is that PR's guest_close_all; review only the second commit. It drops out once #5630 merges.

Every guest menu open (block containers, vehicles, mounts, merchants, stations, lecterns, the crafting table, native menus) now starts with guest_close_all, like ServerPlayer.openMenu. Before, each opener closed its own subset, so a leftover trade, mount or vehicle stand-in could stay behind and the old window id kept taking clicks.

Checks run: cargo fmt, cargo clippy -p horizon-client --lib --bins -D warnings. Not run: lan_e2e and the parity harnesses (no vanilla data in this checkout).

🤖 Generated with Claude Code


🔄 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/5632 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/open-menu-closes-previous` --- ### 📝 Commits (2) - [`322d45f`](https://github.com/horizon-rust/horizon/commit/322d45fda51a7fb944e242b01bb3a2f2fe4e1b32) Close a leaving guest's open menu before the player is saved - [`ff6ef16`](https://github.com/horizon-rust/horizon/commit/ff6ef169c3bada6c2661bc22aafa1ce799a888c5) Every guest menu open closes the previous menu first ### 📊 Changes **7 files changed** (+79 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+27 -6) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+34 -4) 📝 `crates/horizon-client/src/game/lan_crafting.rs` (+2 -4) 📝 `crates/horizon-client/src/game/lan_mount_menu.rs` (+2 -4) 📝 `crates/horizon-client/src/game/lan_stations.rs` (+4 -7) 📝 `crates/horizon-client/src/game/lan_trading.rs` (+2 -3) 📝 `crates/horizon-client/src/game/native_menus.rs` (+8 -3) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Sonnet 5.5), not by rdbtCVS personally. Stacked on #5630: the first commit is that PR's `guest_close_all`; review only the second commit. It drops out once #5630 merges. Every guest menu open (block containers, vehicles, mounts, merchants, stations, lecterns, the crafting table, native menus) now starts with `guest_close_all`, like `ServerPlayer.openMenu`. Before, each opener closed its own subset, so a leftover trade, mount or vehicle stand-in could stay behind and the old window id kept taking clicks. Checks run: `cargo fmt`, `cargo clippy -p horizon-client --lib --bins -D warnings`. Not run: `lan_e2e` and the parity harnesses (no vanilla data in this checkout). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:19:56 +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#6400
No description provided.