Skip to content

Commit 6f44d63

Browse files
ggondimclaude
andcommitted
fix: precompile CEL expressions in set flow steps
The set construct was the only flow step missing from precompileFlowSteps, meaning syntax errors in set expressions were only caught at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2c5c6ec commit 6f44d63

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎internal/cel/precompile.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ func precompileFlowSteps(e *Environment, steps []model.FlowStep, path string, lo
127127
return fmt.Errorf("precompiling %s.wait.match: %w", stepPath, err)
128128
}
129129
}
130+
case step.Set != nil:
131+
for key, expr := range step.Set.Values {
132+
if _, err := e.Compile(rewriteLoopAlias(expr, loopAlias)); err != nil {
133+
return fmt.Errorf("precompiling %s.set.%s: %w", stepPath, key, err)
134+
}
135+
}
130136
case step.InlineParticipant != nil:
131137
p := step.InlineParticipant
132138
if p.When != "" {

0 commit comments

Comments
 (0)