@bastani/atomic 0.9.89-alpha.1 → 0.9.89

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 +289 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +31 -0
  3. package/dist/builtin/intercom/broker/broker-instance.ts +15 -1
  4. package/dist/builtin/intercom/broker/broker.ts +25 -8
  5. package/dist/builtin/intercom/broker/client.ts +29 -14
  6. package/dist/builtin/intercom/broker/multinode-router.ts +193 -52
  7. package/dist/builtin/intercom/broker/multinode-state-store.ts +6 -2
  8. package/dist/builtin/intercom/broker/restoring-recipients.ts +5 -0
  9. package/dist/builtin/intercom/broker/sql-outbox-store.ts +3 -2
  10. package/dist/builtin/intercom/index.bundle.mjs +19 -12
  11. package/dist/builtin/intercom/package.json +1 -1
  12. package/dist/builtin/intercom/types.ts +6 -2
  13. package/dist/builtin/mcp/package.json +1 -1
  14. package/dist/builtin/subagents/CHANGELOG.md +45 -0
  15. package/dist/builtin/subagents/package.json +1 -1
  16. package/dist/builtin/subagents/src/extension/index.bundle.mjs +17 -6
  17. package/dist/builtin/web-access/CHANGELOG.md +11 -0
  18. package/dist/builtin/web-access/package.json +1 -1
  19. package/dist/builtin/workflows/CHANGELOG.md +106 -0
  20. package/dist/builtin/workflows/package.json +1 -1
  21. package/dist/builtin/workflows/src/extension/index.bundle.mjs +310 -344
  22. package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +99 -17
  23. package/dist/builtin/workflows/src/index.js +99 -17
  24. package/dist/builtin/workflows/src/local-worker-entry.mjs +99 -17
  25. package/dist/cli/storage-command.js +8 -0
  26. package/dist/cli/storage-command.js.map +1 -1
  27. package/dist/core/auth-storage-backends.d.ts.map +1 -1
  28. package/dist/core/auth-storage-backends.js +1 -0
  29. package/dist/core/auth-storage-backends.js.map +1 -1
  30. package/dist/core/keybindings.d.ts +8 -0
  31. package/dist/core/keybindings.d.ts.map +1 -1
  32. package/dist/core/keybindings.js +4 -0
  33. package/dist/core/keybindings.js.map +1 -1
  34. package/dist/core/process-start-token.d.ts.map +1 -1
  35. package/dist/core/process-start-token.js +8 -1
  36. package/dist/core/process-start-token.js.map +1 -1
  37. package/dist/core/resume/blueprint/build-lock.d.ts.map +1 -1
  38. package/dist/core/resume/blueprint/build-lock.js +2 -1
  39. package/dist/core/resume/blueprint/build-lock.js.map +1 -1
  40. package/dist/core/storage/errors.d.ts +4 -2
  41. package/dist/core/storage/errors.d.ts.map +1 -1
  42. package/dist/core/storage/errors.js +6 -1
  43. package/dist/core/storage/errors.js.map +1 -1
  44. package/dist/core/tasks/completion.d.ts +5 -0
  45. package/dist/core/tasks/completion.d.ts.map +1 -1
  46. package/dist/core/tasks/completion.js +13 -0
  47. package/dist/core/tasks/completion.js.map +1 -1
  48. package/dist/core/tools/shell-task-render.d.ts +1 -2
  49. package/dist/core/tools/shell-task-render.d.ts.map +1 -1
  50. package/dist/core/tools/shell-task-render.js +3 -7
  51. package/dist/core/tools/shell-task-render.js.map +1 -1
  52. package/dist/core/tools/windows-directory-security.d.ts.map +1 -1
  53. package/dist/core/tools/windows-directory-security.js +3 -11
  54. package/dist/core/tools/windows-directory-security.js.map +1 -1
  55. package/dist/core/worktree-snapshot/capture.d.ts.map +1 -1
  56. package/dist/core/worktree-snapshot/capture.js +25 -1
  57. package/dist/core/worktree-snapshot/capture.js.map +1 -1
  58. package/dist/core/worktree-snapshot/restore.d.ts.map +1 -1
  59. package/dist/core/worktree-snapshot/restore.js +38 -9
  60. package/dist/core/worktree-snapshot/restore.js.map +1 -1
  61. package/dist/index.d.ts +2 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +2 -1
  64. package/dist/index.js.map +1 -1
  65. package/dist/modes/interactive/components/agent-panel.d.ts +5 -0
  66. package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
  67. package/dist/modes/interactive/components/agent-panel.js +13 -0
  68. package/dist/modes/interactive/components/agent-panel.js.map +1 -1
  69. package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
  70. package/dist/modes/interactive/components/chat-transcript.js +5 -2
  71. package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
  72. package/dist/modes/interactive/components/custom-message.js +1 -1
  73. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  74. package/dist/modes/interactive/components/heartbeat-block.d.ts +34 -0
  75. package/dist/modes/interactive/components/heartbeat-block.d.ts.map +1 -0
  76. package/dist/modes/interactive/components/heartbeat-block.js +50 -0
  77. package/dist/modes/interactive/components/heartbeat-block.js.map +1 -0
  78. package/dist/modes/interactive/components/input-label.d.ts.map +1 -1
  79. package/dist/modes/interactive/components/input-label.js +8 -3
  80. package/dist/modes/interactive/components/input-label.js.map +1 -1
  81. package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
  82. package/dist/modes/interactive/components/main-composer-keys.js +3 -7
  83. package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
  84. package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
  85. package/dist/modes/interactive/components/mermaid.js +13 -7
  86. package/dist/modes/interactive/components/mermaid.js.map +1 -1
  87. package/dist/modes/interactive/components/notice-line.d.ts +10 -2
  88. package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
  89. package/dist/modes/interactive/components/notice-line.js +13 -3
  90. package/dist/modes/interactive/components/notice-line.js.map +1 -1
  91. package/dist/modes/interactive/components/provider-brand.d.ts.map +1 -1
  92. package/dist/modes/interactive/components/provider-brand.js +3 -0
  93. package/dist/modes/interactive/components/provider-brand.js.map +1 -1
  94. package/dist/modes/interactive/components/task-heartbeat-message.d.ts +9 -4
  95. package/dist/modes/interactive/components/task-heartbeat-message.d.ts.map +1 -1
  96. package/dist/modes/interactive/components/task-heartbeat-message.js +33 -27
  97. package/dist/modes/interactive/components/task-heartbeat-message.js.map +1 -1
  98. package/dist/modes/interactive/components/task-inspector.d.ts +16 -0
  99. package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -1
  100. package/dist/modes/interactive/components/task-inspector.js +95 -4
  101. package/dist/modes/interactive/components/task-inspector.js.map +1 -1
  102. package/dist/modes/interactive/components/task-list.d.ts +5 -1
  103. package/dist/modes/interactive/components/task-list.d.ts.map +1 -1
  104. package/dist/modes/interactive/components/task-list.js +20 -3
  105. package/dist/modes/interactive/components/task-list.js.map +1 -1
  106. package/dist/modes/interactive/components/task-transcript-page.d.ts +1 -1
  107. package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
  108. package/dist/modes/interactive/components/task-transcript-page.js +10 -7
  109. package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
  110. package/dist/modes/interactive/interactive-startup.js +1 -2
  111. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  112. package/dist/modes/interactive/theme/color-utils.d.ts +29 -1
  113. package/dist/modes/interactive/theme/color-utils.d.ts.map +1 -1
  114. package/dist/modes/interactive/theme/color-utils.js +81 -7
  115. package/dist/modes/interactive/theme/color-utils.js.map +1 -1
  116. package/dist/modes/interactive/theme/global-theme.d.ts.map +1 -1
  117. package/dist/modes/interactive/theme/global-theme.js +3 -0
  118. package/dist/modes/interactive/theme/global-theme.js.map +1 -1
  119. package/dist/modes/interactive/theme/theme-class.d.ts +22 -2
  120. package/dist/modes/interactive/theme/theme-class.d.ts.map +1 -1
  121. package/dist/modes/interactive/theme/theme-class.js +64 -18
  122. package/dist/modes/interactive/theme/theme-class.js.map +1 -1
  123. package/dist/modes/interactive/theme/theme.d.ts +1 -0
  124. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  125. package/dist/modes/interactive/theme/theme.js +1 -0
  126. package/dist/modes/interactive/theme/theme.js.map +1 -1
  127. package/dist/utils/clipboard-image.d.ts.map +1 -1
  128. package/dist/utils/clipboard-image.js +2 -0
  129. package/dist/utils/clipboard-image.js.map +1 -1
  130. package/dist/utils/clipboard.d.ts.map +1 -1
  131. package/dist/utils/clipboard.js +2 -1
  132. package/dist/utils/clipboard.js.map +1 -1
  133. package/dist/utils/tools-manager.d.ts +6 -0
  134. package/dist/utils/tools-manager.d.ts.map +1 -1
  135. package/dist/utils/tools-manager.js +170 -15
  136. package/dist/utils/tools-manager.js.map +1 -1
  137. package/dist/utils/windows-powershell.d.ts +9 -0
  138. package/dist/utils/windows-powershell.d.ts.map +1 -0
  139. package/dist/utils/windows-powershell.js +16 -0
  140. package/dist/utils/windows-powershell.js.map +1 -0
  141. package/docs/background-tasks.md +6 -6
  142. package/docs/getting-started/installation.md +4 -2
  143. package/docs/keybindings.md +3 -0
  144. package/docs/storage.md +24 -5
  145. package/docs/subagents.md +1 -1
  146. package/docs/themes/reference.md +7 -0
  147. package/docs/tui/reference.md +1 -1
  148. package/docs/windows.md +1 -1
  149. package/docs/workflows/api-reference.md +9 -1
  150. package/docs/workflows/operations.md +1 -1
  151. package/npm-shrinkwrap.json +49 -49
  152. package/package.json +6 -6
  153. package/schemas/keybindings.schema.json +4 -0
@@ -7436,9 +7436,9 @@ var init_client = __esm(() => {
7436
7436
  break;
7437
7437
  }
7438
7438
  case "released_children_ack": {
7439
- const { requestId, refusal } = brokerMessage;
7439
+ const { requestId, refusal, published } = brokerMessage;
7440
7440
  const parsed = refusal === undefined ? undefined : readReleasedChildRefusal(refusal);
7441
- if (typeof requestId !== "string" || refusal !== undefined && parsed === undefined) {
7441
+ if (typeof requestId !== "string" || refusal !== undefined && parsed === undefined || published !== undefined && typeof published !== "boolean") {
7442
7442
  throw new Error("Invalid released_children_ack message");
7443
7443
  }
7444
7444
  const pending = this.pendingRestoringRecipientRequests.get(requestId);
@@ -7446,14 +7446,14 @@ var init_client = __esm(() => {
7446
7446
  return;
7447
7447
  this.pendingRestoringRecipientRequests.delete(requestId);
7448
7448
  if (parsed === undefined)
7449
- pending.resolve();
7449
+ pending.resolve(published !== false);
7450
7450
  else
7451
7451
  pending.reject(releasedChildErrorFor(parsed));
7452
7452
  break;
7453
7453
  }
7454
7454
  case "restoring_recipient_ack": {
7455
- const { requestId, error } = brokerMessage;
7456
- if (typeof requestId !== "string" || error !== undefined && typeof error !== "string") {
7455
+ const { requestId, error, published } = brokerMessage;
7456
+ if (typeof requestId !== "string" || error !== undefined && typeof error !== "string" || published !== undefined && typeof published !== "boolean") {
7457
7457
  throw new Error("Invalid restoring_recipient_ack message");
7458
7458
  }
7459
7459
  const pending = this.pendingRestoringRecipientRequests.get(requestId);
@@ -7461,7 +7461,7 @@ var init_client = __esm(() => {
7461
7461
  return;
7462
7462
  this.pendingRestoringRecipientRequests.delete(requestId);
7463
7463
  if (error === undefined)
7464
- pending.resolve();
7464
+ pending.resolve(published !== false);
7465
7465
  else
7466
7466
  pending.reject(new Error(error));
7467
7467
  break;
@@ -7884,8 +7884,8 @@ var init_client = __esm(() => {
7884
7884
  }
7885
7885
  });
7886
7886
  }
7887
- reserveRestoringRecipient(capability, options = {}) {
7888
- return this.restoringRecipientRequest({
7887
+ async reserveRestoringRecipient(capability, options = {}) {
7888
+ const published = await this.restoringRecipientRequest({
7889
7889
  type: "reserve_restoring_recipient",
7890
7890
  capability,
7891
7891
  ...options.group === undefined ? {} : { group: options.group },
@@ -7893,6 +7893,7 @@ var init_client = __esm(() => {
7893
7893
  ...options.dormant === true ? { dormant: true } : {},
7894
7894
  ...options.holdMs === undefined ? {} : { holdMs: options.holdMs }
7895
7895
  });
7896
+ return { published };
7896
7897
  }
7897
7898
  releaseRestoringRecipient(capability, outcome) {
7898
7899
  const { gone, refusal } = typeof outcome === "string" ? { gone: outcome, refusal: undefined } : outcome ?? {};
@@ -7901,6 +7902,8 @@ var init_client = __esm(() => {
7901
7902
  capability,
7902
7903
  ...gone === undefined ? {} : { gone },
7903
7904
  ...refusal === undefined ? {} : { refusal }
7905
+ }).then(() => {
7906
+ return;
7904
7907
  });
7905
7908
  }
7906
7909
  async reserveReleasedChildren(children) {
@@ -7957,7 +7960,9 @@ var init_client = __esm(() => {
7957
7960
  } catch (error) {
7958
7961
  return Promise.reject(toError2(error));
7959
7962
  }
7960
- return this.restoringRecipientRequest({ type: "acknowledge_released_child_wake", childName });
7963
+ return this.restoringRecipientRequest({ type: "acknowledge_released_child_wake", childName }).then(() => {
7964
+ return;
7965
+ });
7961
7966
  }
7962
7967
  acknowledgeReleasedChildReply(reply, accepted, deliverToChild = false) {
7963
7968
  if (!this.socket || this.socket.destroyed)
@@ -8059,9 +8064,9 @@ var init_client = __esm(() => {
8059
8064
  this.requestTimeout(socket, new Error("Restoring-recipient request timeout")).then(reject);
8060
8065
  }, RESTORING_RECIPIENT_REQUEST_TIMEOUT_MS);
8061
8066
  this.pendingRestoringRecipientRequests.set(requestId, {
8062
- resolve: () => {
8067
+ resolve: (published = true) => {
8063
8068
  clearTimeout(timeout);
8064
- resolve();
8069
+ resolve(published);
8065
8070
  },
8066
8071
  reject: (error) => {
8067
8072
  clearTimeout(timeout);
@@ -16936,7 +16941,9 @@ function piIntercomExtension(pi, testOverrides = {}) {
16936
16941
  aliases: request.aliases,
16937
16942
  ...request.dormant === true ? { dormant: true } : {},
16938
16943
  ...request.holdMs === undefined ? {} : { holdMs: request.holdMs }
16939
- }));
16944
+ })).then(() => {
16945
+ return;
16946
+ });
16940
16947
  });
16941
16948
  pi.events.on(SUBAGENT_RESERVE_RELEASED_CHILDREN_EVENT, (payload) => {
16942
16949
  if (!isReserveReleasedChildrenRequest(payload) || payload.completion)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/intercom",
3
- "version": "0.9.89-alpha.1",
3
+ "version": "0.9.89",
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": [
@@ -574,8 +574,12 @@ export type BrokerMessage =
574
574
  | { type: "restoring_recipient_wake"; childName: string; capability?: string }
575
575
  /** #4326: `handoffId` identifies this handoff, so the owner's acknowledgement cannot confirm another reply that reuses the message id. */
576
576
  | { type: "released_child_reply"; childName: string; handoffId: string; replyTo: string; from: SessionInfo; message: Message }
577
- | { type: "restoring_recipient_ack"; requestId: string; error?: string }
578
- | { type: "released_children_ack"; requestId: string; refusal?: ReleasedChildRefusal }
577
+ /**
578
+ * #5352: `published: false` when the reservation holds sends on the owner's broker but did not reach the shared
579
+ * database within the broker's bound; the broker keeps writing it there until it lands or the reservation ends.
580
+ */
581
+ | { type: "restoring_recipient_ack"; requestId: string; error?: string; published?: boolean }
582
+ | { type: "released_children_ack"; requestId: string; refusal?: ReleasedChildRefusal; published?: boolean }
579
583
  | { type: "hosted_sessions_ack"; requestId: string; sessions?: HostedSessionAssignment[]; refusal?: HostedSessionRefusal }
580
584
  | {
581
585
  type: "delivery_failed";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.9.89-alpha.1",
3
+ "version": "0.9.89",
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,51 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.89] - 2026-11-18
6
+
7
+ ### Breaking Changes
8
+
9
+ - `model: "auto"`, which every builtin agent declares, now runs your default model at its default thinking level, or at the agent's own `thinking` when it sets one, and runs the launching session's model and thinking level when no default model is configured. No routing model is asked, so an `auto` launch starts without a routing request. An `auto` launch still falls back to the agent's `fallbackModels` and then to the session's model.
10
+ - Removed `taskNeeds` and `modelConstraints` from the `subagent` tool, agent frontmatter, agent configs and builtin agent overrides, and `routerSelection` from subagent results. Tool calls and agent files that still set them keep working with the fields ignored and a one-time warning, and an agent file that agent management rewrites drops them. When Atomic starts, it deletes them from the builtin agent overrides (`subagents.agentOverrides`) in your global settings file and in the settings file of a trusted project (or of a project when you trust it), keeps every other setting, and says once which agents' overrides it changed. When the file cannot be written, or Atomic does not write it (a parent directory's `.atomic/settings.json`, or the legacy `~/.pi/agent/settings.json`), they are ignored with a warning shown once, and again only after their values change. Provider and model restrictions set through `modelConstraints` no longer limit `auto` or any fallback model.
11
+
12
+ ### Added
13
+
14
+ - A subagent whose tools leave out `read` or `search` gets one read-only tool, `session_history`, after compaction first clears its context, so it can recover what it needs from its own session's history. It reaches no other session, file or project
15
+ - A subagent of a session created with the SDK's `intercom` option gets its own Intercom policy: its group is its home and it reaches nothing else. It starts in the session's home group, and a requested `group` (including `true`) is placed under it, as `<home>/<group>` ([#5352](https://github.com/bastani-inc/atomic/issues/5352))
16
+
17
+ ### Changed
18
+
19
+ - A subagent attempt whose session directory cannot be created now fails that attempt instead of rejecting the launch call
20
+ - Agent launches and control calls use shared state-marked blocks. Foreground and background launches show the short task title, elapsed time, token count and live management hint. Completion notices name the agent and show its first result line; expansion shows the prompt, tool calls and full retained result without inherited fork history ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
21
+ - A background subagent released while it waits on a call shows `◌ Waiting on <tool>` on its launch card, the way `/tasks` and the agent panel show it, instead of `⏸ Released · waiting`, and its card follows it back to running or finished when it wakes or ends
22
+
23
+ ### Fixed
24
+
25
+ - Interrupting a subagent from its attached chat updates its call block, panel row and task sheet to stopped, freezes its elapsed time and offers `Stopped · send to resume`. A later completed turn keeps its past-tense end row when the live session is released ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
26
+ - Fixed Atomic exiting with `child-record-unreadable` ("which is not open in this process") when a workflow stage that had launched a background subagent finished, failed or had its run ended. Closing the stage reads each child's latest record to record it `stage-closed`. That record was read only through the copies of the stage's session registered for it, which are held weakly and which a later copy of the session can replace, and the error escaped from the stage's close listener and ended the process. The stage now also reads its children's records through its own session. When the copy that saved a newer record is gone, the stage ends the child from the record its own session holds, updated with where the child stands as Atomic last saw it. A child that is still running instead ends once its task settles, and a child that was already killed, gone or `stage-closed` is left as it is. A child it can read no record of is counted as a record that could not be saved, and the stage's other children still end. Nothing that goes wrong while a stage closes ends the process or fails the close.
27
+ - Fixed a workflow stage that gave up its session while it waited not recording its subagents `stage-closed` when it closed for good, whether it reopened that session first or its run was killed or ended while it was still released. The records were saved through the session it had given up, which refuses them. They are now saved through the stage's newest session, or through its session reopened from the store while the stage holds none.
28
+ - Fixed one subagent whose latest record is in a session not open in this process stopping its owner's other subagents from being handled: the session no longer fails to start, its other released subagents are still reserved and woken, `subagents:` sends still reach the rest, and a broker wake for it is reported instead of thrown. Restoring such a subagent reads it from its owner's own session, and neither a wake for results it received while it ran nor clearing results delivered to it leaves an unhandled rejection that would end the process when its owner's session fails to read its record: the failure is reported to the owner.
29
+ - The subagent tool, `/agents`, agent management, child restore and worktree subagents no longer pause the interface while they read agent definitions, skills, settings and child artifacts, write and clean up run artifacts, run git for worktrees, or record run history
30
+ - Long runs of whitespace in tool output, bash commands, subagent tasks, inherited prompts or npm package specs no longer stall the session for seconds while they are parsed
31
+ - Fixed a long-running Atomic session keeping every workflow stage, and every other session, that launched subagents in memory after it ended. Each subagent run kept the session that launched it reachable, with its whole history, extensions and tools, for as long as the process ran, so a workflow of about 60 stages that each delegated to subagents grew the session's process to several gigabytes over a few hours, and the larger the process grew, the slower every new shell and tool process started. A run now keeps only which session launched it, and subagent cards keep only the session store, never the last session that showed them. Atomic also keeps the in-process status of only the 256 most recently finished subagent runs; an older run's children still resume from their saved sessions.
32
+ - Fixed launching, inspecting, and restoring subagents failing with `sessionManager.getEntrySeq is not a function` when the host or an SDK `SessionManager` does not implement `getEntrySeq` or `findEntrySeq` ([#5316](https://github.com/bastani-inc/atomic/issues/5316))
33
+ - Fixed a background subagent that was slow to start showing only as `running` for many minutes, with no Intercom registration, metrics or output. A child that has not started its first turn now shows where its start is. `subagent status` gives the step and how long it and the start have run, `/tasks` and task heartbeats show the step as its current action, and the launch result and `status` name the child's Intercom target. A start that runs out of its start budget is shown as stalled with that step, retried once, and then fails with both stalls named. The launching session is told. The retry keeps the messages the stalled start had received before its first turn, and the task's cleanup covers the retry's session.
34
+ - Fixed a subagent that started while the Intercom broker was briefly unreachable running its turns unregistered, invisible to `intercom list` and unreachable until it next used Intercom itself. Its start now waits in its `registering on Intercom` step and retries until it registers, within its start budget.
35
+ - Fixed `contact_supervisor` reaching the wrong session. A background subagent named as its supervisor whichever session in the Atomic process had connected to Intercom last, such as another subagent or a workflow stage hosted in that process, instead of the session that launched it. Its updates and questions went to that session and never reached its parent. A child now names the Intercom id its launching session registered under, or that session's own name until it has one, and a child relaunched after a restart does the same.
36
+ - Subagent artifact storage for sessions without a session file is created only when a subagent needs it, not at every session start. On Windows, it waits for its private-directory check, using the native module with an asynchronous PowerShell fallback, without pausing the main thread. A subagent cancelled during that check creates no child storage or supervisor authorization, and a storage failure returns a tool error. Startup artifact cleanup stays single-flight until its asynchronous work finishes, even if the session that started it ends ([#5285](https://github.com/bastani-inc/atomic/issues/5285), [#5324](https://github.com/bastani-inc/atomic/issues/5324))
37
+ - A background subagent's final answer stays visible in `/tasks`, its transcript and completion card when saving it fails, even while its session is still shutting down ([#5210](https://github.com/bastani-inc/atomic/issues/5210))
38
+ - A subagent launch whose model chain has no credentials now names each skipped model and its provider in the error. A provider that rejects credentials is skipped for the rest of the child's fallback walk ([#5353](https://github.com/bastani-inc/atomic/pull/5353)).
39
+ - Fixed a message that reached a subagent as it finished being accepted and then left unanswered, including a steering, follow-up or user message and one an extension sends as the child's last turn settles. The child now answers accepted turn-starting input before it completes, and refuses one that arrives after that with its terminal-child error. A child being released also keeps turn-starting extension messages and background completion notices with steering or follow-up delivery. It saves each card once and delivers its context once on wake, including batches retried after a card write fails or the child's session reopens. Context-excluded extension messages keep their saved cards without reaching the model. Pressing Esc while a resumed subagent replays a message that arrived before it stopped also leaves it waiting for your next message, as Esc does on any other turn; it answers that message, then continues with the task it was resumed with. A resumed subagent no longer fails with `Agent is already processing` when an extension's interrupting message is still being answered as its task is sent; it answers both ([#5318](https://github.com/bastani-inc/atomic/issues/5318))
40
+ - A subagent's pending question marks its task as needing input and can be answered in its own task transcript. Leaving that view keeps its form state; Escape in the form cancels it. Questions no longer appear in, block, or take answers from the main chat or sibling sessions ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
41
+ - Fixed long malformed progress or output instructions in a subagent task freezing its live or restored tool block while Atomic formats the prompt ([#5239](https://github.com/bastani-inc/atomic/pull/5239))
42
+ - An open subagent chat no longer reads every entry of the session that launched it on each frame to tell whether the subagent is stopped or read-only.
43
+
44
+ ## [0.9.89-alpha.2] - 2026-11-18
45
+
46
+ ### Changed
47
+
48
+ - A background subagent released while it waits on a call shows `◌ Waiting on <tool>` on its launch card, the way `/tasks` and the agent panel show it, instead of `⏸ Released · waiting`, and its card follows it back to running or finished when it wakes or ends
49
+
5
50
  ## [0.9.89-alpha.1] - 2026-11-18
6
51
 
7
52
  ### Breaking Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.9.89-alpha.1",
3
+ "version": "0.9.89",
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": [
@@ -31845,6 +31845,14 @@ function buildExpandedDetails(input) {
31845
31845
  new SectionRecord(theme.bold("Result"), resultText ? new ToolBlockMarkdown(resultText) : failureText ? new Text(theme.fg("error", displayText2(failureText)), 0, 0) : new Text(theme.fg("dim", status === "running" ? "Running…" : "(no output)"), 0, 0))
31846
31846
  ]);
31847
31847
  }
31848
+ function waitingText(tools) {
31849
+ return `Waiting on ${displayText2(tools ?? "a tool call")}`;
31850
+ }
31851
+ function releasedWaitingTools(result) {
31852
+ if (result.kind !== "cancelled" || result.released === undefined)
31853
+ return;
31854
+ return [...new Set(result.released.waitingOn.map((call) => call.toolName))].join(", ") || undefined;
31855
+ }
31848
31856
  function buildOutcomeToolBlock(input) {
31849
31857
  const { outcome, identity, result, expanded, theme, context } = input;
31850
31858
  if (outcome.kind === "unstarted") {
@@ -31930,8 +31938,8 @@ function buildOutcomeToolBlock(input) {
31930
31938
  const reason = firstDisplayLine(taskSettled.message || "");
31931
31939
  statusLine = theme.fg("error", ["Failed", elapsedText, reason].filter(Boolean).join(" · "));
31932
31940
  } else if (taskSettled.released) {
31933
- status = "paused";
31934
- statusLine = statJoin(theme, ["Released · waiting", elapsedText]);
31941
+ status = "waiting";
31942
+ statusLine = statJoin(theme, [waitingText(releasedWaitingTools(taskSettled)), elapsedText]);
31935
31943
  } else if (subagentTaskResultLabel(taskSettled) === "paused · awaiting resume") {
31936
31944
  status = "paused";
31937
31945
  statusLine = statJoin(theme, ["Paused · awaiting resume", elapsedText]);
@@ -31963,8 +31971,11 @@ function buildOutcomeToolBlock(input) {
31963
31971
  const label = terminal === "quit" ? "Quit · paused · awaiting resume" : terminal === SUBAGENT_CHILD_STAGE_PAUSED_STATUS ? "Paused with its workflow stage · awaiting resume" : "Paused · awaiting resume";
31964
31972
  statusLine = statJoin(theme, [label, elapsedText]);
31965
31973
  } else if (terminal === SUBAGENT_CHILD_RELEASED_STATUS) {
31966
- status = "paused";
31967
- statusLine = statJoin(theme, ["Released · waiting", elapsedText]);
31974
+ status = "waiting";
31975
+ statusLine = statJoin(theme, [
31976
+ waitingText(taskSettled === undefined ? undefined : releasedWaitingTools(taskSettled)),
31977
+ elapsedText
31978
+ ]);
31968
31979
  } else {
31969
31980
  status = "stopped";
31970
31981
  statusLine = statJoin(theme, ["Stopped", elapsedText]);
@@ -31987,8 +31998,8 @@ function buildOutcomeToolBlock(input) {
31987
31998
  const reason = firstDisplayLine(observation.result.message || "");
31988
31999
  statusLine = theme.fg("error", ["Failed", elapsedText, reason].filter(Boolean).join(" · "));
31989
32000
  } else if (observation.result.released) {
31990
- status = "paused";
31991
- statusLine = statJoin(theme, ["Released · waiting", elapsedText]);
32001
+ status = "waiting";
32002
+ statusLine = statJoin(theme, [waitingText(releasedWaitingTools(observation.result)), elapsedText]);
31992
32003
  } else if (subagentTaskResultLabel(observation.result) === "paused · awaiting resume") {
31993
32004
  status = "paused";
31994
32005
  statusLine = statJoin(theme, ["Paused · awaiting resume", elapsedText]);
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.89] - 2026-11-18
8
+
9
+ ### Changed
10
+
11
+ - Web search and fetch calls show compact `WebSearch(...)` and `Fetch(...)` headers, concise result summaries and a shared expand hint. Expanded results retain all returned text, while fetched text cannot create terminal hyperlinks or control sequences ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
12
+
13
+ ### Fixed
14
+
15
+ - Web search, fetch and video tools read their configuration, browser cookies, media files and cloned GitHub repositories without blocking the session's event loop
16
+ - On Windows, GitHub clone cache checks no longer pause the main thread. A configuration load still waiting for its private directory cannot restore old settings after the session resets its configuration ([#5285](https://github.com/bastani-inc/atomic/issues/5285))
17
+
7
18
  ## [0.9.89-alpha.1] - 2026-11-18
8
19
 
9
20
  ### Changed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/web-access",
3
- "version": "0.9.89-alpha.1",
3
+ "version": "0.9.89",
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,112 @@ 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.89] - 2026-11-18
10
+
11
+ ### Breaking Changes
12
+
13
+ - Removed the `/workflow` command and all of its subcommands. The workflow commands are now `/workflows` and `/workflow-authoring`, and neither takes flags. The `workflow` tool and the SDK are unchanged. **Migration:**
14
+ - `/workflow <name> [key=value ...]`, `/workflow list`, `/workflow inputs <name>` and `/workflow <name> --help`: ask the agent, which uses the `workflow` tool.
15
+ - `/workflow status [run-id]`: `/workflows`, or `/workflows <run-id>` for one run's graph.
16
+ - `/workflow pause`: `p` in the run's graph. `/workflow quit`: `q` twice in the run's graph.
17
+ - `/workflow resume <run-id>`: `r` in the run's graph for this session's runs; `/resume` for runs left by an earlier session or interrupted by a restart.
18
+ - `/workflow resume <run-id> --accept-entry-changes`: resume from `/resume`, which asks `Workflow definition changed since this run started · enter resume with the new definition · esc cancel`.
19
+ - `/workflow fork <run-id> [--from <stage>]`: `d` on a finished stage in the graph, then `f` in its detail, which asks `New run from <stage>? enter confirm · esc cancel`.
20
+ - `/workflow reload`: `/reload`.
21
+ - `/workflow pause <run-id> <stage>` and `/workflow resume <run-id> <stage>`: `x` twice on the stage in the graph stops it, and its stage chat resumes it ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
22
+ - `<keepContext>` tags no longer protect text from compaction. `keepContext()`, `KEEP_CONTEXT_OPEN_TAG` and `KEEP_CONTEXT_CLOSE_TAG` are unchanged, but compaction now clears a stage's context window, and the recovery instructions tell the stage to search its session history for every tagged span and recover it verbatim before anything else. Nothing is kept in context automatically. The builtin workflows' tagged contracts and the `workflow` tool's guidance describe the new meaning
23
+ - Workflow stage status no longer has a `compaction` field: `workflow stages` and `workflow stage` stop reporting background compaction state, because background compaction was removed
24
+ - The `background-compaction` family is gone from typed workflow errors, so `failureDetail.family` no longer takes that value
25
+ - A stage with `model: "auto"`, the default of every builtin workflow's stages, now runs your default model at its default thinking level, or the launching session's model and thinking level when no default model is configured; `stage.setThinkingLevel()` sets another effort. No routing model is asked, and an `auto` stage's session opens without waiting for its first prompt. The SDK `run()` and worker hosts, which have no `models` catalog, now run `auto` stages too: on the configured default model, else the model given to `createAgentSessionAdapter()`, before the stage's `fallbackModels`. An `auto` stage in a session still falls back to its `fallbackModels` and then to the session's model.
26
+ - Removed `taskNeeds`, `modelConstraints` and `parallelSlot` from `StageOptions` and from task, chain and parallel options, `routerSelection` from `StageSnapshot`, `WorkflowTaskResult` and stage checkpoints, `WorkflowModelCatalogPort.routeModel()`, which `autoModel()` replaces, and `PiExecuteContext.getModelRouting`. Workflow definitions, TypeScript workflow files and journals that still carry these fields keep loading and running with them ignored; a stage that still sets `modelConstraints` or `taskNeeds` logs a one-time warning, and their provider and model restrictions no longer limit `auto` or any fallback model. The builtin `ralph` reviewers no longer ask for different model families.
27
+ - `SharedPoolScaleEvent.target` and `.live` are now optional. Events without a scaling plan, such as controller activation and provider errors, omit these fields. Check for `undefined` before using them as numbers ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
28
+
29
+ ### Added
30
+
31
+ - `/workflow-authoring` adds the workflow authoring guide to the conversation without starting a model turn and shows `Loaded workflow authoring reference (ctrl+o to expand)`. `/workflow-authoring <request>` also submits the request ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
32
+ - The workflow graph has run keys: `p` pauses the run, `r` resumes a paused or blocked run, and `q` pressed twice within 3 seconds quits it so it can be resumed. `d` opens the detail of a completed or failed stage. A completed stage's detail shows its duration and tokens, with `f fork from stage · t transcript · l logs · esc back`; a failed stage's detail adds `r retry from stage` ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
33
+ - Added the fleet controller, its scale events, rate limits and each host's checkpoint shipping to fleet status. The `workflow` tool's `status` action, its JSON, `host.stats()`, `readWorkflowWorkerFleet()` and `atomic worker status` show the controller that holds the fleet's lease, its five latest decisions, every fleet-wide rate limit with its rate and any shared 429 cooldown, and each worker host's checkpoint shipping: how far it lags, how many checkpoints it holds, whether it is catching up, and the last delivery failure (`host.stats().shipping` for the host itself). Each child's lease shows when its attempt last recorded a step and how many checkpoints it recorded (`lastProgressAgoMs`, `checkpoints`) ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
34
+ - Added the rate-limit cap to fleet autoscaling: a fleet controller caps its target at the estimated capacity of the fleet-wide `workers.rateLimits`, using recent calls and worker time not spent waiting for tokens. Growth holds at the current host count while a minute of observations warms, including after an observation gap, and standby controllers keep history for takeover. A scope with no draws during a minute while its roots run children releases its hold, so unused provider or model limits do not freeze other work. Host boot and workspace restore do not end this hold. Only children whose attempts have started contribute busy time to the estimate; a lease held during placement or restore does not. Bucket schedule movement not explained by counted draws, as with older hosts, disables that scope's cap for the observation window. The controller records a `rate-cap` fleet event when the cap holds the fleet below what its queue wants, and reports it as `rateCapHosts`. Rate buckets now count granted calls and token-waiting worker time. Old reporter lifetimes are summarized rather than accumulating, and a slow waiting report does not delay learning shared cooldowns. The registry and rate-bucket tables gain additive columns, and hosts of 0.9.88 keep sharing a pool with this version ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
35
+ - `AgentSessionAdapter.autoModel()` tells a run without a `models` catalog what `model: "auto"` stands for. `createAgentSessionAdapter()` implements it from the settings and credentials its stage sessions start with, and an adapter that spreads it (`{ ...createAgentSessionAdapter(), create }`) keeps it.
36
+ - `/compact` in a workflow stage chat takes optional instructions, for example `/compact keep the API notes`, for a stage in this process or on a local worker. They reach the stage's compaction as they do in the main chat
37
+ - `PendingPrompt.source` identifies a stage's extension dialog as `stage-dialog`; `expiresAt` gives its timeout deadline when one was set. Hosts can show these prompts in their stage chats and answer them through the workflow tool ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
38
+ - `o` in a workflow graph opens run details with outputs, artifacts, ordered events, nested blockers and logs. Esc returns to the graph; a second Esc pressed before the graph is shown again stays in the graph instead of closing it. `/workflows` also lists definitions that failed to load; Enter shows their actionable error details and `/reload` guidance without starting a run ([#5255](https://github.com/bastani-inc/atomic/pull/5255))
39
+ - In a fullscreen stage chat, a click on the header of a tool block, grouped-call summary or agent card expands or collapses that block, as in the main chat. Clicks in a block's output still select text
40
+ - Added a GPT-6.2 Astra and GPT-6.2 Sol guide to the bundled `prompt-engineer` skill, from OpenAI's GPT-6.2 guide: choosing between Astra and Sol, effort migration, the more concise default writing, finishing authorized work within approval boundaries, coding conventions, frontend design, and keeping the conversation prefix unchanged so reasoning and the prompt cache carry over
41
+
42
+ ### Changed
43
+
44
+ - `h` in the workflow graph hides it and returns to the view that opened it, such as the workflow list or agent panel ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
45
+ - `/workflows` lists the session's runs under the title **Workflows**. Rows show each run's status, stage, elapsed time and cost, or a failed run's short reason; Space previews a run, typing searches, and Enter opens its graph. Rows update while the list is open and keep your search and selection, and Enter waits for changed rows to be shown before acting. Esc clears the search first, then closes the list. With no runs it shows `No workflows in this session.` and closes with Esc, not Enter ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
46
+ - `workflow` tool `inputs` and `get` results and workflow input listings omit defaults that JSON cannot represent, such as functions, BigInt values and infinite numbers, instead of throwing on them; the run still applies and checks the original default ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
47
+ - `workflow` tool `inputs` and `get` results include declared input constraints: text length, pattern, format, numeric bounds, multiples and constants ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
48
+ - Updated the bundled Impeccable skill to 4.9.1 with engine 0.1.24. Live Mode can start in an empty folder by offering to craft a first page, writes the one-line config for a plain HTML page, picks a bare element on the first try, tells you which URL to open, and keeps the rest of a line intact when it wraps or accepts an element that shares that line. New `impeccable world`, `walkthrough` and `foundations` commands, a `foundations` reference with a launch checklist, and saved `audit` reports alongside critique reports. Uploads of design health, DESIGN.md and critique reports happen only after `impeccable login`; Atomic's telemetry and update-check defaults remain off, which also keeps the signed-in daily setup report off.
49
+ - An attached stage chat's composer has heavy accent rules naming `stage · <name> · <state>` and a `Message <stage>…` placeholder (`Answer <stage>…` while it waits on a question), matching a subagent's chat. While a stage waits on a question (`ask_user_question` or a choice, yes/no or input prompt), ← or Backspace returns to the graph and leaves the question pending; Esc cancels an `ask_user_question` dialog or closes a choice/yes/no prompt card back to the `Answer <stage>…` composer, where typing answers the pending question and Enter on an empty composer reopens the card. Invalid typed answers keep the question pending and preserve the draft ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
50
+ - Stage chats use the main chat's working line, elapsed tool timers and tool blocks, including when opened mid-run or interrupted with Esc. Finished shell calls can join compact call summaries in stage chats; expanding reveals every member ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
51
+ - A stage or task that uses `gitWorktreeDir` or `worktree: true` shows its worktree as its working directory once the worktree is ready, rather than as it starts, and a worktree setup failure now fails that stage's call instead of throwing from `ctx.stage()`
52
+ - A task with `model: "auto"` whose `reads` include image files (`.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`) runs on a model that accepts image input: your default model when it does, otherwise the launching session's model when that one does. When neither does, the task fails before a session opens with an error naming the settings to change, and its model fallbacks, the session model it appends included, skip models that cannot see images; without a model catalog, each fallback is checked when it is about to be tried, against the model runtime the stage has by then, and one it cannot look up is skipped too, with a warning on the stage. A session adapter's `autoModel()` receives `needs.imageInput` for such a task, and the adapter `createAgentSessionAdapter()` returns answers with its own model when the default model does not accept images. The builtin `open-claude-design` workflow relies on this for the reference images its generate stage reads.
53
+ - The `workflow` tool's row in the chat now looks like every other tool's, instead of drawing its own rounded panels. A run reads `Workflow(<name> · <what it was asked>)` and the other actions `workflow <action> <target>`, each with one result line. A run's line follows the run until it ends (`∀ Running · 1/3 stages · ↓ 22.4k tokens`, `! Waiting for input at review`, `✓ Completed in 4s · 3 stages · 32.4k tokens`, `✗ Failed at review · <reason>`), and Ctrl+O expands the row to the run's inputs, stages and outputs ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
54
+ - Workflow lifecycle notices are one line, like the notices for finished background tasks and agents (`● Workflow "<name>" completed · 4s`, `✗ Workflow "<name>" failed · at review`). Ctrl+O shows the run id, stage, bounded reason, outputs and artifact previews. Workflow heartbeats, answered-question notices and undelivered-message notices in the main chat use the same notice form as task heartbeats and run notices instead of bordered cards: `♥ Workflow heartbeat · <workflow> still running · <elapsed>` with the run and cadence under it, `● Workflow "<name>" received the user's response · <stage>`, and `! Stage "<name>" finished before this message was delivered · <workflow>`. Expanding a notice (Ctrl+O) shows its run, question and answer, or message. The text the model reads is unchanged. A workflow stage chat's own notices (model and thinking-level changes, compaction, branch changes, interrupts, task cleanup, readiness decisions and undelivered messages) also use the main chat's notice form instead of bordered cards, at the chat's output pad: for example `› Model changed to "<model>" · was <previous>`, `● Context compacted · 120.4k → 31.2k`, `◼ Stage interrupted` and `! Stage finished before this message was delivered`. Cleanup and undelivered notices count their hidden lines while collapsed, and Ctrl+O shows the resources still being confirmed or the message ([#5224](https://github.com/bastani-inc/atomic/issues/5224), [#5440](https://github.com/bastani-inc/atomic/pull/5440), [#5453](https://github.com/bastani-inc/atomic/pull/5453))
55
+ - With `workers.checkpointShipping`, a worker host now also keeps its children's agent-stage session transcripts, the checkpoints that bill model usage, and those that carry worktree snapshots in its local journal and ships them with the children's checkpoints, so an agent-stage child no longer commits each step to the shared journal: about 0.4 shared-journal commits per step for checkpoints and transcripts, down from 3.4. A step that ends a stage returns once it is shipped, so the root's budget sees the stage's usage and the shared journal holds its transcript when the stage ends. If a host dies, the session writes it had not shipped are dropped with its unshipped steps, and the replay continues each session from what was shipped. Rolling a host back to 0.9.88 replays its unshipped steps and session writes; drain the host first to avoid replay ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
56
+ - File-backed local checkpoint journals (`workers.checkpointShipping` set to an object) now run SQLite work on a worker thread, so syncing a checkpoint no longer blocks the coordinator's heartbeats or claims. A checkpoint is still on disk before its step returns, and checkpoints keep their arrival order. In-memory journals are unchanged ([#5321](https://github.com/bastani-inc/atomic/issues/5321))
57
+ - Resumable workflow runs, including runs left by an earlier session or interrupted by a restart, are listed in `/resume` under **Workflow runs** next to saved sessions, as two-line rows with the run's state, stage progress, age, elapsed time, cost and branch. Ctrl+D deletes a stopped run after confirmation ([#5256](https://github.com/bastani-inc/atomic/pull/5256))
58
+ - Resuming a run from `/resume` asks `Workflow definition changed since this run started · enter resume with the new definition · esc cancel` when the run's workflow definition file or a local worker definition's entry module changed since the run started. Enter resumes with the new definition and Esc cancels. An edited workflow definition used to resume without notice, and an edited entry module was refused. An unchanged definition restored in another directory is not flagged. The SDK's `acceptEntryChanges` is unchanged ([#5224](https://github.com/bastani-inc/atomic/issues/5224), [#5256](https://github.com/bastani-inc/atomic/pull/5256))
59
+
60
+ ### Fixed
61
+
62
+ - The `/resume` prompt for a changed workflow definition accepts only Enter and cancels with Esc or Ctrl+C, whatever keys are bound to confirm and cancel. → no longer accepts the new definition. Its title and keys now use theme colors, except when `NO_COLOR` is set ([#5396](https://github.com/bastani-inc/atomic/pull/5396))
63
+ - In a stage chat, Esc closes prompt search or completion before interrupting the stage, and search cursor keys no longer leave the chat. Ctrl+R also finds prompts in stage transcripts without a local session ([#5347](https://github.com/bastani-inc/atomic/pull/5347))
64
+ - Opening stored workflow runs reads compact stage overviews instead of loading large stage results. Full history and resumed work still retain the original results ([#5256](https://github.com/bastani-inc/atomic/pull/5256))
65
+ - Fixed `/workflows` never finishing when the host closed its picker without showing it ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
66
+ - Run details open the selected blocker in its owning run even when a nested workflow reuses the stage name. Large nested output previews now inspect only their display budget rather than serializing the full result. Run details honor `NO_COLOR`, and their narrow key hints keep complete controls without advertising bindings shadowed by help ([#5255](https://github.com/bastani-inc/atomic/pull/5255))
67
+ - Fixed workflow lifecycle notices writing terminal control sequences from workflow names, run IDs and error text to the terminal. Those sequences are now inert, including in narrow layouts, without deleting the ordinary text after them ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
68
+ - Workflow rows in the agent panel count expanded nested, dynamic and fan-out stages, include in-flight attempt tokens once, omit empty progress bars on tools-only runs and full stage bars while tool work continues, show the choices for a pending single-select question, and retain the last step when stopped. Numbered replies preserve the original option even when display labels look alike. Run and stage names display terminal controls as inert text, and unchanged stage progress is reused between refreshes ([#5224](https://github.com/bastani-inc/atomic/issues/5224), [#5239](https://github.com/bastani-inc/atomic/pull/5239))
69
+ - Opening a finished workflow from any workflow view now lets its agent-panel row expire without waiting for another run update, and re-entering a stage interrupted by Esc keeps the shared interrupted state instead of restoring the old paused banner. Stage composer labels, rules and hints follow the selected dark or light theme ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
70
+ - Bounded workflow previews no longer keep their builders and omitted source inputs in memory after the source is released ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
71
+ - Workflow worktree setup, git commands, worktree setup hooks, worker pools and workflow console logs no longer block the terminal UI while they run; the SDK's `setupGitWorktree` is unchanged
72
+ - SDK default-model selection reads settings without blocking the interface ([#5377](https://github.com/bastani-inc/atomic/pull/5377))
73
+ - A long run of spaces in a rubric criterion heading no longer stalls rubric parsing
74
+ - A reply sent from a workflow's `/tasks` card is refused if the pending question changed after typing began. SDK replies must include the captured prompt identity, so identical question text cannot direct an old reply to a replacement question, and blocked stage chats omit inactive keys from their hint line. Numbered choices preserve the original option even when displayed labels look alike ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
75
+ - A fleet-wide rate limit whose interval (60 000 / `requestsPerMinute` ms) is not a whole number of milliseconds no longer lets the fleet run faster than its rate. The shared bucket kept its schedule in whole milliseconds rounded down, so each grant gave up to a millisecond's worth of calls more than the limit; it now rounds up, so such a limit runs at most a millisecond per journal request below its rate ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
76
+ - `stage.setThinkingLevel()` called before a stage's first prompt no longer fails the run with `stage AgentSession property "thinkingLevel" is unavailable until the SDK session has been created`; the level applies when the stage's session opens.
77
+ - Fixed a session that ended for good, such as an SDK session that ran workflows and was disposed, staying in memory through the workflow hand-off kept for a session that might replace it.
78
+ - Fixed each `/reload` keeping the previous copy of the workflows extension, and the extensions and session it reaches, in memory for as long as the session ran.
79
+ - Workflow discovery checks the bundled workflows once per process, and registers them without the zero-stage check, which can never fire for them. Startup read and scanned every bundled workflow's source twice before the first request, and `/reload` and every durable workflow resume checked them again, each time reading and scanning their sources: about 180 ms on Windows and 120 ms on Linux ([#5319](https://github.com/bastani-inc/atomic/issues/5319))
80
+ - When another process on Windows holds `.atomic/workflows/status.json` open for a long read, the status writer now waits out the reader across its retry backoff instead of recording a `status file write failed` warning notice on each attempt, and writes the latest status as soon as the workflow changes after the reader closes the file. A hold that lasts beyond the retry backoff (about 21 seconds) still records one warning. At shutdown, Atomic retries a held status file for about one second and records a warning if it still cannot replace it ([#5322](https://github.com/bastani-inc/atomic/issues/5322))
81
+ - Workflow resume picker failure summaries preserve Unicode when shortened and keep reasons beginning with "at ", rather than mistaking them for stack frames ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
82
+ - Workflow resume cannot select a run while deleting it, and a stale refresh cannot restore a successfully deleted run to the picker ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
83
+ - Fixed sibling custom agent directories (`ATOMIC_CODING_AGENT_DIR`) sharing one workflow journal, shard directory, worker pool state and run artifact directory in their parent directory: custom directories now store under `<agentDir>/workflows` while `~/.atomic/agent` keeps `~/.atomic/workflows`, and one eligible directory can adopt an existing parent store (with its worker host id) once with a one-time notice. Moving that parent together with its agent directories keeps its history accessible, including across filesystems before or after renaming an adopting profile with older local JSONL files. Reopening the adopter after a move keeps later backup copies from taking its workflow history. A read-only agent directory can use a writable storage home, and default storage follows the current home directory ([#5242](https://github.com/bastani-inc/atomic/issues/5242))
84
+ - Workflow stages skip model-chain candidates without credentials before creating sessions and block with an error naming the missing providers when none can run. A provider that rejects credentials stays out of that fallback walk, including after a resumed prompt or a cooldown. Model-scoped access denials keep other models on the same provider eligible. Quitting with an already blocked, resumable run no longer fails shutdown ([#5353](https://github.com/bastani-inc/atomic/pull/5353)).
85
+ - Released stages retain their applied reasoning effort when they reopen, including with session adapters that omit the thinking level, and changing effort while released does not replay earlier candidates, even after a rejected reopen ([#3326](https://github.com/bastani-inc/atomic/issues/3326)).
86
+ - Fixed checkpoint shipping leaving a root's local checkpoint journal on a host that was down when the root's run ended, for example after a crash: it stayed on disk until that root resumed on the host again. The host now removes it the next time a worker host starts or a shared pool opens on the same shared journal, with any checkpoints it never shipped, which the ended run no longer accepts. It keeps the local journals of runs that are still running or paused, and any local journal a pool or a SQLite connection opened through Atomic on the host has open, including one opened while the journal is being removed. A pool that closes after its run ended no longer removes its local journal while such a connection has it open, and retiring a local journal with unshipped checkpoints keeps it in write-ahead log mode. Cleanup also handles long Windows paths and symlinked agent directories, and concurrent cleanups leave no per-root lock files behind. Detection of connections opened directly by other programs or earlier Atomic releases is best effort ([#5317](https://github.com/bastani-inc/atomic/issues/5317))
87
+ - Design workflows no longer pause other tools while Windows verifies temporary artifact storage ([#5285](https://github.com/bastani-inc/atomic/issues/5285))
88
+ - Fixed starting a new run from a finished stage failing after `/reload`. Runs created before the reload remain available to fork ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
89
+ - A stage's extension dialogs, including permission confirmations, selections and text editors, now wait in that stage's chat and accept the `workflow` tool's `answer` action with the current prompt id. Concurrent dialogs queue and timed dialogs show a countdown. A dialog opened by a stage custom component appears above it immediately and returns to the component after the answer or Escape cancellation. Its card and footer label Escape as cancellation, including for text inputs and editors. Without a prompt id, workflow answers target the visible dialog, not a questionnaire underneath it. SDK hosts keep a stage's dialog and questionnaire live independently, regardless of which arrives first; answering one does not withdraw or restart the other. This includes successive dialogs published by the same local worker stage, whose answers each return once to the waiting worker. Each request is saved before presentation or approval, and answering elsewhere dismisses its SDK dialog. Saved run history retains the kind and status without raw answers or reusable permissions. Stage dialogs no longer open in the launching chat, take another session's answers or hide the finished stage's transcript. A replacement worker's new dialog cannot reuse an earlier dialog's answer merely because its text matches. Late worker updates no longer reopen an already answered SDK dialog. A questionnaire answered as its worker dies keeps its held answer even if a stacked dialog is answered afterward, so the replacement does not ask the questionnaire again. Existing workflow prompt nodes keep their replay identity across worker replacement ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
90
+ - Fixed an idle local worker receiving SIGKILL instead of exiting cleanly when a late IPC reply failed after its root released its lease ([#3979](https://github.com/bastani-inc/atomic/issues/3979))
91
+ - An attached stage chat no longer renders its whole transcript again each time any stage of a running workflow changes the workflow's state.
92
+ - Fixed follow-up agents failing to read workflow history with a retired-execution error after a workflow finished or its extensions reloaded ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
93
+ - Fixed saved workflow rows in `/resume` showing missing stage progress, elapsed time and cost after a restart. Browsing them reads recorded summaries without resuming the workflows ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
94
+ - `LocalWorkerPool.close()` stops the pool's coordinator even when a stage watcher's listener throws while the pool closes; it rejects with that error once everything is closed. Before, the coordinator kept running, with its journal open.
95
+ - On libSQL storage, a workflow journal whose stored lease epoch or event sequence is corrupt (negative, fractional or past the largest safe integer) now refuses a lease renewal or an append without writing, as on local SQLite and PostgreSQL. Before, the renewal renewed the lease and the append wrote an event, and the error came only afterwards. On a libSQL server, appending several workflow events at once now also waits for a busy write lock as long as appending one event does; before, it gave up after the server's 5-second busy timeout ([#5439](https://github.com/bastani-inc/atomic/pull/5439))
96
+ - `NO_COLOR` and `FORCE_COLOR=0` now turn off colors in the workflow graph, stage chats, `/workflows` run details and workflow notices, which kept their own palette, and they also turn off bold and italic there and in the `/workflows` list, as they do in the rest of Atomic, so the output is plain text. `FORCE_COLOR=1` or `2` limits them to 256 colors; otherwise, with color on, nothing changes
97
+ - A workflow stage that moves to its next fallback model after a context overflow now stops the session it replaces before the new one starts. Before, a turn the replaced session was still running, or one started by a message delivered to it, kept calling tools in the stage's worktree next to the new session until it went idle. Messages queued for the replaced session still reach the new one
98
+
99
+ ### Removed
100
+
101
+ - The below-editor `BACKGROUND` workflow list and its Alt+K/J and Alt+PageUp/PageDown scrolling. Each run now has a row in the main chat's agent panel with its stage progress, current stage, elapsed time, token totals and any waiting input; Enter on it opens the graph ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
102
+
103
+ ## [0.9.89-alpha.2] - 2026-11-18
104
+
105
+ ### Changed
106
+
107
+ - Workflow heartbeats, answered-question notices and undelivered-message notices in the main chat use the same notice form as task heartbeats and run notices instead of bordered cards: `♥ Workflow heartbeat · <workflow> still running · <elapsed>` with the run and cadence under it, `● Workflow "<name>" received the user's response · <stage>`, and `! Stage "<name>" finished before this message was delivered · <workflow>`. Expanding a notice (Ctrl+O) shows its run, question and answer, or message. The text the model reads is unchanged. A workflow stage chat's own notices (model and thinking-level changes, compaction, branch changes, interrupts, task cleanup, readiness decisions and undelivered messages) also use the main chat's notice form instead of bordered cards, at the chat's output pad: for example `› Model changed to "<model>" · was <previous>`, `● Context compacted · 120.4k → 31.2k`, `◼ Stage interrupted` and `! Stage finished before this message was delivered`. Cleanup and undelivered notices count their hidden lines while collapsed, and Ctrl+O shows the resources still being confirmed or the message
108
+
109
+ ### Fixed
110
+
111
+ - On libSQL storage, a workflow journal whose stored lease epoch or event sequence is corrupt (negative, fractional or past the largest safe integer) now refuses a lease renewal or an append without writing, as on local SQLite and PostgreSQL. Before, the renewal renewed the lease and the append wrote an event, and the error came only afterwards. On a libSQL server, appending several workflow events at once now also waits for a busy write lock as long as appending one event does; before, it gave up after the server's 5-second busy timeout ([#5439](https://github.com/bastani-inc/atomic/pull/5439))
112
+ - `NO_COLOR` and `FORCE_COLOR=0` now turn off colors in the workflow graph, stage chats, `/workflows` run details and workflow notices, which kept their own palette, and they also turn off bold and italic there and in the `/workflows` list, as they do in the rest of Atomic, so the output is plain text. `FORCE_COLOR=1` or `2` limits them to 256 colors; otherwise, with color on, nothing changes
113
+ - A workflow stage that moves to its next fallback model after a context overflow now stops the session it replaces before the new one starts. Before, a turn the replaced session was still running, or one started by a message delivered to it, kept calling tools in the stage's worktree next to the new session until it went idle. Messages queued for the replaced session still reach the new one
114
+
9
115
  ## [0.9.89-alpha.1] - 2026-11-18
10
116
 
11
117
  ### Breaking Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/workflows",
3
- "version": "0.9.89-alpha.1",
3
+ "version": "0.9.89",
4
4
  "private": true,
5
5
  "description": "Atomic extension for multi-stage workflow authoring and execution.",
6
6
  "contributors": [