Skip to content

fix: merge workflow.variables defaults into stepFn params#158

Merged
ben-rogerson merged 2 commits into
mainfrom
fix/workflow-variables-not-in-stepfn-params
May 13, 2026
Merged

fix: merge workflow.variables defaults into stepFn params#158
ben-rogerson merged 2 commits into
mainfrom
fix/workflow-variables-not-in-stepfn-params

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

Workflow.variables defaults were declared but never merged into the params\npassed to step functions. A stepFn destructuring a variable then received\nundefined even though the workflow declared a default. Precheck added the\nvariable keys to the available set, masking the gap silently.\n\nMerge workflow.variables into params before adding the today key, preserving\nthe precedence: defaults < today < caller-supplied params.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

Workflow.variables defaults were declared but never merged into the params\npassed to step functions. A stepFn destructuring a variable then received\nundefined even though the workflow declared a default. Precheck added the\nvariable keys to the available set, masking the gap silently.\n\nMerge workflow.variables into params before adding the today key, preserving\nthe precedence: defaults < today < caller-supplied params.
@ben-rogerson ben-rogerson merged commit d0bfe3f into main May 13, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the fix/workflow-variables-not-in-stepfn-params branch May 13, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant