pi-better-harness 0.63.2 → 0.63.4
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 +12 -0
- package/node_modules/pi-better-background-tasks/package.json +2 -2
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-x64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-arm64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-x64.json +1 -1
- package/node_modules/pi-better-background-tasks/src/shared-navigator.ts +3 -3
- package/node_modules/pi-better-subagents/index.ts +2 -2
- package/node_modules/pi-better-subagents/managed-failure-worker.mjs +12 -4
- package/node_modules/pi-better-subagents/managed-launch-host.ts +43 -27
- package/node_modules/pi-better-subagents/package.json +2 -2
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-x64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-arm64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-x64.json +1 -1
- package/node_modules/pi-better-subagents/shared-navigator.ts +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.63.4] - 2026-12-01
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Update the shared Server and task extensions to recover archived task status after temporary metadata disappears and show complete status diagnostics.
|
|
8
|
+
|
|
9
|
+
## [0.63.3] - 2026-11-30
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Update the shared Server and task packages so a slow terminal log can finish processing and a stalled log worker can recover.
|
|
14
|
+
|
|
3
15
|
## [0.63.2] - 2026-11-30
|
|
4
16
|
|
|
5
17
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-background-tasks",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.13",
|
|
4
4
|
"description": "Pi extension for durable background shell tasks, watchers, logs, and status inspection.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vitest": "^3.0.0"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"pi-better-server": "0.11.
|
|
71
|
+
"pi-better-server": "0.11.4",
|
|
72
72
|
"proper-lockfile": "^4.1.2"
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"5b2ee10ce118f403061145c783b1619cd92c93000d60139fdf6a581b0de3e2d7"},"sha256":"f84ae252249310706729b06cf469d63a94976f7581401e4738a3e3805061ffc4"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"98b0fa0a42a6628c17a02102613f5dcdbdfdc0953875e8a46021c354f7e37a56"},"sha256":"eb9002919e13ce85f6ef838d80e2592a8debe41cd69b9a888387c2f3a9a5bd71"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"c2039989db9695913739b6cacab0409818a9d9825d12a59cc3c2b8c4e37d5292"},"sha256":"9b79eb6ac53c74107f3f2593f44392c51735ee87de7f522f177a4edfc3d6762f"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"25862c01939a8c789aecafd570333b7d643d143a4be6cc74d29266ddf3120a9a"},"sha256":"c9f5e9fc4a3fc80ef093fe2d1d26d84aedc6a9869eae801458115cfcde98ead6"}
|
|
@@ -62,7 +62,7 @@ export type BackgroundWorkDetail = {
|
|
|
62
62
|
subtitle?: string;
|
|
63
63
|
metadata: Array<{ label: string; value: string }>;
|
|
64
64
|
foldedSections?: Array<{ id: string; label: string; text: string; collapsedText?: string; expandedByDefault?: boolean }>;
|
|
65
|
-
evidence: { label: string; text: string };
|
|
65
|
+
evidence: { label: string; text: string; format?: "diagnostic" };
|
|
66
66
|
transcript?: Array<
|
|
67
67
|
| { type: "assistant"; content: Array<{ type: string; text?: string; thinking?: string }>; streaming: boolean }
|
|
68
68
|
| { type: "tool"; id?: string; name: string; args?: unknown; result?: unknown; isError: boolean; state: "running" | "completed" }
|
|
@@ -1693,7 +1693,7 @@ function buildDetailLines(
|
|
|
1693
1693
|
const tailEvidence = isTailEvidence(detail);
|
|
1694
1694
|
const evidenceLabel = tailEvidence ? `${detail.evidence.label} · latest ${tailRows} rows` : detail.evidence.label;
|
|
1695
1695
|
lines.push(dim(section(evidenceLabel, width), fg));
|
|
1696
|
-
const wrapped = /log/i.test(detail.evidence.label)
|
|
1696
|
+
const wrapped = detail.evidence.format === "diagnostic" || /log/i.test(detail.evidence.label)
|
|
1697
1697
|
? wrapLogText(body, width - 6)
|
|
1698
1698
|
: wrapEvidenceText(body, width - 6);
|
|
1699
1699
|
let shown = tailEvidence ? wrapped.slice(-tailRows) : wrapped;
|
|
@@ -1732,7 +1732,7 @@ function applyDefaultExpandedSections(detail: BackgroundWorkDetail | null, expan
|
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
1734
|
function isFoldableEvidence(detail: BackgroundWorkDetail): boolean {
|
|
1735
|
-
return !isTailEvidence(detail);
|
|
1735
|
+
return detail.evidence.format !== "diagnostic" && !isTailEvidence(detail);
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
1738
|
function isTailEvidence(detail: BackgroundWorkDetail): boolean {
|
|
@@ -1845,11 +1845,11 @@ function subagentWorkDetail(id: string, now: number, options?: { logTailLines?:
|
|
|
1845
1845
|
providerId: "subagents", id, title: "Subagent status sync", status: workObservation()?.status ?? "rebuilding", statusTone: "warning",
|
|
1846
1846
|
subtitle: "Shared status service · task status unconfirmed",
|
|
1847
1847
|
metadata: [{ label: "scope", value: "Subagent status reads; not an individual task" }],
|
|
1848
|
-
evidence: { label: "Full diagnostic", text: workObservationFailure() },
|
|
1848
|
+
evidence: { label: "Full diagnostic", text: workObservationFailure(), format: "diagnostic" },
|
|
1849
1849
|
footerActions: [],
|
|
1850
1850
|
};
|
|
1851
1851
|
const row = requestWorkDetail(id);
|
|
1852
|
-
if (!row?.detail) return { providerId: "subagents", id, title: id, status: row?.observationError ? "degraded" : "rebuilding", statusTone: "warning", metadata: [], evidence: { label: "observation", text: row?.observationError ?? workObservationFailure() } };
|
|
1852
|
+
if (!row?.detail) return { providerId: "subagents", id, title: id, status: row?.observationError ? "degraded" : "rebuilding", statusTone: "warning", metadata: [], evidence: { label: "observation", text: row?.observationError ?? workObservationFailure(), format: "diagnostic" } };
|
|
1853
1853
|
const health = row.health ? observeRunHealth({ ...row.health, status: row.assignment.processStatus === "exited" ? row.meta.status : row.assignment.processStatus, now, startedAt: row.meta.startedAt }) : undefined;
|
|
1854
1854
|
const detail = withAssignmentObservations([row], () => buildNavigatorDetail(id, {
|
|
1855
1855
|
readMeta: () => row.meta, effectiveStatus: () => row.assignment.processStatus, parseRun: () => row.detail.parsed,
|
|
@@ -3,10 +3,18 @@ import { parentPort, workerData } from "node:worker_threads";
|
|
|
3
3
|
import { collectRunFailures } from "./failures.ts";
|
|
4
4
|
import { readMeta } from "./registry.ts";
|
|
5
5
|
const revoked = new Int32Array(workerData.revocation);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
parentPort.on("message", ({ ids, cancelled }) => {
|
|
7
|
+
let nextProgress = performance.now() + workerData.progressIntervalMs;
|
|
8
|
+
const assertCurrent = () => {
|
|
9
|
+
if (!Number.isSafeInteger(workerData.epoch) || Atomics.load(revoked, 0)) throw new Error("failure-fold-owner-revoked");
|
|
10
|
+
if (Atomics.load(cancelled, 0)) throw new Error("failure-fold-batch-cancelled");
|
|
11
|
+
// Called while advancing through IDs and log chunks. A blocked read cannot renew the deadline.
|
|
12
|
+
const now = performance.now();
|
|
13
|
+
if (now >= nextProgress) {
|
|
14
|
+
nextProgress = now + workerData.progressIntervalMs;
|
|
15
|
+
parentPort.postMessage({ progress: true });
|
|
16
|
+
}
|
|
17
|
+
};
|
|
10
18
|
try {
|
|
11
19
|
assertCurrent();
|
|
12
20
|
if (!Array.isArray(ids) || ids.length > 128) throw new Error("failure-fold-batch-overflow");
|
|
@@ -26,8 +26,8 @@ const failureFoldRevocations = new Map<string, Int32Array>();
|
|
|
26
26
|
export class ManagedSubagentHost {
|
|
27
27
|
private foldRevocation = new Int32Array(new SharedArrayBuffer(4));
|
|
28
28
|
private failureWorker?: Worker;
|
|
29
|
-
private
|
|
30
|
-
private failureResponse?: { resolve(): void; reject(error: Error): void };
|
|
29
|
+
private failureWorkerExit?: Promise<number>;
|
|
30
|
+
private failureResponse?: { resolve(): void; reject(error: Error): void; progress(): void };
|
|
31
31
|
private current: any;
|
|
32
32
|
private api!: ExtensionAPI;
|
|
33
33
|
private session: any;
|
|
@@ -153,7 +153,7 @@ export class ManagedSubagentHost {
|
|
|
153
153
|
listActiveMetasForParent(pid).filter(meta => meta.spawnPidStartTime === start && effectiveStatus(meta) === "running").length
|
|
154
154
|
+ this.journal.unresolvedAttempts().filter((attempt: any) => attempt.capacityOwner?.pid === pid && attempt.capacityOwner?.start === start && !readMeta(attempt.id)).length);
|
|
155
155
|
get cleaningRegistry() { return this.registryCleanup !== undefined; }
|
|
156
|
-
get busy() { return this.pending > 0 || Boolean(this.failureResponse) || this.cleaningRegistry; }
|
|
156
|
+
get busy() { return this.pending > 0 || Boolean(this.failureResponse || this.failureWorkerExit) || this.cleaningRegistry; }
|
|
157
157
|
status() {
|
|
158
158
|
return { owner: "server", instanceId: this.instance, runtimeEpoch: this.epoch,
|
|
159
159
|
lifecycle: { ...this.lifecycleMetrics, activeDeadlines: this.healthDue.size },
|
|
@@ -460,48 +460,64 @@ export class ManagedSubagentHost {
|
|
|
460
460
|
let release: (() => void) | undefined;
|
|
461
461
|
let physicalExit: Promise<number> | undefined;
|
|
462
462
|
const result = this.tail.catch(() => undefined).then(async () => {
|
|
463
|
+
if (this.failureWorkerExit) await this.failureWorkerExit;
|
|
463
464
|
release = this.enterControl?.();
|
|
464
465
|
if (this.enterControl && !release) throw new Error("runtime-overloaded: failure fold source capacity");
|
|
465
466
|
this.journal.current(this.epoch);
|
|
466
467
|
if (Atomics.load(this.foldRevocation, 0)) throw new Error("failure-fold-owner-revoked");
|
|
467
|
-
if (this.failureWorkerError) throw this.failureWorkerError;
|
|
468
468
|
if (ids.length > 128) throw new Error("failure-fold-batch-overflow");
|
|
469
469
|
if (!this.failureWorker) {
|
|
470
470
|
const worker = this.failureWorker = new Worker(new URL("./managed-failure-worker.mjs", import.meta.url), {
|
|
471
|
-
execArgv: [], workerData: { root: this.root, epoch: this.epoch, revocation: this.foldRevocation.buffer
|
|
471
|
+
execArgv: [], workerData: { root: this.root, epoch: this.epoch, revocation: this.foldRevocation.buffer,
|
|
472
|
+
progressIntervalMs: Math.max(1, Math.floor(this.verificationMs / 4)) },
|
|
473
|
+
});
|
|
474
|
+
let failure: Error | undefined;
|
|
475
|
+
worker.on("error", error => { failure = error; });
|
|
476
|
+
worker.on("exit", code => {
|
|
477
|
+
if (this.failureWorker !== worker) return;
|
|
478
|
+
this.failureWorker = undefined;
|
|
479
|
+
this.failureResponse?.reject(failure ?? new Error(`failure-fold-worker-exited: ${code}`));
|
|
472
480
|
});
|
|
473
|
-
const fail = (error: Error) => {
|
|
474
|
-
this.failureWorkerError = error;
|
|
475
|
-
this.failureResponse?.reject(error); this.failureResponse = undefined;
|
|
476
|
-
};
|
|
477
481
|
worker.on("message", message => {
|
|
478
|
-
|
|
479
|
-
if (message.error)
|
|
482
|
+
if (message.progress) this.failureResponse?.progress();
|
|
483
|
+
else if (message.error) this.failureResponse?.reject(new Error(message.error));
|
|
484
|
+
else if (message.complete) this.failureResponse?.resolve();
|
|
480
485
|
});
|
|
481
|
-
worker.on("error", fail);
|
|
482
|
-
worker.on("exit", code => fail(new Error(`failure-fold-worker-exited: ${code}`)));
|
|
483
486
|
worker.unref();
|
|
484
487
|
}
|
|
488
|
+
const worker = this.failureWorker;
|
|
489
|
+
const cancelled = new Int32Array(new SharedArrayBuffer(4));
|
|
490
|
+
const now = Date.now();
|
|
491
|
+
const record = this.foldRecord = { kind: 'failure-fold', ids: [...ids], lastProgressAt: now, nextDeadline: now + this.verificationMs,
|
|
492
|
+
recovery: 'revoke-unacknowledged-fold-generation-at-existing-verification-deadline' };
|
|
485
493
|
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
486
494
|
try {
|
|
487
495
|
await new Promise<void>((resolve, reject) => {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const error = new Error("failure-fold-verification-deadline: source worker did not acknowledge");
|
|
493
|
-
Atomics.store(this.foldRevocation, 0, 1);
|
|
494
|
-
this.failureWorkerError = error;
|
|
496
|
+
const onStall = () => {
|
|
497
|
+
// This batch lost its worker. The journal owner can retry after it exits.
|
|
498
|
+
Atomics.store(cancelled, 0, 1);
|
|
499
|
+
physicalExit = this.failureWorkerExit = worker.terminate();
|
|
495
500
|
this.failureResponse = undefined;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
this.
|
|
501
|
+
reject(new Error("failure-fold-verification-deadline: source worker did not acknowledge"));
|
|
502
|
+
};
|
|
503
|
+
timer = setTimeout(onStall, this.verificationMs);
|
|
504
|
+
this.failureResponse = { resolve, reject, progress: () => {
|
|
505
|
+
record.lastProgressAt = Date.now();
|
|
506
|
+
record.nextDeadline = record.lastProgressAt + this.verificationMs;
|
|
507
|
+
clearTimeout(timer);
|
|
508
|
+
timer = setTimeout(onStall, this.verificationMs);
|
|
509
|
+
} };
|
|
510
|
+
worker.postMessage({ ids, cancelled });
|
|
500
511
|
});
|
|
501
|
-
} finally {
|
|
512
|
+
} finally {
|
|
513
|
+
this.failureResponse = undefined;
|
|
514
|
+
this.foldRecord = undefined;
|
|
515
|
+
if (timer) clearTimeout(timer);
|
|
516
|
+
}
|
|
502
517
|
}).finally(() => {
|
|
503
|
-
if (physicalExit)
|
|
504
|
-
|
|
518
|
+
if (physicalExit) {
|
|
519
|
+
void physicalExit.then(() => { this.failureWorkerExit = undefined; release?.(); }, () => undefined);
|
|
520
|
+
} else release?.();
|
|
505
521
|
});
|
|
506
522
|
this.tail = result;
|
|
507
523
|
return result;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-subagents",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.6",
|
|
4
4
|
"description": "Pi extension for detached, sandboxed subagent runs that keep the foreground session free.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@earendil-works/pi-tui": "*"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"pi-better-server": "0.11.
|
|
84
|
+
"pi-better-server": "0.11.4",
|
|
85
85
|
"proper-lockfile": "^4.1.2",
|
|
86
86
|
"shell-quote": "1.12.0",
|
|
87
87
|
"smol-toml": "1.9.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"5b2ee10ce118f403061145c783b1619cd92c93000d60139fdf6a581b0de3e2d7"},"sha256":"f84ae252249310706729b06cf469d63a94976f7581401e4738a3e3805061ffc4"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"98b0fa0a42a6628c17a02102613f5dcdbdfdc0953875e8a46021c354f7e37a56"},"sha256":"eb9002919e13ce85f6ef838d80e2592a8debe41cd69b9a888387c2f3a9a5bd71"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"c2039989db9695913739b6cacab0409818a9d9825d12a59cc3c2b8c4e37d5292"},"sha256":"9b79eb6ac53c74107f3f2593f44392c51735ee87de7f522f177a4edfc3d6762f"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"794c8a72e4397b041470ca9bd145090cda4cf8898b1c53aa5a02e0fb0eec78f0","piSdkVersion":"1.7.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"97fbfa01a6e5a49f4f29f5c2048549391417c545cbdd52ec799629aa867d8653","protocolVersion":1,"serverVersion":"0.11.4","contentId":"25862c01939a8c789aecafd570333b7d643d143a4be6cc74d29266ddf3120a9a"},"sha256":"c9f5e9fc4a3fc80ef093fe2d1d26d84aedc6a9869eae801458115cfcde98ead6"}
|
|
@@ -62,7 +62,7 @@ export type BackgroundWorkDetail = {
|
|
|
62
62
|
subtitle?: string;
|
|
63
63
|
metadata: Array<{ label: string; value: string }>;
|
|
64
64
|
foldedSections?: Array<{ id: string; label: string; text: string; collapsedText?: string; expandedByDefault?: boolean }>;
|
|
65
|
-
evidence: { label: string; text: string };
|
|
65
|
+
evidence: { label: string; text: string; format?: "diagnostic" };
|
|
66
66
|
transcript?: Array<
|
|
67
67
|
| { type: "assistant"; content: Array<{ type: string; text?: string; thinking?: string }>; streaming: boolean }
|
|
68
68
|
| { type: "tool"; id?: string; name: string; args?: unknown; result?: unknown; isError: boolean; state: "running" | "completed" }
|
|
@@ -1693,7 +1693,7 @@ function buildDetailLines(
|
|
|
1693
1693
|
const tailEvidence = isTailEvidence(detail);
|
|
1694
1694
|
const evidenceLabel = tailEvidence ? `${detail.evidence.label} · latest ${tailRows} rows` : detail.evidence.label;
|
|
1695
1695
|
lines.push(dim(section(evidenceLabel, width), fg));
|
|
1696
|
-
const wrapped = /log/i.test(detail.evidence.label)
|
|
1696
|
+
const wrapped = detail.evidence.format === "diagnostic" || /log/i.test(detail.evidence.label)
|
|
1697
1697
|
? wrapLogText(body, width - 6)
|
|
1698
1698
|
: wrapEvidenceText(body, width - 6);
|
|
1699
1699
|
let shown = tailEvidence ? wrapped.slice(-tailRows) : wrapped;
|
|
@@ -1732,7 +1732,7 @@ function applyDefaultExpandedSections(detail: BackgroundWorkDetail | null, expan
|
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
1734
|
function isFoldableEvidence(detail: BackgroundWorkDetail): boolean {
|
|
1735
|
-
return !isTailEvidence(detail);
|
|
1735
|
+
return detail.evidence.format !== "diagnostic" && !isTailEvidence(detail);
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
1738
|
function isTailEvidence(detail: BackgroundWorkDetail): boolean {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-harness",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.4",
|
|
4
4
|
"description": "Pi extension bundle for a write sandbox, subagents, background tasks, SSH, Goals, and Todo lists.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"@xterm/xterm": "6.0.0",
|
|
75
75
|
"marked": "18.0.5",
|
|
76
76
|
"openai": "6.26.0",
|
|
77
|
-
"pi-better-background-tasks": "0.21.
|
|
77
|
+
"pi-better-background-tasks": "0.21.13",
|
|
78
78
|
"pi-better-goal": "0.18.4",
|
|
79
79
|
"pi-better-sandbox": "0.15.2",
|
|
80
|
-
"pi-better-server": "0.11.
|
|
80
|
+
"pi-better-server": "0.11.4",
|
|
81
81
|
"pi-better-ssh": "0.1.7",
|
|
82
|
-
"pi-better-subagents": "0.41.
|
|
82
|
+
"pi-better-subagents": "0.41.6",
|
|
83
83
|
"proper-lockfile": "^4.1.2",
|
|
84
84
|
"shell-quote": "1.12.0",
|
|
85
85
|
"smol-toml": "1.9.0",
|