Repository navigation
Commit 9a5a793
fix(server): Stop reaches background work after a run fails before its provider starts
When the newest run failed before its provider started, it had no provider
turn, so run.interrupt rejected it as not interruptible. Stop then could
not end the background work the thread still showed. The interrupt now
falls back to the provider thread's latest turn, whose session owns that
work.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 8fb068c commit 9a5a793
2 files changed
Lines changed: 32 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
390 | 402 | | |
391 | 403 | | |
392 | 404 | | |
| |||
404 | 416 | | |
405 | 417 | | |
406 | 418 | | |
| 419 | + | |
407 | 420 | | |
408 | 421 | | |
409 | 422 | | |
410 | 423 | | |
411 | 424 | | |
412 | 425 | | |
413 | 426 | | |
414 | | - | |
| 427 | + | |
415 | 428 | | |
416 | 429 | | |
417 | 430 | | |
418 | | - | |
| 431 | + | |
| 432 | + | |
419 | 433 | | |
420 | 434 | | |
421 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8035 | 8035 | | |
8036 | 8036 | | |
8037 | 8037 | | |
8038 | | - | |
8039 | | - | |
8040 | | - | |
8041 | | - | |
8042 | | - | |
| 8038 | + | |
| 8039 | + | |
| 8040 | + | |
| 8041 | + | |
| 8042 | + | |
| 8043 | + | |
| 8044 | + | |
| 8045 | + | |
| 8046 | + | |
| 8047 | + | |
| 8048 | + | |
| 8049 | + | |
| 8050 | + | |
| 8051 | + | |
8043 | 8052 | | |
8044 | 8053 | | |
8045 | 8054 | | |
| |||
0 commit comments