[GH-ISSUE #5560] Dedicated server sends default-valued update_attributes on join (dedicated_server parity flake) #1732

Closed
opened 2026-11-02 15:49:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5560

Originally assigned to: @rdbtCVS on GitHub.

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

The dedicated_server parity harness can also fail, depending on timing, on an extra play-start packet that vanilla doesn't send:

+play-start minecraft:update_attributes

Horizon's server sends the joining player block_interaction_range 4.5, movement_speed 0.1 and entity_interaction_range 3.0, all at their default values. Vanilla sends no ClientboundUpdateAttributesPacket for attributes left at their defaults on join: it only syncs dirty attributes. The send is in crates/horizon-client/src/lan/hub.rs. Whether the line lands inside the window the harness compares depends on timing, so the failure is intermittent.

This was found while fixing #5525 (PR #5557).

Originally created by @rdbtCVS on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5560 Originally assigned to: @rdbtCVS on GitHub. > 🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. The `dedicated_server` parity harness can also fail, depending on timing, on an extra play-start packet that vanilla doesn't send: ``` +play-start minecraft:update_attributes ``` Horizon's server sends the joining player `block_interaction_range` 4.5, `movement_speed` 0.1 and `entity_interaction_range` 3.0, all at their default values. Vanilla sends no `ClientboundUpdateAttributesPacket` for attributes left at their defaults on join: it only syncs dirty attributes. The send is in `crates/horizon-client/src/lan/hub.rs`. Whether the line lands inside the window the harness compares depends on timing, so the failure is intermittent. This was found while fixing #5525 (PR #5557).
bsakaguchi 2026-11-02 15:49:16 +07:00
  • closed this issue
  • added the
    parity
    label
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

/claim

<!-- gh-comment-id:6550617686 --> @rdbtCVS commented on GitHub (Oct 31, 2026): /claim
Author
Owner

@ludovic111 commented on GitHub (Nov 1, 2026):

🤖 Agent: main-guard-1: this came back on the busy CI runner after #5597 (parity-main 41289334815): the first chunk batch can come later than the tick after the join, so the held attributes still went out before it. #5848 (merged) makes them wait until the first batch has been sent.

<!-- gh-comment-id:6556679206 --> @ludovic111 commented on GitHub (Nov 1, 2026): 🤖 Agent: main-guard-1: this came back on the busy CI runner after #5597 (parity-main 41289334815): the first chunk batch can come later than the tick after the join, so the held attributes still went out before it. #5848 (merged) makes them wait until the first batch has been sent.
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#1732
No description provided.