Commit Graph
6 Commits
Author SHA1 Message Date
Alessandro a3eb21299b Fix chunky response streaming in the WebUI
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.
2026-10-29 20:30:12 +01:00
Alessandro cb39a16c24 Optimize realtime WebUI synchronization
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.
2026-08-26 15:27:36 +02:00
keyboardstaff dae37ee0f6 Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
frdel a5620506d5 refactor: rename state_sync namespace to webui and simplify handler event registration
- 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
2026-03-20 15:34:59 +01:00
frdel d02dda3667 BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins

+ frontend extension around api calls
2026-03-05 17:28:11 +01:00
frdel 4932e12546 WebSocket merge 2026-02-01 16:07:45 +01:00