Skip to content

fix(keys_highway_3d): keep run score across hand-filter changes - #146

Merged
cchacs merged 1 commit into
mainfrom
fix/130-hand-filter-keeps-score
Oct 12, 2026
Merged

cchacs merged 1 commit into
mainfrom
fix/130-hand-filter-keeps-score

Conversation

@cchacs

@cchacs cchacs commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Fixes #130.

_setHandFilter() rebuilt playable and called _resetScoring(), wiping hits/misses/streak whenever Both/LH/RH changed mid-song (reachable from Split Screen's per-panel popover, so the posted stats covered only the time since the change).

Judged-note keys are (t, midi)-keyed so they stay valid across the rebuild, and the miss sweep only runs over the visible playable (a hidden-hand note can never accrue a miss while hidden) — so only the sweep cursor is re-anchored, mirroring the mastery path from #129. Also corrects the now-stale _anchorMissSweep comment that still described the reset behavior.

  • Source-level invariant test mirroring the mastery-path guard (no _resetScoring, keeps _anchorMissSweep) in tests/instance_invariants.test.js
  • Plugin version bump 0.2.6 -> 0.2.7, CHANGELOG entry
  • All 104 keys_highway_3d tests pass

_setHandFilter() rebuilt playable and called _resetScoring(), wiping
hits/misses/streak whenever the hand filter changed mid-song (reachable
from Split Screen's per-panel popover). Judged-note keys are (t, midi)-
keyed so they stay valid across the rebuild and the miss sweep only runs
over the visible playable, so only the sweep cursor is re-anchored —
mirroring the mastery path from #129.

Fixes #130
@kilo-code-bot

kilo-code-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)

Reviewed by free · Input: 221.3K · Output: 2.9K · Cached: 293.8K

@cchacs
cchacs merged commit de0fbf9 into main Oct 12, 2026
3 checks passed
@cchacs
cchacs deleted the fix/130-hand-filter-keeps-score branch October 12, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

keys_highway_3d: changing the hand filter mid-song resets the run's score

1 participant