@bastani/atomic 0.9.80-alpha.1 → 0.9.81-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  3. package/dist/builtin/intercom/broker/client.ts +12 -1
  4. package/dist/builtin/intercom/index.bundle.mjs +16 -4
  5. package/dist/builtin/intercom/package.json +1 -1
  6. package/dist/builtin/mcp/package.json +1 -1
  7. package/dist/builtin/subagents/CHANGELOG.md +10 -0
  8. package/dist/builtin/subagents/package.json +1 -1
  9. package/dist/builtin/subagents/skills/agent-desktop/SKILL.md +40 -2
  10. package/dist/builtin/subagents/src/extension/index.bundle.mjs +123 -25
  11. package/dist/builtin/web-access/package.json +1 -1
  12. package/dist/builtin/workflows/CHANGELOG.md +20 -0
  13. package/dist/builtin/workflows/builtin/{chunk-m56qhe4b.js → chunk-zpkcqyhr.js} +2 -0
  14. package/dist/builtin/workflows/builtin/index.js +1 -1
  15. package/dist/builtin/workflows/builtin/ralph.js +1 -1
  16. package/dist/builtin/workflows/package.json +1 -1
  17. package/dist/builtin/workflows/src/extension/index.bundle.mjs +16 -4
  18. package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +12 -2
  19. package/dist/builtin/workflows/src/index.js +12 -2
  20. package/dist/builtin/workflows/src/local-worker-entry.mjs +12 -2
  21. package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +8 -1
  22. package/dist/cli/args.d.ts.map +1 -1
  23. package/dist/cli/args.js +4 -2
  24. package/dist/cli/args.js.map +1 -1
  25. package/dist/core/cache-stats.d.ts +21 -0
  26. package/dist/core/cache-stats.d.ts.map +1 -1
  27. package/dist/core/cache-stats.js +42 -2
  28. package/dist/core/cache-stats.js.map +1 -1
  29. package/dist/core/exec.d.ts +1 -0
  30. package/dist/core/exec.d.ts.map +1 -1
  31. package/dist/core/exec.js +2 -1
  32. package/dist/core/exec.js.map +1 -1
  33. package/dist/core/execution-model-router.d.ts +17 -0
  34. package/dist/core/execution-model-router.d.ts.map +1 -1
  35. package/dist/core/execution-model-router.js +52 -23
  36. package/dist/core/execution-model-router.js.map +1 -1
  37. package/dist/core/model-fallback-failures.d.ts.map +1 -1
  38. package/dist/core/model-fallback-failures.js +1 -0
  39. package/dist/core/model-fallback-failures.js.map +1 -1
  40. package/dist/core/model-resolver-scope.d.ts +0 -1
  41. package/dist/core/model-resolver-scope.d.ts.map +1 -1
  42. package/dist/core/model-resolver-scope.js +0 -8
  43. package/dist/core/model-resolver-scope.js.map +1 -1
  44. package/dist/core/model-resolver.d.ts +1 -1
  45. package/dist/core/model-resolver.d.ts.map +1 -1
  46. package/dist/core/model-resolver.js +1 -1
  47. package/dist/core/model-resolver.js.map +1 -1
  48. package/dist/core/model-routing-candidates.d.ts +30 -5
  49. package/dist/core/model-routing-candidates.d.ts.map +1 -1
  50. package/dist/core/model-routing-candidates.js +381 -105
  51. package/dist/core/model-routing-candidates.js.map +1 -1
  52. package/dist/core/model-routing-estimates.d.ts +70 -0
  53. package/dist/core/model-routing-estimates.d.ts.map +1 -0
  54. package/dist/core/model-routing-estimates.js +244 -0
  55. package/dist/core/model-routing-estimates.js.map +1 -0
  56. package/dist/core/model-routing-needs.d.ts +1 -0
  57. package/dist/core/model-routing-needs.d.ts.map +1 -1
  58. package/dist/core/model-routing-needs.js +1 -1
  59. package/dist/core/model-routing-needs.js.map +1 -1
  60. package/dist/core/provider-display-names.js +2 -2
  61. package/dist/core/provider-display-names.js.map +1 -1
  62. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  63. package/dist/core/remote-catalog-provider.js +6 -0
  64. package/dist/core/remote-catalog-provider.js.map +1 -1
  65. package/dist/core/storage/session/released-history-files.d.ts.map +1 -1
  66. package/dist/core/storage/session/released-history-files.js +5 -0
  67. package/dist/core/storage/session/released-history-files.js.map +1 -1
  68. package/dist/core/tasks/supervisor.d.ts +1 -1
  69. package/dist/core/tasks/supervisor.d.ts.map +1 -1
  70. package/dist/core/tasks/supervisor.js.map +1 -1
  71. package/dist/core/tools/find.d.ts.map +1 -1
  72. package/dist/core/tools/find.js +20 -11
  73. package/dist/core/tools/find.js.map +1 -1
  74. package/dist/core/tools/output-accumulator.d.ts.map +1 -1
  75. package/dist/core/tools/output-accumulator.js +2 -1
  76. package/dist/core/tools/output-accumulator.js.map +1 -1
  77. package/dist/index.d.ts +1 -1
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js.map +1 -1
  80. package/dist/main.d.ts.map +1 -1
  81. package/dist/main.js +30 -10
  82. package/dist/main.js.map +1 -1
  83. package/dist/modes/interactive/components/chat-session-host-actions.d.ts +5 -0
  84. package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
  85. package/dist/modes/interactive/components/chat-session-host-actions.js +86 -9
  86. package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
  87. package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
  88. package/dist/modes/interactive/components/chat-session-host-events.js +6 -3
  89. package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
  90. package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
  91. package/dist/modes/interactive/components/chat-session-host-rendering.js +5 -2
  92. package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
  93. package/dist/modes/interactive/components/chat-session-host-state.d.ts +5 -0
  94. package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
  95. package/dist/modes/interactive/components/chat-session-host-state.js +2 -0
  96. package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
  97. package/dist/modes/interactive/components/footer.d.ts +4 -2
  98. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  99. package/dist/modes/interactive/components/footer.js +11 -4
  100. package/dist/modes/interactive/components/footer.js.map +1 -1
  101. package/dist/modes/interactive/components/session-selector-list.d.ts +4 -1
  102. package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
  103. package/dist/modes/interactive/components/session-selector-list.js +24 -1
  104. package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
  105. package/dist/modes/interactive/components/session-selector.d.ts +1 -0
  106. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  107. package/dist/modes/interactive/components/session-selector.js +29 -36
  108. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  109. package/dist/modes/interactive/interactive-agent-events.js +6 -6
  110. package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
  111. package/dist/modes/interactive/interactive-deferred-startup.d.ts.map +1 -1
  112. package/dist/modes/interactive/interactive-deferred-startup.js +11 -3
  113. package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
  114. package/dist/modes/interactive/interactive-input-handling.js +11 -1
  115. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  116. package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
  117. package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
  118. package/dist/modes/interactive/interactive-mode-deps.js +1 -1
  119. package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
  120. package/dist/modes/interactive/interactive-process-lifecycle.js +34 -7
  121. package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
  122. package/dist/modes/interactive/interactive-queueing.d.ts +24 -0
  123. package/dist/modes/interactive/interactive-queueing.d.ts.map +1 -1
  124. package/dist/modes/interactive/interactive-queueing.js +61 -0
  125. package/dist/modes/interactive/interactive-queueing.js.map +1 -1
  126. package/dist/modes/interactive/interactive-render-chat.js +2 -3
  127. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  128. package/dist/modes/interactive/interactive-slash-commands.js +2 -2
  129. package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
  130. package/dist/modes/interactive-engine/isolated-runtime.d.ts +2 -0
  131. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  132. package/dist/modes/interactive-engine/isolated-runtime.js +10 -0
  133. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  134. package/dist/modes/rpc/rpc-mode.d.ts +2 -0
  135. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  136. package/dist/modes/rpc/rpc-mode.js +1 -0
  137. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  138. package/dist/modes/rpc/rpc-session-binding.d.ts +3 -1
  139. package/dist/modes/rpc/rpc-session-binding.d.ts.map +1 -1
  140. package/dist/modes/rpc/rpc-session-binding.js +4 -1
  141. package/dist/modes/rpc/rpc-session-binding.js.map +1 -1
  142. package/docs/background-tasks.md +2 -2
  143. package/docs/extensions/api-reference.md +1 -1
  144. package/docs/models/model-selection.md +7 -7
  145. package/docs/providers.md +12 -17
  146. package/docs/skills.md +1 -1
  147. package/docs/subagents.md +3 -1
  148. package/docs/tools.md +1 -1
  149. package/docs/usage.md +1 -1
  150. package/docs/workflows/authoring.md +2 -0
  151. package/docs/workflows/operations.md +1 -1
  152. package/npm-shrinkwrap.json +57 -33
  153. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.81-alpha.1] - 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.80] - 2026-11-12
44
+
45
+ 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.
46
+
47
+ - **Pick an embedded app's storage adapter by name.** An application that embeds Atomic can select the adapter from its own package by name in settings, flags and environment variables, so the configuration survives reinstalling the app in a different location ([#4678](https://github.com/bastani-inc/atomic/issues/4678), [#4679](https://github.com/bastani-inc/atomic/pull/4679)).
48
+ - **Fewer temporary labels.** Tool and extension message rows no longer show "Loading isolated renderer…" before their first frame, and a running workflow run that was resumed no longer carries a `● resumed` label ([#4681](https://github.com/bastani-inc/atomic/pull/4681), [#4680](https://github.com/bastani-inc/atomic/pull/4680)).
49
+ - **No leftover folder lock on Windows.** Cleaning up released session history no longer holds your working directory open after Atomic exits, so you can delete or rename it right away ([#4655](https://github.com/bastani-inc/atomic/issues/4655), [#4684](https://github.com/bastani-inc/atomic/pull/4684)).
50
+
51
+ ### Added
52
+
53
+ - A storage `adapter` given as a package name, `<package>` or `<package>/<name>`, now also resolves from the package directories the process was given to load as code, with `--extension <dir>` or the SDK's `additionalExtensionPaths`, before the packages in settings and then the agent directory. An application that embeds Atomic can select the adapter listed in its own package's `storageAdapters` by name in settings, `--storage`, `--storage-file`, `ATOMIC_STORAGE`, `ATOMIC_SESSIONS_STORAGE` and `ATOMIC_WORKFLOWS_JOURNAL`, instead of an absolute module path that breaks when the application is reinstalled elsewhere. Local workflow workers, child workflow processes and the Intercom broker receive the resolved module, so they open the same storage without loading that package ([#4678](https://github.com/bastani-inc/atomic/issues/4678))
54
+
55
+ ### Fixed
56
+
57
+ - On Windows, the background check that cleans up released session history no longer starts PowerShell in your working directory, so it can no longer keep that folder locked for a moment after Atomic exits ([#4655](https://github.com/bastani-inc/atomic/issues/4655), [#4684](https://github.com/bastani-inc/atomic/pull/4684))
58
+
59
+ ### Removed
60
+
61
+ - Removed the "Loading isolated renderer…" line that appeared in a tool result or extension message row until the interactive engine drew it. The row now draws nothing until its first frame arrives, like other engine-drawn components ([#4681](https://github.com/bastani-inc/atomic/pull/4681)).
62
+
5
63
  ## [0.9.80-alpha.1] - 2026-11-12
6
64
 
7
65
  Storage adapters by package name for embedding apps, and less placeholder text in the UI.
@@ -4,6 +4,12 @@ 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-alpha.1] - 2026-11-13
8
+
9
+ ### Fixed
10
+
11
+ - 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))
12
+
7
13
  ## [0.9.79] - 2026-11-12
8
14
 
9
15
  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 Error("Supervisor authorization timeout")).then(reject);
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 Error("Supervisor authorization timeout")).then(reject);
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.80-alpha.1",
3
+ "version": "0.9.81-alpha.1",
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": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.9.80-alpha.1",
3
+ "version": "0.9.81-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic's pi-compatible MCP integration for server connections, OAuth, tools, resources, and terminal management.",
6
6
  "contributors": [
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.81-alpha.1] - 2026-11-13
6
+
7
+ ### Changed
8
+
9
+ - 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.
10
+
11
+ ### Fixed
12
+
13
+ - 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))
14
+
5
15
  ## [0.9.79] - 2026-11-12
6
16
 
7
17
  Background subagents survive a reboot, and one that cannot be restored comes with a ready relaunch call.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.9.80-alpha.1",
3
+ "version": "0.9.81-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension for delegating tasks to subagents with parallel execution. Fork of: https://github.com/nicobailon/pi-subagents",
6
6
  "contributors": [
@@ -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.2.0
7
+ github-ref: refs/tags/v1.3.0
8
8
  github-repo: https://github.com/vercel-labs/agent-desktop
9
- github-tree-sha: 4647b3cc9b929688002a9ae0f3bdd983898e049b
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
- return `${killed.length ? `${killed.length} killed. These children cannot be resumed. Underlying host response:
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
- return mapConcurrent(input.tasks, input.tasks.length, async (task, index) => {
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 Text4(`${theme.fg("toolTitle", theme.bold("subagent "))}parallel (${burst.taskCount})`, 0, 0);
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
- const isParallel = (args.tasks?.length ?? 0) > 0;
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 lines = outcomes.map((outcome, index) => {
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 theme.fg("error", outcome.reason.kind === "rejected" ? `✗ ${index + 1}. Not started · ${displayText2(outcome.reason.error.message)}` : `○ ${index + 1}. Skipped`);
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
- return [
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
- const error = observation.kind === "settled" && observation.result.kind === "failed" ? `
22147
- ${theme.fg("error", displayText2(observation.result.message))}` : "";
22148
- return summary + model + metadata + error;
22236
+ return {
22237
+ line: summary + model + metadata,
22238
+ ...failure ? { error: failure } : {},
22239
+ category: outcomeCategory(color)
22240
+ };
22149
22241
  });
22150
- const heading = outcomes.length > 1 ? [theme.bold(`${outcomes.length} agent tasks`)] : [];
22151
- return new Text4([
22152
- ...heading,
22153
- ...lines.map((line, index) => outcomes.length > 1 ? `${index === lines.length - 1 ? "└─" : "├─"} ${line}` : line),
22154
- theme.fg("dim", "/tasks to inspect output and manage tasks")
22155
- ].join(`
22156
- `), 0, 0);
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.80-alpha.1",
3
+ "version": "0.9.81-alpha.1",
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,26 @@ 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-alpha.1] - 2026-11-13
10
+
11
+ ### Added
12
+
13
+ - `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))
14
+
15
+ ### Fixed
16
+
17
+ - 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))
18
+
19
+ ## [0.9.80] - 2026-11-12
20
+
21
+ Resumed workflow runs look like every other run.
22
+
23
+ - **No `● resumed` label.** A resumed run that is running shows the same status as any other running run, so the graph, widget and pickers stay uncluttered ([#4680](https://github.com/bastani-inc/atomic/pull/4680)).
24
+
25
+ ### Removed
26
+
27
+ - Removed the `● resumed` label from a resumed workflow run. A resumed run that is running looks like any other running run in the graph header, the widget, `/workflow status`, the `/workflow connect` picker, and the stage switcher; `↑ blocked`, `❚❚ paused`, and `○ quit` are unchanged ([#4680](https://github.com/bastani-inc/atomic/pull/4680)).
28
+
9
29
  ## [0.9.80-alpha.1] - 2026-11-12
10
30
 
11
31
  ### Removed
@@ -503,11 +503,13 @@ var orchestratorModelConfig = {
503
503
  };
504
504
  var reviewerAModelConfig = {
505
505
  model: "auto",
506
+ parallelSlot: { index: 0, count: 2 },
506
507
  excludedTools: ["ask_user_question"],
507
508
  schema: reviewDecisionSchema
508
509
  };
509
510
  var reviewerBModelConfig = {
510
511
  model: "auto",
512
+ parallelSlot: { index: 1, count: 2 },
511
513
  excludedTools: ["ask_user_question"],
512
514
  schema: reviewDecisionSchema
513
515
  };
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-8ycbc76t.js";
28
28
  import {
29
29
  ralph_default
30
- } from "./chunk-m56qhe4b.js";
30
+ } from "./chunk-zpkcqyhr.js";
31
31
  import {
32
32
  tournament_default
33
33
  } from "./chunk-r39ypw6b.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ralph_default
3
- } from "./chunk-m56qhe4b.js";
3
+ } from "./chunk-zpkcqyhr.js";
4
4
  import"./chunk-x8m4t2jy.js";
5
5
  import"./chunk-8kdrnrpa.js";
6
6
  import"./chunk-gp0s6m45.js";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/workflows",
3
- "version": "0.9.80-alpha.1",
3
+ "version": "0.9.81-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension for multi-stage workflow authoring and execution.",
6
6
  "contributors": [