Repository navigation
Commit 6508785
committed
fix(plugin-approvals): every approval step records the run's trigger user as its submitter
Since a decision resumes its flow as the decider, the approval node's
context.userId on a later step is the previous step's decider. The node
now opens each step with the run's trigger user, the engine's own
triggerUserId reading, and openNodeRequest treats an explicit null
submitter as no submitter instead of falling back to the decider.
Claude-Session: https://claude.ai/code/session_011TdZ8GjixNZFLz1xJD9zzK
Co-authored-by: Claude <noreply@anthropic.com>1 parent e3ac5ac commit 6508785
3 files changed
Lines changed: 45 additions & 6 deletions
File tree
- packages/plugins/plugin-approvals/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
86 | 114 | | |
87 | 115 | | |
88 | 116 | | |
| |||
162 | 190 | | |
163 | 191 | | |
164 | 192 | | |
165 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
166 | 197 | | |
167 | 198 | | |
168 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3450 | 3450 | | |
3451 | 3451 | | |
3452 | 3452 | | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
3453 | 3460 | | |
3454 | 3461 | | |
3455 | 3462 | | |
| |||
3730 | 3737 | | |
3731 | 3738 | | |
3732 | 3739 | | |
| 3740 | + | |
3733 | 3741 | | |
3734 | 3742 | | |
3735 | 3743 | | |
3736 | 3744 | | |
3737 | 3745 | | |
3738 | | - | |
| 3746 | + | |
3739 | 3747 | | |
3740 | 3748 | | |
3741 | 3749 | | |
| |||
3762 | 3770 | | |
3763 | 3771 | | |
3764 | 3772 | | |
3765 | | - | |
| 3773 | + | |
3766 | 3774 | | |
3767 | 3775 | | |
3768 | 3776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
| 209 | + | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments