Repository navigation
[vercel-ai-sdk-typescript] breaking: remove the pre-2.0 replay gates - #586
Merged
Merged
Conversation
Replay is promised only within a major, and the next Vercel AI SDK release is 2.0.0. Two patches only kept 1.x runs on their old paths, so they go: - vercel-ai-sdk-download-urls-in-model-activity (#468): the model always reports that it supports every URL, so the model Activity downloads them. - vercel-ai-sdk-abort-signal-cancels-model-activity (#470): a caller's abortSignal always cancels the model Activity. The README says which 1.x runs don't replay.
campoy
force-pushed
the
breaking/vercel-ai-sdk-remove-pre-2-gates
branch
from
November 16, 2026 18:23
38fe95c to
22ada76
Compare
campoy
marked this pull request as ready for review
November 16, 2026 18:39
moetemp
approved these changes
Nov 16, 2026
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 was changed
The next Vercel AI SDK release is 2.0.0, so its current major is 2, and replay is promised only within a major. Two patches only keep 1.x runs on their old paths, so let's remove them before 2.0:
vercel-ai-sdk-download-urls-in-model-activity(fix(vercel-ai-sdk): download prompt image and file URLs in the model Activity #468): the model always reports that it supports every URL, so URL parts always go to the model Activity, which downloads them.vercel-ai-sdk-abort-signal-cancels-model-activity(fix(vercel-ai-sdk): cancel the model Activity when a caller abortSignal aborts #470): a caller'sabortSignalalways cancels the model Activity.The README drops both patch notes and says which 1.x runs don't replay.
What will you notice? (Breaking)
Two kinds of 1.x run don't replay on 2.0. Let them finish on 1.x Workers before you upgrade, or keep them there with Worker Versioning:
experimental_downloadfunction scheduled an Activity for a URL. On 2.0 the model call comes first:[TMPRL1100] Activity type of scheduled event 'downloadNotes' does not match activity type of activity command 'invokeModel'.Fatal error in workflow machines: ActivityMachine in state ScheduledActivityCancelCommandCreated says the transition is invalid.A run on a
mainbuild since #468 or #470 that took the new path recorded the marker, so it doesn't replay either. No release wrote those markers.Why?
We decided that replay is promised only within a major, and that a gate that only protects an older major's runs is removed before the next major ships. The Vercel AI SDK plugin's next release is 2.0.0, so these gates go before it.
Checklist
No issue.
How was this tested:
make sync,make lintandmake testfortypescript/vercel-ai-sdk, in Docker with Node 24: 133 tests passed.experimental_downloadand abort histories fail as above, and the one with a model call next to a plain Activity still replays.Any docs updates needed? The README changes are here.