- 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
- Radio room: an empty DF scope now writes its "no signal" text
equivalent instead of clearing it (ELOKA already did this).
- Sonar room: the client remembers the focus it last sent, so a quick
reselection (A, B, A) is no longer dropped against the lagging
published focus.
- Role-states browser test: instrument the radio scope, log pushed
states like polled ones, wait one more presence poll per role, guard
the sonar overview check against a role switch, and read the result
over DevTools so the run ends when the probe does (about 10 s).
- Submarine sonar audio test: run Chromium in real time and read the
result over DevTools; virtual time starved the live audio socket.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011qbgcvPr4s2ohpf2qA1zNW
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>
- Remote Crew browser client rebuilt as a dark combat-information-centre layout
for large desktop monitors: slim status bar (stations, mission, clocks, UTC,
link state), pulsing alert band, the instrument as centrepiece and
collapsible docks (contacts, station, contact detail, log drawer; keys , . L).
Four columns from 2400 px, fluid type up to 4K; guide, lookout and contact
library open as overlays (Esc closes).
- app.js split into native ES modules under data/commander/js; the transport
(net/*) no longer touches the DOM and talks to the views through synchronous
topics (core/events.js, app/bindings.js); redraws share one frame scheduler.
- style.css replaced by a token-based design system in data/commander/css.
- Inter 4.1 and JetBrains Mono 2.304 bundled unmodified (OFL-1.1) with
provenance in THIRD_PARTY_NOTICES.md; CSP allows font-src 'self'.
- Server serves the css/js/fonts trees from one asset manifest
(src/commander/assets.py); packaging, capture tool, help, manual and docs
updated; tests share tests/commander_web.py and import modules directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>