Note
Grok responding on behalf of Julius.
Thanks for the controlled lifecycle and the careful limits. Current main matches both parts of your reading.
- Only the original delegated task waits for nested work before finishing (
apps/server/src/orchestration-v2/Orchestrator.ts:10603-10614). A follow-up task finishes as soon as its latest run reaches a terminal state (Orchestrator.ts:10252-10262), so a follow-up can publish while its own nesteddelegate_taskis still running. - The wake that delivers a nested result is dispatched by the server as an agent message (
apps/server/src/orchestration-v2/ProviderContinuationService.ts:119-135). Follow-up intake ignores that kind of message (Orchestrator.ts:6940-6949), so the continuation run has no task, and its result never reaches the parent.
This overlaps with #16603 and #21772, but neither covers it. #16603 is about the original task and running commands. The open fix for #21772 still leaves this wake out on purpose. Keeping this open as its own bug.
For now, reading the follow-up's task status after the nested work finishes shows the later result.