[PR #7150] [CLOSED] Fix agent navigation for partial paths and stuck recovery #7377

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7150
Author: @mitsa-ng
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: codex/pathfinding-pr-20261102


📝 Commits (2)

  • 4463ee1 Fix agent navigation for partial paths and stuck recovery
  • 2e639ee Add agent navigation regression module

📊 Changes

2 files changed (+514 additions, -135 deletions)

View changed files

📝 crates/horizon-client/src/game/agent.rs (+75 -135)
➕ crates/horizon-client/src/game/agent_navigation.rs (+439 -0)

📄 Description

Closed as duplicate: #7123 was merged by an upstream maintainer while this attribution-corrected PR was being prepared. The code is identical.

🤖 Opened by mitsa-ng's AI agent (Codex), not by mitsa-ng personally.

What and why

Long-distance goto requests can fail at the loaded-terrain boundary, while stalled movement can repeatedly choose the same blocked transition. Continue safe partial routes as terrain loads, avoid failed edges, and require measurable waypoint progress before resetting recovery timers.

Only the agent controller and its navigation module change; the module includes focused regression tests.

Kind

  • bug: a crash or a breakage

Vanilla reference

Horizon-only agent control. No external mod source was used.

Self-check

  • 15 standalone production-module navigation tests passed.
  • Scoped rustfmt --edition 2024 --check passed for both changed source files.
  • git diff --check passed.
  • Full client build and live gameplay remain unverified.
  • The required pr_ready --quick ran offline and exited 1. Its public-tree check, 612 Python tests and workspace rustfmt passed. Cargo-dependent checks stopped before compilation because the local crates.io cache lacks mimalloc required by horizon-threads. The generated block below heuristically mentions the older compiler; the captured errors identify missing offline dependencies as the actual blocker. Parity harnesses were not run (--quick).

pr_ready (tools/pr_ready.py --quick --base 58312968a8881c3737e57ca95d905e658e950ada on macdeMacBook-Air, against 58312968a8 at 58312968a, 1 min 29 s)

Check Result
Scope ⚠️ 2 files, +514 −135; 649 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 20 s)
rustfmt ✅ (8 s)
Rust ⚠️ 1.95.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with rustup update
clippy ❌ failed; likely the old Rust above
tests: horizon-client ❌ failed
doc tests ❌ failed
content root tests ➖ content root untouched
mod API up to date ❌ failed
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with 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/7150 **Author:** [@mitsa-ng](https://github.com/mitsa-ng) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/pathfinding-pr-20261102` --- ### 📝 Commits (2) - [`4463ee1`](https://github.com/horizon-rust/horizon/commit/4463ee10b7a4b7fcd077ee3b9add8d29c2e7f56a) Fix agent navigation for partial paths and stuck recovery - [`2e639ee`](https://github.com/horizon-rust/horizon/commit/2e639ee7a0171b64e570ac7e71717b08fd7e5937) Add agent navigation regression module ### 📊 Changes **2 files changed** (+514 additions, -135 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/agent.rs` (+75 -135) ➕ `crates/horizon-client/src/game/agent_navigation.rs` (+439 -0) </details> ### 📄 Description Closed as duplicate: #7123 was merged by an upstream maintainer while this attribution-corrected PR was being prepared. The code is identical. > 🤖 Opened by mitsa-ng's AI agent (Codex), not by mitsa-ng personally. ## What and why Long-distance `goto` requests can fail at the loaded-terrain boundary, while stalled movement can repeatedly choose the same blocked transition. Continue safe partial routes as terrain loads, avoid failed edges, and require measurable waypoint progress before resetting recovery timers. Only the agent controller and its navigation module change; the module includes focused regression tests. ## Kind - [x] bug: a crash or a breakage ## Vanilla reference Horizon-only agent control. No external mod source was used. ## Self-check - 15 standalone production-module navigation tests passed. - Scoped `rustfmt --edition 2024 --check` passed for both changed source files. - `git diff --check` passed. - Full client build and live gameplay remain unverified. - The required `pr_ready --quick` ran offline and exited 1. Its public-tree check, 612 Python tests and workspace rustfmt passed. Cargo-dependent checks stopped before compilation because the local crates.io cache lacks `mimalloc` required by `horizon-threads`. The generated block below heuristically mentions the older compiler; the captured errors identify missing offline dependencies as the actual blocker. Parity harnesses were not run (`--quick`). **pr_ready** (`tools/pr_ready.py --quick --base 58312968a8881c3737e57ca95d905e658e950ada` on macdeMacBook-Air, against 58312968a8881c3737e57ca95d905e658e950ada at 58312968a, 1 min 29 s) | Check | Result | | --- | --- | | Scope | ⚠️ 2 files, +514 −135; 649 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 20 s) | | rustfmt | ✅ (8 s) | | Rust | ⚠️ 1.95.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | clippy | ❌ failed; likely the old Rust above | | tests: horizon-client | ❌ failed | | doc tests | ❌ failed | | content root tests | ➖ content root untouched | | mod API up to date | ❌ failed | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [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 06:38:38 +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#7377
No description provided.