Commit 6622ea5
fix(execute): use StableGraph to preserve node indices during removal
DiGraph uses swap-remove which invalidates indices when nodes are removed
during iteration. StableGraph preserves indices, fixing panic when
executing task graphs with 3+ nodes.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 1439516 commit 6622ea5
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments