{"version":"2.1.333","anchor":"workflow-script-rewriting-adds-semicolon-insertion-and-an-in","canonical_anchor":"workflow-script-rewriting-adds-semicolon-insertion-and-an-in","heading":"Workflow scripts are prepared more carefully before they run","tier":"internal","area":"Workflows","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/workflow-script-rewriting-adds-semicolon-insertion-and-an-in","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Workflow scripts are prepared more carefully before they run\n\nClaude Code now adds missing semicolons and fixes some patterns in workflow scripts, and reports an internal error if preparing one fails\n\n**What**\n\nBefore a workflow script runs, Claude Code rewrites it into a form it can run. It now:\n\n- adds semicolons after statements\n\n- wraps `in` expressions\n\n- rewrites object patterns\n\nIf this preparation goes wrong, the script is not started. The message says this is an internal error, not a fault in your script, and asks you to report it with `\/bug`.\n\nA separate remotely controlled switch decides whether a snapshot of the workflow's options is passed to agent hooks.\n\n**Why**\n\nWorkflow scripts that failed because of missing semicolons or `in` expressions may now run. If you see the internal error, report it with `\/bug`.\n\n- Area: Workflows\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}