@esso0428/pi-subagents 0.17.20 → 0.17.21

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/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.17.21] - 2026-10-01
11
+
12
+ ### Fixed
13
+ - **Marked child subagent sessions as forked extension lifecycles** so startup-only UI/theme extensions do not treat in-process child agents as a fresh interactive app launch and clear or rewrite the parent TUI.
14
+
10
15
  ## [0.17.20] - 2026-10-01
11
16
 
12
17
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esso0428/pi-subagents",
3
- "version": "0.17.20",
3
+ "version": "0.17.21",
4
4
  "description": "A pi extension that brings smart Claude Code-style autonomous sub-agents to pi, with npm:pi-subagents-style JSON agent overrides.",
5
5
  "author": "ESSO0428",
6
6
  "repository": {
@@ -806,6 +806,10 @@ export async function runAgent(
806
806
  model,
807
807
  tools: sessionTools,
808
808
  resourceLoader: loader,
809
+ // Child subagent sessions run inside the parent Pi process; they are not a
810
+ // fresh interactive app startup. Mark their extension lifecycle as a fork so
811
+ // startup-only UI/theme extensions do not clear or rewrite the parent TUI.
812
+ sessionStartEvent: { type: "session_start", reason: "fork" },
809
813
  ...(trackedWriteTool && { customTools: [trackedWriteTool as any] }),
810
814
  };
811
815
  if (sessionExcludeTools) {