@arhen/pi-core-subagent 1.0.6 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arhen/pi-core-subagent",
3
- "version": "1.0.6",
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
@@ -402,7 +402,7 @@ class SubagentManager {
402
402
  return false;
403
403
  }
404
404
 
405
- /** Hide the widget. */
405
+ /** Hide the widget + clear the footer status entry. */
406
406
  clearWidget(ctx: ExtensionContext): void {
407
407
  this.widgetRuns = [];
408
408
  this.widgetTui = null;
@@ -528,8 +528,6 @@ class SubagentManager {
528
528
  if (this.widgetRuns.length === 0) return;
529
529
  const targets = [...this.widgetRuns]; // read at fire: never render stale runs
530
530
  if (ctx?.hasUI) {
531
- const live = targets.reduce((n, r) => n + r.tasks.filter((t) => !TERMINAL.includes(t.status)).length, 0);
532
- ctx.ui.setStatus("subagents", `subagents: ${live} running`);
533
531
  this.ensureWidget(ctx);
534
532
  this.widgetTui?.requestRender();
535
533
  }
@@ -1089,7 +1087,6 @@ export default function (pi: ExtensionAPI) {
1089
1087
  pi.on("session_shutdown", async (_event, ctx) => {
1090
1088
  if (ctx?.hasUI) {
1091
1089
  try {
1092
- ctx.ui.setStatus("subagents", "");
1093
1090
  ctx.ui.setWidget("subagents", [], { placement: "aboveEditor" });
1094
1091
  } catch {
1095
1092
  /* ignore */