Repository navigation
Commit 9dc0314
authored
fix(core): preserve workflow input after finish (#1362)
WorkflowStateManager.finish() reassigned the stored input to the current
data, so reading state.input after a workflow completed returned the final
output instead of the initial input it documents. update() already preserves
the input during a run; finish() now does too. state.data still reflects the
final value. Adds a regression test.1 parent 17732a3 commit 9dc0314
3 files changed
Lines changed: 16 additions & 1 deletion
File tree
- .changeset
- packages/core/src/workflow/internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
131 | 142 | | |
132 | 143 | | |
133 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
0 commit comments