feat(web): implement SSE chat streaming with real-time token rendering #516

Merged
jason.woltje merged 1 commits from feat/ms19-chat-streaming-v2 into main 2026-02-26 02:39:44 +00:00

1 Commits

Author SHA1 Message Date
f4b4ba4c54 feat(web): implement SSE chat streaming with real-time token rendering
Some checks failed
ci/woodpecker/push/web Pipeline failed
- Implement streamChatMessage() using fetch ReadableStream for SSE parsing
- Update useChat hook with streaming state, abort support, and fallback to non-streaming
- Add streaming indicator (blinking cursor) in MessageList during token streaming
- Update ChatInput with Stop button during streaming, disable input while streaming
- Add CSS animations for streaming cursor
- Fix message ID uniqueness to prevent collisions in rapid sends
- Update tests for streaming path with makeStreamSucceed/makeStreamFail helpers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 20:38:49 -06:00