Skip to content

Make director task a spawn plus wait wrapper - #685

Merged
TheGreatAxios merged 2 commits into
mainfrom
fleet-task-wrapper
Aug 25, 2026
Merged

Make director task a spawn plus wait wrapper#685
TheGreatAxios merged 2 commits into
mainfrom
fleet-task-wrapper

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Closed-director task() starts the worker through spawn_agent and blocks on wait_agents, so one mailbox owns completion.
  • Custom AgentProfile lookup still uses the legacy await-run path.
  • Primary and nested mounts share one fleetRecords instance between task and the fleet verbs.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • New test covers director task() returning the worker report via the fleet mailbox

@TheGreatAxios
TheGreatAxios force-pushed the fleet-spawn-parity branch 2 times, most recently from 61ef1d0 to 05ad41f Compare August 25, 2026 16:11
Closed-director task() was a second full spawn engine. When a session
store is present it now starts the worker through spawn_agent and blocks
on wait_agents, so one mailbox owns completion. Custom AgentProfile
lookup still uses the legacy await-run path.
…pper

Director task() now routes through spawn_agent + wait_agents, which was
misclassifying AbortError as failed:aborted, dropping Re-authenticate
auth wording, and leaving the child running when the parent tool aborted.
Map those outcomes back to the legacy fused-task parent contract and
prettier the inherited agent-progress tip.
@TheGreatAxios
TheGreatAxios changed the base branch from fleet-spawn-parity to main August 25, 2026 16:40
@TheGreatAxios
TheGreatAxios merged commit 98db4b7 into main Aug 25, 2026
5 checks passed
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
* Make director task() a spawn_agent plus wait_agents wrapper

Closed-director task() was a second full spawn engine. When a session
store is present it now starts the worker through spawn_agent and blocks
on wait_agents, so one mailbox owns completion. Custom AgentProfile
lookup still uses the legacy await-run path.

* Preserve task cancel, auth, and abort contracts through the fleet wrapper

Director task() now routes through spawn_agent + wait_agents, which was
misclassifying AbortError as failed:aborted, dropping Re-authenticate
auth wording, and leaving the child running when the parent tool aborted.
Map those outcomes back to the legacy fused-task parent contract and
prettier the inherited agent-progress tip.
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
* Make director task() a spawn_agent plus wait_agents wrapper

Closed-director task() was a second full spawn engine. When a session
store is present it now starts the worker through spawn_agent and blocks
on wait_agents, so one mailbox owns completion. Custom AgentProfile
lookup still uses the legacy await-run path.

* Preserve task cancel, auth, and abort contracts through the fleet wrapper

Director task() now routes through spawn_agent + wait_agents, which was
misclassifying AbortError as failed:aborted, dropping Re-authenticate
auth wording, and leaving the child running when the parent tool aborted.
Map those outcomes back to the legacy fused-task parent contract and
prettier the inherited agent-progress tip.
@TheGreatAxios
TheGreatAxios deleted the fleet-task-wrapper branch August 28, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant