@bastani/atomic 0.9.89-alpha.1 → 0.9.89-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +8 -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 +6 -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/package.json +1 -1
  18. package/dist/builtin/workflows/CHANGELOG.md +12 -0
  19. package/dist/builtin/workflows/package.json +1 -1
  20. package/dist/builtin/workflows/src/extension/index.bundle.mjs +310 -344
  21. package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +99 -17
  22. package/dist/builtin/workflows/src/index.js +99 -17
  23. package/dist/builtin/workflows/src/local-worker-entry.mjs +99 -17
  24. package/dist/cli/storage-command.js +8 -0
  25. package/dist/cli/storage-command.js.map +1 -1
  26. package/dist/core/auth-storage-backends.d.ts.map +1 -1
  27. package/dist/core/auth-storage-backends.js +1 -0
  28. package/dist/core/auth-storage-backends.js.map +1 -1
  29. package/dist/core/keybindings.d.ts +8 -0
  30. package/dist/core/keybindings.d.ts.map +1 -1
  31. package/dist/core/keybindings.js +4 -0
  32. package/dist/core/keybindings.js.map +1 -1
  33. package/dist/core/process-start-token.d.ts.map +1 -1
  34. package/dist/core/process-start-token.js +8 -1
  35. package/dist/core/process-start-token.js.map +1 -1
  36. package/dist/core/resume/blueprint/build-lock.d.ts.map +1 -1
  37. package/dist/core/resume/blueprint/build-lock.js +2 -1
  38. package/dist/core/resume/blueprint/build-lock.js.map +1 -1
  39. package/dist/core/storage/errors.d.ts +4 -2
  40. package/dist/core/storage/errors.d.ts.map +1 -1
  41. package/dist/core/storage/errors.js +6 -1
  42. package/dist/core/storage/errors.js.map +1 -1
  43. package/dist/core/tasks/completion.d.ts +5 -0
  44. package/dist/core/tasks/completion.d.ts.map +1 -1
  45. package/dist/core/tasks/completion.js +13 -0
  46. package/dist/core/tasks/completion.js.map +1 -1
  47. package/dist/core/tools/shell-task-render.d.ts +1 -2
  48. package/dist/core/tools/shell-task-render.d.ts.map +1 -1
  49. package/dist/core/tools/shell-task-render.js +3 -7
  50. package/dist/core/tools/shell-task-render.js.map +1 -1
  51. package/dist/core/tools/windows-directory-security.d.ts.map +1 -1
  52. package/dist/core/tools/windows-directory-security.js +3 -11
  53. package/dist/core/tools/windows-directory-security.js.map +1 -1
  54. package/dist/core/worktree-snapshot/capture.d.ts.map +1 -1
  55. package/dist/core/worktree-snapshot/capture.js +25 -1
  56. package/dist/core/worktree-snapshot/capture.js.map +1 -1
  57. package/dist/core/worktree-snapshot/restore.d.ts.map +1 -1
  58. package/dist/core/worktree-snapshot/restore.js +38 -9
  59. package/dist/core/worktree-snapshot/restore.js.map +1 -1
  60. package/dist/index.d.ts +2 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +2 -1
  63. package/dist/index.js.map +1 -1
  64. package/dist/modes/interactive/components/agent-panel.d.ts +5 -0
  65. package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
  66. package/dist/modes/interactive/components/agent-panel.js +13 -0
  67. package/dist/modes/interactive/components/agent-panel.js.map +1 -1
  68. package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
  69. package/dist/modes/interactive/components/chat-transcript.js +5 -2
  70. package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
  71. package/dist/modes/interactive/components/custom-message.js +1 -1
  72. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  73. package/dist/modes/interactive/components/heartbeat-block.d.ts +34 -0
  74. package/dist/modes/interactive/components/heartbeat-block.d.ts.map +1 -0
  75. package/dist/modes/interactive/components/heartbeat-block.js +50 -0
  76. package/dist/modes/interactive/components/heartbeat-block.js.map +1 -0
  77. package/dist/modes/interactive/components/input-label.d.ts.map +1 -1
  78. package/dist/modes/interactive/components/input-label.js +8 -3
  79. package/dist/modes/interactive/components/input-label.js.map +1 -1
  80. package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
  81. package/dist/modes/interactive/components/main-composer-keys.js +3 -7
  82. package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
  83. package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
  84. package/dist/modes/interactive/components/mermaid.js +13 -7
  85. package/dist/modes/interactive/components/mermaid.js.map +1 -1
  86. package/dist/modes/interactive/components/notice-line.d.ts +10 -2
  87. package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
  88. package/dist/modes/interactive/components/notice-line.js +13 -3
  89. package/dist/modes/interactive/components/notice-line.js.map +1 -1
  90. package/dist/modes/interactive/components/provider-brand.d.ts.map +1 -1
  91. package/dist/modes/interactive/components/provider-brand.js +3 -0
  92. package/dist/modes/interactive/components/provider-brand.js.map +1 -1
  93. package/dist/modes/interactive/components/task-heartbeat-message.d.ts +9 -4
  94. package/dist/modes/interactive/components/task-heartbeat-message.d.ts.map +1 -1
  95. package/dist/modes/interactive/components/task-heartbeat-message.js +33 -27
  96. package/dist/modes/interactive/components/task-heartbeat-message.js.map +1 -1
  97. package/dist/modes/interactive/components/task-inspector.d.ts +16 -0
  98. package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -1
  99. package/dist/modes/interactive/components/task-inspector.js +95 -4
  100. package/dist/modes/interactive/components/task-inspector.js.map +1 -1
  101. package/dist/modes/interactive/components/task-list.d.ts +5 -1
  102. package/dist/modes/interactive/components/task-list.d.ts.map +1 -1
  103. package/dist/modes/interactive/components/task-list.js +20 -3
  104. package/dist/modes/interactive/components/task-list.js.map +1 -1
  105. package/dist/modes/interactive/components/task-transcript-page.d.ts +1 -1
  106. package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
  107. package/dist/modes/interactive/components/task-transcript-page.js +10 -7
  108. package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
  109. package/dist/modes/interactive/interactive-startup.js +1 -2
  110. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  111. package/dist/modes/interactive/theme/color-utils.d.ts +29 -1
  112. package/dist/modes/interactive/theme/color-utils.d.ts.map +1 -1
  113. package/dist/modes/interactive/theme/color-utils.js +81 -7
  114. package/dist/modes/interactive/theme/color-utils.js.map +1 -1
  115. package/dist/modes/interactive/theme/global-theme.d.ts.map +1 -1
  116. package/dist/modes/interactive/theme/global-theme.js +3 -0
  117. package/dist/modes/interactive/theme/global-theme.js.map +1 -1
  118. package/dist/modes/interactive/theme/theme-class.d.ts +22 -2
  119. package/dist/modes/interactive/theme/theme-class.d.ts.map +1 -1
  120. package/dist/modes/interactive/theme/theme-class.js +64 -18
  121. package/dist/modes/interactive/theme/theme-class.js.map +1 -1
  122. package/dist/modes/interactive/theme/theme.d.ts +1 -0
  123. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  124. package/dist/modes/interactive/theme/theme.js +1 -0
  125. package/dist/modes/interactive/theme/theme.js.map +1 -1
  126. package/dist/utils/clipboard-image.d.ts.map +1 -1
  127. package/dist/utils/clipboard-image.js +2 -0
  128. package/dist/utils/clipboard-image.js.map +1 -1
  129. package/dist/utils/clipboard.d.ts.map +1 -1
  130. package/dist/utils/clipboard.js +2 -1
  131. package/dist/utils/clipboard.js.map +1 -1
  132. package/dist/utils/tools-manager.d.ts +6 -0
  133. package/dist/utils/tools-manager.d.ts.map +1 -1
  134. package/dist/utils/tools-manager.js +170 -15
  135. package/dist/utils/tools-manager.js.map +1 -1
  136. package/dist/utils/windows-powershell.d.ts +9 -0
  137. package/dist/utils/windows-powershell.d.ts.map +1 -0
  138. package/dist/utils/windows-powershell.js +16 -0
  139. package/dist/utils/windows-powershell.js.map +1 -0
  140. package/docs/background-tasks.md +6 -6
  141. package/docs/getting-started/installation.md +4 -2
  142. package/docs/keybindings.md +3 -0
  143. package/docs/storage.md +24 -5
  144. package/docs/subagents.md +1 -1
  145. package/docs/themes/reference.md +7 -0
  146. package/docs/tui/reference.md +1 -1
  147. package/docs/windows.md +1 -1
  148. package/docs/workflows/api-reference.md +9 -1
  149. package/docs/workflows/operations.md +1 -1
  150. package/npm-shrinkwrap.json +49 -49
  151. package/package.json +6 -6
  152. package/schemas/keybindings.schema.json +4 -0
@@ -279,8 +279,12 @@ export interface OutboxStore {
279
279
  * waiting. Optional: a store without it never extends a sender's wait.
280
280
  */
281
281
  reportSaving?(claim: OutboxClaim): Promise<OutboxRenewClaimResult>;
282
- /** Return the row to `queued`, for example when its recipient disconnected before acknowledging. */
283
- releaseClaim(claim: OutboxClaim): Promise<OutboxReleaseClaimResult>;
282
+ /**
283
+ * Return the row to `queued`, for example when its recipient disconnected before acknowledging. `unwritten`: the
284
+ * claim never wrote the row to any recipient (it left before), so the attempt is not counted and the row reads as
285
+ * never claimed, as it was before this claim.
286
+ */
287
+ releaseClaim(claim: OutboxClaim, options?: { readonly unwritten?: boolean }): Promise<OutboxReleaseClaimResult>;
284
288
  /**
285
289
  * #5038: return every row `claimantId` holds to `queued`, as its own `releaseClaim` would, so a dead broker's
286
290
  * claims stop holding its recipients' queues until they go stale. Resolves to the number of rows released.
@@ -269,6 +269,11 @@ export class RestoringRecipients {
269
269
  };
270
270
  }
271
271
 
272
+ /** #5352: whether `ownerSessionId` still holds the reservation under `key` here (not released, taken or replaced). */
273
+ holds(key: string, ownerSessionId: string): boolean {
274
+ return this.reservations.get(key)?.ownerSessionId === ownerSessionId;
275
+ }
276
+
272
277
  releasedOwner(childName: string): string | undefined {
273
278
  return this.reservations.get(releasedReservationKey(childName))?.ownerSessionId;
274
279
  }
@@ -286,11 +286,12 @@ export async function openSqlOutboxStore(options: IntercomBrokerStateOptions): P
286
286
  });
287
287
  },
288
288
 
289
- releaseClaim(claim) {
289
+ releaseClaim(claim, options) {
290
+ const attempts = options?.unwritten === true ? `, claim_attempts = ${greatest("0", "claim_attempts - 1")}` : "";
290
291
  return withClaim(claim, async (executor) => {
291
292
  await executor.run(
292
293
  `UPDATE ${table} SET state = 'queued', claimant_id = NULL, claim_token = NULL, claim_renewed_at = NULL,
293
- saving_at = NULL
294
+ saving_at = NULL${attempts}
294
295
  WHERE message_id = ?`,
295
296
  claim.messageId,
296
297
  );
@@ -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-alpha.2",
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-alpha.2",
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,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.89-alpha.2] - 2026-11-18
6
+
7
+ ### Changed
8
+
9
+ - 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
10
+
5
11
  ## [0.9.89-alpha.1] - 2026-11-18
6
12
 
7
13
  ### 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-alpha.2",
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]);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/web-access",
3
- "version": "0.9.89-alpha.1",
3
+ "version": "0.9.89-alpha.2",
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,18 @@ 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-alpha.2] - 2026-11-18
10
+
11
+ ### Changed
12
+
13
+ - 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
14
+
15
+ ### Fixed
16
+
17
+ - 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))
18
+ - `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
19
+ - 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
20
+
9
21
  ## [0.9.89-alpha.1] - 2026-11-18
10
22
 
11
23
  ### 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-alpha.2",
4
4
  "private": true,
5
5
  "description": "Atomic extension for multi-stage workflow authoring and execution.",
6
6
  "contributors": [