controllogic: debug value is Value (array-capable); lua get narrows to scalar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Martino Ferrari
2026-06-24 19:50:47 +02:00
parent 088063d9cd
commit 9c1f2685a7
6 changed files with 28 additions and 23 deletions
+1 -5
View File
@@ -1053,11 +1053,7 @@ func (cg *compiledGraph) run(nodeID string, ctx *runCtx) {
case "action.write":
val := EvalValue(node.param("expr"), ctx.resolve)
f, isNum := val.(float64)
if !isNum {
f = math.NaN()
}
cg.emitDebug(node.ID, f, true)
cg.emitDebug(node.ID, val, true)
cg.engine.write(cg, node.param("target"), val)
cg.follow(node.ID, "out", ctx)