pi-subagent-in-memory 0.1.5 → 0.1.6

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.
@@ -460,8 +460,8 @@ async function executeSubagent(
460
460
  fallbackCwd?: string,
461
461
  ): Promise<AgentToolResult<any>> {
462
462
  subagentCount++;
463
- const subagentNum = subagentCount;
464
- const outDir = join(".pi", "subagent-in-memory", mainSessionId, `subagent_${subagentNum}`);
463
+ const subagentNum = subagents.length + 1; // display number based on currently visible cards
464
+ const outDir = join(".pi", "subagent-in-memory", mainSessionId, `subagent_${subagentCount}`);
465
465
  mkdirSync(outDir, { recursive: true });
466
466
 
467
467
  // Parse "provider/model" format (e.g. "openai/gpt-4o-mini")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-subagent-in-memory",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "In-process subagent tool for pi with live TUI card widgets, JSONL session logging, and zero system-prompt overhead.",
5
5
  "repository": {
6
6
  "type": "git",