@bastani/atomic 0.9.80 → 0.9.81
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 +76 -0
- package/dist/builtin/intercom/CHANGELOG.md +16 -0
- package/dist/builtin/intercom/broker/client.ts +12 -1
- package/dist/builtin/intercom/index.bundle.mjs +16 -4
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +25 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/agent-desktop/SKILL.md +40 -2
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +123 -25
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +25 -0
- package/dist/builtin/workflows/builtin/{chunk-m56qhe4b.js → chunk-zpkcqyhr.js} +2 -0
- package/dist/builtin/workflows/builtin/index.js +1 -1
- package/dist/builtin/workflows/builtin/ralph.js +1 -1
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +16 -4
- package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +12 -2
- package/dist/builtin/workflows/src/index.js +12 -2
- package/dist/builtin/workflows/src/local-worker-entry.mjs +12 -2
- package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +8 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +4 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/core/cache-stats.d.ts +21 -0
- package/dist/core/cache-stats.d.ts.map +1 -1
- package/dist/core/cache-stats.js +42 -2
- package/dist/core/cache-stats.js.map +1 -1
- package/dist/core/exec.d.ts +1 -0
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +2 -1
- package/dist/core/exec.js.map +1 -1
- package/dist/core/execution-model-router.d.ts +17 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +52 -23
- package/dist/core/execution-model-router.js.map +1 -1
- package/dist/core/model-fallback-failures.d.ts.map +1 -1
- package/dist/core/model-fallback-failures.js +1 -0
- package/dist/core/model-fallback-failures.js.map +1 -1
- package/dist/core/model-resolver-scope.d.ts +0 -1
- package/dist/core/model-resolver-scope.d.ts.map +1 -1
- package/dist/core/model-resolver-scope.js +0 -8
- package/dist/core/model-resolver-scope.js.map +1 -1
- package/dist/core/model-resolver.d.ts +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +1 -1
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-routing-candidates.d.ts +30 -5
- package/dist/core/model-routing-candidates.d.ts.map +1 -1
- package/dist/core/model-routing-candidates.js +381 -105
- package/dist/core/model-routing-candidates.js.map +1 -1
- package/dist/core/model-routing-estimates.d.ts +70 -0
- package/dist/core/model-routing-estimates.d.ts.map +1 -0
- package/dist/core/model-routing-estimates.js +244 -0
- package/dist/core/model-routing-estimates.js.map +1 -0
- package/dist/core/model-routing-needs.d.ts +1 -0
- package/dist/core/model-routing-needs.d.ts.map +1 -1
- package/dist/core/model-routing-needs.js +1 -1
- package/dist/core/model-routing-needs.js.map +1 -1
- package/dist/core/provider-display-names.js +2 -2
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +6 -0
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/tasks/supervisor.d.ts +1 -1
- package/dist/core/tasks/supervisor.d.ts.map +1 -1
- package/dist/core/tasks/supervisor.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +20 -11
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +2 -1
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +30 -10
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts +5 -0
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.js +86 -9
- package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.js +6 -3
- package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-rendering.js +5 -2
- package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.d.ts +5 -0
- package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.js +2 -0
- package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +4 -2
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +11 -4
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.d.ts +4 -1
- package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.js +24 -1
- package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +29 -36
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-agent-events.js +6 -6
- package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.js +11 -3
- package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +11 -1
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.js +1 -1
- package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js +34 -7
- package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
- package/dist/modes/interactive/interactive-queueing.d.ts +24 -0
- package/dist/modes/interactive/interactive-queueing.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-queueing.js +61 -0
- package/dist/modes/interactive/interactive-queueing.js.map +1 -1
- package/dist/modes/interactive/interactive-render-chat.js +2 -3
- package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
- package/dist/modes/interactive/interactive-slash-commands.js +2 -2
- package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +2 -0
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +10 -0
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +2 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +1 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-session-binding.d.ts +3 -1
- package/dist/modes/rpc/rpc-session-binding.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-session-binding.js +4 -1
- package/dist/modes/rpc/rpc-session-binding.js.map +1 -1
- package/docs/background-tasks.md +2 -2
- package/docs/extensions/api-reference.md +1 -1
- package/docs/models/model-selection.md +7 -7
- package/docs/providers.md +12 -17
- package/docs/skills.md +1 -1
- package/docs/subagents.md +3 -1
- package/docs/tools.md +1 -1
- package/docs/usage.md +1 -1
- package/docs/workflows/authoring.md +2 -0
- package/docs/workflows/operations.md +1 -1
- package/npm-shrinkwrap.json +57 -33
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,82 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.81] - 2026-11-13
|
|
6
|
+
|
|
7
|
+
Smarter automatic model routing, a quieter footer, and parallel subagent calls that survive a single child's failure.
|
|
8
|
+
|
|
9
|
+
- **Better `model: "auto"` picks.** Routing now weighs all shipped evaluation evidence at the effort the task will run at, so a model with one strong score no longer beats models with broad, consistent results, and parallel reviewers such as `ralph`'s can land on different model families ([#4689](https://github.com/bastani-inc/atomic/issues/4689), [#4691](https://github.com/bastani-inc/atomic/pull/4691)).
|
|
10
|
+
- **Clearer chat state.** The footer's model and branch line shows only while the agent is idle and reads `esc to interrupt` while it works, Escape in a retrying stage chat interrupts the stage, and a message sent while the agent is busy shows as queued at once ([#4690](https://github.com/bastani-inc/atomic/issues/4690), [#4692](https://github.com/bastani-inc/atomic/pull/4692), [#4696](https://github.com/bastani-inc/atomic/issues/4696), [#4700](https://github.com/bastani-inc/atomic/pull/4700)).
|
|
11
|
+
- **Sturdier subagents.** One child that fails to start no longer fails a whole parallel call, and a briefly slow Intercom broker no longer causes `Supervisor authorization timeout` ([#4697](https://github.com/bastani-inc/atomic/issues/4697), [#4698](https://github.com/bastani-inc/atomic/pull/4698)).
|
|
12
|
+
- **Honest cache miss costs.** Prompt cache miss notices and `/session` show the real re-billed cost instead of `$0.000` ([#4688](https://github.com/bastani-inc/atomic/issues/4688), [#4695](https://github.com/bastani-inc/atomic/pull/4695)).
|
|
13
|
+
- **Provider and tool fixes.** Qwen Token Plan moves to its current gateways with per-plan keys and new DeepSeek models, `"Connection closed."` errors retry automatically, and strict tool schemas, Google custom `fetch`, `bash` long-line output, `find` globs and `/resume` selection behave correctly ([#4693](https://github.com/bastani-inc/atomic/pull/4693), [#4702](https://github.com/bastani-inc/atomic/pull/4702)).
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Added `deepseek-v4.1-flash` and `deepseek-v4.1-flash-1017` to the Qwen Token Plan Individual providers, and per-plan key variables `QWEN_TOKEN_PLAN_TEAM_API_KEY`, `QWEN_TOKEN_PLAN_TEAM_CN_API_KEY`, `QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY`, and `QWEN_TOKEN_PLAN_INDIVIDUAL_CN_API_KEY`; the shared `QWEN_TOKEN_PLAN_API_KEY` and `QWEN_TOKEN_PLAN_CN_API_KEY` still work as fallbacks (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- `model: "auto"` now ranks models on all of the evaluation evidence Atomic ships instead of averaging standings over the few benchmarks each model happens to have. Results a model lacks are estimated from its other results across every evals table, each with an uncertainty, and models are ranked on a cautious estimate compared across the eligible models, so a model with one strong benchmark score no longer outranks models with broader, consistent results, and on demanding tasks a cheaper model no longer wins only because every frontier model shares the same top catalog standing. Each model is judged at the reasoning effort the task will run at, with unmeasured efforts estimated from its measured ones. Benchmarks are weighted by the task: hard coding and review rely mostly on DeepSWE and FrontierCode, and models with a measured DeepSWE or FrontierCode result rank ahead of models without one; short terminal work and lookups lean on Terminal-Bench 4.0. Easy, low-stakes tasks favour cheaper models more strongly. The router's evidence for each option says which results are measured and which are estimated. Parallel `auto` stages can take different model families with the new `parallelSlot` stage option, and the builtin `ralph` workflow's two reviewers now do ([#4689](https://github.com/bastani-inc/atomic/issues/4689))
|
|
22
|
+
- The footer line with the model, reasoning level, folder, Git branch and session name now shows only while the chat's agent is idle, the same way in the main chat, workflow stage chats and subagent chats. While the agent works, including during a `!` command, a compaction or an automatic retry's backoff, the line shows `esc to interrupt`, or `working` where Escape does not interrupt (an open `/tasks` picker, or a subagent's chat) ([#4690](https://github.com/bastani-inc/atomic/issues/4690))
|
|
23
|
+
- Updated `@google/genai` to 2.32.0 with automatic continuation turned off, so a `CONTINUATION` finish reason ends the turn with stop reason `length` (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108))
|
|
24
|
+
- Qwen Token Plan providers now use the current gateways (`token-plan.maas.qwencloudapi.com` international, `token-plan.maas.qianwenaiapi.com` China), and `qwen-token-plan` and `qwen-token-plan-cn` are named "Qwen Token Plan Team" and "Qwen Token Plan Team CN" ("Qwen Token Plan (Team)" and "Qwen Token Plan (Team, China)" in `/login`). Provider IDs are unchanged, and the old `aliyuncs.com` hosts still work (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Fixed the `bash` tool returning no output, with a broken truncation footer such as `[Showing lines 3-2 of 2]`, when output ends in one line longer than about 100 KB; it now shows the end of that line (upstream [#12092](https://github.com/earendil-works/pi/pull/12092))
|
|
29
|
+
- Fixed `pi.exec` reporting `code: 0` when a command is terminated by a signal without a numeric exit code; signal-terminated commands now report `128 + signal` (`143` for SIGTERM, `137` for SIGKILL), or `1` when neither an exit code nor a signal is reported (upstream [#12089](https://github.com/earendil-works/pi/pull/12089))
|
|
30
|
+
- Fixed provider errors reading `"Connection closed."` not triggering automatic retries in sessions, workflows, and subagents (upstream [#12093](https://github.com/earendil-works/pi/pull/12093))
|
|
31
|
+
- Fixed tools with `strict: "prefer"` constrained sampling being sent in strict mode when their schema contains a node without a `type`, such as `items: {}`, `Type.Unknown()`, or a bare `const`, which OpenAI rejects with a 400 error; these tools now fall back to non-strict mode, `strict: "require"` fails locally, and nodes with only an `enum` stay strict. Non-strict Anthropic tool schemas, including those that fell back from `strict: "prefer"`, also keep their root `additionalProperties` keyword instead of dropping it (upstream [#12049](https://github.com/earendil-works/pi/issues/12049), [#12100](https://github.com/earendil-works/pi/pull/12100))
|
|
32
|
+
- Fixed prompt cache miss notices showing a definitive `$0.000` for large re-billed misses. Notices now show the cost of the re-billed tokens and how much more that is than a cache hit, for example `257,225 tokens re-billed ($0.011, <$0.001 more than a cache hit)`. Amounts too small to show render as `<$0.001`. For models without pricing, notices show the provider-reported request cost when there is one, or `cost unknown`. The `/session` "Wasted Cache Cost" line follows the same rules ([#4688](https://github.com/bastani-inc/atomic/issues/4688))
|
|
33
|
+
- Fixed a steering or follow-up message sent while the agent was busy, for example running a parallel `subagent` call, appearing in the queued-messages area only after a delay of up to a few seconds. In the main chat and workflow stage chats the message now shows as queued as soon as you submit it, whatever the agent is doing. If the agent refuses it, the row is removed and the message goes back to the editor with the reason ([#4696](https://github.com/bastani-inc/atomic/issues/4696))
|
|
34
|
+
- Fixed the `google-generative-ai` and `google-vertex` adapters rejecting a custom `fetch` option instead of forwarding it through `httpOptions.fetch`, and kept the global undici dispatcher's idle timeouts active when no custom `fetch` is supplied; Vertex ADC token requests still use `google-auth-library`'s own HTTP client (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108))
|
|
35
|
+
- Fixed `/resume` sometimes selecting an unrelated session while the session list reloads progressively after deleting or renaming a session. Visible sessions can be renamed while loading and stay selected as more rows arrive, and an older load no longer overwrites the refreshed list (upstream [#12106](https://github.com/earendil-works/pi/issues/12106), [#12111](https://github.com/earendil-works/pi/pull/12111))
|
|
36
|
+
- Fixed unmatched `enabledModels` and `--models` warnings being printed over the interactive interface again when switching or creating sessions. They now appear as startup diagnostics instead (upstream [#11973](https://github.com/earendil-works/pi/pull/11973))
|
|
37
|
+
- Fixed `find` glob paths matching directories above the search root when using its fd fallback, so `**/src/**/*.ts` no longer includes unrelated files under a parent `src` directory (upstream [#12116](https://github.com/earendil-works/pi/pull/12116))
|
|
38
|
+
|
|
39
|
+
### Removed
|
|
40
|
+
|
|
41
|
+
- Removed the retired `deepseek-v3.2` and `deepseek-v4-flash` from the Qwen Token Plan Team providers; use `deepseek-v4-flash-0731` or `deepseek-v4.1-flash` (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
|
|
42
|
+
|
|
43
|
+
## [0.9.81-alpha.1] - 2026-11-13
|
|
44
|
+
|
|
45
|
+
Smarter automatic model routing, a quieter footer, and parallel subagent calls that survive a single child's failure.
|
|
46
|
+
|
|
47
|
+
- **Better `model: "auto"` picks.** Routing now weighs all shipped evaluation evidence at the effort the task will run at, so a model with one strong score no longer beats models with broad, consistent results, and parallel reviewers such as `ralph`'s can land on different model families ([#4689](https://github.com/bastani-inc/atomic/issues/4689), [#4691](https://github.com/bastani-inc/atomic/pull/4691)).
|
|
48
|
+
- **Clearer chat state.** The footer's model and branch line shows only while the agent is idle and reads `esc to interrupt` while it works, Escape in a retrying stage chat interrupts the stage, and a message sent while the agent is busy shows as queued at once ([#4690](https://github.com/bastani-inc/atomic/issues/4690), [#4692](https://github.com/bastani-inc/atomic/pull/4692), [#4696](https://github.com/bastani-inc/atomic/issues/4696), [#4700](https://github.com/bastani-inc/atomic/pull/4700)).
|
|
49
|
+
- **Sturdier subagents.** One child that fails to start no longer fails a whole parallel call, and a briefly slow Intercom broker no longer causes `Supervisor authorization timeout` ([#4697](https://github.com/bastani-inc/atomic/issues/4697), [#4698](https://github.com/bastani-inc/atomic/pull/4698)).
|
|
50
|
+
- **Honest cache miss costs.** Prompt cache miss notices and `/session` show the real re-billed cost instead of `$0.000` ([#4688](https://github.com/bastani-inc/atomic/issues/4688), [#4695](https://github.com/bastani-inc/atomic/pull/4695)).
|
|
51
|
+
- **Provider and tool fixes.** Qwen Token Plan moves to its current gateways with per-plan keys and new DeepSeek models, `"Connection closed."` errors retry automatically, and strict tool schemas, Google custom `fetch`, `bash` long-line output, `find` globs and `/resume` selection behave correctly ([#4693](https://github.com/bastani-inc/atomic/pull/4693), [#4702](https://github.com/bastani-inc/atomic/pull/4702)).
|
|
52
|
+
|
|
53
|
+
### Added
|
|
54
|
+
|
|
55
|
+
- Added `deepseek-v4.1-flash` and `deepseek-v4.1-flash-1017` to the Qwen Token Plan Individual providers, and per-plan key variables `QWEN_TOKEN_PLAN_TEAM_API_KEY`, `QWEN_TOKEN_PLAN_TEAM_CN_API_KEY`, `QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY`, and `QWEN_TOKEN_PLAN_INDIVIDUAL_CN_API_KEY`; the shared `QWEN_TOKEN_PLAN_API_KEY` and `QWEN_TOKEN_PLAN_CN_API_KEY` still work as fallbacks (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
- `model: "auto"` now ranks models on all of the evaluation evidence Atomic ships instead of averaging standings over the few benchmarks each model happens to have. Results a model lacks are estimated from its other results across every evals table, each with an uncertainty, and models are ranked on a cautious estimate compared across the eligible models, so a model with one strong benchmark score no longer outranks models with broader, consistent results, and on demanding tasks a cheaper model no longer wins only because every frontier model shares the same top catalog standing. Each model is judged at the reasoning effort the task will run at, with unmeasured efforts estimated from its measured ones. Benchmarks are weighted by the task: hard coding and review rely mostly on DeepSWE and FrontierCode, and models with a measured DeepSWE or FrontierCode result rank ahead of models without one; short terminal work and lookups lean on Terminal-Bench 4.0. Easy, low-stakes tasks favour cheaper models more strongly. The router's evidence for each option says which results are measured and which are estimated. Parallel `auto` stages can take different model families with the new `parallelSlot` stage option, and the builtin `ralph` workflow's two reviewers now do ([#4689](https://github.com/bastani-inc/atomic/issues/4689))
|
|
60
|
+
- The footer line with the model, reasoning level, folder, Git branch and session name now shows only while the chat's agent is idle, the same way in the main chat, workflow stage chats and subagent chats. While the agent works, including during a `!` command, a compaction or an automatic retry's backoff, the line shows `esc to interrupt`, or `working` where Escape does not interrupt (an open `/tasks` picker, or a subagent's chat) ([#4690](https://github.com/bastani-inc/atomic/issues/4690))
|
|
61
|
+
- Updated `@google/genai` to 2.32.0 with automatic continuation turned off, so a `CONTINUATION` finish reason ends the turn with stop reason `length` (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108))
|
|
62
|
+
- Qwen Token Plan providers now use the current gateways (`token-plan.maas.qwencloudapi.com` international, `token-plan.maas.qianwenaiapi.com` China), and `qwen-token-plan` and `qwen-token-plan-cn` are named "Qwen Token Plan Team" and "Qwen Token Plan Team CN" ("Qwen Token Plan (Team)" and "Qwen Token Plan (Team, China)" in `/login`). Provider IDs are unchanged, and the old `aliyuncs.com` hosts still work (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- Fixed the `bash` tool returning no output, with a broken truncation footer such as `[Showing lines 3-2 of 2]`, when output ends in one line longer than about 100 KB; it now shows the end of that line (upstream [#12092](https://github.com/earendil-works/pi/pull/12092))
|
|
67
|
+
- Fixed `pi.exec` reporting `code: 0` when a command is terminated by a signal without a numeric exit code; signal-terminated commands now report `128 + signal` (`143` for SIGTERM, `137` for SIGKILL), or `1` when neither an exit code nor a signal is reported (upstream [#12089](https://github.com/earendil-works/pi/pull/12089))
|
|
68
|
+
- Fixed provider errors reading `"Connection closed."` not triggering automatic retries in sessions, workflows, and subagents (upstream [#12093](https://github.com/earendil-works/pi/pull/12093))
|
|
69
|
+
- Fixed tools with `strict: "prefer"` constrained sampling being sent in strict mode when their schema contains a node without a `type`, such as `items: {}`, `Type.Unknown()`, or a bare `const`, which OpenAI rejects with a 400 error; these tools now fall back to non-strict mode, `strict: "require"` fails locally, and nodes with only an `enum` stay strict. Non-strict Anthropic tool schemas, including those that fell back from `strict: "prefer"`, also keep their root `additionalProperties` keyword instead of dropping it (upstream [#12049](https://github.com/earendil-works/pi/issues/12049), [#12100](https://github.com/earendil-works/pi/pull/12100))
|
|
70
|
+
- Fixed prompt cache miss notices showing a definitive `$0.000` for large re-billed misses. Notices now show the cost of the re-billed tokens and how much more that is than a cache hit, for example `257,225 tokens re-billed ($0.011, <$0.001 more than a cache hit)`. Amounts too small to show render as `<$0.001`. For models without pricing, notices show the provider-reported request cost when there is one, or `cost unknown`. The `/session` "Wasted Cache Cost" line follows the same rules ([#4688](https://github.com/bastani-inc/atomic/issues/4688))
|
|
71
|
+
- Fixed a steering or follow-up message sent while the agent was busy, for example running a parallel `subagent` call, appearing in the queued-messages area only after a delay of up to a few seconds. In the main chat and workflow stage chats the message now shows as queued as soon as you submit it, whatever the agent is doing. If the agent refuses it, the row is removed and the message goes back to the editor with the reason ([#4696](https://github.com/bastani-inc/atomic/issues/4696))
|
|
72
|
+
- Fixed the `google-generative-ai` and `google-vertex` adapters rejecting a custom `fetch` option instead of forwarding it through `httpOptions.fetch`, and kept the global undici dispatcher's idle timeouts active when no custom `fetch` is supplied; Vertex ADC token requests still use `google-auth-library`'s own HTTP client (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108))
|
|
73
|
+
- Fixed `/resume` sometimes selecting an unrelated session while the session list reloads progressively after deleting or renaming a session. Visible sessions can be renamed while loading and stay selected as more rows arrive, and an older load no longer overwrites the refreshed list (upstream [#12106](https://github.com/earendil-works/pi/issues/12106), [#12111](https://github.com/earendil-works/pi/pull/12111))
|
|
74
|
+
- Fixed unmatched `enabledModels` and `--models` warnings being printed over the interactive interface again when switching or creating sessions. They now appear as startup diagnostics instead (upstream [#11973](https://github.com/earendil-works/pi/pull/11973))
|
|
75
|
+
- Fixed `find` glob paths matching directories above the search root when using its fd fallback, so `**/src/**/*.ts` no longer includes unrelated files under a parent `src` directory (upstream [#12116](https://github.com/earendil-works/pi/pull/12116))
|
|
76
|
+
|
|
77
|
+
### Removed
|
|
78
|
+
|
|
79
|
+
- Removed the retired `deepseek-v3.2` and `deepseek-v4-flash` from the Qwen Token Plan Team providers; use `deepseek-v4-flash-0731` or `deepseek-v4.1-flash` (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
|
|
80
|
+
|
|
5
81
|
## [0.9.80] - 2026-11-12
|
|
6
82
|
|
|
7
83
|
Embedding apps can pick storage adapters by package name, the UI shows less placeholder text, and Atomic no longer briefly locks your folder on Windows after it exits.
|
|
@@ -4,6 +4,22 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.81] - 2026-11-13
|
|
8
|
+
|
|
9
|
+
Subagents start reliably when the Intercom broker is briefly slow.
|
|
10
|
+
|
|
11
|
+
- **No spurious authorization timeouts.** A timed-out supervisor authorization is retried once on a healthy broker connection before it fails ([#4697](https://github.com/bastani-inc/atomic/issues/4697), [#4698](https://github.com/bastani-inc/atomic/pull/4698)).
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Fixed a subagent failing to start with `Supervisor authorization timeout` when the Intercom broker was briefly slow to answer: a timed-out authorization is now asked once more when the broker connection is still healthy, and fails only if that second request also goes unanswered ([#4697](https://github.com/bastani-inc/atomic/issues/4697))
|
|
16
|
+
|
|
17
|
+
## [0.9.81-alpha.1] - 2026-11-13
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Fixed a subagent failing to start with `Supervisor authorization timeout` when the Intercom broker was briefly slow to answer: a timed-out authorization is now asked once more when the broker connection is still healthy, and fails only if that second request also goes unanswered ([#4697](https://github.com/bastani-inc/atomic/issues/4697))
|
|
22
|
+
|
|
7
23
|
## [0.9.79] - 2026-11-12
|
|
8
24
|
|
|
9
25
|
Released workflow stages share one broker connection, and hosted-session failures say why.
|
|
@@ -432,6 +432,17 @@ export class IntercomPendingStageRouteRefusedError extends Error {
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
+
/**
|
|
436
|
+
* The broker did not answer one supervisor authorization in time although the connection then passed its health
|
|
437
|
+
* check; a broker that failed it rejects with its own failure instead (#4697).
|
|
438
|
+
*/
|
|
439
|
+
export class SupervisorAuthorizationTimeoutError extends Error {
|
|
440
|
+
constructor() {
|
|
441
|
+
super("Supervisor authorization timeout");
|
|
442
|
+
this.name = "SupervisorAuthorizationTimeoutError";
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
435
446
|
const PENDING_STAGE_ROUTE_REFUSAL_CODES: ReadonlySet<string> = new Set<PendingStageRouteRefusalCode>([
|
|
436
447
|
"not_authorized",
|
|
437
448
|
"invalid_stage_roster",
|
|
@@ -1573,7 +1584,7 @@ export class IntercomClient extends EventEmitter {
|
|
|
1573
1584
|
const requestId = randomUUID();
|
|
1574
1585
|
const timeout = setTimeout(() => {
|
|
1575
1586
|
if (!this.pendingSupervisorAuthorizations.delete(requestId)) return;
|
|
1576
|
-
void this.requestTimeout(socket, new
|
|
1587
|
+
void this.requestTimeout(socket, new SupervisorAuthorizationTimeoutError()).then(reject);
|
|
1577
1588
|
}, 5000);
|
|
1578
1589
|
this.pendingSupervisorAuthorizations.set(requestId, {
|
|
1579
1590
|
resolve: (authorization) => { clearTimeout(timeout); resolve(authorization); },
|
|
@@ -2326,7 +2326,7 @@ function isWorkflowFutureStageRosterEntries(value) {
|
|
|
2326
2326
|
function isWorkflowStageRosterEntries(value) {
|
|
2327
2327
|
return Array.isArray(value) && value.every((entry) => typeof entry === "object" && entry !== null && entry.kind === "workflow-stage" && typeof entry.runId === "string" && typeof entry.stageId === "string" && typeof entry.stageName === "string" && typeof entry.target === "string" && (entry.lifecycle === "pending" || entry.lifecycle === "running") && typeof entry.group === "string" && (entry.sessionId === undefined || typeof entry.sessionId === "string"));
|
|
2328
2328
|
}
|
|
2329
|
-
var BROKER_CONNECT_TIMEOUT_MS = 1e4, PENDING_STAGE_ROUTE_ACK_TIMEOUT_MS = 1e4, GROUP_REQUEST_TIMEOUT_MS = 5000, PRESENCE_ACK_TIMEOUT_MS = 5000, RESTORING_RECIPIENT_REQUEST_TIMEOUT_MS = 5000, BROKER_BACKLOG_RETRIES = 6, BROKER_BACKLOG_RETRY_BASE_MS = 25, ConnectionClosedBeforeRegistrationError, HELD_SEND_GRACE_MS = 5000, IntercomPendingStageRouteRefusedError, PENDING_STAGE_ROUTE_REFUSAL_CODES, IntercomClient;
|
|
2329
|
+
var BROKER_CONNECT_TIMEOUT_MS = 1e4, PENDING_STAGE_ROUTE_ACK_TIMEOUT_MS = 1e4, GROUP_REQUEST_TIMEOUT_MS = 5000, PRESENCE_ACK_TIMEOUT_MS = 5000, RESTORING_RECIPIENT_REQUEST_TIMEOUT_MS = 5000, BROKER_BACKLOG_RETRIES = 6, BROKER_BACKLOG_RETRY_BASE_MS = 25, ConnectionClosedBeforeRegistrationError, HELD_SEND_GRACE_MS = 5000, IntercomPendingStageRouteRefusedError, SupervisorAuthorizationTimeoutError, PENDING_STAGE_ROUTE_REFUSAL_CODES, IntercomClient;
|
|
2330
2330
|
var init_client = __esm(() => {
|
|
2331
2331
|
init_broker_status();
|
|
2332
2332
|
init_paths();
|
|
@@ -2367,6 +2367,12 @@ var init_client = __esm(() => {
|
|
|
2367
2367
|
this.code = refusal.code;
|
|
2368
2368
|
}
|
|
2369
2369
|
};
|
|
2370
|
+
SupervisorAuthorizationTimeoutError = class SupervisorAuthorizationTimeoutError extends Error {
|
|
2371
|
+
constructor() {
|
|
2372
|
+
super("Supervisor authorization timeout");
|
|
2373
|
+
this.name = "SupervisorAuthorizationTimeoutError";
|
|
2374
|
+
}
|
|
2375
|
+
};
|
|
2370
2376
|
PENDING_STAGE_ROUTE_REFUSAL_CODES = new Set([
|
|
2371
2377
|
"not_authorized",
|
|
2372
2378
|
"invalid_stage_roster",
|
|
@@ -3351,7 +3357,7 @@ var init_client = __esm(() => {
|
|
|
3351
3357
|
const timeout = setTimeout(() => {
|
|
3352
3358
|
if (!this.pendingSupervisorAuthorizations.delete(requestId))
|
|
3353
3359
|
return;
|
|
3354
|
-
this.requestTimeout(socket, new
|
|
3360
|
+
this.requestTimeout(socket, new SupervisorAuthorizationTimeoutError).then(reject);
|
|
3355
3361
|
}, 5000);
|
|
3356
3362
|
this.pendingSupervisorAuthorizations.set(requestId, {
|
|
3357
3363
|
resolve: (authorization) => {
|
|
@@ -9659,7 +9665,11 @@ class SupervisorAuthorizationRegistry {
|
|
|
9659
9665
|
}
|
|
9660
9666
|
async authorize(childName, connect) {
|
|
9661
9667
|
const client = await connect();
|
|
9662
|
-
const authorization = await client.authorizeSupervisorChild(childName.trim())
|
|
9668
|
+
const authorization = await client.authorizeSupervisorChild(childName.trim()).catch((error) => {
|
|
9669
|
+
if (!(error instanceof SupervisorAuthorizationTimeoutError))
|
|
9670
|
+
throw error;
|
|
9671
|
+
return client.authorizeSupervisorChild(childName.trim());
|
|
9672
|
+
});
|
|
9663
9673
|
this.remember(authorization);
|
|
9664
9674
|
return authorization;
|
|
9665
9675
|
}
|
|
@@ -9703,7 +9713,9 @@ class SupervisorAuthorizationRegistry {
|
|
|
9703
9713
|
}
|
|
9704
9714
|
}
|
|
9705
9715
|
var DYNAMIC_SLOT = "*", childKey = (childName) => childName.trim().toLowerCase();
|
|
9706
|
-
var init_supervisor_authorization_registry = () => {
|
|
9716
|
+
var init_supervisor_authorization_registry = __esm(() => {
|
|
9717
|
+
init_client();
|
|
9718
|
+
});
|
|
9707
9719
|
|
|
9708
9720
|
// dist/builtin/intercom/index-heavy.ts
|
|
9709
9721
|
var exports_index_heavy = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.81",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
|
|
6
6
|
"contributors": [
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.81] - 2026-11-13
|
|
6
|
+
|
|
7
|
+
Parallel subagent calls survive a single child's failure, and the desktop skill learns sandboxes.
|
|
8
|
+
|
|
9
|
+
- **Partial results from parallel calls.** A child that fails to start is reported on its own row while the others finish, and the card header counts each outcome ([#4697](https://github.com/bastani-inc/atomic/issues/4697), [#4698](https://github.com/bastani-inc/atomic/pull/4698)).
|
|
10
|
+
- **Desktop sandboxes on request.** The bundled agent-desktop skill can set up and drive macOS VM sandboxes on Apple Silicon, only when you ask for one ([#4699](https://github.com/bastani-inc/atomic/pull/4699)).
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Updated the bundled agent-desktop skill to upstream `v1.3.0`. It adds a Sandboxes section for the new `agent-desktop sandbox` command: on an Apple Silicon Mac running macOS 13 or later it can install the macOS VM provider, create, start, stop and remove sandboxes, and run commands in the guest, and it explains each sandbox state and what to do next. It also notes that a sandbox isolates the desktop but not the network or the host. The agent installs the sandbox provider or creates a sandbox only when you ask for one, since that builds a local VM host and can download a multi-gigabyte macOS image. Install guidance, the readiness check and permission handling are unchanged.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Fixed one child's setup failure, such as `Supervisor authorization timeout`, turning a whole parallel subagent call into a single error: that child is now reported as not started with its error, the other children run to completion and report their own results, and the call fails only when no child started. The parallel card keeps a row per child, shows each failed child's error on one line (in full when expanded), and its header counts the outcomes, for example `subagent parallel (5) · 4 done · 1 failed` ([#4697](https://github.com/bastani-inc/atomic/issues/4697))
|
|
19
|
+
|
|
20
|
+
## [0.9.81-alpha.1] - 2026-11-13
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Updated the bundled agent-desktop skill to upstream `v1.3.0`. It adds a Sandboxes section for the new `agent-desktop sandbox` command: on an Apple Silicon Mac running macOS 13 or later it can install the macOS VM provider, create, start, stop and remove sandboxes, and run commands in the guest, and it explains each sandbox state and what to do next. It also notes that a sandbox isolates the desktop but not the network or the host. The agent installs the sandbox provider or creates a sandbox only when you ask for one, since that builds a local VM host and can download a multi-gigabyte macOS image. Install guidance, the readiness check and permission handling are unchanged.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Fixed one child's setup failure, such as `Supervisor authorization timeout`, turning a whole parallel subagent call into a single error: that child is now reported as not started with its error, the other children run to completion and report their own results, and the call fails only when no child started. The parallel card keeps a row per child, shows each failed child's error on one line (in full when expanded), and its header counts the outcomes, for example `subagent parallel (5) · 4 done · 1 failed` ([#4697](https://github.com/bastani-inc/atomic/issues/4697))
|
|
29
|
+
|
|
5
30
|
## [0.9.79] - 2026-11-12
|
|
6
31
|
|
|
7
32
|
Background subagents survive a reboot, and one that cannot be restored comes with a ready relaunch call.
|
|
@@ -4,9 +4,9 @@ description: Operate native desktop applications on macOS, Windows and Linux thr
|
|
|
4
4
|
hidden: true
|
|
5
5
|
metadata:
|
|
6
6
|
github-path: skills/agent-desktop
|
|
7
|
-
github-ref: refs/tags/v1.
|
|
7
|
+
github-ref: refs/tags/v1.3.0
|
|
8
8
|
github-repo: https://github.com/vercel-labs/agent-desktop
|
|
9
|
-
github-tree-sha:
|
|
9
|
+
github-tree-sha: ef953179861334f07a7ec948f1d34401de17b9b0
|
|
10
10
|
name: agent-desktop
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -20,6 +20,8 @@ If `agent-desktop` is not on `PATH`, make one bounded attempt to install it: `np
|
|
|
20
20
|
|
|
21
21
|
`agent-desktop status` is the readiness check. On macOS, `permissions.accessibility` must be `granted`, and `screen_recording` too for `screenshot`: run `agent-desktop permissions --guide` and let the user approve it. Windows needs no grant for apps at the terminal's integrity level. On Linux, run inside the user's graphical session; an empty `supported_surfaces` means the AT-SPI bus did not answer. Never script around a consent dialog.
|
|
22
22
|
|
|
23
|
+
Run `agent-desktop sandbox install` or `agent-desktop sandbox create` only when the user explicitly asks for a sandbox: they build a local VM host and can download a multi-gigabyte macOS image. Ask first otherwise.
|
|
24
|
+
|
|
23
25
|
For web pages use `agent-browser`. For the web contents of a Chromium or Electron app you launch, `agent-desktop launch <app> --cdp` opens a debugging port that `agent-browser connect <port>` drives (see `commands-system`).
|
|
24
26
|
|
|
25
27
|
## Shell syntax
|
|
@@ -75,6 +77,42 @@ Action results carry `data.disposition` and errors carry `error.disposition`, ea
|
|
|
75
77
|
|
|
76
78
|
Ref actions are headless by default. They use semantic accessibility calls and do not take focus, move the cursor, synthesize keys or use the clipboard. If no semantic path exists, the action fails closed. Use the global `--headed` flag only when the user explicitly permits physical input, such as double-click, hover, drag, or focus. Never switch to headed mode to recover from a headless failure. Raw coordinates (`--xy`) never imply focus. Which actions need `--headed` differs by OS: read the platform skill.
|
|
77
79
|
|
|
80
|
+
## Sandboxes
|
|
81
|
+
|
|
82
|
+
A sandbox is a desktop a provider manages on your machine. The provider is `macos`: a macOS VM on an Apple Silicon Mac running macOS 13 or later. Linux and Windows have no provider; to run agent-desktop in a container you manage yourself there, follow `agent-browser.dev/desktop/guides/docker-container`.
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
agent-desktop sandbox install # report the provider's state
|
|
86
|
+
agent-desktop sandbox install macos # compile and sign the VM host, then report ready
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
agent-desktop sandbox create demo --provider macos --set from=base # clone a set-up sandbox; or --set ipsw=latest to install
|
|
91
|
+
agent-desktop sandbox start demo # start it headless; add --window to show its desktop
|
|
92
|
+
agent-desktop sandbox status demo # state, message and next command
|
|
93
|
+
agent-desktop sandbox list # every sandbox and its state
|
|
94
|
+
agent-desktop sandbox exec demo -- status # run a command in the guest
|
|
95
|
+
agent-desktop sandbox stop demo # stop the sandbox
|
|
96
|
+
agent-desktop sandbox rm demo # remove it
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Names are 1–32 lowercase letters, digits or hyphens, starting with a letter or digit. `exec` returns the guest's envelope and exit status; a provider failure returns a host error. `rm` refuses a sandbox reported as `running`; stop it first. `create` needs exactly one source: `--set from=<sandbox>`, `--set ipsw=latest` or `--set ipsw=<path>`. `start` answers `working` until the guest answers; wait for `status` to report `running` before `exec`.
|
|
100
|
+
|
|
101
|
+
Read `state`, `message` and optional `next`; `ok: true` alone does not mean the sandbox is ready.
|
|
102
|
+
|
|
103
|
+
- `unavailable`: satisfy the host requirements in `message` and `next`.
|
|
104
|
+
- `missing`: install the provider.
|
|
105
|
+
- `ready`: create a sandbox.
|
|
106
|
+
- `working`: repeat the command in `next` until the work finishes.
|
|
107
|
+
- `needs_setup`: have a person complete guest setup, then check status.
|
|
108
|
+
- `running`: run guest commands, or stop before removal.
|
|
109
|
+
- `stopped`: start the sandbox to use it, or remove it.
|
|
110
|
+
- `broken`: follow `next`; a broken sandbox may need removal.
|
|
111
|
+
|
|
112
|
+
A sandbox separates the desktop, not the network or the host. Sandboxes on one host share a virtual network, and a guest can reach the host's network services; keep one trust level per host. Each sandbox has its own pinned SSH host key, so a guest cannot answer for another sandbox. The SSH key under `<state root>/sandboxes/<name>/` is the guest credential, and in the guest Accessibility belongs to `sshd-keygen-wrapper` for the whole user session.
|
|
113
|
+
|
|
114
|
+
Cloning a configured macOS VM has been tested end to end. Installing the first VM from a macOS image is experimental and has not been verified end to end. Provider setup steps and limits are in the docs: `agent-browser.dev/desktop/sandboxes/macos`.
|
|
115
|
+
|
|
78
116
|
## References
|
|
79
117
|
|
|
80
118
|
Load one only when you need it: `agent-desktop skills get desktop <reference>`.
|
|
@@ -11745,9 +11745,19 @@ function subagentTaskResultLabel(result) {
|
|
|
11745
11745
|
function subagentTaskResponseText(response) {
|
|
11746
11746
|
const outcomes = response.kind === "parallel" ? response.slots.map((slot) => slot.outcome) : [response];
|
|
11747
11747
|
const killed = outcomes.filter((outcome) => outcome.kind === "admitted" && outcome.observation.kind === "settled" && subagentTaskResultLabel(outcome.observation.result) === "killed (non-resumable)");
|
|
11748
|
-
|
|
11748
|
+
const notStarted = outcomes.filter((outcome) => outcome.kind === "unstarted" && outcome.reason.kind === "rejected");
|
|
11749
|
+
const notices = [
|
|
11750
|
+
...killed.length ? [`${killed.length} killed. These children cannot be resumed.`] : [],
|
|
11751
|
+
...response.kind === "parallel" && notStarted.length ? [
|
|
11752
|
+
`${notStarted.length} of ${outcomes.length} children failed to start${notStarted.length < outcomes.length ? "; the others ran" : ""}. Each slot reports its own outcome.`
|
|
11753
|
+
] : []
|
|
11754
|
+
];
|
|
11755
|
+
return `${notices.length ? `${notices.join(" ")} Underlying host response:
|
|
11749
11756
|
` : ""}${JSON.stringify(response)}`;
|
|
11750
11757
|
}
|
|
11758
|
+
function parallelResponseNeverStarted(response) {
|
|
11759
|
+
return response.slots.length > 0 && response.slots.every((slot) => slot.outcome.kind === "unstarted" && slot.outcome.reason.kind === "rejected");
|
|
11760
|
+
}
|
|
11751
11761
|
function settledOutputsFromResponse(response) {
|
|
11752
11762
|
const outcomes = response.kind === "parallel" ? response.slots.map((slot) => slot.outcome) : [response];
|
|
11753
11763
|
return outcomes.flatMap((outcome) => outcome.kind === "admitted" && outcome.observation.kind === "settled" ? [{ taskId: outcome.observation.taskId, result: outcome.observation.result }] : []);
|
|
@@ -11850,7 +11860,8 @@ async function parallelTaskToolResultWithOutput(response, host) {
|
|
|
11850
11860
|
results: [],
|
|
11851
11861
|
taskResponse: response,
|
|
11852
11862
|
taskRecords: taskResponseRecords(response, host)
|
|
11853
|
-
}
|
|
11863
|
+
},
|
|
11864
|
+
...parallelResponseNeverStarted(response) ? { isError: true } : {}
|
|
11854
11865
|
};
|
|
11855
11866
|
}
|
|
11856
11867
|
function taskResponseRecords(response, host) {
|
|
@@ -12296,11 +12307,23 @@ function runUnboundParallelTask(options, agent, task, schedule, run) {
|
|
|
12296
12307
|
yieldQueued();
|
|
12297
12308
|
return observed.promise.finally(() => options.intercomDetachSignal?.removeEventListener("abort", yieldQueued));
|
|
12298
12309
|
}
|
|
12310
|
+
function unstartedChildResult(task, error) {
|
|
12311
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
12312
|
+
return {
|
|
12313
|
+
agent: task.agent,
|
|
12314
|
+
task: task.task,
|
|
12315
|
+
status: "error",
|
|
12316
|
+
error: message,
|
|
12317
|
+
messages: [],
|
|
12318
|
+
usage: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, cost: 0, turns: 0 },
|
|
12319
|
+
taskResponse: { kind: "unstarted", reason: { kind: "rejected", error: { code: "SpawnFailed", message } } }
|
|
12320
|
+
};
|
|
12321
|
+
}
|
|
12299
12322
|
async function runForegroundParallelTasks(input) {
|
|
12300
12323
|
const intercomDetachController = new AbortController;
|
|
12301
12324
|
const host = input.ctx.getAgentTaskHost?.();
|
|
12302
12325
|
const schedule = input.schedule ?? createExecutionScheduler(input.concurrencyLimit);
|
|
12303
|
-
|
|
12326
|
+
const runChild = async (task, index) => {
|
|
12304
12327
|
const behavior = input.behaviors[index];
|
|
12305
12328
|
const effectiveSkills = behavior?.skills;
|
|
12306
12329
|
const taskCwd = resolveParallelTaskCwd(task, input.paramsCwd, input.worktreeSetup, index);
|
|
@@ -12468,6 +12491,15 @@ async function runForegroundParallelTasks(input) {
|
|
|
12468
12491
|
input.foregroundControl.updatedAt = Date.now();
|
|
12469
12492
|
}
|
|
12470
12493
|
});
|
|
12494
|
+
};
|
|
12495
|
+
return mapConcurrent(input.tasks, input.tasks.length, async (task, index) => {
|
|
12496
|
+
try {
|
|
12497
|
+
return await runChild(task, index);
|
|
12498
|
+
} catch (error) {
|
|
12499
|
+
if (input.signal.aborted)
|
|
12500
|
+
throw error;
|
|
12501
|
+
return unstartedChildResult(task, error);
|
|
12502
|
+
}
|
|
12471
12503
|
});
|
|
12472
12504
|
}
|
|
12473
12505
|
|
|
@@ -19171,7 +19203,8 @@ ${ranOn}` : ""}`;
|
|
|
19171
19203
|
${worktreeSuffix}` : childContent;
|
|
19172
19204
|
return {
|
|
19173
19205
|
content: [{ type: "text", text: fullContent }],
|
|
19174
|
-
details
|
|
19206
|
+
details,
|
|
19207
|
+
...results.every((result) => result.taskResponse?.kind === "unstarted") ? { isError: true } : {}
|
|
19175
19208
|
};
|
|
19176
19209
|
} finally {
|
|
19177
19210
|
runWorktrees?.release();
|
|
@@ -22010,6 +22043,53 @@ CONTROL:
|
|
|
22010
22043
|
import { keyHintIfBound as keyHintIfBound4 } from "@bastani/atomic";
|
|
22011
22044
|
import { Container as Container3, Text as Text4, truncateToWidth as truncateToWidth3 } from "@earendil-works/pi-tui";
|
|
22012
22045
|
var renderRequests = new WeakMap;
|
|
22046
|
+
var parallelSummaries = new WeakMap;
|
|
22047
|
+
var OUTCOME_CATEGORIES = [
|
|
22048
|
+
{ key: "running", color: "accent" },
|
|
22049
|
+
{ key: "done", color: "success" },
|
|
22050
|
+
{ key: "failed", color: "error" },
|
|
22051
|
+
{ key: "stopped", color: "warning" },
|
|
22052
|
+
{ key: "skipped", color: "dim" }
|
|
22053
|
+
];
|
|
22054
|
+
function outcomeCategory(color) {
|
|
22055
|
+
if (color === "accent")
|
|
22056
|
+
return "running";
|
|
22057
|
+
if (color === "success")
|
|
22058
|
+
return "done";
|
|
22059
|
+
if (color === "error")
|
|
22060
|
+
return "failed";
|
|
22061
|
+
return "stopped";
|
|
22062
|
+
}
|
|
22063
|
+
function parallelSummary(categories, theme) {
|
|
22064
|
+
return OUTCOME_CATEGORIES.flatMap(({ key, color }) => {
|
|
22065
|
+
const count = categories.filter((category) => category === key).length;
|
|
22066
|
+
return count ? [`${theme.fg("dim", " · ")}${theme.fg(color, `${count} ${key}`)}`] : [];
|
|
22067
|
+
}).join("");
|
|
22068
|
+
}
|
|
22069
|
+
|
|
22070
|
+
class OneLine {
|
|
22071
|
+
text;
|
|
22072
|
+
constructor(text) {
|
|
22073
|
+
this.text = text;
|
|
22074
|
+
}
|
|
22075
|
+
invalidate() {}
|
|
22076
|
+
render(width) {
|
|
22077
|
+
return [truncateToWidth3(this.text, width, "…")];
|
|
22078
|
+
}
|
|
22079
|
+
}
|
|
22080
|
+
|
|
22081
|
+
class ParallelCallHeader {
|
|
22082
|
+
heading;
|
|
22083
|
+
state;
|
|
22084
|
+
constructor(heading, state) {
|
|
22085
|
+
this.heading = heading;
|
|
22086
|
+
this.state = state;
|
|
22087
|
+
}
|
|
22088
|
+
invalidate() {}
|
|
22089
|
+
render(width) {
|
|
22090
|
+
return new Text4(`${this.heading}${parallelSummaries.get(this.state) ?? ""}`, 0, 0).render(width);
|
|
22091
|
+
}
|
|
22092
|
+
}
|
|
22013
22093
|
var displayText2 = (text) => text.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, "").replace(/[\x00-\x1f\x7f-\x9f]/g, " ");
|
|
22014
22094
|
function effectiveParallelTaskCount(tasks) {
|
|
22015
22095
|
if (!tasks || tasks.length === 0)
|
|
@@ -22053,11 +22133,13 @@ function renderSubagentToolCall(args, theme, context) {
|
|
|
22053
22133
|
return new Text4(`${theme.fg("toolTitle", theme.bold("subagent "))}${args.action}${target ? ` ${theme.fg(args.action === "status" ? "dim" : "accent", displayText2(target))}` : ""}`, 0, 0);
|
|
22054
22134
|
}
|
|
22055
22135
|
if (burst) {
|
|
22056
|
-
return new
|
|
22136
|
+
return new ParallelCallHeader(`${theme.fg("toolTitle", theme.bold("subagent "))}parallel (${burst.taskCount})`, context.state);
|
|
22137
|
+
}
|
|
22138
|
+
if ((args.tasks?.length ?? 0) > 0) {
|
|
22139
|
+
const parallelCount = effectiveParallelTaskCount(args.tasks);
|
|
22140
|
+
return new ParallelCallHeader(`${theme.fg("toolTitle", theme.bold("subagent "))}parallel (${parallelCount})`, context.state);
|
|
22057
22141
|
}
|
|
22058
|
-
|
|
22059
|
-
const parallelCount = effectiveParallelTaskCount(args.tasks);
|
|
22060
|
-
return new Text4(isParallel ? `${theme.fg("toolTitle", theme.bold("subagent "))}parallel (${parallelCount})` : `${theme.fg("toolTitle", theme.bold("subagent "))}${theme.fg("accent", displayText2(args.agent || "?"))}${args.task ? `
|
|
22142
|
+
return new Text4(`${theme.fg("toolTitle", theme.bold("subagent "))}${theme.fg("accent", displayText2(args.agent || "?"))}${args.task ? `
|
|
22061
22143
|
${theme.fg("muted", displayText2(truncateToWidth3(displayText2(args.task), 100)))}` : ""}`, 0, 0);
|
|
22062
22144
|
}
|
|
22063
22145
|
function renderSubagentToolResult(result, options, theme, context) {
|
|
@@ -22109,9 +22191,16 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
22109
22191
|
...request.agent ? [{ agent: request.agent, task: request.task ?? "" }] : [],
|
|
22110
22192
|
...(request.tasks ?? []).flatMap((task) => Array.from({ length: Math.max(1, task.count ?? 1) }, () => task))
|
|
22111
22193
|
] : [];
|
|
22112
|
-
const
|
|
22194
|
+
const rows = outcomes.map((outcome, index) => {
|
|
22195
|
+
const identity = labels[index];
|
|
22196
|
+
const name = outcomes.length > 1 ? `${index + 1}. ${identity ? displayText2(identity.agent) : "Agent"} · ` : "";
|
|
22113
22197
|
if (outcome.kind === "unstarted")
|
|
22114
|
-
return
|
|
22198
|
+
return outcome.reason.kind === "rejected" ? {
|
|
22199
|
+
line: theme.fg("error", `✗ ${name}Not started`),
|
|
22200
|
+
error: outcome.reason.error.message,
|
|
22201
|
+
category: "failed"
|
|
22202
|
+
} : { line: theme.fg("dim", `○ ${name}Skipped`), category: "skipped" };
|
|
22203
|
+
const failure = outcome.observation.kind === "settled" && outcome.observation.result.kind === "failed" ? outcome.observation.result.message : undefined;
|
|
22115
22204
|
const observation = outcome.observation;
|
|
22116
22205
|
const task = result.details?.taskRecords?.find((task) => task.ref.taskId === observation.taskId);
|
|
22117
22206
|
const childId = task?.launchOperationId;
|
|
@@ -22120,10 +22209,8 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
22120
22209
|
if (record) {
|
|
22121
22210
|
const view = childStateView(record);
|
|
22122
22211
|
const resumed = record.taskId !== undefined && record.taskId !== observation.taskId ? " · resumed" : "";
|
|
22123
|
-
const identity = labels[index];
|
|
22124
|
-
const name = outcomes.length > 1 ? `${index + 1}. ${identity ? displayText2(identity.agent) : "Agent"} · ` : "";
|
|
22125
22212
|
const transcript = options.expanded ? subagentChildTranscript(context.state, record) : undefined;
|
|
22126
|
-
|
|
22213
|
+
const line = [
|
|
22127
22214
|
theme.fg(view.color, `${view.icon} ${name}${view.label}${resumed}`),
|
|
22128
22215
|
theme.fg("dim", `
|
|
22129
22216
|
${displayText2(formatModelThinking(task?.model, task?.thinking) || "model / thinking unavailable")}`),
|
|
@@ -22132,28 +22219,39 @@ function renderSubagentToolResult(result, options, theme, context) {
|
|
|
22132
22219
|
transcript?.length ? transcript.map((line) => `
|
|
22133
22220
|
${theme.fg("muted", `│ ${displayText2(line)}`)}`).join("") : ""
|
|
22134
22221
|
].join("");
|
|
22222
|
+
return {
|
|
22223
|
+
line,
|
|
22224
|
+
...view.color === "error" && failure ? { error: failure } : {},
|
|
22225
|
+
category: outcomeCategory(view.color)
|
|
22226
|
+
};
|
|
22135
22227
|
}
|
|
22136
22228
|
const state = observation.kind === "yielded" ? request?.action === "wait" ? "Still running in background" : "Launched in background" : observation.result.kind === "completed" ? "Completed" : observation.result.kind === "failed" ? "Failed" : subagentTaskResultLabel(observation.result) === "killed (non-resumable)" ? "Killed (non-resumable)" : subagentTaskResultLabel(observation.result) === "paused · awaiting resume" ? "Paused · awaiting resume" : "Stopped";
|
|
22137
22229
|
const icon = observation.kind === "yielded" ? "∀" : observation.result.kind === "completed" ? "✓" : observation.result.kind === "failed" ? "✗" : "○";
|
|
22138
22230
|
const color = observation.kind === "yielded" ? "accent" : observation.result.kind === "failed" ? "error" : observation.result.kind === "completed" ? "success" : "warning";
|
|
22139
|
-
const identity = labels[index];
|
|
22140
|
-
const name = outcomes.length > 1 ? `${index + 1}. ${identity ? displayText2(identity.agent) : "Agent"} · ` : "";
|
|
22141
22231
|
const summary = theme.fg(color, `${icon} ${name}${state}`);
|
|
22142
22232
|
const model = theme.fg("dim", `
|
|
22143
22233
|
${displayText2(formatModelThinking(task?.model, task?.thinking) || "model / thinking unavailable")}`);
|
|
22144
22234
|
const metadata = options.expanded ? theme.fg("dim", `
|
|
22145
22235
|
${observation.taskId}${identity?.task ? ` · ${displayText2(identity.task)}` : ""}`) : "";
|
|
22146
|
-
|
|
22147
|
-
|
|
22148
|
-
|
|
22236
|
+
return {
|
|
22237
|
+
line: summary + model + metadata,
|
|
22238
|
+
...failure ? { error: failure } : {},
|
|
22239
|
+
category: outcomeCategory(color)
|
|
22240
|
+
};
|
|
22149
22241
|
});
|
|
22150
|
-
|
|
22151
|
-
|
|
22152
|
-
|
|
22153
|
-
|
|
22154
|
-
|
|
22155
|
-
|
|
22156
|
-
|
|
22242
|
+
if (outcomes.length > 1)
|
|
22243
|
+
parallelSummaries.set(context.state, parallelSummary(rows.map((row) => row.category), theme));
|
|
22244
|
+
const view = new Container3;
|
|
22245
|
+
for (const [index, row] of rows.entries()) {
|
|
22246
|
+
const branch = outcomes.length > 1 ? `${index === rows.length - 1 ? "└─" : "├─"} ` : "";
|
|
22247
|
+
view.addChild(new Text4(`${branch}${row.line}`, 0, 0));
|
|
22248
|
+
if (row.error === undefined)
|
|
22249
|
+
continue;
|
|
22250
|
+
const error = ` ${theme.fg("error", displayText2(row.error))}`;
|
|
22251
|
+
view.addChild(options.expanded ? new Text4(error, 0, 0) : new OneLine(error));
|
|
22252
|
+
}
|
|
22253
|
+
view.addChild(new Text4(theme.fg("dim", "/tasks to inspect output and manage tasks"), 0, 0));
|
|
22254
|
+
return view;
|
|
22157
22255
|
}
|
|
22158
22256
|
const text = result.content.find((part) => part.type === "text");
|
|
22159
22257
|
if (text?.type === "text" && text.text.startsWith("Executable agents:")) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.81",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for web search, URL fetching, GitHub repo cloning, PDF/video extraction. Fork of: https://github.com/nicobailon/pi-web-access",
|
|
6
6
|
"contributors": [
|
|
@@ -6,6 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.9.81] - 2026-11-13
|
|
10
|
+
|
|
11
|
+
Parallel reviewers pick different models, and Escape stops a retrying stage.
|
|
12
|
+
|
|
13
|
+
- **Diverse parallel `auto` stages.** The new `parallelSlot` option sends stages that do the same job to different model families, and `ralph`'s reviewers use it ([#4689](https://github.com/bastani-inc/atomic/issues/4689), [#4691](https://github.com/bastani-inc/atomic/pull/4691)).
|
|
14
|
+
- **Escape interrupts retry backoff.** Escape in a stage chat waiting out a retry now interrupts the stage instead of closing the chat ([#4690](https://github.com/bastani-inc/atomic/issues/4690), [#4692](https://github.com/bastani-inc/atomic/pull/4692)).
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `parallelSlot` stage option for `model: "auto"`: parallel stages that do the same job, such as two reviewers, each route to a different model family when enough families are eligible. The builtin `ralph` workflow's reviewers use it, so they no longer both land on the same model ([#4689](https://github.com/bastani-inc/atomic/issues/4689))
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Escape in a stage chat whose session is waiting out an automatic retry's backoff now interrupts the stage, as the chat's `esc to interrupt` footer offers, instead of closing the chat and leaving the retry running ([#4690](https://github.com/bastani-inc/atomic/issues/4690))
|
|
23
|
+
|
|
24
|
+
## [0.9.81-alpha.1] - 2026-11-13
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- `parallelSlot` stage option for `model: "auto"`: parallel stages that do the same job, such as two reviewers, each route to a different model family when enough families are eligible. The builtin `ralph` workflow's reviewers use it, so they no longer both land on the same model ([#4689](https://github.com/bastani-inc/atomic/issues/4689))
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Escape in a stage chat whose session is waiting out an automatic retry's backoff now interrupts the stage, as the chat's `esc to interrupt` footer offers, instead of closing the chat and leaving the retry running ([#4690](https://github.com/bastani-inc/atomic/issues/4690))
|
|
33
|
+
|
|
9
34
|
## [0.9.80] - 2026-11-12
|
|
10
35
|
|
|
11
36
|
Resumed workflow runs look like every other run.
|