{"version":"2.1.337","anchor":"local-workflow-task-events-carry-workflow-run-id","canonical_anchor":"local-workflow-task-events-carry-workflow-run-id","heading":"Local workflow task events now include the workflow run ID","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/local-workflow-task-events-carry-workflow-run-id","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Local workflow task events now include the workflow run ID\n\nTask events for local workflows now carry `workflow_run_id`, so SDK programs can link events to a workflow run\n\n**What**\n\nPrograms that control Claude Code through its SDK, the library for building on Claude Code, receive events as tasks run. Task events for local workflow tasks now include a `workflow_run_id` field. It is added only when the task:\n\n- was started from a session\n\n- has a script file path\n\n- does not keep its script hidden from SDK events\n\n**Why**\n\nPrograms built on the SDK can now tell which workflow run a task event belongs to.\n\n- Area: SDK\n- Names: `workflow_run_id`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}