[PR #2425] [CLOSED] Preserve tooltip visibility in server inventory synchronization #4303

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2425
Author: @evilchinesefood
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: codex/tooltip-visibility-sync


📝 Commits (1)

  • c75c2e0 Preserve tooltip visibility in server inventory synchronization

📊 Changes

3 files changed (+226 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/item_sync.rs (+158 -0)
📝 crates/horizon-client/src/lan/data.rs (+46 -0)
📝 crates/horizon-client/src/lan/guest.rs (+22 -1)

📄 Description

What and why

An integrated-server inventory round trip drops minecraft:tooltip_display, so a hidden enchantment section becomes visible again on the client. Serialize the existing component with its registered data-component IDs. Unknown names and non-string list entries are omitted.

ItemStack → stack_to_network → Slot codec → from_network → tooltip visibility

This fix is independent of the proposed mod tooltip API.

Vanilla reference

Pinned Minecraft 26.3 TooltipDisplay network codec: a boolean plus a collection of data-component types. Its bytecode was inspected locally. No third-party implementation source was used.

Self-check

Producer/codec/receiver tests cover applied and stored enchantments, whole hiding, absent components, and unknown component names. A separate test exercises the actual SyncData::id registry callback used by the hub. Focused tests, formatting, public-tree check and client Clippy pass. The combined stack passed the required quick gate (below).

Screenshots

Local development-host captures verify hidden whole and individual enchantment sections through the default integrated-server path. Screenshots were captured and visually reviewed locally; they have not been uploaded to this PR.

Publication baseline

Prepared on upstream 72e678be8cc68700bc1853db058386fc5254650f. No relevant SDK/runtime/tooltip files changed from the original validation base. The original combined-stack gate below is retained with its exact base; it is not presented as a gate run on the rebased PR heads. Public-tree/history and patch-whitespace checks passed again before publication. On the rebased combined integration tree, 24 client tooltip tests and 5 module tooltip tests passed (two pre-existing client tests ignored).

Combined-stack gate

pr_ready (tools/pr_ready.py --quick --base 60109e0d911fa592b4669eeb3db10684f8b496cc on Davids-MacBook-Pro, against 60109e0d91 at 60109e0d9, 9 min 31 s)

Check Result
Scope ⚠️ 25 files, +1309 −16; 899 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (5 s)
clippy ✅ (1 min 7 s)
tests: workspace ✅ 2266 passed (6 min 0 s)
doc tests ✅ 2 passed (30 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (46 s)
launcher tests ✅ 137 passed (1 min 0 s)
Parity ➖ 345 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 333 more

The scope warning applies to the full stack. The wire, SDK/runtime and renderer were separated into review units. The renderer draft includes its API dependency until that PR merges; its renderer-only commit is independently reviewable. The 345 broader parity harnesses were not run locally. A subsequent documentation-generator whitespace fix and WIT comment correction passed all four API-reference tests.

Merge Danger

Door: Two-way. No save-format change.

Blast Radius: Inventory. The change affects server-to-client serialization of the existing tooltip visibility component.

🤖 Generated with OpenAI Codex.


🔄 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/2425 **Author:** [@evilchinesefood](https://github.com/evilchinesefood) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/tooltip-visibility-sync` --- ### 📝 Commits (1) - [`c75c2e0`](https://github.com/horizon-rust/horizon/commit/c75c2e05ef151bec8386e8b822340e712f49c9ca) Preserve tooltip visibility in server inventory synchronization ### 📊 Changes **3 files changed** (+226 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/item_sync.rs` (+158 -0) 📝 `crates/horizon-client/src/lan/data.rs` (+46 -0) 📝 `crates/horizon-client/src/lan/guest.rs` (+22 -1) </details> ### 📄 Description ## What and why An integrated-server inventory round trip drops `minecraft:tooltip_display`, so a hidden enchantment section becomes visible again on the client. Serialize the existing component with its registered data-component IDs. Unknown names and non-string list entries are omitted. ```text ItemStack → stack_to_network → Slot codec → from_network → tooltip visibility ``` This fix is independent of the proposed mod tooltip API. ## Vanilla reference Pinned Minecraft 26.3 `TooltipDisplay` network codec: a boolean plus a collection of data-component types. Its bytecode was inspected locally. No third-party implementation source was used. ## Self-check Producer/codec/receiver tests cover applied and stored enchantments, whole hiding, absent components, and unknown component names. A separate test exercises the actual `SyncData::id` registry callback used by the hub. Focused tests, formatting, public-tree check and client Clippy pass. The combined stack passed the required quick gate (below). ## Screenshots Local development-host captures verify hidden whole and individual enchantment sections through the default integrated-server path. Screenshots were captured and visually reviewed locally; they have not been uploaded to this PR. ## Publication baseline Prepared on upstream `72e678be8cc68700bc1853db058386fc5254650f`. No relevant SDK/runtime/tooltip files changed from the original validation base. The original combined-stack gate below is retained with its exact base; it is not presented as a gate run on the rebased PR heads. Public-tree/history and patch-whitespace checks passed again before publication. On the rebased combined integration tree, 24 client tooltip tests and 5 module tooltip tests passed (two pre-existing client tests ignored). ## Combined-stack gate **pr_ready** (`tools/pr_ready.py --quick --base 60109e0d911fa592b4669eeb3db10684f8b496cc` on Davids-MacBook-Pro, against 60109e0d911fa592b4669eeb3db10684f8b496cc at 60109e0d9, 9 min 31 s) | Check | Result | | --- | --- | | Scope | ⚠️ 25 files, +1309 −16; 899 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 7 s) | | tests: workspace | ✅ 2266 passed (6 min 0 s) | | doc tests | ✅ 2 passed (30 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (46 s) | | launcher tests | ✅ 137 passed (1 min 0 s) | | Parity | ➖ 345 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 333 more | The scope warning applies to the full stack. The wire, SDK/runtime and renderer were separated into review units. The renderer draft includes its API dependency until that PR merges; its renderer-only commit is independently reviewable. The 345 broader parity harnesses were not run locally. A subsequent documentation-generator whitespace fix and WIT comment correction passed all four API-reference tests. ## Merge Danger **Door:** Two-way. No save-format change. **Blast Radius:** Inventory. The change affects server-to-client serialization of the existing tooltip visibility component. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:12 +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#4303
No description provided.