Commit 48f72a2
feat(copilot): let Run agent cancel workflow runs (#7151)
* feat(copilot): execute workflow run cancellations
* fix(copilot): route run cancellations through internal API
* fix(copilot): share workflow cancellation boundary
* fix(copilot): honor aborts before cancellation commit
* fix(copilot): reconcile failed cancellation rollbacks
* fix(copilot): honor workflow group cancellation commit
* test(copilot): include workflow cancellation approval
* improvement(copilot): simplify cancellation lifecycle
* improvement(workflows): unify run cancellation
* fix(workflows): preserve v2 terminal cancellation responses
* fix(workflows): align cancellation adapter test
* fix(workflows): reconcile replacement resume cancellation
* fix(workflows): confirm every active resume stop
* fix(copilot): require workflow id for cancellation
* fix(workflows): validate cancellation terminal writes
* fix(workflows): cancel runs by execution id
* fix(workflows): reconcile failed abort rollbacks
* fix(workflows): restore rejected cancellation staging
* fix(workflows): preserve terminal runs during cancellation
* fix(execution): stop terminal-race resumes before cleanup
---------
Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai>1 parent 1404e65 commit 48f72a2
31 files changed
Lines changed: 3328 additions & 3323 deletions
File tree
- apps
- docs
- sim
- app/api
- v2/workflows/[workflowId]/runs/[runId]
- cancel
- workflows/[id]/executions/[executionId]/cancel
- lib
- api/contracts
- v2
- copilot
- generated
- request/tools
- tool-executor
- tools
- handlers
- workflow
- execution
- webhooks
- workflows
- api
- application
- executor
- packages/sim-cli/src/generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9997 | 9997 | | |
9998 | 9998 | | |
9999 | 9999 | | |
10000 | | - | |
| 10000 | + | |
10001 | 10001 | | |
10002 | 10002 | | |
10003 | 10003 | | |
| |||
10007 | 10007 | | |
10008 | 10008 | | |
10009 | 10009 | | |
10010 | | - | |
| 10010 | + | |
| 10011 | + | |
| 10012 | + | |
| 10013 | + | |
10011 | 10014 | | |
10012 | 10015 | | |
10013 | 10016 | | |
| |||
Lines changed: 38 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
106 | 97 | | |
107 | 98 | | |
108 | 99 | | |
| |||
111 | 102 | | |
112 | 103 | | |
113 | 104 | | |
114 | | - | |
| 105 | + | |
115 | 106 | | |
116 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
117 | 140 | | |
Lines changed: 2 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 29 | | |
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
362 | 359 | | |
363 | 360 | | |
364 | 361 | | |
365 | | - | |
| 362 | + | |
366 | 363 | | |
367 | 364 | | |
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
373 | | - | |
374 | 370 | | |
375 | 371 | | |
376 | 372 | | |
| |||
399 | 395 | | |
400 | 396 | | |
401 | 397 | | |
402 | | - | |
403 | 398 | | |
404 | 399 | | |
405 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
425 | 423 | | |
426 | 424 | | |
0 commit comments