Repository navigation
Commit ad00ba8
authored
fix(agents): stop queued Swarm collectors with their parent (#133076)
* fix(agents): stop queued Swarm collectors with their parent
Preserve exact parent-run ownership independently of completion delivery. Hold selected queue reservations before cancellation, retain lexical ownership through recovery and retirement, and publish task results only while that owner remains current.
Bind first-turn chat cancellation to the prepared canonical session and preserve original transcript incarnations. Keep foreign and replacement work untouched, initiate native and ACP cancellation together, and report incomplete cancellation truthfully.
Fixes #131553
* fix(tasks): keep cancellation contracts out of runtime cycles
* test(ui): wait for responsive attachment layout
* fix(agents): expose and cancel queued Swarm collectors
Persist child labels at creation and project exact scheduler-owned queued
work without inventing an execution context or start clock. Preserve
operator renames when delayed launches begin.
Route direct queued-child Stop through the existing fenced kill owner and
shared Gateway cancellation plan. Preserve requester ownership, canonical
abort markers, coexisting work, synchronous publication, and the original
Stop reason during native preaccept admission draining. Finalize captured
chat output even when later collector cancellation loses authority, and
report incomplete cancellation instead of success when other owners keep
the selected collector queued.
Keep transcript snapshots and persistence in the existing transcript owner,
with a lazy placement boundary instead of loading the cancellation owner.
Cover session lists, history, events, typed Stop, exact Stop, native
preaccept admission, replacement, retirement, and foreign requester cases.
Consolidate the attachment layout regression with the upstream readiness
fix while retaining desktop materialization and strict geometry checks.
* test(gateway): repair session lifecycle fixtures
* test(gateway): align cancellation fixtures with lifecycle cleanup1 parent d8fe500 commit ad00ba8
93 files changed
Lines changed: 11183 additions & 2185 deletions
File tree
- docs
- tools
- web
- src
- agents
- subagents
- registry
- spawn
- swarm
- tools
- auto-reply/reply
- gateway
- agent-turn
- server-methods
- sessions
- tasks
- ui/src/pages/chat
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
542 | 541 | | |
543 | 542 | | |
544 | 543 | | |
| |||
734 | 733 | | |
735 | 734 | | |
736 | 735 | | |
737 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
738 | 761 | | |
739 | 762 | | |
740 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
327 | 345 | | |
328 | 346 | | |
329 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| 638 | + | |
| 639 | + | |
638 | 640 | | |
639 | 641 | | |
640 | 642 | | |
641 | 643 | | |
642 | 644 | | |
643 | 645 | | |
644 | | - | |
| 646 | + | |
645 | 647 | | |
646 | 648 | | |
647 | 649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
0 commit comments