pi-subagents 0.83.1 → 0.85.0
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 +79 -0
- package/bundle/agents.js +3 -3
- package/bundle/child-tool-plan.js +2 -2
- package/bundle/{chunk-5YIITCPD.js → chunk-3UZ5FVVJ.js} +322 -110
- package/bundle/{chunk-F4ASL6OV.js → chunk-7MAE3DJV.js} +1 -1
- package/bundle/{chunk-YXFJVCOL.js → chunk-CS4O36CZ.js} +11 -156
- package/bundle/{chunk-AHIFYGR3.js → chunk-DV2NCNPR.js} +22 -11
- package/bundle/{chunk-G2Z6ZH26.js → chunk-GCSLVFCX.js} +1 -1
- package/bundle/{chunk-2S4K53MV.js → chunk-H2NLFTC5.js} +1 -1
- package/bundle/{chunk-MABL3FUM.js → chunk-HFTBF7SG.js} +2 -1
- package/bundle/chunk-HXRB42AF.js +108 -0
- package/bundle/{chunk-UFL7IYCW.js → chunk-IQIWF2VX.js} +190 -1177
- package/bundle/{chunk-NPIYWVOD.js → chunk-JNXT3MPI.js} +15 -6
- package/bundle/{chunk-C7JMPU5F.js → chunk-JO67XSKD.js} +59 -27
- package/bundle/{chunk-UUP372DR.js → chunk-JWYG26RE.js} +223 -93
- package/bundle/{chunk-C5P5CHYK.js → chunk-KDMFBYFM.js} +1 -1
- package/bundle/{chunk-V2BZYLEP.js → chunk-KEY3UQMQ.js} +7 -2
- package/bundle/{chunk-VLFZIN6D.js → chunk-KZ34KQQH.js} +9 -6
- package/bundle/{chunk-ZVOAMTUQ.js → chunk-L2ENOFVZ.js} +76 -58
- package/bundle/{chunk-RNIZLSEA.js → chunk-LGMILZNE.js} +323 -18
- package/bundle/{chunk-UYK5MZWE.js → chunk-LTPH2DXH.js} +247 -153
- package/bundle/{chunk-2D52JFLF.js → chunk-N7B2KD74.js} +41 -117
- package/bundle/{chunk-IPGZMQXV.js → chunk-O7CPL6H4.js} +183 -28
- package/bundle/{chunk-D3JAFGMO.js → chunk-PHZP3KHB.js} +1 -1
- package/bundle/{chunk-2DHZTCOL.js → chunk-PVIVCDG2.js} +2 -2
- package/bundle/{chunk-LFDBD4PW.js → chunk-QO75KJBT.js} +2 -2
- package/bundle/{chunk-SSG7IEP5.js → chunk-RQAUNAWG.js} +2 -2
- package/bundle/{chunk-QP5ZWNIS.js → chunk-RV5OGHLO.js} +6 -3
- package/bundle/chunk-T5V5BRCL.js +1067 -0
- package/bundle/{chunk-LNRJCP2Y.js → chunk-UX4SCV5N.js} +337 -207
- package/bundle/{chunk-F5DBXJ2G.js → chunk-WOVMHDES.js} +234 -182
- package/bundle/control-channel.js +2 -2
- package/bundle/index.js +1 -1
- package/bundle/intercom-bridge.js +2 -2
- package/bundle/preflight.js +8 -8
- package/bundle/project-panes.js +3 -3
- package/docs/agents.md +17 -2
- package/docs/configuration.md +2 -2
- package/docs/extension-api.md +16 -1
- package/docs/workflows.md +30 -2
- package/package.json +1 -1
- package/src/agents/agent-management.js +27 -11
- package/src/agents/agent-memory.d.ts +1 -4
- package/src/agents/agent-memory.js +1 -4
- package/src/agents/agents.d.ts +1 -3
- package/src/agents/agents.js +7 -6
- package/src/agents/frontmatter.js +1 -8
- package/src/agents/global-npm-root.d.ts +1 -0
- package/src/agents/global-npm-root.js +11 -3
- package/src/agents/skills.d.ts +0 -3
- package/src/agents/skills.js +0 -3
- package/src/extension/config.js +7 -1
- package/src/extension/herdr-pi-bridge.js +10 -2
- package/src/extension/index.d.ts +0 -13
- package/src/extension/index.js +43 -32
- package/src/extension/public-execution.d.ts +1 -0
- package/src/extension/public-execution.js +4 -0
- package/src/extension/reply-workflow-script.js +24 -4
- package/src/extension/schemas.d.ts +8 -3
- package/src/extension/schemas.js +5 -3
- package/src/extension/session-switch.d.ts +25 -0
- package/src/extension/session-switch.js +138 -0
- package/src/extension/subagent-guide.d.ts +1 -1
- package/src/extension/subagent-guide.js +1 -1
- package/src/extension/subagent-launch-tool.d.ts +25 -0
- package/src/extension/subagent-launch-tool.js +48 -0
- package/src/extension/tool-activation.js +25 -11
- package/src/extension/tool-description.js +6 -0
- package/src/inspectors/herdr/actions.d.ts +0 -1
- package/src/inspectors/herdr/actions.js +0 -1
- package/src/inspectors/session-roots-codec.d.ts +0 -1
- package/src/inspectors/session-roots-codec.js +0 -1
- package/src/inspectors/tmux/actions.d.ts +0 -1
- package/src/inspectors/tmux/actions.js +0 -1
- package/src/integrations/herdr-status.js +3 -8
- package/src/intercom/native-supervisor-channel.js +65 -9
- package/src/runs/background/async-execution.d.ts +8 -9
- package/src/runs/background/async-execution.js +77 -27
- package/src/runs/background/async-job-tracker.js +12 -0
- package/src/runs/background/async-resume.d.ts +2 -1
- package/src/runs/background/async-resume.js +112 -39
- package/src/runs/background/async-retention.d.ts +1 -0
- package/src/runs/background/async-retention.js +22 -11
- package/src/runs/background/auto-drain.js +2 -1
- package/src/runs/background/boot-id.d.ts +1 -3
- package/src/runs/background/boot-id.js +1 -3
- package/src/runs/background/completion-batcher.d.ts +3 -4
- package/src/runs/background/completion-batcher.js +2 -3
- package/src/runs/background/control-channel.d.ts +0 -6
- package/src/runs/background/control-channel.js +0 -6
- package/src/runs/background/fleet-view.js +2 -3
- package/src/runs/background/notify.d.ts +0 -2
- package/src/runs/background/notify.js +0 -2
- package/src/runs/background/result-watcher.d.ts +1 -0
- package/src/runs/background/result-watcher.js +59 -29
- package/src/runs/background/resume-guidance.js +4 -2
- package/src/runs/background/retained-children.js +2 -1
- package/src/runs/background/run-child-session.d.ts +2 -1
- package/src/runs/background/run-child-session.js +10 -2
- package/src/runs/background/run-status.js +4 -3
- package/src/runs/background/scheduled-runs.d.ts +3 -1
- package/src/runs/background/scheduled-runs.js +13 -16
- package/src/runs/background/subagent-runner.d.ts +2 -4
- package/src/runs/background/subagent-runner.js +10 -6
- package/src/runs/background/subagent-wait.js +12 -15
- package/src/runs/background/wait-config.d.ts +2 -0
- package/src/runs/background/wait-config.js +17 -3
- package/src/runs/background/wait-tool.js +4 -2
- package/src/runs/background/workflow-terminal-proof.d.ts +0 -1
- package/src/runs/background/workflow-terminal-proof.js +0 -1
- package/src/runs/foreground/execution.d.ts +0 -3
- package/src/runs/foreground/execution.js +17 -9
- package/src/runs/foreground/subagent-executor.d.ts +3 -2
- package/src/runs/foreground/subagent-executor.js +112 -26
- package/src/runs/shared/child-commands.js +15 -2
- package/src/runs/shared/child-hooks.d.ts +1 -7
- package/src/runs/shared/child-hooks.js +13 -5
- package/src/runs/shared/child-launch.js +6 -2
- package/src/runs/shared/child-runtime-config.d.ts +0 -1
- package/src/runs/shared/child-session.d.ts +3 -1
- package/src/runs/shared/child-session.js +22 -2
- package/src/runs/shared/child-tool-plan.d.ts +0 -1
- package/src/runs/shared/child-tool-plan.js +0 -1
- package/src/runs/shared/claude-code-adapter.js +11 -0
- package/src/runs/shared/external-cli-runner.js +26 -6
- package/src/runs/shared/herdr-connection.js +2 -1
- package/src/runs/shared/herdr-pane-host.d.ts +2 -2
- package/src/runs/shared/herdr-pane-host.js +17 -1
- package/src/runs/shared/herdr-placed-run.js +48 -22
- package/src/runs/shared/lane-metadata.d.ts +0 -1
- package/src/runs/shared/lane-metadata.js +0 -1
- package/src/runs/shared/mcp-direct-tool-grant.js +8 -1
- package/src/runs/shared/model-resolution-diagnostic.d.ts +11 -1
- package/src/runs/shared/model-resolution-diagnostic.js +25 -0
- package/src/runs/shared/model-resolution.d.ts +2 -2
- package/src/runs/shared/model-resolution.js +7 -1
- package/src/runs/shared/model-scope.d.ts +1 -5
- package/src/runs/shared/model-scope.js +1 -5
- package/src/runs/shared/mutation-evidence.d.ts +1 -1
- package/src/runs/shared/mutation-evidence.js +52 -7
- package/src/runs/shared/nested-events.d.ts +1 -0
- package/src/runs/shared/nested-events.js +1 -1
- package/src/runs/shared/parallel-utils.d.ts +2 -1
- package/src/runs/shared/permissions.js +5 -3
- package/src/runs/shared/placement-host.d.ts +5 -1
- package/src/runs/shared/rex-pane-host.d.ts +0 -1
- package/src/runs/shared/rex-pane-host.js +0 -2
- package/src/runs/shared/run-launch-folder.d.ts +12 -0
- package/src/runs/shared/run-launch-folder.js +21 -0
- package/src/runs/shared/runner-launcher.d.ts +12 -1
- package/src/runs/shared/runner-launcher.js +16 -0
- package/src/runs/shared/single-output.d.ts +3 -3
- package/src/runs/shared/single-output.js +5 -3
- package/src/runs/shared/structured-output.d.ts +8 -0
- package/src/runs/shared/structured-output.js +30 -2
- package/src/runs/shared/subagent-prompt-runtime.d.ts +0 -1
- package/src/runs/shared/subagent-prompt-runtime.js +4 -2
- package/src/runs/shared/tool-timeout.js +2 -1
- package/src/runs/shared/worktree-cleanup-plan.d.ts +0 -1
- package/src/runs/shared/worktree-cleanup-plan.js +0 -1
- package/src/runs/shared/worktree.d.ts +3 -0
- package/src/runs/shared/worktree.js +20 -0
- package/src/shared/capacity-resilient-json.d.ts +1 -1
- package/src/shared/child-cache-retention.d.ts +1 -2
- package/src/shared/child-cache-retention.js +1 -2
- package/src/shared/fleet-transcript-reader.d.ts +51 -0
- package/src/shared/fleet-transcript-reader.js +333 -0
- package/src/shared/formatters.d.ts +0 -18
- package/src/shared/formatters.js +0 -18
- package/src/shared/session-succession.d.ts +16 -1
- package/src/shared/session-succession.js +41 -2
- package/src/shared/session-warnings.d.ts +7 -0
- package/src/shared/session-warnings.js +26 -0
- package/src/shared/settings.d.ts +0 -23
- package/src/shared/settings.js +3 -35
- package/src/shared/types.d.ts +28 -11
- package/src/shared/types.js +0 -12
- package/src/shared/utils.d.ts +0 -14
- package/src/shared/utils.js +0 -22
- package/src/shared/wait-tool-name.d.ts +8 -0
- package/src/shared/wait-tool-name.js +13 -0
- package/src/slash/slash-commands.js +2 -1
- package/src/slash/subagent-cost.d.ts +3 -2
- package/src/slash/subagent-cost.js +22 -3
- package/src/slash/subagents-admin.js +0 -1
- package/src/tui/fleet-status.d.ts +0 -5
- package/src/tui/fleet-status.js +4 -24
- package/src/tui/fleet-transcript.d.ts +1 -44
- package/src/tui/fleet-transcript.js +1 -327
- package/src/tui/fleet.js +6 -4
- package/src/tui/render.d.ts +0 -9
- package/src/tui/render.js +81 -47
- package/src/tui/subagent-messages.js +3 -2
- package/src/watchdog/register-child.d.ts +2 -3
- package/src/watchdog/register-child.js +2 -3
- package/src/watchdog/turn-delta.js +2 -1
- package/src/workflows/scripted-workflow.js +243 -20
- package/src/workflows/workflow-launch-record.d.ts +15 -6
- package/src/workflows/workflow-launch-record.js +30 -12
- package/src/workflows/workflow-resume-claim.js +2 -2
- package/src/workflows/workflow-resume.d.ts +1 -1
- package/src/workflows/workflow-resume.js +11 -8
- package/src/workflows/workflow-script-worker.d.ts +13 -0
- package/src/workflows/workflow-script-worker.js +79 -0
- package/workflow-script-process.cjs +36 -0
- package/workflow-script-worker.cjs +453 -176
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,85 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.85.0] - 2026-11-04
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
- Switching sessions while background agents are still working now asks what to do with that work: stay, take it along, or leave it with the current session.
|
|
10
|
+
- Permission extensions such as pi-guard can now see and block each child a workflow starts, including the commands that child's checks will run and the file it will write.
|
|
11
|
+
- Workflow scripts on Node run in a locked-down process, and resuming a sandboxed run no longer trusts files that run could rewrite.
|
|
12
|
+
- Pi no longer exits or freezes when a temp folder is unreadable, a repository is large, or a prompt holds a long run of separators.
|
|
13
|
+
- Children placed on Herdr or Rex machines start and stay connected far more reliably.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- A call can now require a launcher: `options.requireLauncher: { name, definitionDigest }` makes a single background launch run only under that launcher with that exact agent definition, and refuses it otherwise instead of running without the launcher. Extensions that sandbox children through a launcher can use it to make sure the agent they approved is the one that runs. See [Requiring a launcher](docs/extension-api.md#requiring-a-launcher). Thanks to [@ViperJuice](https://github.com/ViperJuice) for the proposal. (#3163)
|
|
18
|
+
- The wait tool can be renamed with `waitTool.name` in the pi-subagents config, so pi-subagents can run next to another extension that also registers `bg_wait`. Pi refuses to start when two extensions register the same tool name, and before this there was no setting to avoid that. The default name is still `bg_wait`. Thanks to [@Christopher876](https://github.com/Christopher876) for the report. (#3167)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Switching sessions with `/new`, `/resume`, `/fork` or `/clone` while background subagent work is still running, has undelivered results, or has unanswered questions now asks first: stay here, switch and take the work, or switch and leave the work with the current session (reopen it later to get the results of its background runs). Before, the new session always took the work over, even when it was an unrelated conversation. Sessions without a UI, such as `pi -p`, still hand the work over automatically. Thanks to [@IdrisGit](https://github.com/IdrisGit) for #3170.
|
|
23
|
+
- The Herdr `title-suffix` token is now always `⏳N`, where N is the number of active subagents (plus `⚠` when a child needs attention). Before, it showed the agent name when exactly one run was active and the newest workflow label when one was set, which changed width as runs started and finished and was truncated in narrow sidebar rows. The `summary` token and state labels still carry the agent names and workflow label. Thanks to [@longyuxi](https://github.com/longyuxi) for the report and #3157. (#3156)
|
|
24
|
+
- Resume and auto-resume no longer trust files a background run can write. What a resume starts, who owns it, where it runs and with what permissions now comes only from records kept outside the run's folder. Before, a run sandboxed by a runner launcher could edit its own folder to make the parent start something else at the next session start. Runs started before this update can't be resumed or auto-resumed; relaunch workflows with `options: { reuseFrom: "<id>" }` and start single runs again. Thanks to [@ViperJuice](https://github.com/ViperJuice) for the report. (#3116)
|
|
25
|
+
- Before a workflow starts a child, pi-subagents now makes a nested `subagent_launch` tool call carrying the child's agent, task, working directory and workflow key. Permission extensions such as pi-guard and @gotgenes/pi-permission-system see it in their `tool_call` handler and can block that child, which then fails with the block reason. Extensions that ask about tools they have no rule for will ask once per workflow child until you allow `subagent_launch`, and ones that deny unknown tools in `pi -p` will refuse workflow children there. Schedule ticks, auto-resume, `/prompt-workflow` and prompt-template delegation, RPC launches and workflows inside child agents are not offered; see [Workflows](docs/workflows.md#approving-workflow-children-in-permission-extensions). Thanks to [@ducn1806](https://github.com/ducn1806) for the report and the first implementation in #3123. (#3109)
|
|
26
|
+
- The `subagent_launch` call now also carries the shell commands the child's `gate` or `acceptance.verify` will run on your machine after it finishes, with their working directory and environment, and the absolute path of the file the child writes with `output`. Before, a workflow script could run those commands and write that file with no permission extension able to see them, even with `bash` blocked. Blocking the call stops the commands and the write too. An extension's `bash` rules don't apply to these commands on their own; it has to check `commands`. Thanks to [@ducn1806](https://github.com/ducn1806) for the report. (#3109)
|
|
27
|
+
- On Node, workflow scripts now run in a fresh permission-restricted process with no inherited startup flags or credentials, and cannot write files or start processes through Node APIs even outside the VM. A supervisor exits when the parent disconnects, including when the script is busy. Bun keeps its existing worker boundary. Thanks to [@XLi-hub](https://github.com/XLi-hub) for #3104.
|
|
28
|
+
- Finding agents again after they were already loaded scans the agent folders once instead of twice when chains are loaded too. The agents found are unchanged. Thanks to [@ArietidsZ](https://github.com/ArietidsZ) for #3115.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Checking which tracked files a finished child changed no longer freezes Pi on a large repository. Before, the git calls and the hash of a large diff ran synchronously, so steering, status updates and other children stopped for about a second while several children finished. Thanks to [@windli2018](https://github.com/windli2018) for #3181 and #3183.
|
|
33
|
+
- A paused interval schedule with no next run can now be read. Before, a schedule paused by editing its `schedule.json` and removing `nextRunAt` broke every schedule in the project: `schedule.list`, `run-due` and restore on startup failed, and each background run that finished printed a multi-line stack trace over the input box in every open session. Resuming that schedule now sets its next run, and a schedule file that still can't be read shows one warning per session (one stderr line without a UI). Thanks to [@barjatiyasaurabh](https://github.com/barjatiyasaurabh) for the report (#3180) and #3184.
|
|
34
|
+
- In interactive sessions, the notices about a slow result scan, a slow reload step, an unreadable result file, invalid nested children or a failed result-watcher restart now show once as a TUI warning. Before, they were written straight to the terminal and stayed on screen next to the input box, looking like typed text. A file that fails on every poll warns once per session. Sessions without a UI still get the line on stderr. Thanks to [@shreknitin89](https://github.com/shreknitin89) for #3171, #3178 and #3179.
|
|
35
|
+
- An invalid `globalConcurrencyLimit` in the config file (such as `0`, `2.5` or a string) now fails config loading with a clear message. Before, background runs quietly ran one child at a time and workflow scripts failed only when they started. Thanks to [@windli2018](https://github.com/windli2018) for #3165.
|
|
36
|
+
- An unreadable or full temp directory during the supervisor channel's background poll no longer exits Pi. Before, one failed scan of the supervisor mailbox folder was treated as an uncaught error and ended the session. Now it shows one warning and the poll keeps running; the supervisor tool's `pending` action and the wait tool still report the error instead of saying nothing is pending. Thanks to [@jordan-quan](https://github.com/jordan-quan) for the report and #3168.
|
|
37
|
+
- A filesystem error in three background timers no longer exits Pi: the 1-second activity update of a foreground run, the supervisor-reply poll of a Herdr or Rex placed run, and a child command's `yieldTimeMs` timer. Before, Pi treated the error as uncaught and quit the whole session. Now the activity update shows a warning and still sends its notice, the reply poll tries again on its next tick, and the yielded command's result says its saved state is out of date. Thanks to [@jordan-quan](https://github.com/jordan-quan) for the report. (#3169)
|
|
38
|
+
- The bundled `reviewer` agent, and any agent that declares `watchdog_diff`, can now start as a placed child (Rex `machine: "local"` or a Herdr pane). Before, the child Pi crashed about a second after launch and the parent reported "Remote Pi bridge connection was lost; task state is unknown." A bridge setup error now closes the bridge connection instead of crashing the child Pi, and the error names the tools Pi could not activate. Thanks to [@hecspc](https://github.com/hecspc) for the report and fix. (#3159)
|
|
39
|
+
- A placed child (Rex or Herdr pane) that reported progress or asked its supervisor a question after about a minute idle no longer loses its bridge. Before, the run ended with "Remote Pi reconciliation failed; task state is unknown" while the child kept working, because the parent's cleanup had removed the child's empty supervisor mailbox. Thanks to [@hecspc](https://github.com/hecspc) for the report and fix. (#3158)
|
|
40
|
+
- A child placed on a machine (including Rex `machine: "local"`) no longer fails with "Pane-native remote Pi cannot transfer local extension paths" when an extension in the parent session, such as billion-context, registered a required child extension without `requireForAllRunners`. A placed child now skips those entries, as external runners already do. An entry registered with `requireForAllRunners` still refuses the placed launch. Thanks to [@hecspc](https://github.com/hecspc) for the report. (#3139)
|
|
41
|
+
- `list` with `capabilities: true` and the `models` action now mark an agent's model pin that the session's model registry can't resolve with "(unavailable in the active model registry)", and the capability row gets `unavailable: true`. Before, they showed the pin as usable, and launching that agent then failed with "Unknown subagent model". Thanks to [@koenzhao](https://github.com/koenzhao) for the report. (#3144)
|
|
42
|
+
- When a background child that runs an external CLI (Claude Code, Codex, Cursor or a command runner) can't save its run status, for example because the run directory was removed or isn't writable, the run now stops the CLI, removes its prompt file and scratch directories, and fails with the write error. Before, a failure when the CLI started left it running with no way to stop it, and a failure when it finished left the run unsettled. A full disk is still retried in the background as before. Thanks to [@Osraka](https://github.com/Osraka) for the report and reproduction. (#3149)
|
|
43
|
+
- A `structured_output` call is now checked against the step's `outputSchema` exactly as the model sent it, before Pi converts tool arguments. Before, Pi could turn `"x"` into `["x"]`, or `null` into `""` (Pi 1.2) or `"null"` (Pi 1.5), and the converted value was captured as valid. The check is strict, so a value Pi would have converted, such as `"42"` for a number, is now rejected with the usual validation error and the model calls again. Thanks to [@G0-0000](https://github.com/G0-0000) for the report and first fix in #3142.
|
|
44
|
+
- A workflow script that calls `runs.run` again with a key it already launched now adds one "reused" entry to the workflow trace for that key, not one per call. Before, a script that re-delivered the same call in a loop grew the trace without limit, and because every trace change rewrites the whole trace to the run's status file and event log, one run wrote about 11 GB. Thanks to [@Hu3yLin](https://github.com/Hu3yLin) for the diagnosis and regression test in #3145.
|
|
45
|
+
- A Claude Code run no longer fails with a parser line-length error when it reads an image. Claude Code puts the image's base64 in the tool-result line twice, so one full-page screenshot gives a line of over 1 MB. That line is now skipped and the run keeps going, the way the Cursor adapter already handles large tool calls. Both adapters now skip such lines up to 8 MiB each (it was 1 MiB); the 32 MiB limit on a run's whole output still applies. An oversized assistant line or final result still fails the run, so a dropped answer never passes as a success. Thanks to [@drye](https://github.com/drye) for #3138.
|
|
46
|
+
- Disposing a foreground or in-process background child now also releases the per-session resources that the host's extensions registered with `registerSessionResourceCleanup`, such as a provider's cached WebSocket. Before, under Pi's bundled CLI only the SDK's own copy of the cleanup registry ran, so those resources stayed open and `pi -p` could hang after the run finished. Thanks to [@tmustier](https://github.com/tmustier) for the report and fix. (#3140)
|
|
47
|
+
- Resuming a background run now refuses when the run's status file names a different run than its directory, and the error names both. Before, the resume took the run id from whatever the status file said. Thanks to [@ViperJuice](https://github.com/ViperJuice) for the report. (#3116)
|
|
48
|
+
- Resuming a background run whose saved recovery record does not say which launcher it used, such as a workflow child resumed through its workflow run, now uses the agent file's current `launcher`. Before, the resumed child ran without its launcher. The same applies to a foreground run whose agent file gained a `launcher` since. New background runs record "no launcher" explicitly, so a background run started unwrapped still resumes unwrapped. Thanks to [@ViperJuice](https://github.com/ViperJuice) for the report. (#3116)
|
|
49
|
+
- When a launcher-wrapped background run fails to start, pi-subagents now stops the process the runner reported only if that process is the launcher or one of its descendants. Before, a sandboxed runner could report any process id, and pi-subagents would send it SIGTERM and SIGKILL, including to the parent Pi. A runner that is not stopped exits by itself within 30 seconds when it is never told to proceed. Thanks to [@ViperJuice](https://github.com/ViperJuice) for the report. (#3116)
|
|
50
|
+
- Replying to a supervisor request that has already ended now says how it ended and when: withdrawn because the child's run was stopped, interrupted or timed out (for example when a workflow aborts its other children after one fails), expired because no reply came before the child's ask timeout, closed because the child run ended, or already answered. Before, every such reply got the same "answered, expired or withdrawn" error, which did not say what happened to the child. Thanks to [@saman-mb](https://github.com/saman-mb) for the report. (#3126)
|
|
51
|
+
- Validating a workflow script now reports a `runs.all` item with no `key`, whether it is written in the array or returned by a `map(...)` callback. Before, validation passed and the run failed later with "has an invalid key". At run time that error now says whether the key is missing or invalid and gives the key rule. Items built by a named helper function are still checked only at run time. Thanks to [@saman-mb](https://github.com/saman-mb) for the report. (#3127)
|
|
52
|
+
- Passing a file path as `options.script` now says that `options.script` takes the script's source text and that a file goes in `workflow: "<path>"`. Before, validation reported a parse error such as "Invalid regular expression flag". Thanks to [@saman-mb](https://github.com/saman-mb) for the report. (#3127)
|
|
53
|
+
- When `workflow: true` finds no text in the message that issued the call but an earlier message of the same turn holds a `js` code block, the error now says so and points to `options: { script }` or writing the block and the call in one message. The block is still not run from the earlier message. The other no-text error no longer claims the text "never reached" the session, which was not true on every host. Thanks to [@saman-mb](https://github.com/saman-mb) for the report. (#3127)
|
|
54
|
+
- A workflow no longer stalls on task text with long runs of dashes, colons, slashes, quotes or similar separators. The check that looks for file-changing commands in that text rescanned it from every separator; it now reads it once and finds the same commands. Thanks to [@Yivas](https://github.com/Yivas) for #3122 and #3113.
|
|
55
|
+
- When the collapsed async agents widget above the editor runs out of room for a workflow's rows, it now hides the oldest finished rows behind one `… N earlier done` line instead of cutting the list from the bottom, so the running child, the latest finished rows and the other running jobs stay visible. With details expanded, the bottleneck line now comes right after the checklist summary, and each phase's item list shows only its four newest finished items. Thanks to [@pycaw](https://github.com/pycaw) for the report. (#3118)
|
|
56
|
+
- A child placed on a Herdr saved machine or a Rex machine over SSH no longer fails with "cwd does not exist" when its directory exists only on that machine. The launch checked the remote directory on this host, in the foreground and in background runs. Machine `local` still checks it here, since it shares this disk. Thanks to [@tjcarskadon](https://github.com/tjcarskadon) for the report and patch. (#3119)
|
|
57
|
+
- In pi-web, reopening a session after forking it gives that session back its own async runs. Before, the fork kept claiming them too, so either session could take the completion notice, and the fork could still list, wait on, steer or stop them. Thanks to [@nuzayets](https://github.com/nuzayets) for the report and diagnosis. (#3114)
|
|
58
|
+
- A project `agentOverrides` entry for a builtin agent no longer drops the fields set only in your user `agentOverrides` entry for that agent. Project fields still win where both set the same field, as they already did for custom agents. Before, a project entry that set anything for a builtin, such as `thinking`, silently discarded a user-scope `model` pin. Thanks to [@pfz](https://github.com/pfz) for the report. (#3124)
|
|
59
|
+
- Placing a child on a Herdr machine or a remote Rex session over SSH now works on hosts whose sshd drops sessions that run no command. The socket forwarder used `ssh -N`, so on those hosts it exited within seconds and every placed run failed with "bridge connection lost". It now runs a remote command that waits on the connection and exits when the forwarder closes, so nothing is left running on the remote machine. Thanks to [@tjcarskadon](https://github.com/tjcarskadon) for the report and patch. (#3120)
|
|
60
|
+
- The `cost` RPC and `/subagent-cost` now include background runs that were started without a `subagent` tool call, such as RPC `spawn` launches and their workflow children. Before, these runs were left out of the child rows and totals. Thanks to [@BenedictP](https://github.com/BenedictP) for #3106.
|
|
61
|
+
- A direct MCP tool name ending in a long run of slashes no longer slows Pi down. The slashes are trimmed in one pass instead of rescanning the name from every position, and the result is unchanged. Thanks to [@Yivas](https://github.com/Yivas) for #3112.
|
|
62
|
+
- A task prompt holding a long run of `git` options no longer freezes a workflow. The check that looks for `git` commands in it now reads the text in one pass, so a 198,000-character prompt that never finished now takes milliseconds. Thanks to [@Yivas](https://github.com/Yivas) for #3110.
|
|
63
|
+
- Reloading or switching sessions now stops the `npm root -g` lookup that finds globally installed agent packages. Before, it kept running for up to 5 seconds after the session it served was gone, and then rescanned agents for nothing. Thanks to [@ArietidsZ](https://github.com/ArietidsZ) for #3117.
|
|
64
|
+
- A child placed on another machine with an `output` path is now told to return its artifact in its final reply, which Pi saves to that path. Before, it was told to write to a path on the parent's machine that doesn't exist where it runs, and children stopped to ask what to do. A child in a Rex `local` pane runs on the parent's machine and still writes the file itself. Thanks to [@tjcarskadon](https://github.com/tjcarskadon) for the report and patch. (#3121)
|
|
65
|
+
- A native Pi child placed on a Herdr machine no longer fails on its first prompt with "is not an active named agent". Herdr registers a newly started agent's name a moment after it starts, so the first prompt could arrive too early and end the run before the child saw its task. That refusal is now retried for up to 5 seconds; any other prompt error still fails at once. Thanks to [@tjcarskadon](https://github.com/tjcarskadon) for the report and patch. (#3121)
|
|
66
|
+
|
|
67
|
+
## [0.84.0] - 2026-10-28
|
|
68
|
+
|
|
69
|
+
### Highlights
|
|
70
|
+
|
|
71
|
+
- Security fix: workflow scripts can no longer reach the Pi process outside their sandbox. Upgrade if you use workflow scripts.
|
|
72
|
+
- A locked-down background agent that fails because one of your extensions' providers did not load in it now says which provider and how to load it.
|
|
73
|
+
- Old background runs are now actually deleted from disk.
|
|
74
|
+
|
|
75
|
+
### Security
|
|
76
|
+
|
|
77
|
+
- Workflow scripts could reach the Pi process outside their sandbox. Upgrade to this version; see [GHSA-6v8j-6w28-2w8r](https://github.com/nicobailon/pi-subagents/security/advisories/GHSA-6v8j-6w28-2w8r) for affected versions and a workaround. Workflow scripts can no longer set `Error.prepareStackTrace`, and a script that calls `import()`, which always failed inside a workflow, is now rejected before it runs.
|
|
78
|
+
|
|
79
|
+
### Fixed
|
|
80
|
+
|
|
81
|
+
- Old background runs are now deleted from disk. Background runs are meant to be removed 30 days after they finish, but a run was kept forever while its Pi session file still existed, and session files are never deleted, so almost no run was ever removed. A run whose session still exists is now kept for 90 days, so you can still resume it for that long, and is then removed like any other finished run. Thanks to [@LCorleone](https://github.com/LCorleone) for the report and fix, and [@isjiajia01](https://github.com/isjiajia01) for reproducing it. (#3098)
|
|
82
|
+
- A background agent that loads no ambient extensions (for example one with `extensions: []`) now says so when it fails on a model whose provider one of your extensions registers or overrides. That extension never loaded in the child, so the child sent its requests through the built-in provider of the same name and failed with an unrelated provider error. The failure now names the provider and how to load its extension for that agent. Thanks to [@Yivas](https://github.com/Yivas) for the report. (#3100)
|
|
83
|
+
|
|
5
84
|
## [0.83.1] - 2026-10-27
|
|
6
85
|
|
|
7
86
|
### Highlights
|
package/bundle/agents.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
RUNTIME_AGENT_REGISTER_EVENT,
|
|
3
3
|
RUNTIME_AGENT_REGISTER_VERSION,
|
|
4
4
|
registerAgentViaEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H2NLFTC5.js";
|
|
6
6
|
import {
|
|
7
7
|
registerRuntimeAgent
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-GCSLVFCX.js";
|
|
9
|
+
import "./chunk-UX4SCV5N.js";
|
|
10
10
|
import "./chunk-JEZOSEWG.js";
|
|
11
11
|
import "./chunk-YFCK7H2S.js";
|
|
12
12
|
import "./chunk-QXASAHIA.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePiLaunchToolPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KEY3UQMQ.js";
|
|
4
4
|
import "./chunk-CTPAE36Y.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-UX4SCV5N.js";
|
|
6
6
|
import "./chunk-JEZOSEWG.js";
|
|
7
7
|
import "./chunk-YFCK7H2S.js";
|
|
8
8
|
import "./chunk-QXASAHIA.js";
|