Files
opencode-manager/backend/test
Chris Scott 94941eb7a0 refactor(sse): serialize backend writes and add directory-aware frontend batching
SSE writes from the backend could arrive out of order under concurrent load.
The frontend parts batcher also lacked directory awareness, making it
unreliable when multiple directories are monitored.

Changes:
- Add QueuedSSEWriter that serializes SSE frames via promise chaining with
  backpressure handling and error isolation
- Refactor SSE route to use QueuedSSEWriter instead of raw encoder
- Make frontend parts batcher directory-aware: operations grouped by
  (sessionID, directory) composite key; flush() accepts optional target filter
- Decouple batcher lifecycle from directory dependency in useSSE hook
- Add comprehensive tests for all new behavior
2026-06-06 01:07:31 +00:00
..
2026-03-08 21:40:37 -04:00