Commit Graph
2 Commits
Author SHA1 Message Date
Claude 213016dbe3 Stabilize the flaky audio/sonar websocket and browser tests (1.3.19)
- Server: a reconnecting client supersedes its own idle audio or sonar
  stream instead of getting 409 stream_exists while the old worker has not
  yet noticed the dead socket (root cause of the flaky
  test_audio_websocket_resumes_behind_the_browser_cursor). Regression tests
  fail on the old code.
- Web client: a push-woken poll clears the pending poll timer, so a healthy
  push no longer adds a /state request per pushed state.
- Browser tests for live audio and the state push run in real time
  (RealTimeHost: wall-clock sim steps via Game._frame_dt, DevTools reads
  off-thread) instead of fixed steps or --virtual-time-budget.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XUBGQzKG1jnToU9vYPfwo
2026-09-28 11:41:50 +00:00
db9979andClaude Fable 5.1 952c4a35d4 Web client: state push over WebSocket, generated schema allowlists, chart culling probe
Phase 11 of plan 1.3. /ws/v2/state pushes the active role's projection
(same bytes as GET /api/v2/state, at most 4 Hz, heartbeat 2 s, latest
state only) with the sonar stream's Origin/cookie/subprotocol rules; the
browser consumes pushed states in its poll loop, keeps polling presence,
chart and feeds on a slow cadence, falls back to full polling after two
missed heartbeats and retries every 10 s. src/commander/v2/schema.py is
the single allowlist rendered into schema.js by tools/gen_web_schema.py
(--check in CI). The browser chart culls tracks in world coordinates
before transforming and exposes a frame-time probe. OffscreenCanvas is
deferred (documented in docs/resume.md).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:28:49 +02:00