Commit 4719b98
fix(copilot): stop calling a cancelled run performed
`performed` claims the run reached the end of its work, so a caller reads
it as "never retry, just read the outcome". Every returned result carried
it, including a cancelled or paused one — which stopped partway and may
have run every block, one, or none.
Those are `attempted`: an execution exists under this id, resolve it
before deciding anything. That is true whether the cancellation landed
before the first block or after the last.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 6caff35 commit 4719b98
2 files changed
Lines changed: 29 additions & 1 deletion
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
298 | 311 | | |
299 | 312 | | |
300 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
80 | 95 | | |
81 | 96 | | |
82 | 97 | | |
83 | | - | |
| 98 | + | |
84 | 99 | | |
85 | 100 | | |
86 | 101 | | |
| |||
0 commit comments