FrameworksOfficial

AI SDK 7.0.177 can interrupt and redo a model call before first output, while cancelled calls may still be billed

Vercel released AI SDK 7.0.177 on November 18 with an interrupt option for experimental steering. If a user corrects the agent before the model emits text, reasoning, tool input, or a tool call, the SDK cancels that model call and reruns it in the same step with the steering message. The step number, onStepStart event, and stop-condition count remain unchanged. Once output has begun or a tool is running, steering falls back to the next step boundary, and running tools are never interrupted.

Why it matters

Correction timing affects both responsiveness and side-effect risk in long-running generative UI. Previously, steering waited for the current step and its tools to finish even when the user immediately spotted a wrong target. The new option shortens correction before output, but separates one logical step from potentially multiple billed model calls, so interfaces need to expose interrupt state, call budgets, and costs omitted from usage.

A closer look

steering.steer(message, { interrupt: true }) uses the same attempt pattern as stream retries. It cancels a model call with no output, reruns prepareStep with the original step's instructions, runtimeContext, and toolsContext, and starts another model call inside that step. streamText closes any empty text or reasoning parts, emits the steering-message part, and then streams the replacement output; OpenTelemetry ends the cancelled call's span with error status. Text, reasoning, tool-input-start, or a tool call closes the interrupt window, so the correction queues for the next step. With the default one-step stop condition it may return stop-condition without delivery. The release also packages the AI SDK skill at skills/ai-sdk for pnpm agent skills.

Who this is for

Frontend and agent-platform teams building correctable generative UI, long-running agents, streaming chat, tool loops, cost budgets, or OpenTelemetry traces.

Original sources

Revisions & corrections (1)

— Publish the evidence-complete AI SDK 7.0.177 steering interrupt event from its immutable release and implementation commit, preserving its billing, stop-condition, output-window, and side-effect limits.

Related events

Frameworks

AI SDK raises the Responses event limit for large generated images, fixing 'images arrived but the request failed'

On November 26, AI SDK added configurable maxEventSize handling and raised the per-event limit used by OpenAI and xAI Responses models from the 64 MiB default to 512 MiB. Because response.completed repeats every output item, several large base64 images could exceed the limit and fail the request after the images had already reached the client.