Skip to content

Unblock fleet waits on interrupt and scope them to the caller - #678

Closed
TheGreatAxios wants to merge 3 commits into
mainfrom
cl-7063-unblock-fleet-waits-on-interrupt-and-scope-them-to-the
Closed

Unblock fleet waits on interrupt and scope them to the caller#678
TheGreatAxios wants to merge 3 commits into
mainfrom
cl-7063-unblock-fleet-waits-on-interrupt-and-scope-them-to-the

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Scopes wait_agents to the caller's fleetRecords so omitted targets never wait on sibling or foreign sessions in the shared store
  • Makes interrupt_agent terminalize the wait mailbox so an in-flight wait unblocks once with status interrupted
  • Records parentSessionId on nested spawn_agent children and adds wait_agents mode=all plus clean abort when the parent turn cancels

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • Unit coverage in the agent-fleet suite covers caller-scoped waits, interrupt unblocking, and mode=all

Fixes CL-7063

wait_agents with omitted targets used the shared session store, so a
parent could block on siblings and leftover workers. interrupt_agent
never wrote the wait mailbox, so a wait after interrupt hung until
timeout and the parent retried forever.

Wait now uses this install's fleetRecords, interrupt terminalizes that
mailbox immediately, nested spawn_agent records parentSessionId, and
wait supports mode=all plus parent-turn abort.
@linear-code

linear-code Bot commented Aug 25, 2026

Copy link
Copy Markdown

CL-7063

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Duplicate of #679 (same hang-fix). Closing so we do not merge both.

@TheGreatAxios
TheGreatAxios deleted the cl-7063-unblock-fleet-waits-on-interrupt-and-scope-them-to-the 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