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.
- Consolidate ConnectionIdentity, _ws_debug_enabled(), ws_debug() into ws.py as single-source exports, removing duplicate definitions in ws_manager.py and state_monitor.py
- Make send_data() optional args keyword-only to prevent positional argument confusion with the instance method signature
- Fix clear_plugin_cache in plugins.py: wrong parameter name (event_name → event_type) and stale namespace (/webui → /ws)