Repository navigation
fix(gateway): replay resident creature movement after CREATE - #450
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughResident creature spline state is appended after CREATE relays. Replay filters legs by viewer instance and timing, preserves facing updates, and reconstructs active movement from interpolated position with remaining duration. Tests cover ordering, filtering, interpolation, and admission behavior. ChangesResident spline replay
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to CREATE relays now include eligible active resident creature movement, allowing newly admitted viewers to receive current movement state. Focused and Gateway suite coverage supports the replay behavior, with no concrete merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
What and why
Refs #272
A viewer that entered an area during an active creature leg received the creature CREATE without its current movement. The creature appeared idle until the next leg arrived.
The shared CREATE path now appends a resident creature spline in the same writer work item after visibility and duplicate admission. A partial leg starts at its elapsed position and carries the rounded-up remaining duration, expired movement is skipped, and facing reuses the existing facing encoder. Taxi replay is unchanged.
What you verified
cargo fmt --all -- --checkcargo clippy -p lyracore-gateway --all-targets --all-features -- -D warningscargo test -p lyracore-gateway: 1,302 passed and 3 ignored; the known unrelatedwriter_trace_dump_writes_a_file_with_the_traced_framesfixture failed because/tmp/gw-writer-crashbelongs to another accountWhat you did NOT verify
No live realm or build-5875 client was used. Issue #272 stays open for real-client acceptance and its separate movement shedding and sensing work.
Risk
SMSG_MONSTER_MOVEencoding after an admitted CREATE. The wire codec and durable schema are unchanged.Notes for the reviewer
The source Architecture Test pins the resident append after the production visibility, duplicate, and CREATE steps because the SDK cache boundary cannot be constructed in unit tests. Behavior tests assert the resulting CREATE and movement packets, including their matching creature guid.
Authored by GPT-5.6 Sol at high effort through Codex in T3 Code.
Summary by CodeRabbit