Repository navigation
Retune chaser to 60-120s curve, verify auto-pause, add crash feedback - #23
Merged
Merged
Conversation
…dd crash feedback [20261115-driftline-chaser-retune]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Produced by the agent-queue (task
20261115-driftline-chaser-retune, Claude Code on Yen's Mac, 12 turns, $3.03). Full report:.agent-queue/results/20261115-driftline-chaser-retune.mdon theagent-queuebranch.Phase 0: diagnosis
The original chaser math was verified correct (35 px/m, coasting 500.5 px/s, trigger at 450 m, catch ~5.3 s after spawn). The stale "~17s in" comment dated from the first scaffold, before PR #7 slowed coasting. Also found: below ~0.47 lean the rider is still slower than the chaser, so a light lean used to bring the catch earlier (0.3 lean caught at 29.1 s, before coasting).
Phase 1: retune (src/config.ts only)
chaserSpawnBehind: 850k -> 2100k (85 m -> 210 m)chaserSpeed: 295k -> 150kchaserAccel: 5k -> 6.25kchaserTriggerDistance: value unchanged; stale comment fixedClean-simulation catch times (before -> after): lean 0: 36.5s -> 56.2s; 0.3: 29.1s -> 62.8s; 0.5: 35.3s -> 75.5s; 0.7: 51.0s -> 91.2s; 1.0: 83.4s -> 117.6s. New guard test
tests/chaserCurve.test.tsfails if the curve leaves the target ranges. Known limit: 0.5 lean sits at the bottom of its range (~75s); no setting that keeps full lean under 120s gets it much past ~77s.Phase 2: auto-pause verdict
Test artifact, not a bug. Playwright-driven tab switches never set
document.hidden(game kept running), while a real hidden tab paused correctly (UI showed Paused, loop stopped). No fix or blur fallback added.Phase 3: crash feedback
Moved the "CRASH!" callout into
crash()insrc/game/game.tsso every crash (not just landing crashes) shows it. New testtests/crashFeedback.test.tsfailed before the change.Verification
Tests, lint, typecheck and build pass on Node 22.23.4 (the
.nvmrcpin). 4 files changed, 193 insertions, 5 deletions.