diff --git a/docs/subagent-architecture.html b/docs/subagent-architecture.html index a7936589..6e12c449 100644 --- a/docs/subagent-architecture.html +++ b/docs/subagent-architecture.html @@ -498,7 +498,16 @@
childAgent.write(task) enqueues the task to the serial queue.
+ This happens before registration so waitForIdle() observes queued work.
+ registerSubagentRun() saves record to in-memory Map + JSON file.
@@ -507,26 +516,17 @@
watchChildAgent() sets startedAt.
Attaches childAgent.waitForIdle() (promise resolves when task queue drained)
and childAgent.onClose() callback. Optionally sets timeout timer.
+ Tool returns { status: "accepted", childSessionId, runId } immediately.
childAgent.write(task) enqueues the task (non-blocking).
- Tool returns { status: "accepted", childSessionId, runId } immediately.
- Parent agent continues working.
-