Commit ef7dae4
fix(layout): let re-registration be a no-op, not a throw
Nodes and reroutes threw when their layout key already held an entry, so
any id reused after an earlier graph went away aborted the add. Treat
'no-op' as success and keep the abort for 'rejected', which is the
reentrancy guard. Groups keep their foreign-owner check.
Drops the node:added ordering test, which this branch's registration
transaction has superseded, and the reroute assertion that required the
throw over an orphaned key.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 18f459d commit ef7dae4
4 files changed
Lines changed: 9 additions & 39 deletions
File tree
- src
- lib/litegraph/src
- platform/workflow/core/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1890 | 1890 | | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | 1893 | | |
1909 | 1894 | | |
1910 | 1895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
1231 | | - | |
| 1231 | + | |
| 1232 | + | |
1232 | 1233 | | |
1233 | | - | |
1234 | | - | |
| 1234 | + | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
| |||
1788 | 1788 | | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | | - | |
| 1791 | + | |
| 1792 | + | |
1792 | 1793 | | |
1793 | | - | |
| 1794 | + | |
1794 | 1795 | | |
1795 | 1796 | | |
1796 | 1797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | 1322 | | |
1332 | 1323 | | |
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
| |||
53 | 46 | | |
54 | 47 | | |
55 | 48 | | |
56 | | - | |
| 49 | + | |
57 | 50 | | |
58 | 51 | | |
59 | 52 | | |
| |||
87 | 80 | | |
88 | 81 | | |
89 | 82 | | |
90 | | - | |
| 83 | + | |
91 | 84 | | |
92 | 85 | | |
93 | 86 | | |
| |||
125 | 118 | | |
126 | 119 | | |
127 | 120 | | |
128 | | - | |
| 121 | + | |
129 | 122 | | |
130 | 123 | | |
131 | 124 | | |
| |||
0 commit comments