[PR #5304] [MERGED] Main builds again: one Attack arm in the LAN guest inbox #6196

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

📋 Pull Request Information

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

Base: main ← Head: fix/main-build-hub-attack-arm


📝 Commits (1)

  • 825a6bb lan: one Attack arm in the guest inbox (main's clippy fails)

📊 Changes

1 file changed (+8 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/lan/hub.rs (+8 -10)

📄 Description

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

Main fails cargo clippy --workspace --all-targets -- -D warnings: crates/horizon-client/src/lan/hub.rs has two S::Attack arms in process_inbox, so the second one can never be reached. The anticheat's arm came first, and #5123's arm (keep moves queued behind an attack until the next tick, #4524) came second. Each PR was green alone. Because #5123's arm never ran, its fix was also lost.

The fix merges the two into one arm: the anticheat checks the attack, and when it forwards the attack, the guest's queued move waits for the next tick as #5123 intended. A dropped attack has nothing to wait for. The Interact arm keeps its move_queued break unchanged.

Checks on this head (macOS, wasm guests excluded):

  • cargo clippy --workspace --all-targets -- -D warnings: ok
  • cargo test -p horizon-client --test lan_bot -- waits_for_the_next_tick attack: 3 passed (includes #5123's a_move_behind_an_attack_and_its_swing_waits_for_the_next_tick)
  • cargo test -p horizon-client --lib -- anticheat lan::hub: 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/5304 **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-hub-attack-arm` --- ### 📝 Commits (1) - [`825a6bb`](https://github.com/horizon-rust/horizon/commit/825a6bbcf914740e523e562147f8365028fe1984) lan: one Attack arm in the guest inbox (main's clippy fails) ### 📊 Changes **1 file changed** (+8 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/hub.rs` (+8 -10) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Main fails `cargo clippy --workspace --all-targets -- -D warnings`: `crates/horizon-client/src/lan/hub.rs` has two `S::Attack` arms in `process_inbox`, so the second one can never be reached. The anticheat's arm came first, and #5123's arm (keep moves queued behind an attack until the next tick, #4524) came second. Each PR was green alone. Because #5123's arm never ran, its fix was also lost. The fix merges the two into one arm: the anticheat checks the attack, and when it forwards the attack, the guest's queued move waits for the next tick as #5123 intended. A dropped attack has nothing to wait for. The `Interact` arm keeps its `move_queued` break unchanged. Checks on this head (macOS, wasm guests excluded): - `cargo clippy --workspace --all-targets -- -D warnings`: ok - `cargo test -p horizon-client --test lan_bot -- waits_for_the_next_tick attack`: 3 passed (includes #5123's `a_move_behind_an_attack_and_its_swing_waits_for_the_next_tick`) - `cargo test -p horizon-client --lib -- anticheat lan::hub`: 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:15:46 +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#6196
No description provided.