Repository navigation
fix(vercel-ai-sdk): improve duplicate Activity errors and streaming response metadata - #485
Merged
Merged
Conversation
brianstrauch
left a comment
Member
There was a problem hiding this comment.
The streaming change can break replay for existing workflows that issue commands based on metadata parts.
This was referenced Nov 11, 2026
brianstrauch
approved these changes
Nov 12, 2026
moetemp
force-pushed
the
fix/vercel-ai-sdk-review-followups
branch
2 times, most recently
from
November 13, 2026 20:02
184b8a3 to
04d9304
Compare
moetemp
enabled auto-merge (squash)
November 13, 2026 20:03
The duplicate errors did not tell users how to keep two providers or where the other Activity came from, and two plugins with workflowsPath failed in the bundler. The streaming path could emit an Invalid Date and an empty response-metadata part.
A Workflow that schedules a command for each stream part would fail replay without the part. The heartbeat version note applies to all plugins, so it does not go in one README.
moetemp
force-pushed
the
fix/vercel-ai-sdk-review-followups
branch
from
November 13, 2026 20:52
04d9304 to
2604179
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed?
This PR fixes the points from my reviews of #162, #445 and #386.
AiSdkPlugins, it suggests onemodelProviderbuilt withcustomProvider.nativeWorker.initiateShutdownis missing.AiSdkPluginchecks its owncreateActivitiesresult, not a cast ofoptions.activities.AiSdkPlugins withworkflowsPathdon't fail in webpack anymore.doStreamdrops an invalidtimestamp.Fixes #AI-963
Why?
The duplicate error didn't tell a user with two providers how to keep both. The rest are small gaps next to that code.
The stream keeps the same parts as before, so Workflow history doesn't change.
How did you test it?
make lintandmake testpass intypescript/vercel-ai-sdk.