oira666_pi-subagent 0.2.18 → 0.2.19

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/index.ts +6 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -540,6 +540,12 @@ export default function (pi: ExtensionAPI) {
540
540
  stream.push({ type: "toolcall_end", contentIndex: 0, toolCall, partial: message });
541
541
  stream.push({ type: "done", reason: "toolUse", message });
542
542
  stream.end(message);
543
+
544
+ // The synthetic provider's only job is to inject the resumed subagent
545
+ // tool call. Restore the real model immediately after that handoff so
546
+ // the TUI does not appear stuck on `pi-subagent-resume` while the
547
+ // subagent tool execution is still running.
548
+ void restoreVisibleModelForResume();
543
549
  });
544
550
  return stream;
545
551
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_pi-subagent",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Subagent extension for Pi coding agent. Delegate tasks to specialized agents.",
5
5
  "type": "module",
6
6
  "main": "index.ts",