@arhen/pi-core-subagent 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arhen/pi-core-subagent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pi extension: fast in-process subagents with single/parallel/chain, background runs, intercom and agent-to-agent mailbox. Leader defines agents inline.",
|
|
6
6
|
"license": "MIT",
|
package/src/index.ts
CHANGED
|
@@ -875,6 +875,7 @@ class SubagentManager {
|
|
|
875
875
|
run.status = aborted ? "aborted" : failed ? "failed" : "completed";
|
|
876
876
|
run.endedAt = Date.now();
|
|
877
877
|
this.flushWidget(ctx, onUpdate);
|
|
878
|
+
this.clearWidget(ctx); // run is done — drop the widget immediately
|
|
878
879
|
this.emit("subagent:run-completed", { runId: run.id, status: run.status, run: cloneRun(run), aggregateUsage: run.aggregateUsage });
|
|
879
880
|
this.settleRun(run.id, run);
|
|
880
881
|
this.runControllers.delete(run.id);
|