fix: avoid duplicating streamed assistant completion text #465
Mergedjamesx0416(GitHub profile, opens in a new tab)merged 1 commit into
main fromrefs/pull/465/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubt3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
92592a5e-badc-4c18-88f1-86fd77bbf63b📥 Commits
Reviewing files that changed from the base of the PR and between c97c6b7836ce888b24a157de8eb4aea761028979 and 1f4b976495ea5a9901ae4e60b0d1fb279b585672.
📒 Files selected for processing (2)
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts📝 Walkthrough
Walkthrough#
Adds a guard condition to prevent applying fallback completion text when an existing assistant message already contains non-empty text, with corresponding test update to verify the detail field is properly passed through the completion event payload during streaming mode.
Changes#
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts,apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsEstimated code review effort#
🎯 2 (Simple) | ⏱️ ~8 minutes
Poem#
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
✨ Finishing Touches
🧪 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.
❤️ Share