Commit efd7767
fix(flow-designer): the default path is the edge marker, not the branch (#3148)
Two help strings on the Decision inspector that described mechanisms the
engine does not have.
The Branches editor said a branch whose expression is "true" IS the
default/else path. It is how you ASK for one: FlowEdgeInspector.applyBranch()
turns such a branch into `isDefault: true` on the out-edge it wires, and the
marker on that edge is what routes. Conflating the two is the reading that
let framework#4414 ship a decision whose guard did not guard — worth being
exact about now that `isDefault` is actually enforced (the key had zero
readers until then, so this designer was writing a marker nothing honoured).
Also states that branches are tried in order and that the expression is bare
CEL, since a braced predicate is now a build failure (framework#4439).
The legacy single `Condition` field said "Prefer Branches above", which reads
as "this works, but the other is better". It does not work at all: the
decision executor never reads `config.condition`. The engine only honours
that key on a Start node, as the trigger gate; framework#4414 added
`flow-inert-node-condition` to `os validate` for exactly this. The field stays
render-only (`__legacy__` never matches) so a stored value is not invisible,
but the help now says it is inert and where to move the predicate.
Claude-Session: https://claude.ai/code/session_01Q8as8yR67v41xEdomiTba9
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5eaa861 commit efd7767
2 files changed
Lines changed: 43 additions & 2 deletions
File tree
- .changeset
- packages/app-shell/src/views/metadata-admin/inspectors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
411 | 416 | | |
412 | 417 | | |
413 | 418 | | |
| |||
416 | 421 | | |
417 | 422 | | |
418 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
419 | 431 | | |
420 | 432 | | |
421 | | - | |
| 433 | + | |
422 | 434 | | |
423 | 435 | | |
424 | 436 | | |
| |||
0 commit comments