Fix duplicate assistant messages when streaming is enabled#381
Fix duplicate assistant messages when streaming is enabled#381ishaanrajiv wants to merge 1 commit intopingdotgg:mainfrom
Conversation
- track whether assistant text was already emitted per message - finalize with buffered text first; ignore completion detail if already streamed - add regression test for streaming + item.completed detail dedupe
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
Disclaimer: Generated via T3Code
Fixes #349.
Summary
When Stream assistant messages is enabled, assistant responses can appear twice in the desktop app.
This happens when:
Fix
Validation
Before:

After:
