You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix video-capture timer, preparation camera, and clap detection
Video capture:
- Wall-clock timer using Date.now() instead of state-based decrement
(immune to React batching/stacking causing double-speed)
- Ref guard prevents double-invocation of startAssessment
- Button disabled after first click
Preparation (Action Challenge):
- Camera feed now visible during timeout phase (was unmounted, causing
lost stream on retry)
- Stream re-attach via 300ms interval check (replaces every-render
useEffect that caused flicker)
- Frame dot counter: 8 dots matching REQUIRED_CONSECUTIVE = 8
- Status text threshold raised to 5 for "Almost there"
Action detection:
- Clap threshold doubled (0.2 → 0.4 * scale) — YOLO wrist keypoints
are imprecise when hands overlap during clap
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments