{"slug": "vercel-patches-workflowagent-s-ignored-approval-policy-in-ai-sdk-code", "title": "Vercel patches WorkflowAgent's ignored approval policy in AI SDK code", "summary": "Vercel merged a patch so its WorkflowAgent now accepts the 'toolApproval' policy configuration it previously rejected in TypeScript and ignored at runtime, where a tool without 'needsApproval' \"always ran\" even when an application supplied the richer policy used by 'ToolLoopAgent'. The change adds approval checks at construction, per call and on resume, so the approval rule travels with the durable workflow run and is reapplied when the run resumes, and a separate fix guards the exact tool arguments a person approved during replay.", "body_md": "# Vercel patches WorkflowAgent's ignored approval policy in AI SDK code\n\n**A merged Vercel change adds approval checks at construction, per call and on resume; a separate fix guards approved tool inputs during replay.**\n\n        By [Ryan Merket](https://runtimewire.com/author/ryan-merket)\n        · Published \n\nVercel'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'.\n\nWorkflowAgent 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.…", "url": "https://wpnews.pro/news/vercel-patches-workflowagent-s-ignored-approval-policy-in-ai-sdk-code", "canonical_source": "https://runtimewire.com/article/vercel-workflowagent-toolapproval-policy-replay", "published_at": "2026-11-14 03:17:38+00:00", "updated_at": "2026-11-14 03:21:42.233132+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["Vercel", "WorkflowAgent", "ToolLoopAgent", "TypeScript", "Ryan Merket"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/vercel-patches-workflowagent-s-ignored-approval-policy-in-ai-sdk-code", "markdown": "https://wpnews.pro/news/vercel-patches-workflowagent-s-ignored-approval-policy-in-ai-sdk-code.md", "text": "https://wpnews.pro/news/vercel-patches-workflowagent-s-ignored-approval-policy-in-ai-sdk-code.txt", "jsonld": "https://wpnews.pro/news/vercel-patches-workflowagent-s-ignored-approval-policy-in-ai-sdk-code.jsonld"}}