Reduce state-push coalescing from 100 ms to 25 ms so transport batching
does not combine successive response updates into large visible bursts.
The existing per-connection timer and in-flight push guards still bound
work and coalesce dirty state.
Skip inner Scroller measurements for root response bodies, which grow
with the chat viewport. The existing chat scroller owns following, and
the collapse handler still resets collapsed content. Other message bodies
retain their scrolling behavior. Update the owning docs and regressions.
Validation:
- 42 focused streaming, state-sync, snapshot and WebUI tests passed.
- 31 WebSocket security, CSRF and handler tests passed.
- Live DeepSeek and Opus checks showed roughly halved median visible
update intervals; response scrolling and collapse/expand were checked.
Live browser checks used headless Chromium. Long Opus responses still
show occasional dropped frames as more frequent updates increase render work.
Negotiate collection deltas and preserve sidebar row identity so high-rate log streams avoid resending and reconciling unchanged state. Bound streamed log fields, defer expensive response formatting until completion, update capped process groups only for new steps, and keep disconnect and terminal task state accurate. Add focused lifecycle, snapshot, sync, and WebUI regressions.
- Rename /state_sync namespace to /webui throughout codebase
- Remove get_event_types() from WebSocketHandler - handlers now process all events for their namespace
- Replace per-event handler registration with namespace-wide registration
- Add validate_event_type() class method for runtime event name validation
- Update UserMessage instantiation to use keyword arguments (message=, attachments=)
- Move send_data