@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
package/CHANGELOG.md CHANGED
@@ -2,6 +2,295 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.89] - 2026-11-18
6
+
7
+ Compaction clears the context and lets the agent recover it from history, `model: "auto"` runs your default model, an agent panel keeps subagents and workflows in view, and the interface stays responsive under load.
8
+
9
+ **Compaction and history**
10
+
11
+ - **Clear-and-recover compaction.** By default compaction calls no model. It clears the context, and the agent recovers what it needs from session history with its own tools. A compactor model such as `morph/morph-compactor` can condense the context instead, and `/compact` takes instructions ([#5389](https://github.com/bastani-inc/atomic/pull/5389))
12
+ - **Bounded history reads.** `history://` reads and searches stay within output and time budgets, return continuation URLs, select saved entries, and search large stores through incremental indexes ([#5250](https://github.com/bastani-inc/atomic/issues/5250))
13
+
14
+ **Models**
15
+
16
+ - **`model: "auto"` runs your default model.** Subagents, workflow stages and builtin agents start on your default model and thinking level without a routing request, and Atomic removes the retired `modelRouting`, `taskNeeds` and `modelConstraints` settings once ([#5381](https://github.com/bastani-inc/atomic/pull/5381), [#5406](https://github.com/bastani-inc/atomic/pull/5406), [#5409](https://github.com/bastani-inc/atomic/pull/5409))
17
+ - **GPT-6.2 Astra and GPT-6.2 Sol.** Both are available on OpenAI, Azure OpenAI and Codex, and GPT-6.2 Sol is the new default for the OpenAI providers ([#5410](https://github.com/bastani-inc/atomic/pull/5410))
18
+ - **Fallbacks skip missing credentials.** Model chains for chats, subagents and stages skip providers without credentials before sending a request, and the error names the models and providers affected ([#5353](https://github.com/bastani-inc/atomic/pull/5353))
19
+
20
+ **Interface**
21
+
22
+ - **Agent panel.** Running subagents and workflow runs are listed below the prompt, and `/tasks` groups them by Needs input, Working and Done. A released subagent shows as waiting on its tool with its saved conversation, and Alt+W opens the shell it waits on. Subagent and stage chats share the main chat's composer, working line, tool blocks and shell count, and a click on a block header expands it ([#5224](https://github.com/bastani-inc/atomic/issues/5224), [#5239](https://github.com/bastani-inc/atomic/pull/5239), [#5405](https://github.com/bastani-inc/atomic/pull/5405), [#5407](https://github.com/bastani-inc/atomic/pull/5407), [#5408](https://github.com/bastani-inc/atomic/pull/5408), [#5430](https://github.com/bastani-inc/atomic/pull/5430), [#5438](https://github.com/bastani-inc/atomic/pull/5438), [#5448](https://github.com/bastani-inc/atomic/pull/5448))
23
+ - **Sessions and runs in one place.** `/resume` lists saved sessions and workflow runs together, the workflow graph pauses, resumes, quits, forks and opens run details from its own keys, and `/workflows` shows definitions that failed to load ([#5245](https://github.com/bastani-inc/atomic/pull/5245), [#5256](https://github.com/bastani-inc/atomic/pull/5256), [#5255](https://github.com/bastani-inc/atomic/pull/5255))
24
+ - **One picker and prompt search.** `/settings`, `/tree`, the fork picker, `atomic config` and the `@` and `/` menus share one picker, and Ctrl+R searches the prompts you sent ([#5347](https://github.com/bastani-inc/atomic/pull/5347))
25
+ - **Questions stay with their session.** A subagent's or stage's question waits in its own chat instead of blocking the main chat ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
26
+ - **Notices instead of cards.** Finished tasks, heartbeats, workflow events and a stage chat's own notices use the chat's compact notice form, Ctrl+O expands their details, and tasks that finish together start one turn instead of one each ([#5342](https://github.com/bastani-inc/atomic/pull/5342), [#5440](https://github.com/bastani-inc/atomic/pull/5440), [#5453](https://github.com/bastani-inc/atomic/pull/5453))
27
+ - **Plain output under `NO_COLOR`.** `NO_COLOR` and `FORCE_COLOR=0` turn off every theme color, bold and italic in chats, tool blocks, `/tasks`, pickers, the workflow graph and run details. `FORCE_COLOR=1` or `2` limits colors to 256, and extensions follow the same rules with `hexColorAnsi()` ([#5435](https://github.com/bastani-inc/atomic/pull/5435), [#5441](https://github.com/bastani-inc/atomic/pull/5441), [#5454](https://github.com/bastani-inc/atomic/pull/5454))
28
+
29
+ **Performance**
30
+
31
+ - **A responsive interface.** File, git, settings, storage and process work no longer block typing or rendering, process starts on Linux no longer slow down as memory grows, long sessions and attached chats render only what changed, and worktree snapshots start fewer Git processes ([#5377](https://github.com/bastani-inc/atomic/pull/5377), [#5345](https://github.com/bastani-inc/atomic/pull/5345), [#5358](https://github.com/bastani-inc/atomic/pull/5358), [#5447](https://github.com/bastani-inc/atomic/pull/5447))
32
+ - **Faster startup.** The first frame paints before the engine loads, in about 270 ms instead of 940 ms for the Linux binary, which also caches its bytecode for every process it starts ([#5339](https://github.com/bastani-inc/atomic/pull/5339))
33
+ - **Less memory over long runs.** Atomic releases ended workflow stages, sessions that launched subagents and replaced extensions, so a host no longer grows to gigabytes ([#5355](https://github.com/bastani-inc/atomic/pull/5355))
34
+
35
+ **Workflows, subagents and storage**
36
+
37
+ - **Fleet health and quota-aware scaling.** `atomic worker status` shows the controller, scale events, rate limits and shipping lag, autoscaling stops at the fleet's usable rate quota, and pooled stages commit to the shared journal about 0.4 times per step instead of 3.4 ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
38
+ - **Reliable subagent starts.** Subagents register on Intercom before their first turn, report a slow start, reach their real supervisor, and answer every message they accept ([#5341](https://github.com/bastani-inc/atomic/pull/5341), [#5318](https://github.com/bastani-inc/atomic/issues/5318))
39
+ - **Intercom reach and multi-node delivery.** SDK hosts can set a session's home Intercom group and the groups it may reach, and a stage can answer the session that launched its run. Across machines, a message to a starting subagent waits for it instead of failing with `Session not found`, a reply after a broker crash stays retryable, and a send to a session that just quit is queued for its return ([#5352](https://github.com/bastani-inc/atomic/issues/5352), [#5373](https://github.com/bastani-inc/atomic/pull/5373), [#5458](https://github.com/bastani-inc/atomic/pull/5458), [#5461](https://github.com/bastani-inc/atomic/pull/5461), [#4997](https://github.com/bastani-inc/atomic/issues/4997), [#5455](https://github.com/bastani-inc/atomic/pull/5455), [#5457](https://github.com/bastani-inc/atomic/pull/5457))
40
+ - **Separate stores per agent directory.** Sibling `ATOMIC_CODING_AGENT_DIR` profiles no longer share sessions, workflows and Intercom through their parent directory, and processes starting together on a fresh agent directory no longer fail reading its storage home ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#5429](https://github.com/bastani-inc/atomic/issues/5429))
41
+ - **Safer concurrent work.** Atomic keeps the settings you save in an editor, SQLite writers keep their order after a stall, a run stopped by another process's write saves nothing more, restore cleanup never deletes files it did not create, a resume after a killed blueprint build starts in a fresh worktree, and a stage that falls back after a context overflow stops the session it replaces ([#5414](https://github.com/bastani-inc/atomic/pull/5414), [#5422](https://github.com/bastani-inc/atomic/pull/5422), [#5135](https://github.com/bastani-inc/atomic/issues/5135), [#4748](https://github.com/bastani-inc/atomic/issues/4748), [#5379](https://github.com/bastani-inc/atomic/issues/5379), [#5446](https://github.com/bastani-inc/atomic/pull/5446))
42
+ - **Shared libSQL servers.** Statements that sqld answers with `SQLITE_SCHEMA` or `no such table` while other stores change the schema run again, a write after an outage no longer waits on a lock the outage left, and workflow journals wait for the write lock and refuse corrupt counters without writing ([#5456](https://github.com/bastani-inc/atomic/pull/5456), [#5462](https://github.com/bastani-inc/atomic/pull/5462), [#5464](https://github.com/bastani-inc/atomic/issues/5464), [#5467](https://github.com/bastani-inc/atomic/pull/5467), [#5114](https://github.com/bastani-inc/atomic/issues/5114), [#5439](https://github.com/bastani-inc/atomic/pull/5439))
43
+ - **PostgreSQL on Azure.** `atomic storage migrate` says when `pg_trgm` is missing, the storage guide covers Azure flexible servers and HorizonDB, and Atomic retries a write that a briefly read-only server refuses after a failover ([#5444](https://github.com/bastani-inc/atomic/pull/5444))
44
+
45
+ **Install and Windows**
46
+
47
+ - **Sturdier installs.** A pinned version installs without the GitHub API, a rate limit names `GITHUB_TOKEN` as the fix, an interrupted or concurrent install no longer leaves `atomic` unable to start, downloaded tools install when Atomic starts from PowerShell 7, and processes waiting on a killed Git install take over its lock without failing ([#5443](https://github.com/bastani-inc/atomic/pull/5443), [#5452](https://github.com/bastani-inc/atomic/pull/5452), [#5436](https://github.com/bastani-inc/atomic/pull/5436), [#4322](https://github.com/bastani-inc/atomic/issues/4322), [#5434](https://github.com/bastani-inc/atomic/pull/5434))
48
+ - **Busy Windows machines.** A shell command or a named worktree's Git command that ran to completion no longer fails with `Windows stdin worker stop was not confirmed` ([#5340](https://github.com/bastani-inc/atomic/pull/5340), [#5202](https://github.com/bastani-inc/atomic/issues/5202), [#5450](https://github.com/bastani-inc/atomic/pull/5450))
49
+
50
+ **Breaking change:** `/workflow` and its subcommands are removed; ask the agent to run workflows and use `/workflows`, the graph's keys and `/resume` instead. Drop compaction settings other than `compaction.enabled`, `compaction.reserveTokens` and `compactionModel`, and the `modelRouting`, `taskNeeds` and `modelConstraints` fields, which are now ignored; SDK code must stop using the removed background-compaction, compaction-planner and model-routing exports. Custom `SessionStore`s used with `history://` must implement `readEntryRange()`, and `history://sessions/<id>:N-M` ranges now count entries, not lines. Pass `closeOnSelect: false` to single-select `Selector`s that keep taking input after a choice, update `SelectorState.items` through `setItems()`, return a single header from tool `renderCall`, check `SharedPoolScaleEvent.target` and `.live` for `undefined`, and on Windows use `ensurePrivateTempDirAsync()` and `assertPrivateDirectoryAsync()`.
51
+
52
+ ### Breaking Changes
53
+
54
+ - Removed the `/workflow` slash command and all of its subcommands; `/workflows` (`Browse running and completed workflows`) and `/workflow-authoring` (`Load the reference for writing workflow definitions`) are the workflow commands, and neither takes flags. Ask the agent to run, list or inspect workflows (it uses the `workflow` tool). Pause, resume and quit a run with `p`, `r` and `q` in its graph, fork with `f` in a finished stage's detail (`d`), resume runs from earlier sessions with `/resume`, and rescan workflow resources with `/reload`. The workflows package changelog lists where each subcommand went ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
55
+ - Compaction now has two forms, which replace the line planner and summary compaction. By default it calls no model: it clears the context window, and the model sees the system prompt and one `Context cleared` message. That message names the session's exact `history://sessions/<id>` URL, the entries that hold the earlier conversation and the boundary's saved entry position, and tells the agent what to recover first and how; the agent recovers it with its own `read` and `search` tools in its next turn. With a compactor model set in `compactionModel`, today `morph/morph-compactor`, the compactor condenses the whole context once and its output replaces the context in a `Context compacted` message, followed by the same recovery instructions. Any compactor failure (no credentials, an HTTP error, malformed or empty output, a timeout, output that is too long, a request stopped with Escape or `abortCompaction()`) clears the context instead and shows `Compaction model not used (<reason>); context cleared instead`. Compaction still runs at the `compaction.reserveTokens` threshold, on a provider context overflow (one compact-and-retry per turn) and on `/compact`. A response that ends over the threshold stays the session's last answer for `prompt()` callers, RPC `get_last_assistant_text`, `/copy` and workflow stages; the context is cleared just before the next request, whichever starts it: a prompt, queued input, an interrupt message, or the continuation after a tool's result
56
+ - `compactionModel` accepts only `auto` (or an empty value) and exact registered compactor models. When a session starts, a saved `compactionModel` in global or trusted project settings that names a chat or classifier model is reset to `auto` and saved, and again once extensions have loaded or the project has been trusted during startup; a compactor ID and an ID that names no registered model are kept. A per-run `compactionModel` that names a chat, classifier or unknown model clears the context with a notice instead of failing. `/settings` → **Compaction model** lists **Auto (clear and recover)** and compactor models only
57
+ - Removed the settings `compaction.compression_ratio`, `compaction.preserve_recent`, `compaction.keepContextShare`, `compaction.query`, `compaction.planningTimeoutMs`, `compaction.modelOverrides`, `compaction.background`, `compaction.backgroundThresholdPercent` and `compaction.historyRecall`. They are ignored when present, and settings load without an error. `compaction.enabled`, `compaction.reserveTokens` and `compactionModel` remain. `SettingsManager.getCompactionSettings()` returns only `enabled` and `reserveTokens`, and the accessors of the removed settings are gone
58
+ - `<keepContext>` tags no longer protect text: nothing is kept in context automatically. After a clear or a compaction, the recovery instructions tell the agent to search its history for every tagged span and recover it verbatim before anything else. The tags stay valid in prompts, and a compactor model may honour them
59
+ - `SessionCompactOptions` and the extension `CompactOptions` are now `{ query?, compactionModel? }` (plus `onComplete` and `onError` for `CompactOptions`); `query` carries the compaction instructions. `compression_ratio` and `preserve_recent` are removed from the types and ignored if still passed. A manual compaction with nothing new in context since the last boundary rejects with `Nothing to compact`
60
+ - `session_before_compact` now prepares the whole context since the last boundary: `preparation.region` holds no protected lines, `firstKeptEntryId` is `null` and `keptTailMessageCount` is `0`. A returned `compactedText` becomes a `Context compacted` message followed by the recovery instructions; text longer than a compactor's output may be, or too long to fit below the automatic trigger with the system prompt and the recovery instructions, clears the context instead with the fallback reason `extension failed: output too long (…)`. `{ cancel: true }` still cancels. `compaction_usage` now reports only the compactor endpoint's usage
61
+ - `VerbatimCompactionResult` and `CompactionEntry.details` gained `form` (`"cleared"` or `"compacted"`), `backend` (`"compactor"` or `"extension"`), `model`, `fallbackReason`, `history` (`{ sessionId, rangeUnit: "entries", entriesBefore, boundaryEntry, totalEntries }`) and `historyAccess` (`"read-search"` or `"session-history-tool"`), and lost `rung`, `plannerModel`, `freshReason`, `releasedRanges` and `summary`; `backend` no longer takes `planner`, `classifier`, `summary` or `morph`. `parameters` is now `{ query }`, `promptVersion` is `7`, `compactedText` is the whole boundary message the model sees, and `firstKeptEntryId` is `null`. `details.strategy` stays `"verbatim-lines"`, and boundaries written by earlier versions still replay
62
+ - Removed the background compaction API: `AgentSession.compaction`, `backgroundCompactionEnabled`, `backgroundCompactionThresholdPercent`, `awaitBackgroundCompaction()`, `onCompactionReady()`, `setBackgroundCompactionEnabled()` and `setBackgroundCompactionThresholdPercent()`; the `createAgentSession` option `compactionWake`; `RpcClient.setBackgroundCompaction()` and `setBackgroundCompactionThreshold()`; the `background_compaction` session event; `compaction_end.background` and `compaction_end.cacheMiss`; the root export `CompactionCacheMiss`; the RPC `get_state` fields `compaction`, `backgroundCompactionEnabled` and `backgroundCompactionThresholdPercent`; and the `background_compaction` RPC error code. The RPC commands `set_background_compaction` and `set_background_compaction_threshold` are still accepted and succeed without effect
63
+ - Removed the root exports `runVerbatimCompaction`, `startNewContextWindow`, `CompactionRung`, `CompactionRungResult`, `CompactionRunRequest`, `CompactionPlanOptions`, `CompactionUrgency`, `CompactionPlannerModel`, `CompactedTranscript`, `PlannerAuth`, `PlannerBudget`, `PlannerLimitClass`, `PlannerOutcome`, `PolicyRefusalPhase`, `ReleasedRange`, `SidecarDirectory`, `CompactionModelOverride`, `DEFAULT_BACKGROUND_COMPACTION_THRESHOLD_PERCENT`, `BACKGROUND_COMPACTION_RESULT_TYPE` and every `BackgroundCompaction*` export, including the background compaction error classes and their guards
64
+ - Removed automatic model routing. `model: "auto"` in subagents, agent files, workflow stages and the builtin workflows and agents now runs your default model (`defaultProvider`/`defaultModel`, the model you last chose with `/model`) at its `modelThinkingLevels` entry or `defaultThinkingLevel` unless the caller sets an effort, or the current session's model and thinking level when no default is configured or it has no credentials. No model is asked to choose, so an `auto` launch makes no routing request. `decisionModel`, `decide()`, `generateStructuredOutput()` and the `structured_output` tool are unchanged.
65
+ - Removed the `modelRouting` setting. Saved settings that still contain it load without an error, and its provider and model restrictions no longer limit `auto` or any fallback model. When Atomic starts, it deletes the key from your global settings file and from the settings file of a trusted project (or of a project when you trust it), keeps every other setting, and shows `Removed the "modelRouting" setting from global settings` (or `project settings`) once, in the chat when the interactive UI is open. When the file cannot be written, the key is ignored with a warning shown once, and again only after its value changes. A legacy `routerModel` key still migrates to `decisionModel`.
66
+ - Removed the routing SDK exports `routeExecutionModel`, `AutoRoutingInferenceError`, `ModelRoute`, `ModelRoutingContext`, `RoutingInferenceBounds`, `ParallelSlot`, `ModelRouterOutput`, `ModelConstraints`, `ModelConstraintsSchema`, `parseModelConstraints`, `eligiblePair`, `setsProviders`, `TaskNeeds`, `TaskNeedsSchema`, `parseTaskNeeds`, `mergeTaskNeeds`, `WORK_KINDS`, `DIFFICULTY_LEVELS`, `MISTAKE_COST_LEVELS`, `WorkKind`, `Difficulty`, `MistakeCost`, `reportModelRoutingDebug` and `ModelRoutingSettings`, along with `SettingsManager.getModelRouting()`, `ExtensionContext.getModelRouting()`, the `routerSelection` field of the exported `AgentIntent` and `TaskRecord` types, and the `model-routing` debug area and its `ATOMIC_MODEL_ROUTING_DEBUG` variable. A decision classifier's fallback to the chat model is now recorded only in the debug log, under the new `decision` debug area.
67
+ - Removed the model benchmark docs (`models/evals` and `models/model-selection`) and the script that refreshed them. When asked which model to choose, the system prompt no longer sends the agent to benchmark docs or benchmark sites.
68
+ - On Windows, `ensurePrivateTempDir()` and `assertPrivateDirectory()` no longer check a directory's owner and access list synchronously. They accept a directory already checked in the process; otherwise they start the check in the background, and `assertPrivateDirectory()` throws `TempDirRefusedError` ("its ownership is still being verified") while `ensurePrivateTempDir()` returns another private directory. **Migration:** use `ensurePrivateTempDirAsync()` and `assertPrivateDirectoryAsync()` on Windows to wait for the check ([#5285](https://github.com/bastani-inc/atomic/issues/5285))
69
+ - `history://sessions/<id>:N-M` selects saved entries rather than transcript lines. Search results, compaction recovery instructions and the restricted `session_history` tool use the same entry positions ([#5250](https://github.com/bastani-inc/atomic/issues/5250))
70
+ - Custom `SessionStore` implementations used with `history://` reads or searches must implement `readEntryRange(sessionId, query)`: `history://` no longer falls back to `load(sessionId)` on whole sessions ([#5250](https://github.com/bastani-inc/atomic/issues/5250))
71
+ - `Selector` single-select pickers now stop accepting input after `onSelect` by default, including Esc and Ctrl+C. For persistent or multi-stage pickers that call `setItems()` after a choice, pass `closeOnSelect: false`. If saving a choice fails, call `retrySelection()` to accept input again. `onConfirm` and `onCancel` still stop the picker ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
72
+ - `SelectorState.items` is now read-only, and item-list snapshots are frozen. Replace `state.items = rows` and array mutations with `state.setItems(rows)`, or use `selector.setItems(rows)` for a rendered picker. Copy a snapshot before modifying it ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
73
+ - Tool `renderCall` output is now a single header. Move multiline previews into `renderResult`, or return a `ToolBlock` with a body and result records. Atomic supplies the state glyph, elapsed metadata and connectors for ordinary renderers; explicit `renderShell: "self"` renderers keep their own framing ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
74
+ - `UserMessageSelectorComponent`, the `/fork` picker, is now a selector component instead of a `Container` wrapping a message list, so `Container` methods such as `addChild` are gone. `getMessageList()` returns the component itself; assigning `onSelect` or `onCancel` on it still replaces what Enter and Esc call ([#5256](https://github.com/bastani-inc/atomic/pull/5256))
75
+
76
+ ### Added
77
+
78
+ - Set `ATOMIC_EVENT_LOOP_BLOCK_MS` to a positive whole number of milliseconds to log every stall of the interactive UI or its engine at least that long, with the functions that were running and each process's event-loop delay for startup, the session and shutdown, to `event-loop-blocks.jsonl` in the agent directory or the file `ATOMIC_EVENT_LOOP_BLOCK_LOG` names. Nothing starts while it is unset. See [Finding what freezes the UI](/development#finding-what-freezes-the-ui)
79
+ - SDK: `BashToolOptions.commandPrefix` accepts a promise, awaited for each command, and asynchronous forms of helpers that used to block: `resolveInstalledGit`, `getGitStatusAsync`, `processSharedStorageSelectionAsync`, `processStorageEnvironmentAsync` and `AgentSession.getToolStatusAsync`. The SDK also exports `killProcessTree`, `containProcessTree`, `processTreeEnded` and the `ProcessTreeContainment` type for cross-platform child-process containment and cleanup, `trackDetachedChildPid`, `markDetachedChildExited` and `untrackDetachedChildPid`, so a child started in its own process group is stopped when Atomic exits or its terminal hangs up (once it exited, only what is left of its process group), and `killChildProcessTree`, which stops a child's tree without a Job object and never signals a pid whose process already exited
80
+ - SDK: `AgentSessionConfig.powerShellAvailable` says whether PowerShell is available for the `powershell` tool. `createAgentSession` resolves it without blocking and passes it; a session constructed without it still looks for PowerShell on `PATH` while it is constructed
81
+ - `@bastani/atomic/storage` adds `storageHomeDirAsync`, `workflowsStorageDirAsync`, `defaultJournalStoreDirectoryAsync`, `defaultSessionDatabasePathAsync`, `defaultSharedStoragePathAsync`, `storagePathBaseDirAsync`, `readClaimFileAsync`, `claimFileAtomicallyAsync`, `sameDirectoryAsync` and `selectStorageAsync`. The root SDK also adds `selectProcessStorageAsync`; synchronous storage helpers remain available
82
+ - SDK: `loadMcpConfigAsync`, `updateMcpServerConfigAsync`, `addMcpServerConfigAsync`, `removeMcpServerConfigAsync`, `savedProjectTrustAsync`, `latestSessionSnapshot`, `latestSessionSnapshotAsync`, `mapPathForCwdAsync`, `AuthStorage.createAsync()`, `SettingsManager.createAsync()`, `ModelRuntime.getCompatibilityRequestConfigAsync()` and `ModelRuntime.getCatalogInputsGenerationAsync()`. Existing synchronous forms retain their return types
83
+ - SDK: `getProjectTrustOptionsAsync`, `hasProjectTrustInputsAsync`, `hasTrustRequiringProjectResourcesAsync`, `buildSkillCatalogAsync`, `emptySkillCatalog`, `mapRestoredPathAsync`, `workspaceSessionCwdAsync`, `takeTakeoverMutexAsync`, `appendDebugRecordAsync`, `reportDebugAsync` and `flushDebugLog`. Synchronous helper forms remain available for existing integrations
84
+ - Ctrl+R (`app.history.search`) searches the prompts the session has recorded, newest first and each once, each with how long ago it was sent. A prompt an `input` hook rewrote is listed as the hook left it; ↑ and ↓ still walk through what you typed. Typing filters, Enter puts the chosen prompt in the composer without sending it, and Esc leaves the draft alone. See [Keybindings](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/docs/keybindings.md) ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
85
+ - Added `Selector` options `closeOnSelect` for persistent single-select pickers, `rightConfirms: false` to disable Right activation and `minDescriptionWidth` to reserve a value column beside right-hand tags before shortening row labels, `retrySelection()` to reopen a picker after a failed choice, and item `searchTextMode: "replace"` to search only explicit `searchText` instead of displayed labels, descriptions and tags ([#5224](https://github.com/bastani-inc/atomic/issues/5224), [#5347](https://github.com/bastani-inc/atomic/pull/5347))
86
+ - Added `applyAttachedComposer(style, label, placeholder, lines)` for custom chats to use Atomic's heavy accent rules and recipient placeholder. Labels and placeholders discard terminal controls, including when a draft scrolls beyond the editor ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
87
+ - `SelectorState` gains a `maxVisible` getter and `setMaxVisible()` to change how many rows a picker shows, and `setItems()` drops checked ids whose rows were removed ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
88
+ - Custom message renderers receive `options.cwd` when a chat supplies its working directory, so embedded views can format paths without relying on the process directory ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
89
+ - Extensions can use `ToolBlock`, `ToolBlockRecords`, `ToolBlockGroup` and `ToolBlockMarkdown` to render transcript items with shared state glyphs, indentation and safe Markdown ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
90
+ - Added `pi.registerAgentPanelSource(source)`, which adds an extension's own rows to the agent panel and `/tasks`, as the workflows extension adds its runs. A source lists `AgentPanelItem`s and notifies when they change, and can open, stop and answer them. Items with invalid fields are skipped, and a source that throws is reported as an extension error without hiding other rows. The SDK exports the panel's types (`AgentPanelSource`, `AgentPanelItem`, `AgentPanelState`, `AgentPanelActionResult`, `AgentPanelOpenOptions`, `AgentPanelAnswerOptions`, `AgentPanelSession`, `AgentPanelSourceRegistration`) and `agentPanelItems()`, `subscribeAgentPanel()`, `openAgentPanelItem()`, `stopAgentPanelItem()`, `answerAgentPanelItem()`, `dismissedAgentPanelItems()` and `agentPanelTaskId()`. `AgentPanelAnswerOptions.choiceIndex` identifies an option picked by its number without depending on its displayed label. See [pi.registerAgentPanelSource](docs/extensions/api-reference.md#pi-registeragentpanelsource-source) ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
91
+ - `atomic worker status` and the `workflow` tool's `status` action show the fleet controller, its latest scale events, the fleet-wide rate limits and each worker host's checkpoint shipping lag, and when each running child last recorded a step. `atomic worker metrics` caps the hosts it asks for at the capacity estimated from recent calls and worker time not spent waiting for tokens, holding limited growth at the current host count while a minute of history warms, and exports the combined capacity across every root as `rateCapHosts` and `atomic_fleet_rate_cap_hosts`, even when it does not reduce the target. An unused scope releases its hold after a minute without draws while its roots run children, not while its first host is booting or its claimed children are restoring their workspaces. Only started attempts contribute busy time to the estimate; bucket movement that reveals uncounted draws from older hosts disables that scope's cap for the observation window. See [The scaling signal](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/docs/guides/worker-hosts.md#the-scaling-signal) ([#4768](https://github.com/bastani-inc/atomic/issues/4768))
92
+ - `resolveAutoModel()` from `@bastani/atomic` returns the model and thinking level `model: "auto"` stands for, from the settings, the models that have credentials and the current session's model, without any model request
93
+ - `heldPrompts()` and the `HeldPrompt*` types let task-view hosts inspect, subscribe to, answer and cancel session-local prompts by session and prompt id. `routeNamesPrompt`, `isHeldPromptInput`, `isPresentationHostInput` and `watchHeldPromptAttention` support input routing and task attention ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
94
+ - `createAgentSession({ intercom: { group, reachable } })` gives a top-level session its own Intercom home group, ahead of `ATOMIC_INTERCOM_GROUP`, Intercom `config.json` and the project group, and the other groups it may reach; the session keeps its workflow extension. It lists, sends to, asks and joins only within those groups, can't leave its home group, and reach is one way, while replies to its asks still arrive. `session.intercom.setReachable(groups)` changes the reachable groups on the live session from its next Intercom call. Its workflow stages and subagents reach only their own groups, and the Intercom broker enforces the policy. ([#5352](https://github.com/bastani-inc/atomic/issues/5352))
95
+ - Added `AgentSession.setModel(model, { thinkingLevel })` to set a model and its reasoning level in one call. Unsupported levels clamp to a supported level, and `persist: true` saves both. RPC `set_model` also accepts `thinkingLevel` and rejects unrecognized values without switching the model. `RpcClient.setModel(provider, modelId, { thinkingLevel })` sends the option. Persisted `set_model` and `cycle_model` responses include `persistedDefaults` to distinguish saved startup preferences from session-only changes ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
96
+ - Added RPC `set_scoped_models` to replace the session's model-cycling scope and optionally save global model patterns through `enabledModels`. Scoped model searches and `cycle_model` use the updated list immediately ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
97
+ - `ATOMIC_STARTUP_TRACE` names a file to which Atomic appends each startup milestone (process start, first paint, engine ready, first provider request) with its wall-clock time; an interactive session's engine writes to the same file
98
+ - `WorkflowRunControl` gains optional `listResumeEntries()`, `resumeFromPicker()` and `deleteResumeEntry()` so `/resume` can list, resume and delete durable and live-paused workflow runs alongside saved sessions ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
99
+ - `/compact` takes optional instructions, for example `/compact keep the migration plan`. They are added to the boundary message, so the agent knows what to recover first, and they become a compactor model's query. SDK and extension code pass them as `session.compact({ query })` and `ctx.compact({ query })`, RPC clients as `{"type": "compact", "instructions": "..."}`, and `RpcClient.compact(instructions?)` takes them too
100
+ - An agent whose tools leave out `read` or `search`, such as a subagent or workflow stage with a restricted tool allowlist, gets one read-only tool, `session_history`, after compaction first clears its context, and a resumed session gets it whenever its resumed tools leave out `read` or `search`. `{"pattern": "<regex>"}` searches and `{"lines": "N-M"}` reads its own session's history; it reaches nothing else
101
+ - A compactor model set in `compactionModel` now replaces the context with its own output: Atomic sends the whole context the model sees once, framed by message kind and leaving out messages kept out of context, with the compaction instructions or else the latest request as the query, and waits at most 120 seconds. Output longer than 32,000 estimated tokens, or half of the automatic trigger on a small context window, counts as a failure and clears the context instead, as does output that would not fit below the automatic trigger together with the system prompt and the recovery instructions. If the endpoint returns the configured API key, it is replaced with `[redacted]` before the output is saved
102
+ - New root exports `buildBoundaryText`, `buildCompactorMessages`, `requestCompactorOutput`, `resolveCompactionModel`, `CompactorFailure`, `COMPACTOR_COMPRESSION_RATIO`, `COMPACTOR_REQUEST_TIMEOUT_MS`, `COMPACTED_OUTPUT_MAX_TOKENS` and `SESSION_HISTORY_TOOL_NAME`, and the types `CompactionForm`, `CompactionBackend`, `CompactionHistoryLocation`, `CompactionModelSelection`, `CompactorMessage` and `CompactorRequest`
103
+ - `ensurePrivateTempDirAsync()` and `assertPrivateDirectoryAsync()` for extensions and SDK integrations: they create or check a directory private to the current account without blocking, waiting for the Windows owner and access-list check ([#5285](https://github.com/bastani-inc/atomic/issues/5285))
104
+ - `ChatTranscriptComponent` accepts a cache key made of parts, compared one by one, as well as a string, so a host can name what an entry renders from without building a string for every entry on every frame.
105
+ - Workflow graphs open run details with `o`, including outputs, artifacts, events, nested blockers and logs. Broken workflow definitions appear beside runs in `/workflows`, with actionable error details and `/reload` guidance ([#5255](https://github.com/bastani-inc/atomic/pull/5255))
106
+ - `SessionInfo` and `ctx.ui.hostSessionPicker()` rows accept optional `title`, `detail` and `canDelete` fields (`SessionInfo` also accepts `resumeKind: "workflow"` for workflow-run rows), and the picker request accepts `title` for the heading and `variant: "runs"` for rows that are not sessions, which leaves the folder scope, named-only filter and path keys out. See [Host-native session picker](docs/tui/reference.md#host-native-session-picker) ([#5256](https://github.com/bastani-inc/atomic/pull/5256))
107
+ - In the fullscreen main chat, `/tasks` transcripts, subagent chats and workflow stage chats, a click on the header of a tool block, grouped-call summary or finished-agent card expands or collapses that block alone. Clicks in a block's output still select text, and Ctrl+O still sets every block at once. A click on a row of the agent panel below the prompt opens it, as Enter does
108
+ - `ToolBlockMarkdown` takes an optional default text style, such as a color, for the plain text it renders
109
+ - `hexColorAnsi(hex, "fg" | "bg")` returns the escape sequence for a `#rrggbb` color that follows `NO_COLOR` and `FORCE_COLOR` the way theme colors do, for extensions that paint their own colors
110
+
111
+ ### Changed
112
+
113
+ - SDK: a blueprint build's trust check (`BlueprintBuildConfig.trusted`) may return a promise
114
+ - An edit preview or result whose change needs more than 256 line edits shows the changed block replaced as a whole, and a modified line that differs by more than 64 word edits is shown without word highlights, instead of freezing the interface while the full diff is computed
115
+ - `/settings` uses the shared picker: a title, the rounded search box, the ❯ marker, a value column with › after a value that opens its own picker, the selected setting's description under the list, "↑ N more · ↓ N more" in place of a position counter, and one hint line that says whether enter or space changes the selected setting or opens its picker. The value pickers (decision model, compaction model, per-model thinking level, theme) mark the current value ● and the others ○ and open on the current value; esc clears a search before it goes back ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
116
+ - The editor's `@` and `/` menus end with one hint line listing the keys that work there: select, tab to complete, enter to run a command or insert a path, and esc to close. An `@` row no longer repeats a path its name already shows. `atomic config` lists its keys on one hint line under the list instead of beside the title ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
117
+ - The main chat's below-prompt task line is now the **agent panel**: one row per running or recent background subagent and workflow run, with its status glyph, name, task, elapsed time and tokens (a workflow run shows stage progress, a waiting question or a failure reason). A `● main` row leads the panel whenever it lists a subagent. Background shells are not rows: the footer counts the running ones (`2 shells`, plus `/tasks to manage` when the panel is empty), and `/tasks` lists them. ↓ (`app.agents.focus`) on an empty prompt focuses the panel; Enter or → opens a subagent's chat or a run's graph; `x` twice stops; finished rows fade and leave after a few minutes. A stage or subagent chat lists its own active tasks below its prompt in the same rows, and `renderTaskFooter` renders those rows. Workflow stage chats and subagent chats count their running background shells below their agent rows, for example `2 shells`, as the main chat's footer does, instead of listing each shell as a row. With no subagent rows the line adds `/tasks to manage`. `/tasks` still lists every shell ([#5224](https://github.com/bastani-inc/atomic/issues/5224), [#5405](https://github.com/bastani-inc/atomic/pull/5405), [#5448](https://github.com/bastani-inc/atomic/pull/5448))
118
+ - Subagent and workflow stage chats share attached composers, live-key hints and the `?` key overlay. A subagent chat names its sender and echoes its initial prompt. Heavy accent rules name the recipient, task and state (`debugger · #5220 spawn lock · 18m`), with a `Message debugger…` placeholder (`Answer debugger…` while it waits on a question). The main footer counts panel rows and pending questions. Opened from the agent panel, ← on an empty subagent prompt returns to the main chat ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
119
+ - `/tasks` lists workflow runs beside subagents and shells in one-line rows, grouped **Needs input**, **Working** and **Done** under a header with their counts. Space opens a compact peek card with a waiting run's question, a working subagent's message box, or a shell's status. `/` filters the list; Enter or → opens a graph, chat or shell output. A subagent waiting for input shows its question on its row, and Space, Enter or → opens its chat to answer it. A subagent whose turn you interrupted reads `stopped` with its time held, and still offers `x stop` until the task settles. A shell's input opens in the bottom sheet instead of a full-screen frame. Send acknowledgements stay with that input page and keep any newer draft. If a question changes while you type a reply, the reply is cleared with a notice, so it never reaches the newer question; Escape or ← still closes `/tasks` while an answer is sending. An item that finishes between the two presses of `x` requires acknowledgement, and a finished row cannot be dismissed before it is painted ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
120
+ - The host input form (`ctx.ui.hostInputForm`) shows on each field whether its value is ready, `✓` or `✗` with the reason, and refuses a fractional `integer`, and a `boolean` other than `true`, `false`, `on`, `off`, `1` or `0`, instead of reading it as off ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
121
+ - Inline navigation views temporarily hide extension widgets above and below the editor, including the agent panel, and queued-message and pending-shell previews so the view's rows and key hints stay visible. Closing the last inline navigation view restores their latest content ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
122
+ - Main chat, workflow stage chats and subagent chats share the same working line, with a whimsical verb, elapsed time and token count. A finished run leaves a dim past-tense summary until the next run. Chats opened mid-run pick up its elapsed time and output, and a request's token arrow points up while waiting for content and down as content arrives ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
123
+ - The jump-to-latest control is one centered, highlighted pill in main chat, stage chats and subagent chats. Its fill stays inside the label rather than painting a full-width band. Narrow terminals keep the label without its padding, and grouped-call summaries reserve space for their live expand hint ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
124
+ - Tool calls and notices share state glyphs, one-row headers, connected result rows and consistent expand hints, without tinted tool backgrounds. Consecutive finished reads, searches and directory listings group into compact summaries; shell calls also group in attached chats, while the main chat keeps each shell's preview visible ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
125
+ - `history://` reads and searches use output, entry and time budgets and return continuation URLs that preserve the selected ranges, pin the session or workflow run in progress, and avoid repeating sessions as new activity changes their order. Long sessions return outlines with links to user turns and compaction summaries. Cold JSONL and legacy listings label partial metadata and lower-bound message counts as estimated. SQL stores build trigram search indexes incrementally so later searches load matching entries rather than whole sessions; stores without an index scan in bounded pages. The index adds roughly the size of the rendered text to storage ([#5250](https://github.com/bastani-inc/atomic/issues/5250))
126
+ - On Linux, starting a shell or one of Atomic's own processes (worktree snapshot Git, `pi.exec`, the search tools' `rg` and `fd`, worktree setup) no longer pauses Atomic for a time that grows with its memory. Each start copied the whole process with `fork()`, which took about 65 ms per GB it held. A session holding 8 GB that started five processes a second kept its main thread busy 99.9% of the time, so subagents took minutes to start and the screen and Intercom lagged; it now stays under 2% at any size. `ATOMIC_HOST_SPAWN=child-process` restores Node's `child_process` for Atomic's own processes.
127
+ - Hosts running many agents stay responsive while they record worktree snapshots. A turn whose checkout did not change now starts 9 Git processes instead of 14, a changed one 17 instead of 21, and sessions that capture the same checkout at the same time compute its tree at most twice instead of once each. Each snapshot still records the checkout as it was after its turn. Restoring a worktree snapshot, such as when a workflow resumes in a fresh worktree, starts fewer Git processes: the store is asked once whether it already holds the snapshot's commit before fetching it, several missing commits are looked up together, and the restored worktree's Git directory is read from its `.git` file. Each Git process costs tens of milliseconds on Windows ([#5447](https://github.com/bastani-inc/atomic/pull/5447))
128
+ - Interactive startup no longer waits for its engine: the first frame, with an editor that takes input, appears while the engine still loads, and a host on a terminal starts the engine as it starts itself, so a prompt typed at launch goes out sooner. The standalone binary paints its first frame in about 270 ms instead of 940 ms on Linux and in about 450 ms instead of 1,290 ms on Windows; the npm package in about 940 ms instead of 1,570 ms on Linux and 2.3 s instead of 4.3 s on Windows
129
+ - The standalone binary for the build's own platform (Linux x64, Windows x64) ships a bytecode cache of its application bundle, so every process it starts, including `-p`, `--mode rpc`, subagents and workflow workers, loads in about 150 ms instead of 360 ms
130
+ - On Windows, finding PowerShell on `PATH` no longer starts `where` and waits for it, which cost every start about 25–40 ms before its first frame
131
+ - A background shell a subagent starts now belongs to that subagent. Its completion notice reaches only the subagent: while it runs, through its wake while it is released, and otherwise when it next runs. It is never sent to the chat or workflow stage that launched the subagent, and that chat's recovery status does not count it as a result shown there. The shell is listed in the subagent's own `/tasks`, not the launcher's, though it still runs in the launcher's task owner, so it outlives the subagent and Ctrl+X Ctrl+K still stops it. The main chat no longer receives the completion notices of shells it never started: a subagent's shell that finished after the subagent ended, was stopped or could not take the notice reported to the main chat, and so did a workflow stage's shell whose notice was still being written when the stage closed, each starting its own turn there, and the main chat's `/tasks` listed every subagent's shells ([#5342](https://github.com/bastani-inc/atomic/pull/5342))
132
+ - Tasks that finish together reach the model in one request that starts one turn, instead of one turn each. Retries after a storage error preserve saved results and deliver each notice once. A notice that arrives while the chat is working is read at that turn's next safe point and starts no turn of its own. Each finished task now shows as one line, such as `● Background command "npm test" completed (exit code 0) · 12s` or `◼ Task "sleep 300" was stopped by the user`, the same in the main chat, workflow stage chats and subagent views. Completion notices no longer display a model or reasoning line; `/tasks` and saved notice details retain those settings. Ctrl+O shows a shell's last output lines and an agent's full retained result ([#5342](https://github.com/bastani-inc/atomic/pull/5342))
133
+ - Clarified in `codemode`'s description, system-prompt guidance, and `searchTools()`/`describeTool()` hints that `subagent`, `workflow`, and other model-only tools (plus `intercom`'s model-only actions) cannot be called from inside a `codemode` script, and should be called directly as separate top-level tools when available in the session
134
+ - `openNodeSqliteDatabase` and `wrapNodeSqliteDatabase` connections hold a shared lock on `<file>-open.lock` while they are open, `file:` URIs included, so Atomic removes a local checkpoint journal only when none of them has it open. An `openNodeSqliteDatabase` read-only connection takes the lock only beside a database that has a `<file>-holders` directory, a `<file>-open.lock` or a `<file>.lock` file, and goes without it where it cannot create the lock file, such as in a read-only directory. Wrapped file-backed connections attempt the lock even for an untouched read-only database, because the caller's connection does not expose its read-only setting. Wrapping also works without the lock when the lock file is not writable, including when a Windows directory's permissions refuse new files ([#5317](https://github.com/bastani-inc/atomic/issues/5317))
135
+ - `SessionStartStep` has a `registering-intercom` step, for a subagent start that waits for its Intercom registration, and `sessionStartStepText(step)` describes a step in words. `SubagentChildPolicy.startup` gives an extension the child's start signal, lets it name the step the start waits in, and says whether the child has yet to start its first turn.
136
+ - `/resume` lists saved sessions and workflow runs together in counted groups, with two-line rows, type-to-search across both catalogs, Space preview and Enter to resume. `/resume <id>` accepts a full session or workflow id or a unique eight-character prefix. Edited workflow definitions require explicit confirmation before resuming, including after a restart. Refreshes keep loaded rows and the highlighted entry when workflow history is temporarily unavailable. The hint follows the selected row's available actions, and `?` shows the full key list when space is limited. Large session histories open and search without repeating a filesystem lookup for every row ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
137
+ - The fork picker, `/tree`, `atomic config`, the editor's `@` and `/` menus, and the `/mcp` and `/llama` pickers share the same picker look: the ❯ selection marker, a rounded search box, and "↑ N more · ↓ N more" in place of a position counter. The fork picker gains type-to-search, and `/mcp` and `/llama` lists longer than one screen get a search box ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
138
+ - A compaction boundary shows as one line in the main chat, subagent views in `/tasks` and workflow stage chats: `⚛ Context cleared · <tokens before> tokens`, or `⚛ Context compacted · <model or extension> · <before> → <after> tokens`. Ctrl+O (`app.tools.expand`) shows the whole boundary message, with the recovery instructions and any compacted text. Compaction never falls in the middle of a stream or between a tool call and its result: manual compaction stops the active run first, and no boundary is written while a tool call still waits for its result. Automatic compaction then clears the context before the request that continues with the result, and `/compact` reports that a tool call is still waiting
139
+ - Pool operations that wait for another process's lock now poll every 50 ms for up to 60 seconds, allowing a stopped holder's lock to expire after 30 seconds. Parking a seed polls at the same cadence for up to 120 seconds. Cancellation interrupts lock retries while a resume acquires a pool slot or adopts a seed, and while a prebuild acquires a pool slot. Ownership updates and cleanup finish before cancellation returns ([#5320](https://github.com/bastani-inc/atomic/issues/5320))
140
+ - Attached workflow stage chats, subagent chats and `/tasks` now keep up with typing and streamed output while workflows, subagents and background shells run, as the main chat does. A key there paints as soon as Atomic's engine answers it, instead of after a paced render on each side of the engine; streamed text paints on the next frame instead of the working animation's next tick; a chat over a long transcript renders only the entries that changed, instead of every entry on each frame and whenever a turn started or ended; and a full-screen stage or subagent chat no longer redraws the main chat hidden under it on every frame.
141
+ - A model request in a long session no longer holds the interactive engine, and every stage chat, subagent chat and `/tasks` keystroke with it, to copy the whole conversation when no extension handles `context` events.
142
+ - The default model for the `openai`, `openai-api`, `azure` and `openai-codex` providers is now GPT-6.2 Sol (`gpt-6.2-sol`) instead of GPT-6.1 Sol, at the same price. GitHub Copilot keeps GPT-6.1 Sol as its default (upstream [e56d35c](https://github.com/earendil-works/pi/commit/e56d35ce5eceedfa16eaf13a5f01a1f7b7271253), [cead615](https://github.com/earendil-works/pi/commit/cead615b48b80d1c61eecab2f0b576d16eeaf4c5))
143
+ - A subagent released while it waits on a call is listed under a new **Waiting** group in `/tasks` and as `waiting on <tool>` in the agent panel, with a still mark, instead of looking like a working agent; a chat's task footer and the task detail show it waiting too. Opening it shows its saved conversation without waking it, what it waits on, and the shells it launched that still run; `x` twice stops it as `quit` does instead of dismissing it; and once it wakes, its new run replaces its waiting row. Its "released while waiting" notice no longer starts a turn in the parent's chat. A waiting subagent's launch card in the parent's chat shows the same still `◌` mark and `Waiting on <tool>` as `/tasks`, instead of `⏸ Released · waiting`, which read as paused, and it shows the subagent running or finished again once it wakes or ends. Alt+W (`app.tasks.openWaited`) opens the output of the shell a waiting subagent waits on, from its chat or its `/tasks` row, and ← goes back; the chat's note and the `/tasks` hint name the key. Agent panel sources can report the new `waiting` state with a `waitingOn` text, and `ToolBlock` and `NoticeLine` take the new `waiting` status, so code that switches over `AgentPanelState`, `ToolBlockStatus` or `NoticeStatus` should handle `waiting` ([#5430](https://github.com/bastani-inc/atomic/pull/5430), [#5438](https://github.com/bastani-inc/atomic/pull/5438))
144
+ - A task heartbeat in chat is now a notice like the others instead of a shaded card: one `♥ Task heartbeat · N tasks still running` line, a `⎿` row per task (up to five, the rest counted in one row), and `/tasks to inspect` under them. Expanding it (Ctrl+O) adds each task's status and last output lines. The text the model reads is unchanged. For extensions, `NoticeStatus` gains `heartbeat` (the `♥` mark), and `HeartbeatBlock` draws a heartbeat in this form
145
+
146
+ ### Fixed
147
+
148
+ - A settings save no longer reverts a `settings.json` you saved in an editor at the same moment, including while Windows briefly refuses the file to Atomic: Atomic checks the file still holds what it read before each attempt to replace it, and merges its change into your save. A save the editor kept interrupting stays pending and is tried again when settings are next saved or as Atomic exits, and one that still cannot be saved at exit is reported on stderr instead of being dropped silently.
149
+ - Saving a setting no longer rewrites the other settings in the file: a legacy key such as an ignored `routerModel`, and keys Atomic does not recognize, are kept as written (their keys and values are unchanged; the file's formatting may change). Only the removed `modelRouting` setting is dropped. When a save replaces a legacy setting that carried other values, such as the old `skills` object's `enableSkillCommands`, it writes those values in their current form.
150
+ - An ignored legacy `routerModel` (because `decisionModel` is also set, or its value is invalid) is named once instead of at every start, and again only after its value changes. Atomic remembers what it showed in `shown-notices.json` in its agent directory and never rewrites `settings.json` for it.
151
+ - SQLite writers queued for the write lock keep their order and their places when the whole host stalls. A writer passes over another writer's ticket only after it has itself been running for the ticket's 2 s lifetime without seeing it refreshed, so a writer short of CPU after the stall keeps its place however soon the others look again, and a writer that starts after a stall queues behind the writers it found waiting instead of taking the lock ahead of them. A writer that commits after a stall longer than 20 s no longer removes the tickets of the writers stalled with it, and a ticket whose process has exited is still passed over 2 s after its last refresh.
152
+ - In `/resume`, Enter and → act only on the row on screen. If a background refresh moves or removes the selected row, the keys wait for the next frame, so another session or run is never resumed. A delete confirmation for a row that disappears is cancelled. Once the list has loaded, a refresh that adds a newer run above the highlighted row keeps that row highlighted, even if you have not moved the selection ([#5396](https://github.com/bastani-inc/atomic/pull/5396))
153
+ - `NO_COLOR` now turns off every theme color. Chat messages, tool blocks, the agent panel, `/tasks`, pickers, scrollbars, the OpenRouter row in `/login` and Mermaid diagrams used to keep their foreground and background colors while it was set. `FORCE_COLOR=0` turns colors off too, and `FORCE_COLOR=1` or `2` limits them to 256 colors. Under `NO_COLOR` or `FORCE_COLOR=0`, the name in a stage or subagent chat's input rule is no longer bold either. Agent completion notices no longer color their result preview, expand hint or loaded transcript when `NO_COLOR` is set, matching their notice line ([#5396](https://github.com/bastani-inc/atomic/pull/5396), [#5435](https://github.com/bastani-inc/atomic/pull/5435))
154
+ - Prompt search in subagent and workflow stage chats reads that chat's prompts, and Esc closes search or completion before interrupting the agent. An open picker shows its own hints instead of the surrounding chat's interrupt and back hints. Read-only chats no longer open an invisible search that takes scrolling keys. Template and skill prompts appear once as typed, with their send time, and a prompt an `input` hook rewrote appears and is saved as the hook left it, so text a hook redacted is not stored. Completion hints skip keys taken by app shortcuts or earlier menu actions, and `/settings` keeps values visible on narrow terminals without letting Right change or save them ([#5347](https://github.com/bastani-inc/atomic/pull/5347))
155
+ - Input sent while queued messages are paused, such as after Esc stops a turn, now runs `input` hooks once before it is queued, so a hook that rewrites or redacts it applies before it is delivered on resume and saved ([#5347](https://github.com/bastani-inc/atomic/pull/5347))
156
+ - `atomic config` names the settings file of the agent directory in use for global resources; with `ATOMIC_CODING_AGENT_DIR` set it showed `~/.atomic/agent/settings.json` ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
157
+ - `history://` multi-line searches accept quantified `\A` such as `\A?` and no longer let a lookahead match text past a search window that stopped before the end. With a lookbehind, `^` (without multi-line mode) and `\A` match at the start of the entry the match starts in, as they do without one. JSONL session reads retry when the file is truncated while a read resumes. A workflow run or stage session that started while a slow run listing was pending is found instead of being reported as missing or as belonging to another project, and a run listing that has not finished a minute after it started is replaced by a fresh one ([#5250](https://github.com/bastani-inc/atomic/issues/5250))
158
+ - Fixed navigation views such as `/workflows` showing a working indicator when no agent turn was active. A genuine turn's working line remains visible while navigation is open ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
159
+ - Fixed the host input form (`ctx.ui.hostInputForm`) writing terminal control sequences from field names, descriptions, choices, placeholders and prefilled values to the terminal, and drawing lines wider than a narrow terminal. Control characters now show escaped, and every line fits the width ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
160
+ - Fixed host input forms accepting integers outside JavaScript's safe integer range and silently rounding their value. They now show a validation error ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
161
+ - Fixed `ctx.ui.hostInputForm` never settling under the isolated interactive engine when the host could not read the form's fields, such as a non-string `description`. The call now rejects, and requests that cannot be sent release their pending form and abort listener ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
162
+ - A workflow or task notice sent as a turn ends now joins the next request of that run however long saving its card takes, instead of depending on the save finishing within a few internal steps and otherwise costing an extra request. Notices whose save is still pending from earlier in the turn do not hold up the next request
163
+ - A subagent's shells no longer leave a record per shell in the parent's task owner for as long as the parent runs: the record is released once the shell has finished and its completion notice is acknowledged, and the subagent can still wait on and read a finished shell while its result is kept
164
+ - Read results keep image-capability warnings visible and use the chat's theme, including custom renderer hosts ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
165
+ - Fixed a failing extension's agent panel source crashing the host during updates, navigation or cleanup, including rejected row values, thrown or frozen promises, promise subclasses with throwing species or constructors, throwing iterators or getters, and errors whose messages cannot be read safely. Well-behaved Promise subclasses keep their constructors, and rejection guards are scoped to the panel's own promises. Source reads limit rows and choices so oversized arrays or endless iterables cannot freeze the chat. Other sources remain usable, and failed stop and answer actions report their errors ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
166
+ - An idle agent panel stops repainting after retained workflow rows have faded, including when additional finished runs are folded into `+N more`, and does not tick while only paused or queued rows are shown. Finished or quit workflow runs opened from F2, `/workflows` or auto-attach start their retention timer, and a dismissed run reappears when resumed ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
167
+ - Fixed long runs of cursor-control prefixes or spaces stalling the attached chat composer's placeholder formatting, and removed the extra space after the cursor cell in attached placeholders ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
168
+ - The agent panel now hides malformed extension rows without losing their valid neighbours, rejects reserved task ids and malformed action results, strips terminal controls from duplicate-id errors, and keeps token and queue fields from sending terminal controls. A source that notifies while listing its rows no longer freezes the chat. Startup warnings remain visible, repeated ↓ presses open only one panel, and the panel can reopen after `/reload` while focused ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
169
+ - Fixed workflow elapsed time advancing at half speed in the agent panel. The panel, `/tasks`, attached labels and chat footers now use the same live clock, including newly visible rows and stopping tasks. Panel sources keep updating after reload and after changes raised while listing rows, without leaving stale scrolling after rows disappear. Also fixed selection falling forward to the next row when a selected row leaves, leading combining marks overflowing terminal rows, and rounded token counts such as `1000.0k` instead of `1.0M`. Panel updates reuse unchanged source data and rendered rows, avoid rebuilding task rows while hidden, and combine bursts of changes into one refresh to keep animations responsive ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
170
+ - Fixed slow navigation in `/tasks` when a session has many background tasks, including task detail and chat pages receiving streaming updates, while keeping task updates and elapsed times live. Dismissing a row from `/tasks` refreshes the idle panel, and the agent panel and attached-chat task footers stay responsive with large task lists ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
171
+ - `/tasks` binds each workflow reply to the question shown when typing starts, clears the draft with a notice if the question changes before the reply is sent, and stops capturing reply text when the question disappears. Numbered choices preserve their original option through `AgentPanelAnswerOptions.choiceIndex`, even when sanitizing terminal controls makes two labels look alike. It reports reply and stop failures even after the list closes, formats peek-card tool activity through the shared tool header, and no longer marks failed workflow opens as viewed ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
172
+ - Panel, `/tasks` and chat hints omit unavailable or shadowed keybindings, list `enter/→` on the main row, and at narrow widths drop lower-priority actions whole while keeping the way out and `? keys`. Escape interrupts only a live turn, compaction or tool, and an interrupted attached subagent stops looking active in its label, panel row and `/tasks` while remaining available to resume. Reopened stage chats keep the interrupted turn's elapsed time and tokens even when its final update arrives later. Attached subagent chats align their initial prompt echo with the transcript, render follow-up sends through the registered Intercom renderer, preserve long and multiline launch prompts and image attachments, and use the current turn's tokens and start time when opened mid-turn ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
173
+ - Interrupting a tool no longer drops the last known request input from the subagent's token count ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
174
+ - Running tool timers and child-specific renderers now follow the session shown in attached chats. Tool state badges no longer mistake a command's printed status words or permission errors for cancellation or rejection, and a failed custom result renderer keeps its hidden raw output private. Expanded tool blocks retain complete fallback arguments, and shell output keeps its truncation notice and link to the saved output ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
175
+ - Cancelling a prebuild or restore while Git moves its worktree into place no longer leaves that worktree in the pool slot or target. Git's move is never stopped midway, and the cancelled restore removes the worktree it moved; a restore cancelled just before the move notices the cancellation before the move starts, instead of moving the worktree and then removing it. A worktree of the same repository that appears at the target during the move is refused and kept, instead of being returned as the restored one ([#4748](https://github.com/bastani-inc/atomic/issues/4748))
176
+ - Model searches initially select the best match, and effort arrows work with SS3 terminal key sequences. Provider searches no longer match sign-in status or method text. Long dialog titles and options wrap instead of losing text, and selector hints show only available actions ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
177
+ - Isolated `/scoped-models` changes update both model searches and Ctrl+P cycling. Scope saves run in order and report failures, and engine reconnection no longer overwrites a newer model or reasoning choice. RPC model responses report saved defaults only for `persist: true` ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
178
+ - Pickers ignore a repeated Enter or click instead of answering twice, and an extension dialog shown again after another dialog repaints in the current theme. Ctrl+C cancels a filtered picker with Kitty and modifyOtherKeys keyboard protocols too; `/scoped-models` keeps its clear-search-first behavior ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
179
+ - Isolated interactive mode applies the reasoning level chosen in `/model` and keeps model and reasoning changes made by extensions during `/model` or Ctrl+P without saving session-only changes. Saving a model choice no longer copies project model defaults or scoped-model lists into global settings ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
180
+ - Replacing a conversation clears its unread badge, while same-conversation snapshots retain actual arrivals even before their first paint. Loading older history does not count as new output ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
181
+ - Custom results remain visible after a pending tool block finishes. Closing or rebuilding chats no longer revives disposed renderers, disposes a reused component too early, or lets one cleanup failure block other rows. Failed message renderers keep their raw body private, and custom messages no longer gain duplicate blank rows ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
182
+ - Switching sessions no longer flashes tool output from a different chat while a renderer starts. Attached chats use the executing child's tool renderers when available, and unavailable child-only renderers show a warning instead of raw private fields, including when a live child no longer provides that renderer ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
183
+ - A prompt typed while Atomic starts is no longer sent twice on Windows: a stray cursor report reached the startup input as F3, left a "C" in the editor and sent it with the next prompt. F1–F5 and Page Up/Down sent as `ESC [ [ …` no longer type a letter into the startup input
184
+ - Keys typed while Atomic started are no longer lost when a startup dialog (project trust, dirty checkout, first-run setup) takes the terminal: they are captured as the draft, and keys typed once the dialog holds the terminal reach the dialog. Text the system still holds when the dialog opens stays in the draft too instead of reaching the dialog, even when a busy machine is slow to read it: the dialog waits, for up to 2 seconds, until Atomic has read that input, then waits a further 25 ms as before. On Windows the console holds typed input until Atomic reads it, under both Node and the standalone binary, so the wait covers both ([#5241](https://github.com/bastani-inc/atomic/issues/5241))
185
+ - Restoring saved model catalogs at startup no longer fails while another Atomic process saves its catalog, and no longer takes the save lock once per provider, which cost about 180 ms before the first frame on Windows
186
+ - On Windows, saving credentials or a refreshed model catalog no longer fails with `EPERM`, losing the save, when another Atomic process is reading `auth.json` or `models-store.json` at that moment: the save waits for the read to finish
187
+ - Model chains skip providers without credentials before sending a request, and skip every remaining model of a provider after it rejects credentials. A pinned model with no fallbacks is never replaced, and missing-credential errors name the affected models and providers ([#5353](https://github.com/bastani-inc/atomic/pull/5353)).
188
+ - Fixed sibling agent directories under one parent, such as `ATOMIC_CODING_AGENT_DIR=/x/a1` and `/x/a2`, sharing one session, workflow, pool, artifact, workspace and Intercom store in `/x`: the default `~/.atomic/agent` keeps its store at `~/.atomic`, while custom agent directories store under `<agentDir>/workflows` and resolve relative storage and secret paths against `<agentDir>`. One eligible agent directory can adopt an existing parent store once, with a one-time notice, and `atomic storage status` shows the resolved path without creating a missing agent directory. Concurrent processes of one directory keep the same store across restart. Distinct existing parent-relative targets remain readable, including explicit JSONL session directories beside older local sessions when another profile adopted worker-host state first. Siblings selecting the same target stay isolated, including through symlinks or hard links. History stays accessible after an adopting directory or its parent is renamed or moves across filesystems, including through symlinks or junctions, for never-created SDK agent directories beside ordinary source folders, and on filesystems without hard links. An identifiable original retains its adopted default store when copied, and copies keep their own history after the original is removed, including history in a newly configured database with a parent counterpart. An adopter reopened after a move keeps its history when later copies use its former name. When an original and its backup cannot be told apart, neither uses the parent's default store, even if the original starts first. If the physical parent holds the adopted store, the first to claim the parent-relative session directory keeps those sessions, including when opened through a symlink or junction. To keep both the parent's default store and its sessions, start Atomic once after moving and before copying. Default storage and relative-target ownership follow the current home when the default agent directory is moved or mounted elsewhere. Read-only agent directories can use writable storage without saving a new home decision. A writable agent directory no longer needs a writable parent just to select its own store, and changing `HOME` cannot expose an existing default agent's store to a custom profile. Prior-use detection no longer overlooks established profiles in large directories, and repeated storage lookups and resource discovery are faster without delaying token-file changes ([#5242](https://github.com/bastani-inc/atomic/issues/5242))
189
+ - A fast foreground shell command no longer delivers a stray `Background shell completed` notice after its own result when the command exits before Atomic has finished starting it. The model was shown the command's result a second time, as a background shell's, in chats and workflow stages alike ([#5333](https://github.com/bastani-inc/atomic/pull/5333))
190
+ - The interface and its engine no longer stop responding while Atomic reads or writes files and runs short commands in the background of a session: settings, credentials, project trust, keybindings and debug logs; session lists, headers, claims and markers; skills, prompts, themes, context files and resource reloads; package installs and updates; tool artifacts, archives, notebooks and todos; blueprint builds and workspaces; switching, forking or starting a session; private temp directories, their cleanup and tool output spilled to disk; finding the shell for the bash and PowerShell tools; worktree snapshots, their restores and LFS downloads; git lookups for the footer, worktrees and `/tools`; SQLite file selectors in read, search and write; watching the footer's git files and a custom theme on Windows; the clipboard, the external editor, `/export`, `/share`, `/changelog` and `/import`; the summary of a branch left in `/tree`; MCP configuration, logs and OAuth locks; and model catalog refreshes. Each now runs without blocking the event loop, so typing, rendering and streamed output keep going
191
+ - MCP configuration edits preserve concurrent asynchronous changes and publish through atomic replacement when the filesystem supports it. A synchronous edit refuses to overwrite an in-flight asynchronous edit
192
+ - SQLite writer queue checks, lock records, writer hand-offs and open-lock cleanup no longer block the interface. A transaction waits for its hand-off, and closing waits for pending lock records before releasing its open lock
193
+ - The session picker no longer resolves each listed session's path on the disk every time it draws or filters; it resolves symlinks once, off the event loop
194
+ - Sessions with many background tasks or queued messages stay responsive: task rows, the task list and queued-message confirmation take time proportional to the number of tasks or messages, not its square
195
+ - On Windows, the isolated engine no longer freezes while the terminal is busy drawing, for example a long resumed session, and RPC mode no longer stalls while its client reads stdout slowly: records are written to stdout off the event loop
196
+ - The fullscreen interface no longer freezes for up to seconds while resuming, paging through or quitting a long session (10,000+ entries): frames render only what is on screen, the session's end appears at once while its history fills in behind it, and the exit transcript is written without stalling input
197
+ - Closing a session while a subagent's or workflow's completion notice is still being saved no longer fails with `Cannot dispose a session with a queued protected reconciliation`. The saved notice stays pending, and the session that next opens the transcript delivers it
198
+ - Fixed Windows shell discovery accepting a directory named `bash.exe`, `pwsh.exe` or `powershell.exe` at a configured `shellPath` or a known installation location as the shell ([#5324](https://github.com/bastani-inc/atomic/issues/5324))
199
+ - On Windows, routine process-start checks for locks, sessions, worktrees and blueprint builds no longer freeze Atomic when the native reader is unavailable. PowerShell runs in the background with a five-second timeout; uncontended credential saves and new sessions do not wait for it. Synchronous trust and credential saves can still recover stale locks whose former mutex owner's process id was reused, using bounded reads only during that takeover. Interrupted blueprint builds also list processes in the background ([#5315](https://github.com/bastani-inc/atomic/issues/5315))
200
+ - Worktree-snapshot maintenance no longer rewrites a whole large legacy blob just to record its unknown age. Refreshing or storing it again leaves that age for collection, which stamps at most 16 MiB of small blobs per transaction and moves every inline blob over 1 MiB into chunks regardless of age, writing at most 16 MiB per chunk transaction. Blobs remain readable during conversion, and moving a blob preserves its existing grace window. Publishing the chunks still frees the old inline pages under the write lock in time proportional to the blob's size. Interrupted moves resume on the next collection, and deleting a blob removes its partial chunks even when an older client deletes it. A completed move marks the journal so builds from before chunked blobs refuse the database ([#5327](https://github.com/bastani-inc/atomic/pull/5327))
201
+ - Fixed a session that ended staying in memory for as long as a timer, connection or other long-lived resource that an extension started while the session was in use, as a service started once and shared by later sessions does.
202
+ - Fixed each `/reload` keeping the extensions it replaced in memory for as long as the session ran: every new generation of the session's extensions kept the one before it, so each reload added about 10 MB that was never released.
203
+ - On a busy Windows machine, a shell command or a subagent's named-worktree checkout that finished is no longer reported as failed with `Windows stdin worker stop was not confirmed`, including when the command's input thread has not run yet by the time its processes have all ended ([#5340](https://github.com/bastani-inc/atomic/pull/5340), [#5202](https://github.com/bastani-inc/atomic/issues/5202), [#5450](https://github.com/bastani-inc/atomic/pull/5450))
204
+ - In `/resume`, pressing ↓ or Page Down while a search matched nothing left no session selected once the search matched again, so Enter did nothing until you moved the selection ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
205
+ - Ctrl+C cancels the resume picker while searching or previewing on terminals using Kitty or modifyOtherKeys input, instead of only clearing the search or closing the preview ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
206
+ - `/resume`, `/tree` and `atomic config` keep their headers, search boxes and scroll hints within the terminal width after a narrow resize, avoiding oversized-line errors ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
207
+ - Sessions with cyclic parent links, such as imported session headers, remain visible in threaded resume history instead of disappearing ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
208
+ - The MCP manager refreshes empty-state messages and action hints with live menu changes, including when a server is removed while its menu is open ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
209
+ - A session or workflow row being deleted cannot be resumed, renamed or deleted again while the operation is pending. Other rows can still be resumed, cancellation remains available, failed deletions can be retried without late errors unlocking a newer attempt, and the active session is not offered for deletion ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
210
+ - Resume previews keep the end of long paths and mark shortened titles and summaries with an ellipsis instead of silently cutting them ([#5256](https://github.com/bastani-inc/atomic/pull/5256)).
211
+ - Replacing a submission echo with a prompt rewritten by an `input` hook, or inserting a custom message ahead of a streaming reply, now touches only the tail of the chat container instead of scanning the whole transcript, keeping prompt swaps fast in long sessions ([#5323](https://github.com/bastani-inc/atomic/issues/5323))
212
+ - Corrected new-message counts when a transcript insertion or removal is followed by another change that restores its earlier child count ([#5323](https://github.com/bastani-inc/atomic/issues/5323))
213
+ - An automatic compaction of a very large session no longer spends its whole planning time limit and then starts a fresh context window that kept only a few lines, shown as `Context cleared (compaction degraded)`. Compaction now makes no planning call, so it cannot time out this way, and the whole earlier conversation stays in session history for the agent to recover
214
+ - On Windows, concurrent resumes and `atomic blueprint prebuild` runs retry temporary `EPERM` refusals when creating pool or seed lock directories, instead of failing or treating reusable worktrees and seeds as dirty or unavailable. Refusals that persist for 10 seconds still report a failure, and locks another process holds still count as busy ([#5320](https://github.com/bastani-inc/atomic/issues/5320))
215
+ - Temporary-file cleanup failures no longer make holding a pooled worktree fail after its record was published, or leave a claimed worktree marked as resetting. A retained temporary file cannot corrupt a later record write, and discarding an old lease cannot delete a newer admission in the same process ([#5320](https://github.com/bastani-inc/atomic/issues/5320))
216
+ - A prebuild that cannot acquire the seed lock for parking now keeps its completed build output in the idle worktree instead of deleting it, while still reporting the lock failure ([#5320](https://github.com/bastani-inc/atomic/issues/5320))
217
+ - A resume that detects it lost its parked-seed lock stops adoption instead of moving or deleting a replacement seed. It releases the restored worktree's lease before falling back to a fresh restore. Once adoption removes the manifest, later lock loss skips seed-directory cleanup but keeps the adopted worktree and its build output ([#5320](https://github.com/bastani-inc/atomic/issues/5320))
218
+ - Fixed the libSQL / Turso example in the storage guide crashing the process on Windows without an error message when it closed a local file database: the native `libsql` 0.5 driver closed the connection's SQLite handle twice. The example now holds a statement while each connection closes, and for a local file `close()` runs two garbage collections before it resolves, so the file is released when `close()` returns, as `@bastani/atomic-storage-libsql` does. See [Bring your own driver](docs/storage.md#bring-your-own-driver) ([#5325](https://github.com/bastani-inc/atomic/issues/5325))
219
+ - On Windows, Atomic no longer freezes while it checks that a temp directory is private. The native module reads the owner and access list on a worker. Windows session-directory creation and ownership checks use asynchronous filesystem operations. If the native module is unavailable or cannot read the directory, PowerShell reads it asynchronously, with one timeout per caller shared across its candidate hosts; when Atomic runs from PowerShell 7, that Windows PowerShell fallback no longer inherits PowerShell 7's module path, which kept it from loading `Get-Acl` and failed the check of who owns the session temporary directory. Checks start in the background when a session starts and are cancelled and awaited when their session closes. Bash spill files, saved tool results, temporary extension installs, subagent artifacts, the GitHub clone cache and design workflow artifacts wait for verification without blocking. Every directory refused before is still refused ([#5285](https://github.com/bastani-inc/atomic/issues/5285), [#5324](https://github.com/bastani-inc/atomic/issues/5324))
220
+ - Private temporary storage is no longer reused through a directory link, a runtime directory opened to other accounts, or a replaced root, including a Windows replacement with the same creation time. Runtime directory paths with trailing separators or `..` cannot bypass the checks. Temporary installs and caches fall back to another private directory instead ([#5285](https://github.com/bastani-inc/atomic/issues/5285))
221
+ - Concurrent snapshot restores and cleanup for one repository no longer race while Git reads or changes its worktree registrations, which could fail with a missing `locked` or `commondir` file. Checkouts and verification still run in parallel ([#4951](https://github.com/bastani-inc/atomic/issues/4951))
222
+ - A subagent's `steer()`, `followUp()`, `prompt()` and `sendUserMessage()` calls no longer accept input that the child never answers as it finishes. Calls after admission closes fail with `Subagent execution is terminal and cannot accept messages`. Asynchronous input hooks and several messages sent during settlement keep admission open until their input is answered, and a steering hook can await a nested user message without deadlocking. Turn-starting Intercom messages, extension messages and background completion notices accepted during release with steering or follow-up delivery are saved and delivered once on wake, including batches retried after a card write fails or the session reopens. Context-excluded extension messages keep their saved cards without reaching the model, including cards recovered after a lost write acknowledgement, and reopening does not show saved cards again. Retrying a failed keyed write reuses its saved card and input even after another message or model turn, and concurrent identical keyed retries share the same recovery. A conflict with another writer no longer blocks later messages. A deleted session reports its deletion once, then keeps later cards in memory ([#5318](https://github.com/bastani-inc/atomic/issues/5318))
223
+ - In the interactive CLI, questions and extension dialogs stay with the session that asked them. A subagent's question waits in its own task view, and a workflow stage's question in its stage chat, instead of opening in and blocking the launching chat. Forms keep their drafts when left and show countdowns for timed dialogs. SDK input adapters receive the asking session's identity; plain RPC clients and SDK hosts without a task inspector keep receiving child dialogs through their existing presentation ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
224
+ - Workspace Git commands now receive their full timeout budget, and reported timeout durations stay accurate when the system clock changes.
225
+ - On Windows, a queued SQLite writer no longer fails with `writer-queue-unusable` when another process deletes its stale ticket while it is being refreshed. The writer recreates the ticket in its existing queue position and continues waiting. Other permission failures still report an error ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
226
+ - A resume after Atomic was killed during a blueprint build no longer builds the worktree again while a step of the killed build may still run there. A step Atomic had started but not yet recorded could not be stopped, so two builds ran in one worktree. A build Atomic was killed during is now cancelled and never continued: the next resume stops the steps the build recorded, sets the worktree aside, restores and builds a fresh worktree, and warns that a step may still be running in the set-aside worktree, naming it and the build's logs. No session or restore uses a set-aside worktree again, nothing is built in it even when the fresh restore fails, and it is removed once no process of yours works in it. Worktrees another session has taken over are left alone. A build whose lock cannot be written warns that a kill during it would go unnoticed. A build stopped by Ctrl-C or a signal, and Windows, are unchanged ([#5379](https://github.com/bastani-inc/atomic/issues/5379))
227
+ - A folder scan that completes after a session was deleted no longer brings the deleted session back into `/resume`, and a workflow changing catalog kind keeps the same run locked while deletion is pending ([#5256](https://github.com/bastani-inc/atomic/pull/5256))
228
+ - A resumed session whose checkout could not be restored, and that continued in the directory the resume started in, no longer has its file tools read and write the old worktree of that checkout, which may be gone or in use by another session. Paths under the working directory it left now resolve under the directory it continues in ([#5379](https://github.com/bastani-inc/atomic/issues/5379))
229
+ - A worktree restore whose check after Git moved its worktree into place fails, for example because `git worktree list` fails, now removes that worktree instead of leaving it at the target. A restore stopped after the move deletes its worktree's files after releasing the repository's lock, so other restores of that repository no longer wait. For a crash record that carries the identity of the directory Git created, by its device, inode and birth time, cleanup, including the sweep after a crash, never deletes a file the restore did not put there. It only deletes files whose bytes are exactly what the checkout wrote, or the beginning of it that a checkout stopped while writing leaves, never one a clean filter would merely map back to the snapshot. A directory of yours at the staging path is kept, even one holding a copy of the old `.git` file or of the restore's files, and so is a file you added to the restore's worktree: it is set aside with the worktree, and the warning names where. A crash record without that identity, from an earlier version or a restore killed right after Git created its directory, has its directory deleted file by file only when each file is exactly what the checkout wrote, including the version of a file at the worktree's `HEAD`. The warning about a kept directory now says it may hold your files, and `removeRestoredWorktree` refuses a staging or set-aside directory instead of deleting it ([#4748](https://github.com/bastani-inc/atomic/issues/4748))
230
+ - When another process wrote to a session during a run, the run that this conflict stopped no longer saves anything more. That covers its prompt, messages sent to the session while the run was saving, and, when the session closes, the reconciliation of a workflow notice; the notice stays pending until the session is opened again. Each of these had landed among the other process's messages and made that process's run fail too. `atomic -p` now reports such a run once, the way it reports a conflict at startup: "Another process wrote to session", exit code 1. `getPersistenceFailure()` returns the conflict as `conflict`. A message or prompt refused this way is still shown, once however often it is sent again, and listed in `getPersistenceFailure().unsavedMessages`; one sent again just as the stopped run ends, before the chat has shown that run ending, no longer leaves an extra copy in the chat as if it were still waiting to be sent. Unsaved prompts and messages stay listed after a context refresh or a command that starts no run, until the same input is saved or `discardUnsavedInput()` drops it; `getUnsavedInput()` lists them, at most 64, and counts what was dropped beyond that ([#5135](https://github.com/bastani-inc/atomic/issues/5135))
231
+ - Another SQLite connection in the same process no longer fails with "database is locked" when it writes while a transaction that waited for the write lock behind another process takes it. That transaction used to hold the lock while it removed its queue entry, and the other connection's wait for the lock blocked the process, so neither could finish.
232
+ - Closing a session takes at most 60 seconds, even when a save never settles, such as a turn's message save to a storage backend that stopped responding. Past that bound, `dispose()` stops waiting and rejects with `ShutdownFailed`, naming the shutdown step it was waiting on and how many session operations were still running. The remaining cleanup steps still start, in order, without being waited for.
233
+ - When a SQLite writer gives up waiting for the write lock, it names the holding process only from that process's record of taking the lock. When the holder stopped before recording that, the timeout lists the processes trying for the lock as `holderCandidates` instead of naming the one that has waited longest, which could be a writer stopped in the queue.
234
+ - A finished agent's result preview in chat renders its Markdown the way the chat does instead of showing the raw first line: bold, italic, code, headings, lists and links are styled in the muted preview tone, so markers such as `**`, backticks and `#` no longer appear around them. HTML blocks stay literal, as they do in the chat. The collapsed first line is cut to the width with `…`, and `NO_COLOR` shows plain text
235
+ - On Windows, opening a SQLite store no longer fails with `Access is denied` when another process removes its open-lock file at the same moment, for example while a restarted workflow host removes an ended run's local checkpoint journal. The open waits for the removal to finish and takes a fresh lock ([#5317](https://github.com/bastani-inc/atomic/issues/5317))
236
+ - Several Atomic processes starting at the same time on a fresh agent directory (workflow pool workers, parallel CLI runs) no longer fail with `Cannot read storage home decision`. A process that found no storage home decision reported it unreadable when another process published one a moment later; it now settles on the published decision. A decision or storage owner record that is briefly empty, half written, or busy is waited for, for up to 1 second, and one that stays unreadable or is malformed still fails the start. Publishing a decision retries for up to 1 second while another process holds the file busy (a Windows sharing violation), and a permission error after Atomic could write to the agent directory now fails the start instead of continuing without a recorded decision; only a directory Atomic cannot write to is treated as read-only. A start also no longer fails when its leftover staged copy of the decision cannot be removed yet ([#5429](https://github.com/bastani-inc/atomic/issues/5429))
237
+ - On Windows, installing a downloaded tool (such as `rg`, `fd` or Git) no longer fails when Atomic was started from PowerShell 7 and `tar.exe` cannot extract the zip archive: the Windows PowerShell fallback's `Expand-Archive` no longer inherits PowerShell 7's module path, which made it fail with `Cannot find an overload for "ExtractToDirectory"`. Every Windows PowerShell command Atomic runs for its own work now starts this way; the `powershell` tool and blueprint steps still run with your environment unchanged
238
+ - When an Atomic process installing git was killed while others waited for it, a waiter no longer fails with "Git is unavailable: ... could not be staged ... install lock" because the lock it had just taken was removed by another waiter. A waiter now moves an abandoned lock aside in one atomic rename and puts back at once any lock it moved that another installer had just taken, so a waiter that was paused while taking over no longer makes a second installer download git. A waiter whose new lock disappears before it is stamped tries for the lock again, and later installs remove what a waiter killed during a takeover left behind ([#4322](https://github.com/bastani-inc/atomic/issues/4322))
239
+ - `atomic storage migrate` on PostgreSQL now says when the `pg_trgm` extension is not installed and the role could not install it, as on Azure Database for PostgreSQL and Azure HorizonDB until `pg_trgm` is added to `azure.extensions`. Without it, searches of session history read each session a page at a time instead of using their index. The storage guide now covers Azure flexible servers (direct and through the built-in PgBouncer) and Azure HorizonDB. A write the server refuses because it accepts reads only (SQLSTATE `25006`) is now retried as `StorageTransientError` with the new code `read-only-server`, so a failover that leaves the old primary read-only for a moment recovers; a call still refused after its retries fails with a message that names both causes, a URL naming a read replica or read-only endpoint, or a server that is read-only for now, instead of a generic `StorageUnavailableError`
240
+ - The install scripts install a pinned `ATOMIC_VERSION` (or `--ref`/`-Ref`) without the GitHub API. They confirm the release on github.com, so a network that used up GitHub's 60 unauthenticated API requests an hour no longer fails with `curl: (56) The requested URL returned error: 403` and `failed to resolve the GitHub release`. When the API is still needed and refuses, the installer says why: a release that does not exist is reported as not found, and a rate limit names `GITHUB_TOKEN` as the fix. A pinned rerun of a release that is already installed and healthy makes no request at all, and the installers now record the launcher's hash at install time: an installed launcher that is empty or no longer matches it is reinstalled instead of being kept
241
+ - The install scripts no longer leave `atomic` unable to start when they are interrupted or run twice at once. Only one installer works on an install directory at a time, and a second one waits for the first (`ATOMIC_INSTALL_LOCK_TIMEOUT`, 30 minutes by default). On macOS and Linux the switch to a new version is a single rename, so `atomic` always starts a complete version even if the installer is killed partway, including a `--force` reinstall of the version in use. A later run removes the partial files a killed installer left. On Windows, the installer no longer runs the installed `atomic.exe` to read its version, keeps `%VAR%` entries in your User PATH as written, and does not pass `GITHUB_TOKEN` or `GH_TOKEN` to the programs it starts
242
+
243
+ ### Removed
244
+
245
+ - The `app.workflows.scrollUp` and `app.workflows.scrollDown` keybindings (Alt+K/J, Alt+PageUp/PageDown), with the workflow list they scrolled; the agent panel replaces it ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
246
+ - Removed background compaction, with the `/settings` items **Background compaction** and **Background compaction threshold**
247
+ - Removed the line-range compaction planner and its fallback-model planning, split planning after mid-output refusals, the policy-refusal summary fallback, classifier compaction, line-range Morph compaction, the fresh-context-window step, the `Recalled context` section, `<keepContext>` protection and its release budget, and the planner's diagnostic sidecar files
248
+
249
+ ## [0.9.89-alpha.2] - 2026-11-18
250
+
251
+ `NO_COLOR` now gives plain output everywhere, compact notices replace chat cards, and installs, shared libSQL servers and multi-node Intercom recover from interrupted and concurrent work.
252
+
253
+ **Interface**
254
+
255
+ - **Plain output under `NO_COLOR`.** `NO_COLOR` and `FORCE_COLOR=0` turn off every theme color, bold and italic in chats, tool blocks, `/tasks`, pickers, the workflow graph and run details. `FORCE_COLOR=1` or `2` limits colors to 256, and extensions follow the same rules with `hexColorAnsi()` ([#5435](https://github.com/bastani-inc/atomic/pull/5435), [#5441](https://github.com/bastani-inc/atomic/pull/5441), [#5454](https://github.com/bastani-inc/atomic/pull/5454))
256
+ - **Notices instead of cards.** Task and workflow heartbeats, workflow question and undelivered-message notices, and a stage chat's own notices use the chat's compact notice form instead of cards, and Ctrl+O expands their details ([#5440](https://github.com/bastani-inc/atomic/pull/5440), [#5453](https://github.com/bastani-inc/atomic/pull/5453))
257
+ - **Waiting subagents show as waiting.** A released subagent's launch card shows `◌ Waiting on <tool>` instead of reading as paused, and Alt+W opens the shell it waits on ([#5438](https://github.com/bastani-inc/atomic/pull/5438))
258
+ - **Shell counts in stage and subagent chats.** Their running background shells show as one count, such as `2 shells`, as in the main chat ([#5448](https://github.com/bastani-inc/atomic/pull/5448))
259
+
260
+ **Install and Windows**
261
+
262
+ - **Install scripts survive rate limits and interruptions.** A pinned version installs without the GitHub API, a rate limit names `GITHUB_TOKEN` as the fix, and an interrupted or concurrent install no longer leaves `atomic` unable to start ([#5443](https://github.com/bastani-inc/atomic/pull/5443), [#5452](https://github.com/bastani-inc/atomic/pull/5452))
263
+ - **Tool and Git installs.** Downloaded tools install when Atomic starts from PowerShell 7, and processes waiting on a killed Git install take over its lock without failing ([#5436](https://github.com/bastani-inc/atomic/pull/5436), [#4322](https://github.com/bastani-inc/atomic/issues/4322), [#5434](https://github.com/bastani-inc/atomic/pull/5434))
264
+ - **Busy Windows machines.** A supervised command that ran to completion, such as a named worktree's Git command, no longer fails with `Windows stdin worker stop was not confirmed` ([#5202](https://github.com/bastani-inc/atomic/issues/5202), [#5450](https://github.com/bastani-inc/atomic/pull/5450))
265
+
266
+ **Storage, workflows and Intercom**
267
+
268
+ - **Shared libSQL servers.** Statements that sqld answers with `SQLITE_SCHEMA` or `no such table` while other stores change the schema run again, and workflow journals wait for the write lock and refuse corrupt counters without writing ([#5456](https://github.com/bastani-inc/atomic/pull/5456), [#5462](https://github.com/bastani-inc/atomic/pull/5462), [#5464](https://github.com/bastani-inc/atomic/issues/5464), [#5467](https://github.com/bastani-inc/atomic/pull/5467), [#5439](https://github.com/bastani-inc/atomic/pull/5439))
269
+ - **PostgreSQL on Azure.** `atomic storage migrate` says when `pg_trgm` is missing, the storage guide covers Azure flexible servers and HorizonDB, and Atomic retries a write that a briefly read-only server refuses after a failover ([#5444](https://github.com/bastani-inc/atomic/pull/5444))
270
+ - **Multi-node Intercom.** A message to a subagent starting on another machine waits for it instead of failing with `Session not found`, a reply after a broker crash stays retryable when the database is slow, and a send to a session that just quit is reported as queued for its return instead of uncertain ([#5352](https://github.com/bastani-inc/atomic/issues/5352), [#5458](https://github.com/bastani-inc/atomic/pull/5458), [#5461](https://github.com/bastani-inc/atomic/pull/5461), [#4997](https://github.com/bastani-inc/atomic/issues/4997), [#5455](https://github.com/bastani-inc/atomic/pull/5455), [#5457](https://github.com/bastani-inc/atomic/pull/5457))
271
+ - **Fallback stages stop the session they replace.** After a context overflow, the old session no longer keeps calling tools in the stage's worktree next to the new one ([#5446](https://github.com/bastani-inc/atomic/pull/5446))
272
+ - **Faster worktree restores.** Restoring a worktree snapshot, such as when a workflow resumes in a fresh worktree, starts fewer Git processes, which cost tens of milliseconds each on Windows ([#5447](https://github.com/bastani-inc/atomic/pull/5447))
273
+
274
+ ### Added
275
+
276
+ - `hexColorAnsi(hex, "fg" | "bg")` returns the escape sequence for a `#rrggbb` color that follows `NO_COLOR` and `FORCE_COLOR` the way theme colors do, for extensions that paint their own colors
277
+
278
+ ### Changed
279
+
280
+ - A task heartbeat in chat is now a notice like the others instead of a shaded card: one `♥ Task heartbeat · N tasks still running` line, a `⎿` row per task (up to five, the rest counted in one row), and `/tasks to inspect` under them. Expanding it (Ctrl+O) adds each task's status and last output lines. The text the model reads is unchanged. For extensions, `NoticeStatus` gains `heartbeat` (the `♥` mark), and `HeartbeatBlock` draws a heartbeat in this form
281
+ - A waiting subagent's launch card in the parent's chat shows the same still `◌` mark and `Waiting on <tool>` as `/tasks`, instead of `⏸ Released · waiting`, which read as paused, and it shows the subagent running or finished again once it wakes or ends. Alt+W (`app.tasks.openWaited`) opens the output of the shell a waiting subagent waits on, from its chat or its `/tasks` row, and ← goes back; the chat's note and the `/tasks` hint name the key. `ToolBlock` and `NoticeLine` take the new `waiting` status, so code that switches over `ToolBlockStatus` or `NoticeStatus` should handle `waiting`.
282
+ - Workflow stage chats and subagent chats count their running background shells below their agent rows, for example `2 shells`, as the main chat's footer does, instead of listing each shell as a row. With no subagent rows the line adds `/tasks to manage`. `/tasks` still lists every shell
283
+ - Restoring a worktree snapshot, such as when a workflow resumes in a fresh worktree, starts fewer Git processes: the store is asked once whether it already holds the snapshot's commit before fetching it, several missing commits are looked up together, and the restored worktree's Git directory is read from its `.git` file. Each Git process costs tens of milliseconds on Windows
284
+
285
+ ### Fixed
286
+
287
+ - On Windows, installing a downloaded tool (such as `rg`, `fd` or Git) no longer fails when Atomic was started from PowerShell 7 and `tar.exe` cannot extract the zip archive: the Windows PowerShell fallback's `Expand-Archive` no longer inherits PowerShell 7's module path, which made it fail with `Cannot find an overload for "ExtractToDirectory"`. Every Windows PowerShell command Atomic runs for its own work now starts this way; the `powershell` tool and blueprint steps still run with your environment unchanged
288
+ - `NO_COLOR` now turns off every theme color. Chat messages, tool blocks, the agent panel, `/tasks`, pickers, scrollbars, the OpenRouter row in `/login` and Mermaid diagrams used to keep their foreground and background colors while it was set. `FORCE_COLOR=0` turns colors off too, and `FORCE_COLOR=1` or `2` limits them to 256 colors. Under `NO_COLOR` or `FORCE_COLOR=0`, the name in a stage or subagent chat's input rule is no longer bold either
289
+ - When an Atomic process installing git was killed while others waited for it, a waiter no longer fails with "Git is unavailable: ... could not be staged ... install lock" because the lock it had just taken was removed by another waiter. A waiter now moves an abandoned lock aside in one atomic rename and puts back at once any lock it moved that another installer had just taken, so a waiter that was paused while taking over no longer makes a second installer download git. A waiter whose new lock disappears before it is stamped tries for the lock again, and later installs remove what a waiter killed during a takeover left behind ([#4322](https://github.com/bastani-inc/atomic/issues/4322))
290
+ - `atomic storage migrate` on PostgreSQL now says when the `pg_trgm` extension is not installed and the role could not install it, as on Azure Database for PostgreSQL and Azure HorizonDB until `pg_trgm` is added to `azure.extensions`. Without it, searches of session history read each session a page at a time instead of using their index. The storage guide now covers Azure flexible servers (direct and through the built-in PgBouncer) and Azure HorizonDB. A write the server refuses because it accepts reads only (SQLSTATE `25006`) is now retried as `StorageTransientError` with the new code `read-only-server`, so a failover that leaves the old primary read-only for a moment recovers; a call still refused after its retries fails with a message that names both causes, a URL naming a read replica or read-only endpoint, or a server that is read-only for now, instead of a generic `StorageUnavailableError`
291
+ - The install scripts install a pinned `ATOMIC_VERSION` (or `--ref`/`-Ref`) without the GitHub API. They confirm the release on github.com, so a network that used up GitHub's 60 unauthenticated API requests an hour no longer fails with `curl: (56) The requested URL returned error: 403` and `failed to resolve the GitHub release`. When the API is still needed and refuses, the installer says why: a release that does not exist is reported as not found, and a rate limit names `GITHUB_TOKEN` as the fix. A pinned rerun of a release that is already installed and healthy makes no request at all, and the installers now record the launcher's hash at install time: an installed launcher that is empty or no longer matches it is reinstalled instead of being kept
292
+ - The install scripts no longer leave `atomic` unable to start when they are interrupted or run twice at once. Only one installer works on an install directory at a time, and a second one waits for the first (`ATOMIC_INSTALL_LOCK_TIMEOUT`, 30 minutes by default). On macOS and Linux the switch to a new version is a single rename, so `atomic` always starts a complete version even if the installer is killed partway, including a `--force` reinstall of the version in use. A later run removes the partial files a killed installer left. On Windows, the installer no longer runs the installed `atomic.exe` to read its version, keeps `%VAR%` entries in your User PATH as written, and does not pass `GITHUB_TOKEN` or `GH_TOKEN` to the programs it starts
293
+
5
294
  ## [0.9.89-alpha.1] - 2026-11-18
6
295
 
7
296
  Compaction clears the context and lets the agent recover from history, `model: "auto"` runs your default model, and a new agent panel keeps subagents and workflows in view while the interface stays responsive under load.
@@ -4,6 +4,37 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.89] - 2026-11-18
8
+
9
+ ### Added
10
+
11
+ - Reach policies: a session whose SDK host set `createAgentSession({ intercom: { group, reachable } })` registers its home and reachable groups with the broker, which refuses every list, peek, `groups`, join, leave, presence update, send and ask outside them, never queues a refused send, and keeps reach one way while always delivering a reply to a received ask. The policy is registered again after a reconnect or broker restart, a live `setReachable` applies from the session's next call, and the session's workflow stages and subagents reach only their own groups. Sends and asks keep the reach in force when the broker reads them, including while held for a starting or restoring subagent across machines, and an unknown outcome is not retried under a different reach. Narrowing reach during registration does not prevent connecting. Broker protocol 4; an older broker is replaced, and one that can't be fails the session's connection with `IntercomReachUnsupportedError` ([#5352](https://github.com/bastani-inc/atomic/issues/5352))
12
+
13
+ ### Changed
14
+
15
+ - Incoming messages and Intercom/Supervisor calls use shared compact transcript blocks. Message bodies render Markdown with inert links, long bodies expand with the configured tool-output key, and supervisor framing stays in the header instead of repeating machine instructions in the body. Older peers and saved messages without display metadata retain their full sanitized body ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
16
+
17
+ ### Fixed
18
+
19
+ - Starting or reaching the broker, its spawn lock and its configuration no longer block the session's event loop
20
+ - A supervisor reply with a long run of whitespace after a code fence no longer stalls reply parsing
21
+ - Fixed a workflow stage being unable to answer the session that launched its run. The stage saw who had written to it, but `send` to that name failed with `Session not found`, because the launcher is outside the run's group. Now a session that received a message from a sender outside its groups can answer that sender with `send` or `ask`, using the name or ID the message shows. The same applies to a supervisor answering its child and to a child answering its supervisor. The return path leads only to the session that wrote: a different session that later takes its name or ID gets nothing, and the path closes when the sender quits for good. It allows at most 3 messages within 30 minutes of the sender's latest message; a retried or re-delivered message opens nothing, and a stage that started after the message was queued for it counts from its start. A stage that took its route while its host was still queuing the message can answer too. A sibling stage the message did not address gains nothing, pattern sends (a name glob or `subagents:*`) never use the path, and listing is unchanged. It works the same with multi-node routing, including an answer to a sender that went offline.
22
+ - Fixed a later message from a sender sometimes reaching a session before an earlier message from the same sender. A message arriving while the session was busy waited until it went idle, while a later one could be admitted at once, for example when the session had started waiting on a task, two messages arrived together, or a closed workflow stage relayed one to its owner. Every way a message reaches a session now keeps one sender's messages in the order they arrived, including when an earlier message takes longer to save, and a finished subagent's completion notice follows every message that reached its parent before it.
23
+ - Fixed a multi-node Intercom broker on Windows freezing for seconds as it started, up to 30 s on a loaded host ([#5252](https://github.com/bastani-inc/atomic/issues/5252)). It read its host's identity and the start time of an earlier instance's process by running PowerShell and `reg` synchronously, so nothing else in the broker ran meanwhile, including the sessions connecting to it. These commands now run without blocking it. A process reads its host's identity once and every broker it starts uses it.
24
+ - Fixed sends to a subagent that was launching, being resumed, or being relaunched after a restart failing with `Session not found` until it registered, or with "has not reconnected to Intercom" after a restart. Sends to it by name, from its launching session or any session in its group, now wait for it until it registers. They then reach it once each, in order, before its first turn, as context for that turn. A subagent whose start fails tells the waiting senders why. A message to a subagent that was still starting under a supervisor on another machine also no longer fails with `Session not found` instead of waiting for the subagent. With multi-node routing, the broker confirmed the subagent's reservation to its supervisor before other machines' brokers could see it, so a session that sent to the subagent right away, on another machine, found nothing to wait for. The broker now waits up to 2.5 s for other machines to be able to find the reservation, and that of a released subagent, before it confirms it. If the shared database fails the write or does not answer in that time, the confirmation says the reservation is not published yet: it holds sends on the supervisor's machine at once, and the broker writes it again at each lease renewal (every 10 s) until other machines can find it, unless first the subagent connects, the reservation is released, or a newer reservation of the subagent replaces it. Such a reservation is not written afterwards, and a retry that was already writing when that happened ends what it wrote. Before, a failed write was never tried again, so sessions on other machines kept getting `Session not found` for that subagent ([#5352](https://github.com/bastani-inc/atomic/issues/5352))
25
+ - Fixed a subagent failing to start with `Extension startup failed: …intercom…: Invalid supervisor authorization` when the session that launched it had released or restarted since, as a workflow stage that finishes its turn does. The broker's refusal of a stale supervisor capability no longer ends the child's start: the child keeps registering with the capability for up to 30 seconds, as after a broker restart where a child reconnects before its supervisor has restored it, and keeps it once its supervisor is back. A capability still refused after that, such as a forged one or one whose supervisor has gone, is dropped: the child registers without it and its start goes on. `contact_supervisor` then reports that its supervisor authorization was refused, and the child offers the capability again on its next connection.
26
+ - Fixed sibling custom agent directories (`ATOMIC_CODING_AGENT_DIR`) resolving relative shared `storage` paths and the default `storage.sqlite` file in their parent directory instead of inside `<agentDir>`, while keeping `~/.atomic` for the default `~/.atomic/agent` and preserving an adopted parent store ([#5242](https://github.com/bastani-inc/atomic/issues/5242))
27
+ - With multi-node routing, a reply sent right after the broker that kept its question's only route crashed is refused as retryable again (`route_unavailable`, "try again") when the shared database is slow. Before, a slow lookup skipped that check, so the reply got the final "Pending question route does not authorize this public reply" and was never retried. If the database stops answering during that check, the reply is refused as retryable within 5 s, where before it could wait for good. A reply that no route could authorize is still refused for good ([#4997](https://github.com/bastani-inc/atomic/issues/4997)).
28
+ - With multi-node routing, a send to a session on another broker that quit cleanly just before is again reported as queued for its return, instead of waiting out the receipt wait and being reported uncertain. The recipient's broker could claim the message for the session in the moment it left, and that claim, which never reached the session, counted as an attempt to deliver it.
29
+
30
+ ## [0.9.89-alpha.2] - 2026-11-18
31
+
32
+ ### Fixed
33
+
34
+ - With multi-node routing, a reply sent right after the broker that kept its question's only route crashed is refused as retryable again (`route_unavailable`, "try again") when the shared database is slow. Before, a slow lookup skipped that check, so the reply got the final "Pending question route does not authorize this public reply" and was never retried. If the database stops answering during that check, the reply is refused as retryable within 5 s, where before it could wait for good. A reply that no route could authorize is still refused for good ([#4997](https://github.com/bastani-inc/atomic/issues/4997)).
35
+ - Fixed a message to a subagent that was still starting under a supervisor on another machine sometimes failing with `Session not found` instead of waiting for the subagent. With multi-node routing, the broker confirmed the subagent's reservation to its supervisor before other machines' brokers could see it, so a session that sent to the subagent right away, on another machine, found nothing to wait for. The broker now waits up to 2.5 s for other machines to be able to find the reservation, and that of a released subagent, before it confirms it. If the shared database fails the write or does not answer in that time, the confirmation says the reservation is not published yet: it holds sends on the supervisor's machine at once, and the broker writes it again at each lease renewal (every 10 s) until other machines can find it, unless first the subagent connects, the reservation is released, or a newer reservation of the subagent replaces it. Such a reservation is not written afterwards, and a retry that was already writing when that happened ends what it wrote. Before, a failed write was never tried again, so sessions on other machines kept getting `Session not found` for that subagent ([#5352](https://github.com/bastani-inc/atomic/issues/5352))
36
+ - With multi-node routing, a send to a session on another broker that quit cleanly just before is again reported as queued for its return, instead of waiting out the receipt wait and being reported uncertain. The recipient's broker could claim the message for the session in the moment it left, and that claim, which never reached the session, counted as an attempt to deliver it.
37
+
7
38
  ## [0.9.89-alpha.1] - 2026-11-18
8
39
 
9
40
  ### Added
@@ -52,6 +52,20 @@ async function hostCommandOutput(
52
52
  return undefined;
53
53
  }
54
54
 
55
+ /**
56
+ * The environment for a host command. Windows PowerShell started from a PowerShell 7 parent inherits PowerShell 7's
57
+ * `PSModulePath`, finds PowerShell 7's copies of its built-in modules first and fails to load them, so `Get-Process`
58
+ * and `Get-CimInstance` fail. Without the variable Windows PowerShell uses its own module path; the other host commands
59
+ * do not read it.
60
+ */
61
+ export function hostCommandEnvironment(env: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv {
62
+ const result: NodeJS.ProcessEnv = {};
63
+ for (const [key, value] of Object.entries(env)) {
64
+ if (key.toLowerCase() !== "psmodulepath") result[key] = value;
65
+ }
66
+ return result;
67
+ }
68
+
55
69
  /** What the identity sources read from the host; tests pass fakes. */
56
70
  export interface HostIdentitySources {
57
71
  readonly platform: NodeJS.Platform;
@@ -74,7 +88,7 @@ export const systemSources = (configDir: string = getIntercomDirPath()): HostIde
74
88
  const child = execFile(
75
89
  command,
76
90
  [...args],
77
- { encoding: "utf8", timeout: HOST_COMMAND_TIMEOUT_MS, windowsHide: true },
91
+ { encoding: "utf8", env: hostCommandEnvironment(), timeout: HOST_COMMAND_TIMEOUT_MS, windowsHide: true },
78
92
  (error, stdout) => (error ? reject(error) : resolve(stdout)),
79
93
  );
80
94
  child.stdin?.end();