pi-better-harness 0.65.0 → 0.65.2

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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.65.2] - 2026-12-04
4
+
5
+ ### Changed
6
+
7
+ - Interactive Pi sessions fold tool calls by default. Choose **Normal** under **Tool output** in `/harness-settings` to see full output. Harness respects saved preferences.
8
+
9
+ ## [0.65.1] - 2026-12-04
10
+
11
+ ### Fixed
12
+
13
+ - Preserve a successful detached assignment when Windows reports that its worker exited before the managed service receives the exit callback (#917).
14
+
3
15
  ## [0.65.0] - 2026-12-04
4
16
 
5
17
  ### Added
package/README.md CHANGED
@@ -180,9 +180,9 @@ need interactive confirmation. Full policy: [pi-better-sandbox](https://github.c
180
180
 
181
181
  ## Minimal Tool Output
182
182
 
183
- The bundled harness provides **Tool output** with **Normal** and **Compact** in
184
- `/harness-settings`. `/harness-settings tool-output minimal`, `/harness-settings tool-output normal`, and
185
- `/harness-settings tool-output` (toggle) remain compatibility shortcuts to the same preference.
183
+ In the interactive TUI, **Tool output** defaults to **Compact**. Choose **Normal** in
184
+ `/harness-settings` for ordinary tool output.
185
+
186
186
  Minimal mode folds each tool call into a single-line header, including running
187
187
  calls. The tool-specific icon and tool name share a state color: accent while
188
188
  running, muted when completed, and error-colored when failed. In fullscreen Pi, a soft highlight travels through the entire visible running tool name and its
@@ -213,7 +213,7 @@ tool icons sit centered in a three-column gutter. Click the disclosure again to
213
213
  block; native expanded call/result clicks collapse individual details. Regular
214
214
  terminals keep mouse input for terminal selection and scrollback; Ctrl+O expands
215
215
  all original tool details in both modes and folds them again on the next toggle.
216
- `/harness-settings tool-output normal` restores ordinary rendering. Error result bodies are also
216
+ Error result bodies are also
217
217
  hidden in minimal mode and remain available when expanded.
218
218
 
219
219
  Minimal mode also covers Harness tools: Subagents, Background Tasks, Goal, Todo,
@@ -223,7 +223,7 @@ bodies. Finished calls fold into the same disclosure blocks as built-in tools;
223
223
  expanding them restores their original package renderers. Goal and Todo widgets
224
224
  and the background-work navigator are independent UI surfaces and remain visible.
225
225
 
226
- Normal mode is the initial default. Changing tool output saves the choice in
226
+ Changing tool output saves the choice in
227
227
  global `settings.json` under `piBetterHarness.toolOutput`, as well as the current
228
228
  session. New sessions inherit it; resumed branches retain their own saved choice.
229
229
  This is a version-sensitive internal TUI adapter,
@@ -539,7 +539,7 @@ Use the installer when you want every core extension with standalone package ide
539
539
  |-------------|---------|
540
540
  | Pi | Required |
541
541
  | Recommended install | `npx pi-better-harness install` |
542
- | Managed Subagents and Background Tasks | macOS and Linux on x64 or arm64. The Windows x64 release candidate supports tasks that can run without kernel sandboxing. The published Harness 0.63.6 package predates Windows support. [Windows release status (#917)](https://github.com/1aboveio/pi-better-harness/issues/917) |
542
+ | Managed Subagents and Background Tasks | macOS and Linux on x64 or arm64. Windows x64 support starts with Harness 0.64.0 for tasks that can run without kernel sandboxing. [Windows Server 2022 acceptance (#917)](https://github.com/1aboveio/pi-better-harness/issues/917) |
543
543
  | Write sandbox on macOS | Seatbelt (`sandbox-exec`), ships with the OS |
544
544
  | Write sandbox on Linux | Bubblewrap — install `bubblewrap` |
545
545
  | Linked-worktree project context | A Pi host that applies `systemPromptOptions` after `before_agent_start` (Pi 1.x); older hosts keep the loaded prompt |
@@ -19,7 +19,7 @@ function minimalOutputExtension(pi: ExtensionAPI): void {
19
19
  if (value !== undefined && (value?.version !== 1 || typeof value.enabled !== "boolean")) {
20
20
  throw new Error("Invalid tool-output default in global settings.json.");
21
21
  }
22
- return initialDefault = value?.enabled === true;
22
+ return initialDefault = value?.enabled !== false;
23
23
  }
24
24
 
25
25
  function collapseTools(ctx: ExtensionContext): void {
@@ -467,7 +467,7 @@ Do not use it for short commands where the foreground session should wait for th
467
467
  |-------------|---------|
468
468
  | Pi | Required |
469
469
  | Install method | `pi install npm:pi-better-background-tasks` |
470
- | Managed background task execution | macOS and Linux on x64 or arm64. The Windows x64 release candidate supports tasks that can run without kernel sandboxing. The published Background Tasks 0.21.15 package predates Windows support. [Windows release status (#917)](https://github.com/1aboveio/pi-better-harness/issues/917) |
470
+ | Managed background task execution | macOS and Linux on x64 or arm64. Windows x64 support starts with Background Tasks 0.21.16 for tasks that can run without kernel sandboxing. [Windows Server 2022 acceptance (#917)](https://github.com/1aboveio/pi-better-harness/issues/917) |
471
471
  | Development runtime | Node.js 22+ |
472
472
 
473
473
  ## Update Or Remove
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-better-background-tasks",
3
- "version": "0.21.17",
3
+ "version": "0.21.18",
4
4
  "description": "Pi extension for durable background shell tasks, watchers, logs, and status inspection.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -70,7 +70,7 @@
70
70
  "vitest": "^3.0.0"
71
71
  },
72
72
  "dependencies": {
73
- "pi-better-server": "0.11.8",
73
+ "pi-better-server": "0.11.9",
74
74
  "proper-lockfile": "^4.1.2"
75
75
  }
76
76
  }
@@ -1 +1 @@
1
- {"build":{"contentId":"32dd97391369107bcacb7f8c8bba4293a51566bd804929e431c0970ead7cb276","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-arm64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"ad03cfc26255612ab9d3286f73878b050a94584d81d9fbf3109bee82f0950a11"}
1
+ {"build":{"contentId":"91b35d87fc3902058b279509552b653b84e37d4cdaaa8f62b417e76bac7bd803","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-arm64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"281502740f61bff482dd2656972d89aa38339cae8569963f0a9d5b215fdc199f"}
@@ -1 +1 @@
1
- {"build":{"contentId":"98d142a409594a5054134c108cba6bb71b8e1e7d584fd5674826b821251477fe","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-x64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"811e50a925c96d725a641a18735c29649d1168b0c5dec8980a5d734acaed0a84"}
1
+ {"build":{"contentId":"7c20b2bf4fdc2e7595ce28e0fc7a54bd4b77effcc275f7556e358f6c33124238","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-x64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"d402147c1f6dbeb171c24265c39b2b2909d47a0a758414d4cbdf0b4761e0effe"}
@@ -1 +1 @@
1
- {"build":{"contentId":"2df02e592301be4b9eefbda87a2658f3c2a23673ebae52ca814a9a7a031f018b","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-arm64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"d35eed83f5446cd099bbee34e8f8e478127b48d8d08f92e2368b4404fd272914"}
1
+ {"build":{"contentId":"76cb1b6f00c1d65e32b20e3daded3626bd860ad389520f885033fecefdcdef9d","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-arm64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"4c9787864a0dd94ae7cedae62daa8a120afa63feb3851ccc97bc3eb591a9fe4c"}
@@ -1 +1 @@
1
- {"build":{"contentId":"e913193640f46204d0a60cbf6cbe0f1949bd4812c5a06a1688bcd8702cb3c2b9","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-x64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"a9e461a1d0b60f93f1749db71f16d4590a5f7505b02f20820d3c9b4c40566691"}
1
+ {"build":{"contentId":"94ddba0296e13c1996efe439c6c021d3f8bea2a820e0f253190370088942d401","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-x64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"a8a0d25c4a52563709401dc0b8f3f2d301dbba32159b97ff30e5a9f3843bd3fa"}
@@ -1 +1 @@
1
- {"build":{"contentId":"ae909961cbf5a58a12343cf53ecd8d87fe137bcf87da09a8934f546615b3c0ef","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"win32-x64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"9b0f29cd9665287414175e305b3267ec0e705a9cee2ee5e2d3d9cc1281ae1591"}
1
+ {"build":{"contentId":"45de98093c720f2e8850a855d4a8deb1c6c257d9349373a85fb735c5604ec018","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"win32-x64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"6d83b7ca9535e820fd40d0debb78d25255ae3e4873f5d93b353d80a2082863bd"}
@@ -174,7 +174,7 @@ Use this package for independent coding, review, research, or verification work
174
174
  |-------------|---------|
175
175
  | Pi | Required for worker execution through this extension; not for standalone catalog planning |
176
176
  | Install method | `pi install npm:pi-better-subagents` |
177
- | Managed subagent execution | macOS and Linux on x64 or arm64. The Windows x64 release candidate supports tasks that can run without kernel sandboxing. The published Subagents 0.41.8 package predates Windows support. [Windows release status (#917)](https://github.com/1aboveio/pi-better-harness/issues/917) |
177
+ | Managed subagent execution | macOS and Linux on x64 or arm64. Windows x64 support starts with Subagents 0.41.9 for tasks that can run without kernel sandboxing. [Windows Server 2022 acceptance (#917)](https://github.com/1aboveio/pi-better-harness/issues/917) |
178
178
  | macOS sandboxing | Supported when enabled |
179
179
  | Linux sandboxing | Requires usable `bubblewrap` when enabled |
180
180
  | Development runtime | Node.js 22+ |
@@ -1408,6 +1408,10 @@ function reconcileHealth(ids?: readonly string[]): void {
1408
1408
 
1409
1409
  if (meta.status === "running" || meta.status === "orphaned") {
1410
1410
  const result = interruptedReconciliation ?? reconcileRun(meta, realProcessProbe, now);
1411
+ // The OS can retire a PID before Node dispatches its close event.
1412
+ // Publishing lost here would seal the assignment outcome ahead of
1413
+ // the exit observer that still owns this attempt.
1414
+ if (result.status === "lost" && meta.assignment && directlySupervisedRunIds.has(meta.id)) continue;
1411
1415
  if (result.changed) {
1412
1416
  Object.assign(meta, result.patch, { status: result.status });
1413
1417
  writeMeta(meta);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-better-subagents",
3
- "version": "0.41.10",
3
+ "version": "0.41.11",
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.8",
84
+ "pi-better-server": "0.11.9",
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":{"contentId":"32dd97391369107bcacb7f8c8bba4293a51566bd804929e431c0970ead7cb276","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-arm64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"ad03cfc26255612ab9d3286f73878b050a94584d81d9fbf3109bee82f0950a11"}
1
+ {"build":{"contentId":"91b35d87fc3902058b279509552b653b84e37d4cdaaa8f62b417e76bac7bd803","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-arm64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"281502740f61bff482dd2656972d89aa38339cae8569963f0a9d5b215fdc199f"}
@@ -1 +1 @@
1
- {"build":{"contentId":"98d142a409594a5054134c108cba6bb71b8e1e7d584fd5674826b821251477fe","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-x64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"811e50a925c96d725a641a18735c29649d1168b0c5dec8980a5d734acaed0a84"}
1
+ {"build":{"contentId":"7c20b2bf4fdc2e7595ce28e0fc7a54bd4b77effcc275f7556e358f6c33124238","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"darwin-x64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"d402147c1f6dbeb171c24265c39b2b2909d47a0a758414d4cbdf0b4761e0effe"}
@@ -1 +1 @@
1
- {"build":{"contentId":"2df02e592301be4b9eefbda87a2658f3c2a23673ebae52ca814a9a7a031f018b","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-arm64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"d35eed83f5446cd099bbee34e8f8e478127b48d8d08f92e2368b4404fd272914"}
1
+ {"build":{"contentId":"76cb1b6f00c1d65e32b20e3daded3626bd860ad389520f885033fecefdcdef9d","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-arm64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"4c9787864a0dd94ae7cedae62daa8a120afa63feb3851ccc97bc3eb591a9fe4c"}
@@ -1 +1 @@
1
- {"build":{"contentId":"e913193640f46204d0a60cbf6cbe0f1949bd4812c5a06a1688bcd8702cb3c2b9","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-x64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"a9e461a1d0b60f93f1749db71f16d4590a5f7505b02f20820d3c9b4c40566691"}
1
+ {"build":{"contentId":"94ddba0296e13c1996efe439c6c021d3f8bea2a820e0f253190370088942d401","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"linux-x64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"a8a0d25c4a52563709401dc0b8f3f2d301dbba32159b97ff30e5a9f3843bd3fa"}
@@ -1 +1 @@
1
- {"build":{"contentId":"ae909961cbf5a58a12343cf53ecd8d87fe137bcf87da09a8934f546615b3c0ef","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"win32-x64","protocolVersion":1,"serverVersion":"0.11.8","sourceDigest":"d2d3685df8a276d0576ceb7a56d5452b2a406cc4a8110eca26ffa059ff59dacf"},"sha256":"9b0f29cd9665287414175e305b3267ec0e705a9cee2ee5e2d3d9cc1281ae1591"}
1
+ {"build":{"contentId":"45de98093c720f2e8850a855d4a8deb1c6c257d9349373a85fb735c5604ec018","dependencyLockDigest":"4643e416af0b366e78fbaf142d8f69b0591f8a4d3c9db6c07d2ae25157ec9180","format":1,"nodeVersion":"24.14.1","piSdkVersion":"1.7.0","platform":"win32-x64","protocolVersion":1,"serverVersion":"0.11.9","sourceDigest":"0997ce063c0dbff84e3ac3ca8409ffd170540dabbb89038e71928b6b490418d6"},"sha256":"6d83b7ca9535e820fd40d0debb78d25255ae3e4873f5d93b353d80a2082863bd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-better-harness",
3
- "version": "0.65.0",
3
+ "version": "0.65.2",
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",
@@ -75,12 +75,12 @@
75
75
  "@xterm/xterm": "6.0.0",
76
76
  "marked": "18.0.5",
77
77
  "openai": "6.26.0",
78
- "pi-better-background-tasks": "0.21.17",
78
+ "pi-better-background-tasks": "0.21.18",
79
79
  "pi-better-goal": "0.18.5",
80
80
  "pi-better-sandbox": "0.15.4",
81
- "pi-better-server": "0.11.8",
81
+ "pi-better-server": "0.11.9",
82
82
  "pi-better-ssh": "0.1.7",
83
- "pi-better-subagents": "0.41.10",
83
+ "pi-better-subagents": "0.41.11",
84
84
  "proper-lockfile": "^4.1.2",
85
85
  "shell-quote": "1.12.0",
86
86
  "smol-toml": "1.9.0",