# Vercel patches WorkflowAgent's ignored approval policy in AI SDK code

> Source: <https://runtimewire.com/article/vercel-workflowagent-toolapproval-policy-replay>
> Published: 2026-11-14 03:17:38+00:00

# Vercel patches WorkflowAgent's ignored approval policy in AI SDK code

**A merged Vercel change adds approval checks at construction, per call and on resume; a separate fix guards approved tool inputs during replay.**

        By [Ryan Merket](https://runtimewire.com/author/ryan-merket)
        · Published 

Vercel's WorkflowAgent now accepts the 'toolApproval' policy configuration that it previously rejected in TypeScript and ignored at runtime. The pull request states the old behavior plainly: a tool without 'needsApproval' "always ran," even when an application supplied the richer policy used by 'ToolLoopAgent'.

WorkflowAgent runs agent loops inside a durable workflow, so a run can pause for a human decision and resume later. The approval rule now travels with that durable run and gets applied again when the run resumes. A separate fix protects the exact arguments the person approved.…
