feat(pi): capture subagent activity events

This commit is contained in:
2026-08-01 22:56:50 -04:00
parent aafc68e911
commit ede3c0583f
8 changed files with 279 additions and 7 deletions

View File

@@ -89,16 +89,17 @@ class RpcChildHandle implements ChildHandle {
}
if (payload.type === "agent_started") {
this.events.running("agent_started");
this.events.running(payload as Record<string, unknown>);
return;
}
if (payload.type === "agent_settled") {
this.events.running(payload as Record<string, unknown>);
this.finish().catch((error) => this.fail(error instanceof Error ? error.message : String(error)));
return;
}
if (payload.type) this.events.running(payload.type);
if (payload.type) this.events.running(payload as Record<string, unknown>);
}
private async finish() {