0.12.9

A cut-off Vercel AI SDK stream closes as an interruption

A patch release. All six packages move to 0.12.9 together. Only @silverprotocol/vercel-ai changes. The spec revision stays 1.0.0-draft.8.

Who should upgrade

  • You run the Vercel AI SDK with @ai-sdk/openai 4.0.100 or later. A stream cut off before its completion signal now closes as an interruption, where 0.12.8 closed it as a success.
  • Anyone else gets the same output as from 0.12.8: all 103 replayed runs are byte-identical (see Wire version).

Vercel AI SDK

  • A cut-off stream now closes turn.abort with reason "interrupted", not a success turn.done. From @ai-sdk/openai 4.0.100, the provider starts every stream (Responses, Chat Completions and Completions) at finish reason interrupted and moves off it only when its completion signal arrives, so a stream cut off mid-answer ends with finish-step and finish both interrupted. From ai 7.0.149, interrupted is a member of FinishReason and stops the step loop. 0.12.8 closed that turn as a success turn.done, with finishReason "unknown" and finishReasonRaw "interrupted". 0.12.9 closes it turn.abort with reason: "interrupted", as the spec requires for a native interruption (§8.0 item 17), and each step’s usage still rides its finish-step’s message.end. A UI that renders a success turn as complete now shows a cut-off answer as stopped. With @ai-sdk/openai 4.0.99 or earlier, the provider reports a cut-off stream as other and gives no interruption signal, so the same stream closes turn.done with finishReason "other", on this version and every earlier one.

The other five packages change only their version.

Verified versions

Each framework package is verified end to end, tool calls included, against a live run at:

  • @anthropic-ai/claude-agent-sdk 0.3.292;
  • @openai/agents 0.21.0;
  • @google/adk 2.2.1;
  • ai 7.0.130.

Wire version

1.0.0-draft.8, unchanged. Replaying every recorded stream and the Google ADK pause fixtures through the 0.12.8 and 0.12.9 packages, all 103 runs give byte-identical events: 81 recorded streams and 22 fixture runs. No recorded Vercel AI SDK stream carries the provider’s interrupted finish reason. A cut-off stream built from parts captured at ai 7.0.153 with @ai-sdk/openai 4.0.102 closes turn.done on 0.12.8 and turn.abort "interrupted" on 0.12.9, and the same stream run to completion closes turn.done on both.

npm’s provenance for all six 0.12.9 packages attests typescript-sdk commit f848ff5b.