[PR #5559] [MERGED] lan_bot passes again: a known core pack still gets the dialogs' data (#5505) #6351

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

📋 Pull Request Information

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

Base: main ← Head: fix/main-build-lan-bot-dialog-data


📝 Commits (1)

  • 85d8c01 lan_bot: a known core pack still gets the dialogs' data (#5505)

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 crates/horizon-client/tests/lan_bot.rs (+5 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #5505. On main, cargo test -p horizon-client --test lan_bot failed 13 of 15 tests. Every bot join panicked in its configuration step (lan_bot.rs:142, minecraft:dialog, left: true, right: false). CI doesn't run lan_bot (it needs the vanilla data), so only local pr_ready runs showed it.

Cause. The break came from #4698 (quick actions), not 12a100719. #4698 added always_sent in lan/data.rs registry_packets: minecraft:dialog entries carry their data even for a client that knows the core pack. That is deliberate, because Horizon's own client reads the dialogs from the packet (game/quick_actions.rs, game/dialogs.rs) and doesn't rebuild them from its known pack. A vanilla client takes an entry's data when the packet carries it, so sending it is harmless. The bot's assertion still expected no data in any registry once the client knew the pack.

Fix. Only the test changes: with a known pack, the bot expects data in the dialog registry and none in every other registry, which stays strict. Without a known pack, every registry still has to carry data.

Check, on this head with the vanilla data in .local:

  • cargo test -p horizon-client --test lan_bot: 15 passed (13 failed on main d55bb43ab)
  • cargo fmt --check -p horizon-client: ok

🤖 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/5559 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/main-build-lan-bot-dialog-data` --- ### 📝 Commits (1) - [`85d8c01`](https://github.com/horizon-rust/horizon/commit/85d8c01b52266425f0f9b14ca54bfbe2f5f69c50) lan_bot: a known core pack still gets the dialogs' data (#5505) ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/tests/lan_bot.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #5505. On main, `cargo test -p horizon-client --test lan_bot` failed 13 of 15 tests. Every bot join panicked in its configuration step (lan_bot.rs:142, `minecraft:dialog, left: true, right: false`). CI doesn't run lan_bot (it needs the vanilla data), so only local pr_ready runs showed it. **Cause.** The break came from #4698 (quick actions), not 12a100719. #4698 added `always_sent` in `lan/data.rs` `registry_packets`: `minecraft:dialog` entries carry their data even for a client that knows the core pack. That is deliberate, because Horizon's own client reads the dialogs from the packet (`game/quick_actions.rs`, `game/dialogs.rs`) and doesn't rebuild them from its known pack. A vanilla client takes an entry's data when the packet carries it, so sending it is harmless. The bot's assertion still expected no data in any registry once the client knew the pack. **Fix.** Only the test changes: with a known pack, the bot expects data in the dialog registry and none in every other registry, which stays strict. Without a known pack, every registry still has to carry data. Check, on this head with the vanilla data in `.local`: - `cargo test -p horizon-client --test lan_bot`: 15 passed (13 failed on main d55bb43ab) - `cargo fmt --check -p horizon-client`: ok 🤖 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:05 +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#6351
No description provided.