🚸(front) cover the gap between the summary and the first answer token - #658
Conversation
Signed-off-by: Laurent Paoletti <lp@providenz.fr>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
Walkthrough
ChangesChat streaming behavior
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant useChat
participant AISDK
participant ChatAPI
User->>useChat: append user message
useChat->>AISDK: configure maxSteps=1
AISDK->>ChatAPI: submit chat request
ChatAPI-->>AISDK: return interrupted tool-call stream
AISDK-->>useChat: preserve response state
sequenceDiagram
participant MessageItem
participant SummarizationProgress
participant StreamedAnswer
MessageItem->>SummarizationProgress: render completed progress
SummarizationProgress-->>MessageItem: invoke onHidden after 400 ms
MessageItem->>MessageItem: show Thinking...
StreamedAnswer-->>MessageItem: provide answer content
MessageItem->>MessageItem: hide Thinking...
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Purpose
An interrupted chat turn could end with a silent blank bubble instead of an error, and the wait between the end of a conversation summarization and the first token of the answer showed no feedback at all.
Proposal
Summary by CodeRabbit
Bug Fixes
User Experience
Tests
#659