Repository navigation
Commit cc23112
fix(server): a chat is told when its background work stops with its agent's session
A chat that ended its turn to wait on background work was never told when
that work stopped in three ways the previous fix (a198fd8) left open.
Session release. For every reason but shutdown the session manager cleared
the roster and recorded nothing. It now records what the released process
ran on the run that last ran on the thread, with a notice, in the roster's
own write. An expired idle pin or a failed runtime also queues the wake in
that write. An idle close does not wake a run that was itself woken for
lost work, so quiet work an agent restarts cannot loop unattended. A
release someone asked for records the work without a wake.
A turn that needs a new session. The orchestrator points the provider
thread at the next session before the old one is detached, so the release
never saw that roster and the new process cleared it. The release now asks
the runtime it closes whose background work it still runs, and records on
the run before the one being started, so that turn's prompt carries the
note. The note also follows the native conversation when an account move
resumes it under another provider thread. The Claude adapter already
refuses to replace a process that runs background work for its own chat.
A race. A completed run's stream stopped on the adapter's live state before
it ingested the roster update that reports the tasks as lost. For a runtime
whose tasks end with its process it now keeps reading while the last roster
it stored lists tasks.
The wake of a finished /compact run now sends the note instead of being
dropped.
Claude Fable 5.2, reviewed by Claude Fable 5.2 and GPT-6-Astra, in
T3.CodeShip (Claude Code harness).
Co-Authored-By: Claude Fable 5.2 <[email protected]>1 parent 7579eeb commit cc23112
17 files changed
Lines changed: 1052 additions & 306 deletions
File tree
- apps/server/src/orchestration-v2
- testkit
- docs
- internals
- user
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
609 | 610 | | |
610 | 611 | | |
611 | 612 | | |
| 613 | + | |
612 | 614 | | |
613 | 615 | | |
614 | 616 | | |
615 | | - | |
616 | | - | |
617 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
618 | 624 | | |
619 | 625 | | |
620 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
483 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
484 | 489 | | |
485 | 490 | | |
486 | 491 | | |
| |||
489 | 494 | | |
490 | 495 | | |
491 | 496 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
| 497 | + | |
496 | 498 | | |
497 | 499 | | |
498 | 500 | | |
| |||
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
| 506 | + | |
513 | 507 | | |
514 | 508 | | |
515 | 509 | | |
| |||
540 | 534 | | |
541 | 535 | | |
542 | 536 | | |
543 | | - | |
544 | | - | |
| 537 | + | |
545 | 538 | | |
546 | 539 | | |
547 | | - | |
548 | | - | |
| 540 | + | |
| 541 | + | |
549 | 542 | | |
550 | 543 | | |
551 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 357 | | |
376 | 358 | | |
377 | 359 | | |
| |||
804 | 786 | | |
805 | 787 | | |
806 | 788 | | |
807 | | - | |
| 789 | + | |
808 | 790 | | |
809 | 791 | | |
810 | 792 | | |
| |||
0 commit comments