AI SDK 7.0.173 freezes approved tool arguments and adds workflow approval policy plus layered timeouts
Vercel released AI SDK 7.0.173 on November 13. It prevents schema validation or input refinement from mutating approved tool arguments in place during approval replay. WorkflowAgent also gains toolApproval that can override a tool's needsApproval setting, plus total, step, first-chunk, and inter-chunk timeouts.
Why it matters
A generative-UI confirmation surface must execute the same arguments the user approved. In-place mutation during replay can split what the interface displayed from what runs. Workflow-level approval and layered timeouts let the host separately govern side effects and unresponsive model steps.
A closer look
toolApproval can be set on the constructor or individual generate/stream calls and takes precedence over a tool's needsApproval. Denied calls receive an execution-denied result without pausing the workflow; approved calls run in the same step. timeout accepts totalMs, stepMs, firstChunkMs, and chunkMs. Invalid values are rejected, and a timeout ends a model step even when a provider stream ignores the abort signal. prepareStep instructions, providerOptions, and headers are also aligned with ToolLoopAgent.
Who this is for
Agent-platform, frontend, and security teams using AI SDK 7, WorkflowAgent, tool approval, or streamed generative UI.
Original sources
Revisions & corrections (1)
— New official immutable release after the previous successful collection.