@arhen/pi-core-subagent 1.0.7 → 1.0.8
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 +0 -4
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.8",
|
|
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
|
@@ -409,7 +409,6 @@ class SubagentManager {
|
|
|
409
409
|
if (ctx.hasUI) {
|
|
410
410
|
try {
|
|
411
411
|
ctx.ui.setWidget("subagents", undefined);
|
|
412
|
-
ctx.ui.setStatus("subagents", undefined);
|
|
413
412
|
} catch {
|
|
414
413
|
/* ignore */
|
|
415
414
|
}
|
|
@@ -529,8 +528,6 @@ class SubagentManager {
|
|
|
529
528
|
if (this.widgetRuns.length === 0) return;
|
|
530
529
|
const targets = [...this.widgetRuns]; // read at fire: never render stale runs
|
|
531
530
|
if (ctx?.hasUI) {
|
|
532
|
-
const live = targets.reduce((n, r) => n + r.tasks.filter((t) => !TERMINAL.includes(t.status)).length, 0);
|
|
533
|
-
ctx.ui.setStatus("subagents", `subagents: ${live} running`);
|
|
534
531
|
this.ensureWidget(ctx);
|
|
535
532
|
this.widgetTui?.requestRender();
|
|
536
533
|
}
|
|
@@ -1090,7 +1087,6 @@ export default function (pi: ExtensionAPI) {
|
|
|
1090
1087
|
pi.on("session_shutdown", async (_event, ctx) => {
|
|
1091
1088
|
if (ctx?.hasUI) {
|
|
1092
1089
|
try {
|
|
1093
|
-
ctx.ui.setStatus("subagents", "");
|
|
1094
1090
|
ctx.ui.setWidget("subagents", [], { placement: "aboveEditor" });
|
|
1095
1091
|
} catch {
|
|
1096
1092
|
/* ignore */
|