fix: keep streaming message ids consistent with memory by emitting `m…#1022
fix: keep streaming message ids consistent with memory by emitting `m…#1022
Conversation
🦋 Changeset detectedLatest commit: 259d207 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughThis PR introduces messageId propagation through the streaming response pipeline. It adds an optional messageId field to stream parts, creates a helper to inject messageId into start/start-step chunks, applies this in the agent's streamText path, and updates the UI adapter to use this ID for text-delta mapping while preserving text-part IDs. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Comment |
This comment has been minimized.
This comment has been minimized.
Deploying voltagent with
|
| Latest commit: |
259d207
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c6db6119.voltagent.pages.dev |
| Branch Preview URL: | https://fix-message-id-streaming.voltagent.pages.dev |
…essageId`
PR Checklist
Please check if your PR fulfills the following requirements:
Bugs / Features
What is the current behavior?
What is the new behavior?
fixes (issue)
Notes for reviewers
Summary by cubic
Ensures streaming message IDs stay consistent with memory by emitting messageId on start/start-step parts and using it for UI stream mapping. Fixes #1021 to prevent mismatched messages during live updates.
Written for commit 259d207. Summary will update on new commits.
Summary by CodeRabbit
Bug Fixes
Documentation