pi-subagents 0.35.0 → 0.35.1
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 +5 -0
- package/package.json +1 -1
- package/src/tui/render.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.35.1] - 2026-07-17
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Collapsed multiline management/status output behind a first-line preview and the configured expand-key hint. Thanks to Nikolay Panov (@niksite) for #523.
|
|
9
|
+
|
|
5
10
|
## [0.35.0] - 2026-07-17
|
|
6
11
|
|
|
7
12
|
### Fixed
|
package/package.json
CHANGED
package/src/tui/render.ts
CHANGED
|
@@ -1471,6 +1471,14 @@ export function renderSubagentResult(
|
|
|
1471
1471
|
const contextPrefix = d?.context === "fork" ? `${theme.fg("warning", "[fork]")} ` : "";
|
|
1472
1472
|
const width = getTermWidth() - 4;
|
|
1473
1473
|
if (!text.includes("\n")) return new Text(truncLine(`${contextPrefix}${text}`, width), 0, 0);
|
|
1474
|
+
if (d && !options.expanded && !result.isError) {
|
|
1475
|
+
const lines = text.split(/\r?\n/);
|
|
1476
|
+
const firstNonEmptyLine = lines.find((line) => line.trim())?.trim() || "(no output)";
|
|
1477
|
+
const c = new Container();
|
|
1478
|
+
c.addChild(new Text(truncLine(`${contextPrefix}${firstNonEmptyLine} · ${lines.length} lines`, width), 0, 0));
|
|
1479
|
+
c.addChild(new Text(truncLine(theme.fg("accent", ` Press ${liveDetailKeyText()} for full output`), width), 0, 0));
|
|
1480
|
+
return c;
|
|
1481
|
+
}
|
|
1474
1482
|
const c = new Container();
|
|
1475
1483
|
const wrapped = wrapPlainText(`${contextPrefix}${text}`, width);
|
|
1476
1484
|
for (const line of wrapped) c.addChild(new Text(line, 0, 0));
|