@bastani/atomic 0.9.89 → 0.9.90-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (868) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +13 -0
  3. package/dist/builtin/intercom/README.md +3 -1
  4. package/dist/builtin/intercom/broker/broker.ts +35 -10
  5. package/dist/builtin/intercom/broker/client.ts +42 -1
  6. package/dist/builtin/intercom/index.bundle.mjs +400 -67
  7. package/dist/builtin/intercom/package.json +1 -1
  8. package/dist/builtin/intercom/skills/intercom/SKILL.md +24 -5
  9. package/dist/builtin/intercom/types.ts +5 -0
  10. package/dist/builtin/mcp/package.json +1 -1
  11. package/dist/builtin/subagents/CHANGELOG.md +27 -0
  12. package/dist/builtin/subagents/README.md +18 -20
  13. package/dist/builtin/subagents/agents/worker.md +1 -1
  14. package/dist/builtin/subagents/package.json +1 -1
  15. package/dist/builtin/subagents/skills/feedback/SKILL.md +2 -2
  16. package/dist/builtin/subagents/skills/qlty/SKILL.md +2 -2
  17. package/dist/builtin/subagents/skills/qlty/references/commands.md +45 -12
  18. package/dist/builtin/subagents/skills/qlty/references/quickstart.md +102 -21
  19. package/dist/builtin/subagents/skills/subagent/SKILL.md +18 -17
  20. package/dist/builtin/subagents/skills/tdd/LICENSE.txt +50 -0
  21. package/dist/builtin/subagents/skills/tdd/SKILL.md +10 -0
  22. package/dist/builtin/subagents/skills/tdd/tests.md +16 -0
  23. package/dist/builtin/subagents/skills/tmux/LICENSE.txt +24 -0
  24. package/dist/builtin/subagents/skills/tmux/SKILL.md +20 -1
  25. package/dist/builtin/subagents/skills/tmux/scripts/find-sessions.sh +19 -10
  26. package/dist/builtin/subagents/skills/tmux/scripts/wait-for-text.sh +231 -19
  27. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1911 -845
  28. package/dist/builtin/web-access/CHANGELOG.md +6 -0
  29. package/dist/builtin/web-access/index.bundle.mjs +158 -34
  30. package/dist/builtin/web-access/package.json +1 -1
  31. package/dist/builtin/workflows/CHANGELOG.md +36 -0
  32. package/dist/builtin/workflows/builtin/{chunk-tjk7jp9a.js → chunk-akmcsx14.js} +1 -1
  33. package/dist/builtin/workflows/builtin/{chunk-913nwrzq.js → chunk-erpybg3c.js} +109 -30
  34. package/dist/builtin/workflows/builtin/{chunk-e07n7en6.js → chunk-wpgpr31s.js} +1 -1
  35. package/dist/builtin/workflows/builtin/goal.js +2 -2
  36. package/dist/builtin/workflows/builtin/index.js +3 -3
  37. package/dist/builtin/workflows/builtin/ralph.js +2 -2
  38. package/dist/builtin/workflows/package.json +1 -1
  39. package/dist/builtin/workflows/skills/bro/SKILL.md +1 -1
  40. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_2.md +19 -19
  41. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_haiku_5_5.md +2 -2
  42. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +3 -3
  43. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +2 -2
  44. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_1_sol.md +2 -2
  45. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_1_terra.md +3 -3
  46. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_2.md +3 -2
  47. package/dist/builtin/workflows/skills/show-me/SKILL.md +2 -2
  48. package/dist/builtin/workflows/skills/skill-creator/scripts/run_eval.py +29 -24
  49. package/dist/builtin/workflows/skills/teach/SKILL.md +8 -8
  50. package/dist/builtin/workflows/skills/unslop/SKILL.md +29 -51
  51. package/dist/builtin/workflows/src/durable/journal/internal.d.ts +10 -5
  52. package/dist/builtin/workflows/src/durable/journal/sharded-run-journal.d.ts +6 -3
  53. package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +25 -3
  54. package/dist/builtin/workflows/src/extension/index.bundle.mjs +4444 -1356
  55. package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +2544 -568
  56. package/dist/builtin/workflows/src/index.js +2467 -549
  57. package/dist/builtin/workflows/src/local-worker-entry.mjs +2544 -568
  58. package/dist/cli/storage-command.d.ts +6 -0
  59. package/dist/cli/storage-command.d.ts.map +1 -1
  60. package/dist/cli/storage-command.js +11 -0
  61. package/dist/cli/storage-command.js.map +1 -1
  62. package/dist/cli/storage-search-database.d.ts +18 -0
  63. package/dist/cli/storage-search-database.d.ts.map +1 -0
  64. package/dist/cli/storage-search-database.js +90 -0
  65. package/dist/cli/storage-search-database.js.map +1 -0
  66. package/dist/cli/storage-search-session.d.ts +5 -0
  67. package/dist/cli/storage-search-session.d.ts.map +1 -0
  68. package/dist/cli/storage-search-session.js +133 -0
  69. package/dist/cli/storage-search-session.js.map +1 -0
  70. package/dist/core/agent-session-accessors.d.ts.map +1 -1
  71. package/dist/core/agent-session-accessors.js +107 -1
  72. package/dist/core/agent-session-accessors.js.map +1 -1
  73. package/dist/core/agent-session-bash.d.ts.map +1 -1
  74. package/dist/core/agent-session-bash.js +2 -0
  75. package/dist/core/agent-session-bash.js.map +1 -1
  76. package/dist/core/agent-session-boundaries.d.ts +2 -0
  77. package/dist/core/agent-session-boundaries.d.ts.map +1 -1
  78. package/dist/core/agent-session-boundaries.js +9 -4
  79. package/dist/core/agent-session-boundaries.js.map +1 -1
  80. package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
  81. package/dist/core/agent-session-custom-message-commit.js +2 -1
  82. package/dist/core/agent-session-custom-message-commit.js.map +1 -1
  83. package/dist/core/agent-session-detached-tools.d.ts +3 -2
  84. package/dist/core/agent-session-detached-tools.d.ts.map +1 -1
  85. package/dist/core/agent-session-detached-tools.js +156 -41
  86. package/dist/core/agent-session-detached-tools.js.map +1 -1
  87. package/dist/core/agent-session-events.d.ts +2 -1
  88. package/dist/core/agent-session-events.d.ts.map +1 -1
  89. package/dist/core/agent-session-events.js +59 -23
  90. package/dist/core/agent-session-events.js.map +1 -1
  91. package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
  92. package/dist/core/agent-session-extension-bindings.js +53 -4
  93. package/dist/core/agent-session-extension-bindings.js.map +1 -1
  94. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  95. package/dist/core/agent-session-message-queue.js +2 -1
  96. package/dist/core/agent-session-message-queue.js.map +1 -1
  97. package/dist/core/agent-session-methods.d.ts +23 -3
  98. package/dist/core/agent-session-methods.d.ts.map +1 -1
  99. package/dist/core/agent-session-methods.js.map +1 -1
  100. package/dist/core/agent-session-models.d.ts.map +1 -1
  101. package/dist/core/agent-session-models.js +2 -0
  102. package/dist/core/agent-session-models.js.map +1 -1
  103. package/dist/core/agent-session-prompt.d.ts +1 -1
  104. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  105. package/dist/core/agent-session-prompt.js +14 -3
  106. package/dist/core/agent-session-prompt.js.map +1 -1
  107. package/dist/core/agent-session-queue-pause.d.ts +2 -1
  108. package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
  109. package/dist/core/agent-session-queue-pause.js +8 -4
  110. package/dist/core/agent-session-queue-pause.js.map +1 -1
  111. package/dist/core/agent-session-retry.d.ts +7 -3
  112. package/dist/core/agent-session-retry.d.ts.map +1 -1
  113. package/dist/core/agent-session-retry.js +113 -112
  114. package/dist/core/agent-session-retry.js.map +1 -1
  115. package/dist/core/agent-session-runtime.d.ts +15 -0
  116. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  117. package/dist/core/agent-session-runtime.js +26 -0
  118. package/dist/core/agent-session-runtime.js.map +1 -1
  119. package/dist/core/agent-session-services.d.ts +5 -2
  120. package/dist/core/agent-session-services.d.ts.map +1 -1
  121. package/dist/core/agent-session-services.js +6 -6
  122. package/dist/core/agent-session-services.js.map +1 -1
  123. package/dist/core/agent-session-tasks.js.map +1 -1
  124. package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
  125. package/dist/core/agent-session-tool-registry.js +4 -2
  126. package/dist/core/agent-session-tool-registry.js.map +1 -1
  127. package/dist/core/agent-session-types.d.ts +19 -1
  128. package/dist/core/agent-session-types.d.ts.map +1 -1
  129. package/dist/core/agent-session-types.js.map +1 -1
  130. package/dist/core/agent-session.d.ts +11 -0
  131. package/dist/core/agent-session.d.ts.map +1 -1
  132. package/dist/core/agent-session.js +8 -0
  133. package/dist/core/agent-session.js.map +1 -1
  134. package/dist/core/anthropic-thinking-guard.d.ts +16 -1
  135. package/dist/core/anthropic-thinking-guard.d.ts.map +1 -1
  136. package/dist/core/anthropic-thinking-guard.js +124 -7
  137. package/dist/core/anthropic-thinking-guard.js.map +1 -1
  138. package/dist/core/auth-storage.d.ts +3 -0
  139. package/dist/core/auth-storage.d.ts.map +1 -1
  140. package/dist/core/auth-storage.js +10 -0
  141. package/dist/core/auth-storage.js.map +1 -1
  142. package/dist/core/detached-tool-output.d.ts +4 -0
  143. package/dist/core/detached-tool-output.d.ts.map +1 -0
  144. package/dist/core/detached-tool-output.js +48 -0
  145. package/dist/core/detached-tool-output.js.map +1 -0
  146. package/dist/core/event-loop-monitor.d.ts +4 -1
  147. package/dist/core/event-loop-monitor.d.ts.map +1 -1
  148. package/dist/core/event-loop-monitor.js +84 -159
  149. package/dist/core/event-loop-monitor.js.map +1 -1
  150. package/dist/core/export-html/index.d.ts.map +1 -1
  151. package/dist/core/export-html/index.js +26 -4
  152. package/dist/core/export-html/index.js.map +1 -1
  153. package/dist/core/export-html/saved-agent-cards.d.ts +15 -0
  154. package/dist/core/export-html/saved-agent-cards.d.ts.map +1 -0
  155. package/dist/core/export-html/saved-agent-cards.js +255 -0
  156. package/dist/core/export-html/saved-agent-cards.js.map +1 -0
  157. package/dist/core/export-html/saved-agent-viewer.js +101 -0
  158. package/dist/core/extensions/builtin-subagent-record-writer.d.ts +11 -0
  159. package/dist/core/extensions/builtin-subagent-record-writer.d.ts.map +1 -0
  160. package/dist/core/extensions/builtin-subagent-record-writer.js +33 -0
  161. package/dist/core/extensions/builtin-subagent-record-writer.js.map +1 -0
  162. package/dist/core/extensions/loader-api.d.ts +1 -1
  163. package/dist/core/extensions/loader-api.d.ts.map +1 -1
  164. package/dist/core/extensions/loader-api.js +9 -2
  165. package/dist/core/extensions/loader-api.js.map +1 -1
  166. package/dist/core/extensions/loader-bindings.d.ts +7 -0
  167. package/dist/core/extensions/loader-bindings.d.ts.map +1 -1
  168. package/dist/core/extensions/loader-bindings.js +42 -1
  169. package/dist/core/extensions/loader-bindings.js.map +1 -1
  170. package/dist/core/extensions/loader-core.d.ts.map +1 -1
  171. package/dist/core/extensions/loader-core.js +33 -12
  172. package/dist/core/extensions/loader-core.js.map +1 -1
  173. package/dist/core/extensions/runner-events.d.ts +2 -0
  174. package/dist/core/extensions/runner-events.d.ts.map +1 -1
  175. package/dist/core/extensions/runner-events.js +17 -7
  176. package/dist/core/extensions/runner-events.js.map +1 -1
  177. package/dist/core/extensions/runner.d.ts +6 -2
  178. package/dist/core/extensions/runner.d.ts.map +1 -1
  179. package/dist/core/extensions/runner.js +5 -2
  180. package/dist/core/extensions/runner.js.map +1 -1
  181. package/dist/core/extensions/ui-types.d.ts +4 -0
  182. package/dist/core/extensions/ui-types.d.ts.map +1 -1
  183. package/dist/core/extensions/ui-types.js.map +1 -1
  184. package/dist/core/extensions/workflow-run-control-hub.d.ts +2 -2
  185. package/dist/core/extensions/workflow-run-control-hub.d.ts.map +1 -1
  186. package/dist/core/extensions/workflow-run-control-hub.js +2 -2
  187. package/dist/core/extensions/workflow-run-control-hub.js.map +1 -1
  188. package/dist/core/extensions/workflow-run-control.d.ts +10 -3
  189. package/dist/core/extensions/workflow-run-control.d.ts.map +1 -1
  190. package/dist/core/extensions/workflow-run-control.js.map +1 -1
  191. package/dist/core/first-prompt-model.d.ts +22 -0
  192. package/dist/core/first-prompt-model.d.ts.map +1 -0
  193. package/dist/core/first-prompt-model.js +84 -0
  194. package/dist/core/first-prompt-model.js.map +1 -0
  195. package/dist/core/footer-data-provider.d.ts.map +1 -1
  196. package/dist/core/footer-data-provider.js +11 -7
  197. package/dist/core/footer-data-provider.js.map +1 -1
  198. package/dist/core/fork-replay-pair.d.ts +22 -0
  199. package/dist/core/fork-replay-pair.d.ts.map +1 -0
  200. package/dist/core/fork-replay-pair.js +174 -0
  201. package/dist/core/fork-replay-pair.js.map +1 -0
  202. package/dist/core/fork-replay-wire.d.ts +11 -0
  203. package/dist/core/fork-replay-wire.d.ts.map +1 -0
  204. package/dist/core/fork-replay-wire.js +116 -0
  205. package/dist/core/fork-replay-wire.js.map +1 -0
  206. package/dist/core/messages.d.ts +2 -0
  207. package/dist/core/messages.d.ts.map +1 -1
  208. package/dist/core/messages.js +8 -4
  209. package/dist/core/messages.js.map +1 -1
  210. package/dist/core/model-runtime.d.ts +10 -1
  211. package/dist/core/model-runtime.d.ts.map +1 -1
  212. package/dist/core/model-runtime.js +76 -11
  213. package/dist/core/model-runtime.js.map +1 -1
  214. package/dist/core/package-manager-auto-resources.d.ts.map +1 -1
  215. package/dist/core/package-manager-auto-resources.js +3 -2
  216. package/dist/core/package-manager-auto-resources.js.map +1 -1
  217. package/dist/core/package-manager-resource-files.js +7 -8
  218. package/dist/core/package-manager-resource-files.js.map +1 -1
  219. package/dist/core/project-trust-state.d.ts +90 -0
  220. package/dist/core/project-trust-state.d.ts.map +1 -0
  221. package/dist/core/project-trust-state.js +65 -0
  222. package/dist/core/project-trust-state.js.map +1 -0
  223. package/dist/core/provider-rate-limits.d.ts +6 -0
  224. package/dist/core/provider-rate-limits.d.ts.map +1 -1
  225. package/dist/core/provider-rate-limits.js +43 -0
  226. package/dist/core/provider-rate-limits.js.map +1 -1
  227. package/dist/core/provider-request-admission.d.ts.map +1 -1
  228. package/dist/core/provider-request-admission.js +10 -1
  229. package/dist/core/provider-request-admission.js.map +1 -1
  230. package/dist/core/remote-catalog-provider.d.ts +6 -1
  231. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  232. package/dist/core/remote-catalog-provider.js +22 -1
  233. package/dist/core/remote-catalog-provider.js.map +1 -1
  234. package/dist/core/resolve-config-value.d.ts.map +1 -1
  235. package/dist/core/resolve-config-value.js +5 -2
  236. package/dist/core/resolve-config-value.js.map +1 -1
  237. package/dist/core/resource-loader-core.d.ts.map +1 -1
  238. package/dist/core/resource-loader-core.js +3 -0
  239. package/dist/core/resource-loader-core.js.map +1 -1
  240. package/dist/core/resource-loader-extensions.d.ts +2 -2
  241. package/dist/core/resource-loader-extensions.d.ts.map +1 -1
  242. package/dist/core/resource-loader-extensions.js +6 -4
  243. package/dist/core/resource-loader-extensions.js.map +1 -1
  244. package/dist/core/resource-loader-package-resources.d.ts +1 -0
  245. package/dist/core/resource-loader-package-resources.d.ts.map +1 -1
  246. package/dist/core/resource-loader-package-resources.js +2 -1
  247. package/dist/core/resource-loader-package-resources.js.map +1 -1
  248. package/dist/core/resource-loader-reload.d.ts +1 -1
  249. package/dist/core/resource-loader-reload.d.ts.map +1 -1
  250. package/dist/core/resource-loader-reload.js +3 -2
  251. package/dist/core/resource-loader-reload.js.map +1 -1
  252. package/dist/core/resource-loader-types.d.ts +2 -0
  253. package/dist/core/resource-loader-types.d.ts.map +1 -1
  254. package/dist/core/resource-loader-types.js.map +1 -1
  255. package/dist/core/resume/blueprint/actions.d.ts.map +1 -1
  256. package/dist/core/resume/blueprint/actions.js +15 -15
  257. package/dist/core/resume/blueprint/actions.js.map +1 -1
  258. package/dist/core/resume/blueprint/process.d.ts +6 -1
  259. package/dist/core/resume/blueprint/process.d.ts.map +1 -1
  260. package/dist/core/resume/blueprint/process.js +132 -21
  261. package/dist/core/resume/blueprint/process.js.map +1 -1
  262. package/dist/core/runtime-credentials.d.ts +5 -0
  263. package/dist/core/runtime-credentials.d.ts.map +1 -1
  264. package/dist/core/runtime-credentials.js +34 -0
  265. package/dist/core/runtime-credentials.js.map +1 -1
  266. package/dist/core/sdk-types.d.ts +2 -0
  267. package/dist/core/sdk-types.d.ts.map +1 -1
  268. package/dist/core/sdk-types.js.map +1 -1
  269. package/dist/core/sdk.d.ts +1 -1
  270. package/dist/core/sdk.d.ts.map +1 -1
  271. package/dist/core/sdk.js +187 -32
  272. package/dist/core/sdk.js.map +1 -1
  273. package/dist/core/session-account-model.d.ts +15 -0
  274. package/dist/core/session-account-model.d.ts.map +1 -0
  275. package/dist/core/session-account-model.js +105 -0
  276. package/dist/core/session-account-model.js.map +1 -0
  277. package/dist/core/session-lifecycle-scope.d.ts +5 -0
  278. package/dist/core/session-lifecycle-scope.d.ts.map +1 -1
  279. package/dist/core/session-lifecycle-scope.js.map +1 -1
  280. package/dist/core/session-manager-core.d.ts +21 -2
  281. package/dist/core/session-manager-core.d.ts.map +1 -1
  282. package/dist/core/session-manager-core.js +64 -8
  283. package/dist/core/session-manager-core.js.map +1 -1
  284. package/dist/core/session-manager-history.d.ts +3 -1
  285. package/dist/core/session-manager-history.d.ts.map +1 -1
  286. package/dist/core/session-manager-history.js +19 -5
  287. package/dist/core/session-manager-history.js.map +1 -1
  288. package/dist/core/session-manager-types.d.ts +2 -0
  289. package/dist/core/session-manager-types.d.ts.map +1 -1
  290. package/dist/core/session-manager-types.js.map +1 -1
  291. package/dist/core/session-retry-status.d.ts +22 -0
  292. package/dist/core/session-retry-status.d.ts.map +1 -0
  293. package/dist/core/session-retry-status.js +25 -0
  294. package/dist/core/session-retry-status.js.map +1 -0
  295. package/dist/core/session-worktree-snapshots.d.ts +4 -2
  296. package/dist/core/session-worktree-snapshots.d.ts.map +1 -1
  297. package/dist/core/session-worktree-snapshots.js +8 -4
  298. package/dist/core/session-worktree-snapshots.js.map +1 -1
  299. package/dist/core/settings-manager-core.d.ts +4 -0
  300. package/dist/core/settings-manager-core.d.ts.map +1 -1
  301. package/dist/core/settings-manager-core.js +73 -1
  302. package/dist/core/settings-manager-core.js.map +1 -1
  303. package/dist/core/settings-schema.js +1 -1
  304. package/dist/core/settings-schema.js.map +1 -1
  305. package/dist/core/slash-commands.d.ts +2 -2
  306. package/dist/core/slash-commands.d.ts.map +1 -1
  307. package/dist/core/slash-commands.js +15 -4
  308. package/dist/core/slash-commands.js.map +1 -1
  309. package/dist/core/storage/database.d.ts +14 -2
  310. package/dist/core/storage/database.d.ts.map +1 -1
  311. package/dist/core/storage/database.js.map +1 -1
  312. package/dist/core/storage/dialect.d.ts +13 -0
  313. package/dist/core/storage/dialect.d.ts.map +1 -1
  314. package/dist/core/storage/dialect.js +9 -1
  315. package/dist/core/storage/dialect.js.map +1 -1
  316. package/dist/core/storage/errors.d.ts +23 -1
  317. package/dist/core/storage/errors.d.ts.map +1 -1
  318. package/dist/core/storage/errors.js +28 -5
  319. package/dist/core/storage/errors.js.map +1 -1
  320. package/dist/core/storage/journal-transfer.d.ts.map +1 -1
  321. package/dist/core/storage/journal-transfer.js +90 -5
  322. package/dist/core/storage/journal-transfer.js.map +1 -1
  323. package/dist/core/storage/node-sqlite.d.ts.map +1 -1
  324. package/dist/core/storage/node-sqlite.js +61 -1
  325. package/dist/core/storage/node-sqlite.js.map +1 -1
  326. package/dist/core/storage/session/chunked-resume-projection.d.ts +4 -0
  327. package/dist/core/storage/session/chunked-resume-projection.d.ts.map +1 -0
  328. package/dist/core/storage/session/chunked-resume-projection.js +369 -0
  329. package/dist/core/storage/session/chunked-resume-projection.js.map +1 -0
  330. package/dist/core/storage/session/legacy-session-store.d.ts +5 -0
  331. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
  332. package/dist/core/storage/session/legacy-session-store.js +10 -2
  333. package/dist/core/storage/session/legacy-session-store.js.map +1 -1
  334. package/dist/core/storage/session/memory-session-store.d.ts.map +1 -1
  335. package/dist/core/storage/session/memory-session-store.js +6 -1
  336. package/dist/core/storage/session/memory-session-store.js.map +1 -1
  337. package/dist/core/storage/session/snapshot-generation.d.ts +8 -0
  338. package/dist/core/storage/session/snapshot-generation.d.ts.map +1 -0
  339. package/dist/core/storage/session/snapshot-generation.js +17 -0
  340. package/dist/core/storage/session/snapshot-generation.js.map +1 -0
  341. package/dist/core/storage/session/sql-session-store.d.ts +12 -0
  342. package/dist/core/storage/session/sql-session-store.d.ts.map +1 -1
  343. package/dist/core/storage/session/sql-session-store.js +243 -46
  344. package/dist/core/storage/session/sql-session-store.js.map +1 -1
  345. package/dist/core/storage/sqlite-facade.d.ts +17 -2
  346. package/dist/core/storage/sqlite-facade.d.ts.map +1 -1
  347. package/dist/core/storage/sqlite-facade.js +17 -1
  348. package/dist/core/storage/sqlite-facade.js.map +1 -1
  349. package/dist/core/tasks/agent-adapter.d.ts +13 -2
  350. package/dist/core/tasks/agent-adapter.d.ts.map +1 -1
  351. package/dist/core/tasks/agent-adapter.js +25 -8
  352. package/dist/core/tasks/agent-adapter.js.map +1 -1
  353. package/dist/core/tasks/agent-panel-rules.d.ts +77 -0
  354. package/dist/core/tasks/agent-panel-rules.d.ts.map +1 -0
  355. package/dist/core/tasks/agent-panel-rules.js +88 -0
  356. package/dist/core/tasks/agent-panel-rules.js.map +1 -0
  357. package/dist/core/tasks/agent-panel-source.d.ts +19 -0
  358. package/dist/core/tasks/agent-panel-source.d.ts.map +1 -1
  359. package/dist/core/tasks/agent-panel-source.js +50 -9
  360. package/dist/core/tasks/agent-panel-source.js.map +1 -1
  361. package/dist/core/tasks/command-output.d.ts +17 -2
  362. package/dist/core/tasks/command-output.d.ts.map +1 -1
  363. package/dist/core/tasks/command-output.js +59 -3
  364. package/dist/core/tasks/command-output.js.map +1 -1
  365. package/dist/core/tasks/completion-message.d.ts +8 -3
  366. package/dist/core/tasks/completion-message.d.ts.map +1 -1
  367. package/dist/core/tasks/completion-message.js +14 -10
  368. package/dist/core/tasks/completion-message.js.map +1 -1
  369. package/dist/core/tasks/completion.d.ts +14 -4
  370. package/dist/core/tasks/completion.d.ts.map +1 -1
  371. package/dist/core/tasks/completion.js +58 -17
  372. package/dist/core/tasks/completion.js.map +1 -1
  373. package/dist/core/tasks/contracts.d.ts +10 -1
  374. package/dist/core/tasks/contracts.d.ts.map +1 -1
  375. package/dist/core/tasks/contracts.js +3 -1
  376. package/dist/core/tasks/contracts.js.map +1 -1
  377. package/dist/core/tasks/heartbeat.js +2 -1
  378. package/dist/core/tasks/heartbeat.js.map +1 -1
  379. package/dist/core/tasks/live-elapsed.d.ts +16 -1
  380. package/dist/core/tasks/live-elapsed.d.ts.map +1 -1
  381. package/dist/core/tasks/live-elapsed.js +43 -4
  382. package/dist/core/tasks/live-elapsed.js.map +1 -1
  383. package/dist/core/tasks/owner-store.d.ts +8 -0
  384. package/dist/core/tasks/owner-store.d.ts.map +1 -1
  385. package/dist/core/tasks/owner-store.js +34 -4
  386. package/dist/core/tasks/owner-store.js.map +1 -1
  387. package/dist/core/tasks/session-scope.d.ts +7 -0
  388. package/dist/core/tasks/session-scope.d.ts.map +1 -1
  389. package/dist/core/tasks/session-scope.js +15 -9
  390. package/dist/core/tasks/session-scope.js.map +1 -1
  391. package/dist/core/tasks/supervisor.d.ts +7 -3
  392. package/dist/core/tasks/supervisor.d.ts.map +1 -1
  393. package/dist/core/tasks/supervisor.js +92 -17
  394. package/dist/core/tasks/supervisor.js.map +1 -1
  395. package/dist/core/tasks/task-archive-snapshot.d.ts +7 -0
  396. package/dist/core/tasks/task-archive-snapshot.d.ts.map +1 -0
  397. package/dist/core/tasks/task-archive-snapshot.js +33 -0
  398. package/dist/core/tasks/task-archive-snapshot.js.map +1 -0
  399. package/dist/core/tasks/task-resumer.d.ts +5 -3
  400. package/dist/core/tasks/task-resumer.d.ts.map +1 -1
  401. package/dist/core/tasks/task-resumer.js +37 -13
  402. package/dist/core/tasks/task-resumer.js.map +1 -1
  403. package/dist/core/tasks/task-view-source.d.ts +25 -3
  404. package/dist/core/tasks/task-view-source.d.ts.map +1 -1
  405. package/dist/core/tasks/task-view-source.js +144 -44
  406. package/dist/core/tasks/task-view-source.js.map +1 -1
  407. package/dist/core/tasks/transcript.d.ts +3 -1
  408. package/dist/core/tasks/transcript.d.ts.map +1 -1
  409. package/dist/core/tasks/transcript.js +27 -0
  410. package/dist/core/tasks/transcript.js.map +1 -1
  411. package/dist/core/tools/ask-user-question/view/dialog-builder.d.ts.map +1 -1
  412. package/dist/core/tools/ask-user-question/view/dialog-builder.js +2 -1
  413. package/dist/core/tools/ask-user-question/view/dialog-builder.js.map +1 -1
  414. package/dist/core/tools/bash.d.ts.map +1 -1
  415. package/dist/core/tools/bash.js +2 -1
  416. package/dist/core/tools/bash.js.map +1 -1
  417. package/dist/core/tools/history-protocol.d.ts.map +1 -1
  418. package/dist/core/tools/history-protocol.js +130 -29
  419. package/dist/core/tools/history-protocol.js.map +1 -1
  420. package/dist/core/tools/history-search-position.d.ts +30 -0
  421. package/dist/core/tools/history-search-position.d.ts.map +1 -0
  422. package/dist/core/tools/history-search-position.js +161 -0
  423. package/dist/core/tools/history-search-position.js.map +1 -0
  424. package/dist/core/tools/history-search-wire.d.ts +25 -0
  425. package/dist/core/tools/history-search-wire.d.ts.map +1 -0
  426. package/dist/core/tools/history-search-wire.js +210 -0
  427. package/dist/core/tools/history-search-wire.js.map +1 -0
  428. package/dist/core/tools/resource-selectors.d.ts +7 -1
  429. package/dist/core/tools/resource-selectors.d.ts.map +1 -1
  430. package/dist/core/tools/resource-selectors.js +18 -11
  431. package/dist/core/tools/resource-selectors.js.map +1 -1
  432. package/dist/core/tools/search.d.ts.map +1 -1
  433. package/dist/core/tools/search.js +24 -3
  434. package/dist/core/tools/search.js.map +1 -1
  435. package/dist/core/tools/sqlite-selector-connection.d.ts +3 -0
  436. package/dist/core/tools/sqlite-selector-connection.d.ts.map +1 -1
  437. package/dist/core/tools/sqlite-selector-connection.js +4 -0
  438. package/dist/core/tools/sqlite-selector-connection.js.map +1 -1
  439. package/dist/core/tools/tool-abort-grace.d.ts +13 -0
  440. package/dist/core/tools/tool-abort-grace.d.ts.map +1 -0
  441. package/dist/core/tools/tool-abort-grace.js +72 -0
  442. package/dist/core/tools/tool-abort-grace.js.map +1 -0
  443. package/dist/core/tools/tool-concurrency.d.ts +5 -1
  444. package/dist/core/tools/tool-concurrency.d.ts.map +1 -1
  445. package/dist/core/tools/tool-concurrency.js +36 -6
  446. package/dist/core/tools/tool-concurrency.js.map +1 -1
  447. package/dist/core/workflow-resume.d.ts +1 -1
  448. package/dist/core/workflow-resume.d.ts.map +1 -1
  449. package/dist/core/workflow-resume.js +13 -3
  450. package/dist/core/workflow-resume.js.map +1 -1
  451. package/dist/core/workflow-summary-lifecycle.d.ts.map +1 -1
  452. package/dist/core/workflow-summary-lifecycle.js +8 -2
  453. package/dist/core/workflow-summary-lifecycle.js.map +1 -1
  454. package/dist/core/workspace/errors.d.ts +5 -2
  455. package/dist/core/workspace/errors.d.ts.map +1 -1
  456. package/dist/core/workspace/errors.js +59 -5
  457. package/dist/core/workspace/errors.js.map +1 -1
  458. package/dist/core/worktree-snapshot/blob-store.d.ts +138 -17
  459. package/dist/core/worktree-snapshot/blob-store.d.ts.map +1 -1
  460. package/dist/core/worktree-snapshot/blob-store.js +788 -82
  461. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  462. package/dist/core/worktree-snapshot/garbage.d.ts +17 -2
  463. package/dist/core/worktree-snapshot/garbage.d.ts.map +1 -1
  464. package/dist/core/worktree-snapshot/garbage.js +20 -4
  465. package/dist/core/worktree-snapshot/garbage.js.map +1 -1
  466. package/dist/core/worktree-snapshot/index.d.ts +1 -1
  467. package/dist/core/worktree-snapshot/index.d.ts.map +1 -1
  468. package/dist/core/worktree-snapshot/index.js +1 -1
  469. package/dist/core/worktree-snapshot/index.js.map +1 -1
  470. package/dist/core/worktree-snapshot/pool.d.ts.map +1 -1
  471. package/dist/core/worktree-snapshot/pool.js +38 -6
  472. package/dist/core/worktree-snapshot/pool.js.map +1 -1
  473. package/dist/core/worktree-snapshot/shared-clock.d.ts +3 -1
  474. package/dist/core/worktree-snapshot/shared-clock.d.ts.map +1 -1
  475. package/dist/core/worktree-snapshot/shared-clock.js +116 -26
  476. package/dist/core/worktree-snapshot/shared-clock.js.map +1 -1
  477. package/dist/core/worktree-snapshot/types.d.ts +4 -1
  478. package/dist/core/worktree-snapshot/types.d.ts.map +1 -1
  479. package/dist/core/worktree-snapshot/types.js.map +1 -1
  480. package/dist/extensions/llama/huggingface-ui.d.ts.map +1 -1
  481. package/dist/extensions/llama/huggingface-ui.js +2 -2
  482. package/dist/extensions/llama/huggingface-ui.js.map +1 -1
  483. package/dist/extensions/llama/index.d.ts +2 -0
  484. package/dist/extensions/llama/index.d.ts.map +1 -1
  485. package/dist/extensions/llama/index.js +19 -2
  486. package/dist/extensions/llama/index.js.map +1 -1
  487. package/dist/index.d.ts +9 -6
  488. package/dist/index.d.ts.map +1 -1
  489. package/dist/index.js +8 -4
  490. package/dist/index.js.map +1 -1
  491. package/dist/main.d.ts.map +1 -1
  492. package/dist/main.js +74 -15
  493. package/dist/main.js.map +1 -1
  494. package/dist/modes/interactive/components/agent-panel.d.ts +22 -6
  495. package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
  496. package/dist/modes/interactive/components/agent-panel.js +80 -23
  497. package/dist/modes/interactive/components/agent-panel.js.map +1 -1
  498. package/dist/modes/interactive/components/assistant-message.d.ts +2 -0
  499. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  500. package/dist/modes/interactive/components/assistant-message.js +11 -0
  501. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  502. package/dist/modes/interactive/components/atomic-working-status.d.ts.map +1 -1
  503. package/dist/modes/interactive/components/atomic-working-status.js +10 -3
  504. package/dist/modes/interactive/components/atomic-working-status.js.map +1 -1
  505. package/dist/modes/interactive/components/bash-execution.d.ts +3 -2
  506. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  507. package/dist/modes/interactive/components/bash-execution.js +7 -7
  508. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  509. package/dist/modes/interactive/components/branch-summary-message.d.ts +6 -0
  510. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  511. package/dist/modes/interactive/components/branch-summary-message.js +12 -7
  512. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  513. package/dist/modes/interactive/components/chat-message-renderer.d.ts +2 -0
  514. package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
  515. package/dist/modes/interactive/components/chat-message-renderer.js +24 -3
  516. package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
  517. package/dist/modes/interactive/components/chat-session-host-actions.d.ts +1 -1
  518. package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
  519. package/dist/modes/interactive/components/chat-session-host-actions.js +16 -10
  520. package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
  521. package/dist/modes/interactive/components/chat-session-host-events.d.ts +10 -0
  522. package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
  523. package/dist/modes/interactive/components/chat-session-host-events.js +76 -31
  524. package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
  525. package/dist/modes/interactive/components/chat-session-host-rendering.d.ts +17 -5
  526. package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
  527. package/dist/modes/interactive/components/chat-session-host-rendering.js +79 -24
  528. package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
  529. package/dist/modes/interactive/components/chat-session-host-runtime.d.ts.map +1 -1
  530. package/dist/modes/interactive/components/chat-session-host-runtime.js +5 -4
  531. package/dist/modes/interactive/components/chat-session-host-runtime.js.map +1 -1
  532. package/dist/modes/interactive/components/chat-session-host-state.d.ts +16 -1
  533. package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
  534. package/dist/modes/interactive/components/chat-session-host-state.js +22 -0
  535. package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
  536. package/dist/modes/interactive/components/chat-session-host-types.d.ts +8 -2
  537. package/dist/modes/interactive/components/chat-session-host-types.d.ts.map +1 -1
  538. package/dist/modes/interactive/components/chat-session-host-types.js.map +1 -1
  539. package/dist/modes/interactive/components/chat-session-host-utils.d.ts +1 -0
  540. package/dist/modes/interactive/components/chat-session-host-utils.d.ts.map +1 -1
  541. package/dist/modes/interactive/components/chat-session-host-utils.js +2 -1
  542. package/dist/modes/interactive/components/chat-session-host-utils.js.map +1 -1
  543. package/dist/modes/interactive/components/chat-session-host.d.ts +35 -9
  544. package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
  545. package/dist/modes/interactive/components/chat-session-host.js +129 -35
  546. package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
  547. package/dist/modes/interactive/components/chat-transcript.d.ts +13 -2
  548. package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
  549. package/dist/modes/interactive/components/chat-transcript.js +24 -4
  550. package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
  551. package/dist/modes/interactive/components/compaction-boundary-message.d.ts +6 -0
  552. package/dist/modes/interactive/components/compaction-boundary-message.d.ts.map +1 -1
  553. package/dist/modes/interactive/components/compaction-boundary-message.js +12 -7
  554. package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
  555. package/dist/modes/interactive/components/composer-rule.d.ts +0 -2
  556. package/dist/modes/interactive/components/composer-rule.d.ts.map +1 -1
  557. package/dist/modes/interactive/components/composer-rule.js +4 -6
  558. package/dist/modes/interactive/components/composer-rule.js.map +1 -1
  559. package/dist/modes/interactive/components/countdown-timer.d.ts +5 -9
  560. package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -1
  561. package/dist/modes/interactive/components/countdown-timer.js +32 -23
  562. package/dist/modes/interactive/components/countdown-timer.js.map +1 -1
  563. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  564. package/dist/modes/interactive/components/custom-editor.js +4 -3
  565. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  566. package/dist/modes/interactive/components/custom-entry.d.ts +6 -0
  567. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  568. package/dist/modes/interactive/components/custom-entry.js +15 -0
  569. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  570. package/dist/modes/interactive/components/custom-message.d.ts +7 -3
  571. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  572. package/dist/modes/interactive/components/custom-message.js +17 -15
  573. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  574. package/dist/modes/interactive/components/footer.d.ts +10 -3
  575. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  576. package/dist/modes/interactive/components/footer.js +37 -45
  577. package/dist/modes/interactive/components/footer.js.map +1 -1
  578. package/dist/modes/interactive/components/heartbeat-block.d.ts.map +1 -1
  579. package/dist/modes/interactive/components/heartbeat-block.js +3 -1
  580. package/dist/modes/interactive/components/heartbeat-block.js.map +1 -1
  581. package/dist/modes/interactive/components/host-input-form.d.ts.map +1 -1
  582. package/dist/modes/interactive/components/host-input-form.js +3 -3
  583. package/dist/modes/interactive/components/host-input-form.js.map +1 -1
  584. package/dist/modes/interactive/components/index.d.ts +1 -1
  585. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  586. package/dist/modes/interactive/components/index.js.map +1 -1
  587. package/dist/modes/interactive/components/input-label.d.ts.map +1 -1
  588. package/dist/modes/interactive/components/input-label.js +4 -5
  589. package/dist/modes/interactive/components/input-label.js.map +1 -1
  590. package/dist/modes/interactive/components/keybinding-hints.d.ts +7 -0
  591. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
  592. package/dist/modes/interactive/components/keybinding-hints.js +27 -6
  593. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
  594. package/dist/modes/interactive/components/main-composer-keys.d.ts +17 -2
  595. package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
  596. package/dist/modes/interactive/components/main-composer-keys.js +44 -27
  597. package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
  598. package/dist/modes/interactive/components/model-selector.d.ts +6 -1
  599. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  600. package/dist/modes/interactive/components/model-selector.js +13 -7
  601. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  602. package/dist/modes/interactive/components/nav-keys.d.ts +7 -2
  603. package/dist/modes/interactive/components/nav-keys.d.ts.map +1 -1
  604. package/dist/modes/interactive/components/nav-keys.js +51 -17
  605. package/dist/modes/interactive/components/nav-keys.js.map +1 -1
  606. package/dist/modes/interactive/components/notice-line.d.ts +8 -0
  607. package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
  608. package/dist/modes/interactive/components/notice-line.js +6 -1
  609. package/dist/modes/interactive/components/notice-line.js.map +1 -1
  610. package/dist/modes/interactive/components/selector.d.ts +3 -0
  611. package/dist/modes/interactive/components/selector.d.ts.map +1 -1
  612. package/dist/modes/interactive/components/selector.js +30 -7
  613. package/dist/modes/interactive/components/selector.js.map +1 -1
  614. package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
  615. package/dist/modes/interactive/components/session-selector-list.js +11 -11
  616. package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
  617. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  618. package/dist/modes/interactive/components/session-selector.js +2 -2
  619. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  620. package/dist/modes/interactive/components/settings-picker.d.ts +5 -0
  621. package/dist/modes/interactive/components/settings-picker.d.ts.map +1 -1
  622. package/dist/modes/interactive/components/settings-picker.js +36 -2
  623. package/dist/modes/interactive/components/settings-picker.js.map +1 -1
  624. package/dist/modes/interactive/components/settings-selector-submenus.d.ts +10 -0
  625. package/dist/modes/interactive/components/settings-selector-submenus.d.ts.map +1 -1
  626. package/dist/modes/interactive/components/settings-selector-submenus.js +89 -19
  627. package/dist/modes/interactive/components/settings-selector-submenus.js.map +1 -1
  628. package/dist/modes/interactive/components/settings-selector-types.d.ts +6 -0
  629. package/dist/modes/interactive/components/settings-selector-types.d.ts.map +1 -1
  630. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  631. package/dist/modes/interactive/components/settings-selector.d.ts +7 -0
  632. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  633. package/dist/modes/interactive/components/settings-selector.js +12 -0
  634. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  635. package/dist/modes/interactive/components/skill-invocation-message.d.ts +6 -0
  636. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
  637. package/dist/modes/interactive/components/skill-invocation-message.js +12 -7
  638. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
  639. package/dist/modes/interactive/components/task-board.d.ts.map +1 -1
  640. package/dist/modes/interactive/components/task-board.js +9 -2
  641. package/dist/modes/interactive/components/task-board.js.map +1 -1
  642. package/dist/modes/interactive/components/task-completion-message.d.ts +10 -3
  643. package/dist/modes/interactive/components/task-completion-message.d.ts.map +1 -1
  644. package/dist/modes/interactive/components/task-completion-message.js +173 -19
  645. package/dist/modes/interactive/components/task-completion-message.js.map +1 -1
  646. package/dist/modes/interactive/components/task-inspector.d.ts +1 -1
  647. package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -1
  648. package/dist/modes/interactive/components/task-inspector.js +28 -19
  649. package/dist/modes/interactive/components/task-inspector.js.map +1 -1
  650. package/dist/modes/interactive/components/task-list.d.ts +7 -3
  651. package/dist/modes/interactive/components/task-list.d.ts.map +1 -1
  652. package/dist/modes/interactive/components/task-list.js +60 -33
  653. package/dist/modes/interactive/components/task-list.js.map +1 -1
  654. package/dist/modes/interactive/components/task-row.d.ts +7 -0
  655. package/dist/modes/interactive/components/task-row.d.ts.map +1 -1
  656. package/dist/modes/interactive/components/task-row.js +25 -11
  657. package/dist/modes/interactive/components/task-row.js.map +1 -1
  658. package/dist/modes/interactive/components/task-transcript-notices.d.ts +16 -0
  659. package/dist/modes/interactive/components/task-transcript-notices.d.ts.map +1 -0
  660. package/dist/modes/interactive/components/task-transcript-notices.js +74 -0
  661. package/dist/modes/interactive/components/task-transcript-notices.js.map +1 -0
  662. package/dist/modes/interactive/components/task-transcript-page.d.ts +11 -6
  663. package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
  664. package/dist/modes/interactive/components/task-transcript-page.js +48 -21
  665. package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
  666. package/dist/modes/interactive/components/tool-block-families.d.ts.map +1 -1
  667. package/dist/modes/interactive/components/tool-block-families.js +2 -1
  668. package/dist/modes/interactive/components/tool-block-families.js.map +1 -1
  669. package/dist/modes/interactive/components/tool-execution.d.ts +3 -2
  670. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  671. package/dist/modes/interactive/components/tool-execution.js +23 -9
  672. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  673. package/dist/modes/interactive/components/transcript-block-clicks.d.ts +54 -14
  674. package/dist/modes/interactive/components/transcript-block-clicks.d.ts.map +1 -1
  675. package/dist/modes/interactive/components/transcript-block-clicks.js +151 -16
  676. package/dist/modes/interactive/components/transcript-block-clicks.js.map +1 -1
  677. package/dist/modes/interactive/components/tree-selector-help.d.ts.map +1 -1
  678. package/dist/modes/interactive/components/tree-selector-help.js +25 -30
  679. package/dist/modes/interactive/components/tree-selector-help.js.map +1 -1
  680. package/dist/modes/interactive/components/tree-selector-list.d.ts +4 -0
  681. package/dist/modes/interactive/components/tree-selector-list.d.ts.map +1 -1
  682. package/dist/modes/interactive/components/tree-selector-list.js +21 -21
  683. package/dist/modes/interactive/components/tree-selector-list.js.map +1 -1
  684. package/dist/modes/interactive/components/working-run-meter.d.ts +31 -2
  685. package/dist/modes/interactive/components/working-run-meter.d.ts.map +1 -1
  686. package/dist/modes/interactive/components/working-run-meter.js +81 -10
  687. package/dist/modes/interactive/components/working-run-meter.js.map +1 -1
  688. package/dist/modes/interactive/interactive-agent-events.js +67 -14
  689. package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
  690. package/dist/modes/interactive/interactive-autocomplete.js +2 -2
  691. package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
  692. package/dist/modes/interactive/interactive-deferred-startup.d.ts.map +1 -1
  693. package/dist/modes/interactive/interactive-deferred-startup.js +10 -4
  694. package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
  695. package/dist/modes/interactive/interactive-editor-actions.js +4 -1
  696. package/dist/modes/interactive/interactive-editor-actions.js.map +1 -1
  697. package/dist/modes/interactive/interactive-extension-custom-ui.js +13 -3
  698. package/dist/modes/interactive/interactive-extension-custom-ui.js.map +1 -1
  699. package/dist/modes/interactive/interactive-extension-runtime.js +4 -2
  700. package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
  701. package/dist/modes/interactive/interactive-extension-widgets.js +6 -8
  702. package/dist/modes/interactive/interactive-extension-widgets.js.map +1 -1
  703. package/dist/modes/interactive/interactive-input-handling.d.ts.map +1 -1
  704. package/dist/modes/interactive/interactive-input-handling.js +43 -3
  705. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  706. package/dist/modes/interactive/interactive-mode-base.d.ts +7 -0
  707. package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
  708. package/dist/modes/interactive/interactive-mode-base.js +9 -2
  709. package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
  710. package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
  711. package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
  712. package/dist/modes/interactive/interactive-mode-deps.js +1 -1
  713. package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
  714. package/dist/modes/interactive/interactive-mode-helpers.d.ts +5 -0
  715. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  716. package/dist/modes/interactive/interactive-mode-helpers.js +9 -0
  717. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  718. package/dist/modes/interactive/interactive-mode-surface.d.ts +10 -2
  719. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  720. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  721. package/dist/modes/interactive/interactive-model-routing.d.ts.map +1 -1
  722. package/dist/modes/interactive/interactive-model-routing.js +63 -21
  723. package/dist/modes/interactive/interactive-model-routing.js.map +1 -1
  724. package/dist/modes/interactive/interactive-prompt-turn.js +1 -1
  725. package/dist/modes/interactive/interactive-prompt-turn.js.map +1 -1
  726. package/dist/modes/interactive/interactive-render-chat.d.ts.map +1 -1
  727. package/dist/modes/interactive/interactive-render-chat.js +71 -10
  728. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  729. package/dist/modes/interactive/interactive-resource-rendering.js +9 -18
  730. package/dist/modes/interactive/interactive-resource-rendering.js.map +1 -1
  731. package/dist/modes/interactive/interactive-selectors.js +106 -57
  732. package/dist/modes/interactive/interactive-selectors.js.map +1 -1
  733. package/dist/modes/interactive/interactive-session-routing.js +10 -5
  734. package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
  735. package/dist/modes/interactive/interactive-session-runtime.d.ts +3 -0
  736. package/dist/modes/interactive/interactive-session-runtime.d.ts.map +1 -1
  737. package/dist/modes/interactive/interactive-session-runtime.js +11 -0
  738. package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
  739. package/dist/modes/interactive/interactive-slash-commands.js +3 -0
  740. package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
  741. package/dist/modes/interactive/interactive-startup-chat-container.d.ts +5 -1
  742. package/dist/modes/interactive/interactive-startup-chat-container.d.ts.map +1 -1
  743. package/dist/modes/interactive/interactive-startup-chat-container.js +8 -3
  744. package/dist/modes/interactive/interactive-startup-chat-container.js.map +1 -1
  745. package/dist/modes/interactive/interactive-startup-trust.d.ts +2 -0
  746. package/dist/modes/interactive/interactive-startup-trust.d.ts.map +1 -1
  747. package/dist/modes/interactive/interactive-startup-trust.js +21 -0
  748. package/dist/modes/interactive/interactive-startup-trust.js.map +1 -1
  749. package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
  750. package/dist/modes/interactive/interactive-startup.js +39 -17
  751. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  752. package/dist/modes/interactive/interactive-task-projection.d.ts.map +1 -1
  753. package/dist/modes/interactive/interactive-task-projection.js +11 -1
  754. package/dist/modes/interactive/interactive-task-projection.js.map +1 -1
  755. package/dist/modes/interactive/resume-catalog.d.ts.map +1 -1
  756. package/dist/modes/interactive/resume-catalog.js +1 -0
  757. package/dist/modes/interactive/resume-catalog.js.map +1 -1
  758. package/dist/modes/interactive/theme/theme-controller.d.ts +6 -1
  759. package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -1
  760. package/dist/modes/interactive/theme/theme-controller.js +19 -1
  761. package/dist/modes/interactive/theme/theme-controller.js.map +1 -1
  762. package/dist/modes/interactive-engine/engine-child-liveness.d.ts +2 -0
  763. package/dist/modes/interactive-engine/engine-child-liveness.d.ts.map +1 -1
  764. package/dist/modes/interactive-engine/engine-child-liveness.js +2 -0
  765. package/dist/modes/interactive-engine/engine-child-liveness.js.map +1 -1
  766. package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
  767. package/dist/modes/interactive-engine/engine-custom-ui.js +54 -4
  768. package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
  769. package/dist/modes/interactive-engine/engine-render-service.d.ts.map +1 -1
  770. package/dist/modes/interactive-engine/engine-render-service.js +21 -2
  771. package/dist/modes/interactive-engine/engine-render-service.js.map +1 -1
  772. package/dist/modes/interactive-engine/extension-ui-bridge.d.ts +4 -2
  773. package/dist/modes/interactive-engine/extension-ui-bridge.d.ts.map +1 -1
  774. package/dist/modes/interactive-engine/extension-ui-bridge.js +4 -0
  775. package/dist/modes/interactive-engine/extension-ui-bridge.js.map +1 -1
  776. package/dist/modes/interactive-engine/isolated-runtime.d.ts +39 -3
  777. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  778. package/dist/modes/interactive-engine/isolated-runtime.js +219 -29
  779. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  780. package/dist/modes/interactive-engine/protocol.d.ts +33 -1
  781. package/dist/modes/interactive-engine/protocol.d.ts.map +1 -1
  782. package/dist/modes/interactive-engine/protocol.js +40 -2
  783. package/dist/modes/interactive-engine/protocol.js.map +1 -1
  784. package/dist/modes/interactive-engine/remote-command-catalog.d.ts +2 -2
  785. package/dist/modes/interactive-engine/remote-command-catalog.d.ts.map +1 -1
  786. package/dist/modes/interactive-engine/remote-command-catalog.js +7 -3
  787. package/dist/modes/interactive-engine/remote-command-catalog.js.map +1 -1
  788. package/dist/modes/interactive-engine/remote-component.d.ts.map +1 -1
  789. package/dist/modes/interactive-engine/remote-component.js +31 -5
  790. package/dist/modes/interactive-engine/remote-component.js.map +1 -1
  791. package/dist/modes/interactive-engine/remote-renderer.d.ts +20 -12
  792. package/dist/modes/interactive-engine/remote-renderer.d.ts.map +1 -1
  793. package/dist/modes/interactive-engine/remote-renderer.js +100 -34
  794. package/dist/modes/interactive-engine/remote-renderer.js.map +1 -1
  795. package/dist/modes/print-mode.d.ts.map +1 -1
  796. package/dist/modes/print-mode.js +4 -1
  797. package/dist/modes/print-mode.js.map +1 -1
  798. package/dist/modes/rpc/agent-panel-bridge.d.ts +7 -0
  799. package/dist/modes/rpc/agent-panel-bridge.d.ts.map +1 -1
  800. package/dist/modes/rpc/agent-panel-bridge.js +119 -114
  801. package/dist/modes/rpc/agent-panel-bridge.js.map +1 -1
  802. package/dist/modes/rpc/rpc-client-process.d.ts +2 -1
  803. package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
  804. package/dist/modes/rpc/rpc-client-process.js +2 -1
  805. package/dist/modes/rpc/rpc-client-process.js.map +1 -1
  806. package/dist/modes/rpc/rpc-client.d.ts +8 -0
  807. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  808. package/dist/modes/rpc/rpc-client.js +5 -1
  809. package/dist/modes/rpc/rpc-client.js.map +1 -1
  810. package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
  811. package/dist/modes/rpc/rpc-command-handler.js +19 -2
  812. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  813. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  814. package/dist/modes/rpc/rpc-mode.js +4 -2
  815. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  816. package/dist/modes/rpc/rpc-session-binding.d.ts.map +1 -1
  817. package/dist/modes/rpc/rpc-session-binding.js +7 -0
  818. package/dist/modes/rpc/rpc-session-binding.js.map +1 -1
  819. package/dist/modes/rpc/rpc-types.d.ts +13 -1
  820. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  821. package/dist/modes/rpc/rpc-types.js.map +1 -1
  822. package/dist/utils/interactive-engine-bootstrap.d.ts +3 -0
  823. package/dist/utils/interactive-engine-bootstrap.d.ts.map +1 -1
  824. package/dist/utils/interactive-engine-bootstrap.js +25 -0
  825. package/dist/utils/interactive-engine-bootstrap.js.map +1 -1
  826. package/dist/utils/interactive-engine-env.d.ts +3 -0
  827. package/dist/utils/interactive-engine-env.d.ts.map +1 -1
  828. package/dist/utils/interactive-engine-env.js +1 -0
  829. package/dist/utils/interactive-engine-env.js.map +1 -1
  830. package/dist/utils/shell.d.ts +2 -0
  831. package/dist/utils/shell.d.ts.map +1 -1
  832. package/dist/utils/shell.js +3 -3
  833. package/dist/utils/shell.js.map +1 -1
  834. package/docs/background-tasks.md +32 -37
  835. package/docs/compaction.md +2 -2
  836. package/docs/computer-use.md +2 -0
  837. package/docs/development.md +11 -1
  838. package/docs/environment-variables.md +2 -0
  839. package/docs/extensions/api-reference.md +7 -3
  840. package/docs/extensions/authoring.md +3 -1
  841. package/docs/extensions/events.md +3 -1
  842. package/docs/extensions/ui.md +2 -0
  843. package/docs/guides/resume-on-any-machine.md +3 -1
  844. package/docs/intercom/reference.md +1 -1
  845. package/docs/intercom.md +3 -3
  846. package/docs/keybindings.md +6 -2
  847. package/docs/libraries/tui.md +4 -0
  848. package/docs/providers.md +1 -1
  849. package/docs/rpc/protocol.md +6 -4
  850. package/docs/sdk/reference.md +10 -4
  851. package/docs/sdk.md +5 -2
  852. package/docs/security.md +5 -1
  853. package/docs/session-format.md +1 -1
  854. package/docs/sessions.md +16 -0
  855. package/docs/settings.md +2 -2
  856. package/docs/skills.md +3 -3
  857. package/docs/storage.md +25 -4
  858. package/docs/subagents.md +42 -45
  859. package/docs/tui.md +1 -1
  860. package/docs/usage.md +3 -1
  861. package/docs/workflows/api-reference.md +3 -1
  862. package/docs/workflows/authoring.md +1 -1
  863. package/docs/workflows/operations.md +21 -14
  864. package/docs/workflows.md +1 -1
  865. package/docs/worktree-snapshots.md +10 -8
  866. package/npm-shrinkwrap.json +71 -49
  867. package/package.json +9 -8
  868. package/schemas/settings.schema.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,119 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.90-alpha.1] - 2026-11-19
6
+
7
+ Every subagent now runs in the background, a click runs key hints and expands blocks in fullscreen mode, and large stores, retries and interrupts no longer stall Atomic.
8
+
9
+ **Subagents**
10
+
11
+ - **Every subagent runs in the background.** A launch returns once its children are admitted, so each one is listed below the prompt and in `/tasks`, where you can open its chat, message it or stop it. `subagent({ action: "wait", id })` waits for a result, and Esc ends that wait at once ([#5488](https://github.com/bastani-inc/atomic/pull/5488), [#5686](https://github.com/bastani-inc/atomic/issues/5686))
12
+ - **Steadier subagents.** `resume` refuses a child that is already running instead of never answering and waits for its worktree cleanup, a stop from the agent panel keeps a child resumable, elapsed times count from dispatch through release or stop, and a forked subagent's first request is no longer rejected over Claude's signed thinking ([#5485](https://github.com/bastani-inc/atomic/issues/5485), [#5560](https://github.com/bastani-inc/atomic/issues/5560), [#5589](https://github.com/bastani-inc/atomic/issues/5589), [#5609](https://github.com/bastani-inc/atomic/issues/5609), [#5688](https://github.com/bastani-inc/atomic/issues/5688), [#5570](https://github.com/bastani-inc/atomic/issues/5570), [#5481](https://github.com/bastani-inc/atomic/issues/5481))
13
+
14
+ **Fullscreen clicks**
15
+
16
+ - **Click a key hint to press it.** Key hints in chat footers, `/tasks`, `/workflows`, the workflow graph, dialogs, pickers, Intercom and tool blocks run their key on a click, and a hint that names a slash command runs it ([#5528](https://github.com/bastani-inc/atomic/pull/5528))
17
+ - **Click anywhere on a block to expand it.** Any block Ctrl+O expands opens or folds from a click on its title or output, while double- and triple-clicks still select text ([#5505](https://github.com/bastani-inc/atomic/pull/5505), [#5562](https://github.com/bastani-inc/atomic/issues/5562))
18
+
19
+ **Chats and the agent panel**
20
+
21
+ - **A panel for live work.** Finished subagents leave the agent panel at once, stopped or paused subagents and paused or blocked workflow runs stay only while other work runs, `↓ N agents` counts only subagents, `/workflows to see runs` points to runs that left, and every chat keeps one row between its working line and prompt ([#5476](https://github.com/bastani-inc/atomic/pull/5476), [#5477](https://github.com/bastani-inc/atomic/pull/5477), [#5490](https://github.com/bastani-inc/atomic/issues/5490), [#5504](https://github.com/bastani-inc/atomic/issues/5504), [#5710](https://github.com/bastani-inc/atomic/issues/5710))
22
+ - **Retries you can follow and stop.** The working line counts a turn through every retry and fallback model, chats opened mid-wait show `retrying…` or `switching model…`, reopened chats keep provider errors, and Esc cancels a pending retry or model switch without sending another request ([#5535](https://github.com/bastani-inc/atomic/issues/5535), [#5483](https://github.com/bastani-inc/atomic/issues/5483), [#5572](https://github.com/bastani-inc/atomic/issues/5572), [#5613](https://github.com/bastani-inc/atomic/issues/5613), [#5507](https://github.com/bastani-inc/atomic/issues/5507), [#5564](https://github.com/bastani-inc/atomic/issues/5564))
23
+ - **Esc always ends a turn.** A tool call that ignores the interrupt gets `Operation aborted` after 10 seconds, so an extension or MCP tool that never stops no longer keeps the session busy ([#5486](https://github.com/bastani-inc/atomic/issues/5486))
24
+
25
+ **Sessions, trust and extensions**
26
+
27
+ - **Extension startup errors keep the session.** A `session_start` or `resources_discover` handler that throws shows its error once and the session keeps working, at startup and on `/new`, `/resume`, `/fork` and `/reload` ([#5501](https://github.com/bastani-inc/atomic/issues/5501))
28
+ - **Project trust without false alarms.** Trusted projects no longer show the untrusted warning, session-only answers last through engine restarts, and a folder's prompts, skills and themes wait for its trust decision ([#5475](https://github.com/bastani-inc/atomic/pull/5475), [#5568](https://github.com/bastani-inc/atomic/issues/5568), [#5693](https://github.com/bastani-inc/atomic/issues/5693))
29
+ - **Session search and export.** `atomic storage search-session` searches one local SQLite session as a shell command you can run in the background, `history://` search continuations keep their place, and `atomic --export` shows subagent cards with their saved transcripts ([#5479](https://github.com/bastani-inc/atomic/pull/5479), [#5692](https://github.com/bastani-inc/atomic/issues/5692), [#5658](https://github.com/bastani-inc/atomic/issues/5658))
30
+ - **Account-only Copilot models in SDK sessions.** SDK sessions and `atomic -p` can use a saved, account-only GitHub Copilot model without running `atomic update --models` first ([#5685](https://github.com/bastani-inc/atomic/issues/5685))
31
+
32
+ **Performance and storage**
33
+
34
+ - **No multi-second freezes on large stores.** Workflow history, `/workflows`, `/resume`, `history://sessions` and closing a session now work in short steps, and snapshot lookups read kilobytes instead of megabytes ([#5480](https://github.com/bastani-inc/atomic/issues/5480), [#5530](https://github.com/bastani-inc/atomic/issues/5530), [#5541](https://github.com/bastani-inc/atomic/issues/5541))
35
+ - **Safer snapshot collection.** Moving the snapshot chunk table never fills the disk, a broken trigger or view that blocks the move is named, and bundles that older Atomic versions sharing the store still need are kept ([#5694](https://github.com/bastani-inc/atomic/issues/5694), [#5622](https://github.com/bastani-inc/atomic/issues/5622), [#5558](https://github.com/bastani-inc/atomic/issues/5558))
36
+ - **Less memory over long sessions.** Finished workflow runs release the sessions that summarized them, failed SDK runs release their stages, and Intercom keeps routes only for the 32 most recently finished invocations ([#5487](https://github.com/bastani-inc/atomic/issues/5487), [#5499](https://github.com/bastani-inc/atomic/issues/5499), [#5492](https://github.com/bastani-inc/atomic/issues/5492), [#5561](https://github.com/bastani-inc/atomic/issues/5561))
37
+ - **PostgreSQL through an HTTP proxy.** The PostgreSQL adapter tunnels through `HTTPS_PROXY`, `ALL_PROXY` or `HTTP_PROXY`, or its new `proxy` option, with TLS end to end. If you already set `HTTPS_PROXY` and reach a remote database directly, add its host to `NO_PROXY` or set `proxy` to `"none"` ([#5473](https://github.com/bastani-inc/atomic/issues/5473), [#5565](https://github.com/bastani-inc/atomic/issues/5565), [#5670](https://github.com/bastani-inc/atomic/issues/5670))
38
+ - **libSQL servers under schema churn.** Triggers, write batches and multi-statement `exec` calls recover from `SQLITE_SCHEMA` and `SQLITE_BUSY` without running a statement twice, and large workflow catalogs, exports and older sessions load within the server's limits ([#5509](https://github.com/bastani-inc/atomic/issues/5509), [#5536](https://github.com/bastani-inc/atomic/issues/5536), [#5652](https://github.com/bastani-inc/atomic/issues/5652), [#5676](https://github.com/bastani-inc/atomic/issues/5676), [#5537](https://github.com/bastani-inc/atomic/issues/5537), [#5590](https://github.com/bastani-inc/atomic/issues/5590))
39
+
40
+ **Workflows**
41
+
42
+ - **Reliable workflow resumes.** Resuming a failed run waits for the previous attempt to finish saving, keeps its run ID and checkpoints, releases the replaced stage session, and keeps open chats and questions on the live stage; `/resume <prefix>` lists every match ([#5527](https://github.com/bastani-inc/atomic/issues/5527), [#5569](https://github.com/bastani-inc/atomic/issues/5569), [#5559](https://github.com/bastani-inc/atomic/issues/5559), [#5577](https://github.com/bastani-inc/atomic/issues/5577))
43
+ - **Clearer run views.** Suspended stages show the `◌` waiting mark, a run that cannot reopen a waiting stage shows as blocked with `r resume run`, nested workflows on workers show their final state, and running stage borders pulse in their own colour ([#5489](https://github.com/bastani-inc/atomic/issues/5489), [#5534](https://github.com/bastani-inc/atomic/issues/5534), [#5616](https://github.com/bastani-inc/atomic/issues/5616), [#5596](https://github.com/bastani-inc/atomic/issues/5596))
44
+
45
+ **Windows, blueprints and skills**
46
+
47
+ - **Windows process cleanup.** Stopped commands, clones, hooks and blueprint steps have their process tree terminated once, and commands that ran to completion no longer fail with `Windows stdin worker stop was not confirmed` ([#5601](https://github.com/bastani-inc/atomic/issues/5601), [#5512](https://github.com/bastani-inc/atomic/issues/5512), [#5702](https://github.com/bastani-inc/atomic/issues/5702), [#5664](https://github.com/bastani-inc/atomic/issues/5664))
48
+ - **Sturdier blueprint steps.** A program the system refuses to start fails its step with the reason, or is retried briefly while another process holds it, and clock changes no longer stretch step deadlines ([#5608](https://github.com/bastani-inc/atomic/issues/5608), [#5707](https://github.com/bastani-inc/atomic/issues/5707))
49
+ - **Updated bundled skills.** `tdd`, `qlty`, `tmux`, `intercom`, `unslop`, `teach` and `prompt-engineer` follow their upstreams and current model guides, and `show-me` runs only when you type `/skill:show-me` ([#5474](https://github.com/bastani-inc/atomic/pull/5474), [#5566](https://github.com/bastani-inc/atomic/issues/5566))
50
+
51
+ **Breaking change:** The `subagent` launch `wait` option is gone and every launch runs in the background; to use a child's result in the same turn, call `subagent({ action: "wait", id })`. SDK hosts must pass only `{ kind: "background" }` or no policy to `AgentTaskHost.observeAgentLaunch`, wait for tasks with `waitForTask`, stop expecting a yield function in its `onRegistered` callback, and stop using the removed `TaskViewSource.foregroundTask`.
52
+
53
+ ### Breaking Changes
54
+
55
+ - `AgentTaskHost.observeAgentLaunch` takes only `{ kind: "background" }` or no policy, and always returns once the launch's observation is registered, because every subagent now runs in the background; wait for a task with `waitForTask`. Its `onRegistered` callback no longer receives a function that yields the observation. A JavaScript caller that still passes `{ kind: "foreground" }` gets the default background observation, with reason `default-background`. `TaskViewSource.foregroundTask`, which no view used, was removed.
56
+
57
+ ### Added
58
+
59
+ - `session.workflows.listRuns()` and a run control's `listProjectRuns()` take `{ signal }` as their last argument. When it aborts, the listing stops waiting for stored runs and rejects with the signal's reason ([#5480](https://github.com/bastani-inc/atomic/issues/5480))
60
+ - Agent panel sources can set `runGeneration` on an item, an identity of its latest run, so a stopped or paused row that left the panel and ran again, however briefly, is listed again while other work runs ([#5504](https://github.com/bastani-inc/atomic/issues/5504))
61
+ - A storage driver's `transientFailure` can return `hop: { name, failure }` for a call that failed before it reached the database server, such as at a proxy. `StorageTransientError`, and the warning printed while the call is retried, then say what happened at that hop instead of "the database server call failed", and the hint asks to check that hop; the error carries it as `hop` and `hopFailure`. The PostgreSQL adapter uses it to name the proxy ([#5473](https://github.com/bastani-inc/atomic/issues/5473))
62
+ - `AgentTaskHost.waitForTask` takes an optional `AbortSignal` as its fourth argument. Aborting it ends the wait at once with `ObserverCancelled` and leaves the task running.
63
+ - Set `ATOMIC_EVENT_LOOP_BLOCK_STACKS=0` alongside the event-loop diagnostic threshold to record delays without a stack sampler changing the process's latency. Stack collection remains the diagnostic's default ([#5544](https://github.com/bastani-inc/atomic/issues/5544)).
64
+ - In fullscreen mode, a click on a key hint runs it as pressing its key does: the chat footers (`← main chat`, `↓ agents`, `esc interrupt`, `ctrl+o expand`, `? keys`), the hint rows of `/tasks`, `/workflows`, the workflow graph, dialogs and pickers, and hints inside tool blocks and notices. In a hint that names two keys, such as `pgup/pgdn scroll` or `1-2 pick`, the key you click is pressed. Shortened key names in help keep their click. A literal `/` binding works in picker help, including the shortcut that closes it. A hint that names a slash command, such as `/tasks to manage`, runs it and keeps what you typed in the prompt. A key that asks for confirmation asks after a click too, a drag across a hint still selects text, and a double-click runs a hint once. `?`, `↓` and a chat's `←`, which act only on an empty prompt when typed, act on a click whatever the prompt holds
65
+ - `atomic storage search-session <sqlite-file> <session-id> <pattern> [cursor]` prints one local session's search pages without updating the store or queuing behind its writers. It follows advancing budget cursors and stops quietly when its output pipe closes. Run it as a background shell command to wait for or stop it through the usual task controls. Ordinary `history://` searches and manual cursor follows do not create tasks.
66
+
67
+ ### Changed
68
+
69
+ - The agent panel below the prompt drops a subagent as soon as it finishes. Stopped, paused or interrupted subagents stay only while another subagent, workflow run or background shell is still running, then the whole panel closes, and a resumed subagent is listed once. `↓ N agents` counts only the subagents the panel lists, not workflow runs, so a running workflow alone no longer shows `↓ 1 agent`; `N needs input` still counts a workflow run's question. When the panel lists nothing but `/tasks` lists subagents, the hint shows `/tasks to see subagents`, or `N shells · /tasks to manage` while background shells run.
70
+ - Subagent and workflow stage chats draw the rules above and below their prompt with the same light line as the main chat. They keep their accent colour and the label that names the agent or stage. Extension chats built with `applyAttachedComposer()` get the same light rules.
71
+ - In fullscreen mode, a click anywhere on a block that Ctrl+O expands now opens or folds it, not only a click on its header: its title, its output and its `… +N lines` row alike. This covers tool calls, grouped-call summaries, finished-agent cards, `!` shell commands, Intercom messages, task and workflow heartbeats, workflow, subagent and stage notices, skill blocks, branch summaries, compaction boundaries, extension message cards and entries, task rows and the startup resource list, in the main chat (isolated engine included), `/tasks` transcripts, subagent chats and stage chats. A click takes effect about half a second after the press, once it cannot be the start of a double-click, so double- and triple-clicks select a word or a line without opening anything; drags still select and link clicks still open the link. A block with nothing more to show ignores the click and the chat keeps following its latest output. Skill blocks, branch summaries and compaction boundaries, which already toggled on any click, now wait the same way, so a double-click on them selects text. A pending click uses the block’s current output, group and width, even after a resize. Ctrl+O takes precedence over an earlier click, and a burst of single clicks in an isolated chat no longer loses toggles ([#5562](https://github.com/bastani-inc/atomic/issues/5562)).
72
+
73
+ ### Fixed
74
+
75
+ - A `history://` search continuation can now keep its place when an unread session gets a new message or its next workflow run disappears. The search keeps its original first-page order and uses the existing cursor when the extra position cannot fit. Earlier `after=` and `run=` URLs still work ([#5692](https://github.com/bastani-inc/atomic/issues/5692)).
76
+ - From the interactive engine's first trust report, the interface withholds a folder's prompts, skills, themes and settings while a registered `project_trust` handler can still decline it. A pending check does not show the untrusted warning. New views and completions use the folder's resources once approved, even if an independent `-e` source is still being checked. An open Atomic picker or completion menu keeps its contents and your selection ([#5693](https://github.com/bastani-inc/atomic/issues/5693)).
77
+ - Drawing the usage meter no longer checks credential files synchronously, avoiding a stalled frame when those file checks are slow ([#5516](https://github.com/bastani-inc/atomic/issues/5516)).
78
+ - Subagents started from deeply nested directories no longer wait for each parent directory's resource checks one at a time, keeping starts responsive while the main thread is busy ([#5514](https://github.com/bastani-inc/atomic/issues/5514)).
79
+ - The main chat no longer leaves a blank row between the working line and the usage meter above the prompt. Every chat now keeps exactly one row there: the usage meter, or a blank row in a subagent or stage chat with no usage to show, so a chat's last line never runs into its prompt.
80
+ - A subagent or workflow stage chat waiting to retry a request, switch model or resume now shows `retrying…`, `switching model…` or `resuming…` as its working line above the prompt, instead of a line below its transcript. A chat opened or reopened while its agent already waits to retry a failed request or switch model shows the wait as its working line straight away, instead of looking idle until the next attempt. This includes a stage that runs on a local worker, and a subagent with a fallback model, as the builtin agents on `model: auto` have, which showed a running turn with a growing timer instead. A follow-up delivery warning no longer replaces the working line in subagent or stage chats ([#5483](https://github.com/bastani-inc/atomic/issues/5483), [#5523](https://github.com/bastani-inc/atomic/issues/5523), [#5572](https://github.com/bastani-inc/atomic/issues/5572)).
81
+ - A subagent released while it waits on a tool call now shows the dim `◌` waiting mark on its completion notice, as `/tasks`, the agent panel, the task footer and its launch card already show it, instead of the pause mark `⏸`. Notices saved by earlier versions show the waiting mark too, and reopening a session that recorded a subagent's release only in its notice title shows `◌` and the tool calls it was waiting on, instead of `◼ stopped`. A paused or quit subagent keeps `⏸`, and older notices that recorded a pause or quit show it ([#5489](https://github.com/bastani-inc/atomic/issues/5489), [#5563](https://github.com/bastani-inc/atomic/issues/5563))
82
+ - An extension tool whose call renders a `waiting` or `heartbeat` block keeps its own title once its result arrives, instead of falling back to the tool's label ([#5489](https://github.com/bastani-inc/atomic/issues/5489))
83
+ - On a large store, closing a session (`/new`, `/resume`, `/fork`, quitting, or disposing an SDK session) no longer freezes Atomic for several seconds. The automatic collection of unreferenced worktree-snapshot content used to work out, in each of its statements, which snapshots every session in the store keeps. On a copy of a real 83 GB store, one collection blocked the interface for a single 6.1 to 6.7 s stretch. It now walks a few sessions at a time and deletes in batches of at most 8 blobs, with the interface running in between: no step exceeded 19 ms with the store's pages cached. Without them, the slowest step was 36 ms, apart from deleting a blob, which took 40 to 280 ms per batch while the chunk table still read whole chunks on every lookup ([#5541](https://github.com/bastani-inc/atomic/issues/5541)). Each page of a collection reads the blob age index from where the page before it ended, so on a store with a million blobs its steps stay as short and the collection takes seconds instead of minutes. Collection still deletes only what nothing retains, and other Atomic processes can write the store meanwhile. It never lets other work run while it holds the database's write lock, so another connection of the same process, such as one an SDK host opens to the same database, can write during a collection; before, such a write could stop Atomic for 5 to 10 seconds and then fail with `database is locked`. Deleting a session saved before the SQLite default records the deletion in a transaction for the same reason. It now starts 10 seconds after a session closes, or after an interactive session starts, so it never competes with opening a session, and closing or quitting never waits for it. `scheduleSnapshotCollection` takes `delayMs` for the same deferral ([#5530](https://github.com/bastani-inc/atomic/issues/5530))
84
+ - Worktree snapshots on SQLite and libSQL no longer read several megabytes for every lookup in the snapshot chunk table. The table kept its 1 MiB rows inside its key's b-tree (`WITHOUT ROWID`), so each lookup read every chunk it passed. On a store with 1.8 GB of chunks, snapshot collection read about 10 MB to delete each 12 KB blob, restoring a 56 MB snapshot blob read 677 MB, and recording a snapshot read every chunk of its large blobs again to check that they were stored. New stores create the table as an ordinary table with the same name, columns and key. Snapshot collection moves an existing table to that layout in transactions that each copy or free at most 4 MiB of chunks, including while other processes add and delete blobs, and a stopped collection resumes the move. Afterwards the same operations read about 70 KB, 56 MB and 20 KB. Every blob keeps its exact bytes, and Atomic 0.9.88 and 0.9.89 processes sharing the store keep reading and writing it during and after the move. The database file grows once by the size of the chunk table while it is copied; SQLite reuses the freed pages for later writes. PostgreSQL stores are unchanged, because their tables already keep keys apart from rows ([#5541](https://github.com/bastani-inc/atomic/issues/5541))
85
+ - Snapshot collection no longer fills the disk when it moves an older snapshot chunk table to the new layout on a disk with less free space than the table. On a SQLite or libSQL file, the move now starts only when the file system the database file is on, through a link too, has room for the copy, its write-ahead log and another 64 MiB; otherwise the collection completes as before and keeps the current layout, and a partial copy left by an earlier attempt is dropped so its space is reused by later writes. On a libSQL server, whose disk Atomic cannot see, a table with more than 64 MiB left to copy keeps its layout, as on a database you bring yourself unless it reports its file system's free space through the new optional `freeBytes()` driver call (`SqliteDatabase.freeBytes`). On any backend, a disk that fills up or fails to read or write during the move ends the move, not the collection, which keeps its deletions; a later collection tries the move again. ([#5694](https://github.com/bastani-inc/atomic/issues/5694))
86
+ - An extension whose `session_start` or `resources_discover` handler throws no longer takes the interactive session down. Atomic shows `Extension "<path>" error: <message>` once per failing handler, with its stack when available, and keeps working: the extension stays loaded, so its commands, tools and other handlers still run. Before, the error was shown up to three times and every prompt answered `Session is closed`; the isolated engine stopped Atomic with `Agent process exited (code=1)` or left a submitted prompt in the editor; `/new` exited Atomic, `/fork` left a closed session and `/reload` was rejected. This applies at startup, with `-c` or `--resume`, and on `/new`, `/resume`, `/fork` and `/reload`. Print mode, standalone RPC mode, SDK sessions and workflow stages still fail startup with `ExtensionStartupError`. SDK hosts can choose the interactive behaviour with `extensionBindings.reportStartupErrors`. An extension error reported while interactive startup is still loading, for example by a project extension whose `session_start` throws after you answer the trust question, now stays on screen instead of disappearing when startup redraws the transcript ([#5501](https://github.com/bastani-inc/atomic/issues/5501)).
87
+ - SDK extension factories with the same display name no longer hide one another's startup errors. A custom loader that selects one of them now starts a fresh instance of the selected factory for each session and preserves its `replaceable` setting ([#5501](https://github.com/bastani-inc/atomic/issues/5501)).
88
+ - A paused workflow run, or one blocked on a failed stage, no longer keeps the agent panel open on its own. Like a paused subagent, it stays listed while another subagent, workflow run or background shell runs, and leaves once nothing does, until you resume it; `/tasks` and `/workflows` still list it. When such a run leaves the panel, the main chat shows `/workflows to see runs` below the prompt when it fits beside the status and existing hints, and the run does not count as an agent. A run waiting for input still keeps the panel open ([#5490](https://github.com/bastani-inc/atomic/issues/5490), [#5710](https://github.com/bastani-inc/atomic/issues/5710))
89
+ - A subagent whose turn was interrupted, or a paused or blocked workflow run, that left the agent panel and was resumed and then stopped or paused again before the panel updated now comes back while other work runs, instead of staying hidden. A workflow that resumes and blocks again between panel updates reappears alongside active work even within the same millisecond, and switching between subagent chats no longer brings a stopped child back into its chat footer ([#5504](https://github.com/bastani-inc/atomic/issues/5504), [#5567](https://github.com/bastani-inc/atomic/issues/5567))
90
+ - Fixed Esc not ending a turn while a tool call ignored the interrupt: the turn waited for every tool call to return, so a call that did not stop (an extension or MCP tool that does not watch its abort signal, or a long wait inside a tool) kept the session busy for good, with queued messages never sent. A tool call that has not stopped 10 seconds after the interrupt now gets an `Operation aborted` result and the turn ends, in the main chat, subagent and workflow stage chats, and the default isolated host alike. The call may keep running, but later tool calls no longer wait for it. If it returns or fails after the grace period, its output is discarded: nothing is added to the chat or sent to the model. A tool call still waiting for an earlier one ends at once with `Operation aborted` and never runs, even when the earlier call goes on after its turn let it go (a `detachable` tool's call in a released session); an interrupted `detachable` call no longer detaches, even one marked ready for detachment in the same tick as the interrupt, and gets its own result or `Operation aborted` like any other, while a call that detached before the interrupt is not cancelled by it. A late failure is discarded even when its reason cannot be converted to text. A call already handed to the host returns an error result if its output cannot be read, and a result that cannot be recorded fails that call rather than interrupting the resumed turn or stage. `ATOMIC_TOOL_ABORT_GRACE_MS` changes the 10 seconds ([#5486](https://github.com/bastani-inc/atomic/issues/5486))
91
+ - The working line and the final `… for Ns` row count a turn from its start through every retry of a failed request and every move to a fallback model, in the main chat, subagent chats and workflow stage chats, also in a chat opened partway through. Before, the count started again at each attempt, so a retried turn read only its last attempt, and Esc during a subagent's retry wait left `… for 0s`. Esc during the main chat's retry wait now keeps the turn's row, with the time up to then, instead of removing it, and the main chat keeps the row of a turn that finished on a fallback model. A subagent or stage chat keeps the row of a turn that ran out of fallback models beside its error, which used to hide it. A turn whose model has no key and that starts on a fallback model counts from its own start, not the previous turn's ([#5535](https://github.com/bastani-inc/atomic/issues/5535)).
92
+ - Under Node, each workflow run that finishes no longer keeps the session that wrote its summary, and the run text it summarized, in memory for the rest of the process. A long session that runs many workflows, and an SDK host that disposes such sessions, now release them ([#5487](https://github.com/bastani-inc/atomic/issues/5487))
93
+ - On a busy Windows machine, a subagent's named-worktree checkout whose Git command ran to completion no longer fails with `Windows stdin worker stop was not confirmed`. The earlier fix did not cover commands that keep their background processes when they exit, and a named worktree's Git commands always do, so that the processes a hook starts survive the checkout. Such a command also no longer fails after completion just because its idle input thread was paused while holding the input queue lock ([#5512](https://github.com/bastani-inc/atomic/issues/5512), [#5702](https://github.com/bastani-inc/atomic/issues/5702))
94
+ - The opt-in event-loop diagnostic takes stack samples with a CPU profile instead of pausing the process with a debugger. Turning it on no longer makes a `debugger;` statement freeze the application, and sampling does not interfere with an attached debugger's breakpoints. Completed profiles are discarded instead of retaining a growing script catalog. Stalls across startup, session and shutdown boundaries keep their own stack samples, even when a phase ends in a microtask. Separately defined functions with the same name are no longer merged ([#5544](https://github.com/bastani-inc/atomic/issues/5544), [#5638](https://github.com/bastani-inc/atomic/issues/5638)).
95
+ - `history://sessions` no longer freezes Atomic for up to seconds at a time on a large SQLite session store. Listing one project's sessions read the first message and summary of every stored session, of every project, up to 8,192 sessions per step, which took seconds per step when the store's pages were not cached. The listing now reads other projects' sessions only far enough to skip them, reads at most 256 sessions per step, and lets the interface run between steps. On a store of 70,000 sessions it finishes in a third to a quarter of the time ([#5480](https://github.com/bastani-inc/atomic/issues/5480))
96
+ - Starting or resuming a session in a trusted project no longer shows "This project is not trusted. Project .atomic resources and packages are ignored." The interface checked trust while the session was still deciding it, read that as untrusted, and kept the warning after the session had decided. The warning now waits for the decision and follows it, so a project trusted through `defaultProjectTrust: "always"` or a `project_trust` extension no longer shows it either. The warning that an untrusted project's resources are ignored no longer disappears when the chat is redrawn: after the trust question at startup, on `/reload` and after compaction. A session that started in a project you declined, or saved "Do not trust" for, showed no warning at all. After compaction the warning shows below the compaction marker
97
+ - An answer for this session only ("Trust (this session only)" or "Do not trust (this session only)"), to the question about a project folder or about an `-e` extension source, now lasts for the whole session. After Atomic restarted its engine, for example because the engine stopped responding, it asked again about the current folder, the `-e` sources and folders you switched back to with `/resume`, also when the restart came while Atomic loaded models or waited for another trust answer. The answer is still never saved ([#5568](https://github.com/bastani-inc/atomic/issues/5568))
98
+ - Esc in a subagent's chat now cancels the subagent's retry while it waits to send a failed request again, as Esc does in the main chat: the subagent stops, shows `Stopped · send to resume`, and your next message continues it in the same session. The hint under its prompt shows `esc interrupt` for the whole wait. Before, Esc did nothing during the wait and the hint dropped `esc interrupt`. Cancelling a retry right after a request fails, before the retry's wait starts (for example with the RPC `abort_retry` command), now cancels it; before, the next attempt still started after the cancellation. Pressing Esc while a chat switches to a fallback model now ends the turn without sending the pending request. A new message can still retry normally, and `abort_retry` during the first request does not disable a later retry ([#5507](https://github.com/bastani-inc/atomic/issues/5507), [#5564](https://github.com/bastani-inc/atomic/issues/5564)).
99
+ - A subagent's chat opened after one of its requests failed or was interrupted before any text arrived, for example during the retry wait or after the subagent finished, now shows the request's `Error: …` line or `Interrupted` block, as the main chat does. Before, the chat showed them only when it was open as the request ended. Reopened task chats keep shell commands and displayed notices alongside provider errors, including errors from replies with no readable content ([#5529](https://github.com/bastani-inc/atomic/issues/5529), [#5613](https://github.com/bastani-inc/atomic/issues/5613)).
100
+ - On Windows, a `!command` config value or a blueprint step that is stopped has its process tree terminated once. Atomic no longer terminates it again when the command's exit arrives, or when an abort comes after its timeout ([#5601](https://github.com/bastani-inc/atomic/issues/5601))
101
+ - On Windows, a blueprint step stopped after its command exited, while a process the step started still writes its output, no longer kills by the command's pid, which may already name another process. This applies when the step's processes could not be contained. Stopping such a step after its command exited without a Job object now warns that descendants may still be running; a command that never started emits no such warning ([#5601](https://github.com/bastani-inc/atomic/issues/5601), [#5664](https://github.com/bastani-inc/atomic/issues/5664))
102
+ - A model request waiting for a free slot under a provider request limit no longer starts after its caller's deadline or cancellation has passed. When the slot opens at the same moment as the deadline, or while the process is busy and gets to both late, the deadline now wins and the request ends as aborted. A request whose caller gives up while a worker pool's shared rate limit is answering is no longer sent either ([#5604](https://github.com/bastani-inc/atomic/issues/5604)).
103
+ - Resuming an older SQL session no longer fails when a chunked entry exceeds the database's value limit. Entries that fit still use the database's native metadata projection; larger ones are read in bounded chunks. Only the completed index is written; an interrupted scan starts over when the session is next opened ([#5590](https://github.com/bastani-inc/atomic/issues/5590)).
104
+ - A blueprint step whose program the system refuses to start right away, for example a working directory that is a file, now fails as that step with `could not be started: …` in its log, instead of ending the build with an unexpected error. A program refused for a moment, with `EPERM` or `EBUSY` on Windows or `ETXTBSY` on Linux, as while an antivirus scan or the installer that just wrote it still holds it, is tried again for up to half a second, within the step's timeout, before the step fails. A program that stays refused therefore fails its step at most half a second later than before. Nothing is started once the step's time is up, even when a try comes late because Atomic was busy, and cancelling the build while it waits starts nothing more. Steps get no extra time to launch previously refused programs or action commands when the system clock moves backward. Time spent asleep counts toward retry and action launch deadlines and is included in reported step durations. Fractional timeouts keep the action’s original deadline, and a long timeout no longer becomes a 1 ms timer ([#5608](https://github.com/bastani-inc/atomic/issues/5608), [#5707](https://github.com/bastani-inc/atomic/issues/5707)).
105
+ - Exporting one selected workflow run from a named database no longer requires the server to return the entire catalog in one response. If the catalog is too large, the export reads the selected run and its events together; a missing run or unsupported journal version leaves the previous backup untouched ([#5537](https://github.com/bastani-inc/atomic/issues/5537)).
106
+ - The warning for a failed snapshot collection, a process warning or a workflow run's warning notice, now gives the database's own reason, such as `database is locked`, instead of only general advice. SQLite renames no table while a trigger or view in the database refers to a missing table, even one another application created, so such an object stops the move of the snapshot chunk table to its new layout on every collection. The warning now names that trigger or view and says that fixing or dropping it lets the next collection finish the move; before, it only said to check that the database is writable, has free space and is not locked. SQLite does not quote the name in its report, so when another trigger or view has a name the report could also mean, such as `sales` beside a broken `sales after rename`, the warning names neither. It is still shown once per process ([#5622](https://github.com/bastani-inc/atomic/issues/5622)).
107
+ - Stopping a running subagent from the agent panel or `/tasks` now keeps it resumable when Bun loads the extension and the CLI from separate SDK modules. Previously, the stop could cancel the child for good ([#5688](https://github.com/bastani-inc/atomic/issues/5688)).
108
+ - Selecting a workflow in `/resume` after another caller has resumed it and it has blocked again now asks you to refresh the list instead of retrying the newer attempt ([#5569](https://github.com/bastani-inc/atomic/issues/5569)).
109
+ - On a store shared with Atomic 0.9.87 or earlier, snapshot collection no longer deletes the bundle a partly restored worktree still needs after the older Atomic has indexed its sessions. The older Atomic could do that by finishing an index rebuild that this Atomic, or Atomic 0.9.88 or 0.9.89, had to stop, or by installing its own index triggers after this Atomic's had gone missing, even when only one of them was missing. This Atomic now recognises these cases and indexes those sessions again before it deletes anything. Until its rebuild is done, Atomic 0.9.88 and 0.9.89 sharing the store read the index as another version's and rebuild it themselves instead of trusting it ([#5558](https://github.com/bastani-inc/atomic/issues/5558))
110
+ - Paging back through a long failed subagent reply no longer repeats its terminal notice. Interrupted tool calls keep their failure details ([#5651](https://github.com/bastani-inc/atomic/issues/5651)).
111
+ - Shell completion notices and `/tasks` no longer show replacement characters when the last 8 KiB of output start inside a UTF-8 character. Saved shell excerpts and expanded previews keep emoji, combining sequences and omission labels whole. Short task titles in the agent panel and attached chat now keep emoji and combining sequences whole and count the ellipsis inside the 60-unit limit. Subagent completion notices no longer split an emoji at the end of the saved preview or the result excerpt sent to the parent; waiting on the task still returns the same result ([#5654](https://github.com/bastani-inc/atomic/issues/5654), [#5671](https://github.com/bastani-inc/atomic/issues/5671)).
112
+ - Quitting at the first prompt after declining project trust no longer crashes if the bundled local model provider is still loading ([#5639](https://github.com/bastani-inc/atomic/issues/5639)).
113
+ - `atomic --export <session.jsonl>` shows an agent card when a single subagent launch on the selected branch has a recorded child transcript or background handoff. Expand it to see the saved prompt, tool calls and answer, or a note when the child history is not included. The original arguments and receipt remain available beneath the card ([#5658](https://github.com/bastani-inc/atomic/issues/5658)).
114
+ - On Windows with the native bindings loaded, clock probes use the runtime’s creation permissions and are removed by a verified handle. If removing a newly published pool record’s temporary link is briefly refused, Atomic checks that it still names the published file before retrying. A held slot has the same permissions as an ordinary mode-0600 record. Taking a lock or sampling the clock does not load or install the bindings. Clock readings preserve existing probes on a name collision. Windows filesystem-time readings count cleanup time without treating a change to the reader’s wall clock as elapsed time; other platforms keep their existing estimate ([#5605](https://github.com/bastani-inc/atomic/issues/5605), [#5634](https://github.com/bastani-inc/atomic/issues/5634), [#5636](https://github.com/bastani-inc/atomic/issues/5636)).
115
+ - When a reopened subagent notice has no saved outcome, its separately saved agent name can distinguish a stop from pause or wait wording in the task description. A title alone is ambiguous: an agent's name can end in `killed (non-resumable):`. Notices without a separate name, or with a body or preview, keep their previous reading ([#5690](https://github.com/bastani-inc/atomic/issues/5690)).
116
+ - SDK sessions and `atomic -p` can use a saved, account-only GitHub Copilot model without first running `atomic update --models`. The first prompt checks the account list only when no catalog is cached and no local model or configured fallback can handle it. Startup, shared model listings and credentials are unchanged ([#5685](https://github.com/bastani-inc/atomic/issues/5685)).
117
+
5
118
  ## [0.9.89] - 2026-11-18
6
119
 
7
120
  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.
@@ -4,6 +4,19 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.90-alpha.1] - 2026-11-19
8
+
9
+ ### Added
10
+
11
+ - In fullscreen mode, a click on a key in the intercom session list's and message dialog's hint rows, such as `Enter: Send` or `Escape: Close`, presses that key
12
+
13
+ ### Fixed
14
+
15
+ - The bundled intercom skill now teaches answering a sender outside your groups (up to 3 messages within 30 minutes of its latest message, and the refusal once that path closes), and no longer tells the model that Intercom works on one machine only: with multi-node routing, sessions on machines that share storage message each other, and ungrouped sessions join their project group.
16
+ - A finished workflow run's pending-stage route that the workflows extension withdraws is no longer registered again after a broker reconnect, and its route connection closes once no other run's route uses it, so a long session no longer keeps one connection per finished run ([#5492](https://github.com/bastani-inc/atomic/issues/5492))
17
+ - Transferring a nested workflow to another host now releases its stage route without disconnecting the parent or siblings. An older broker still retires routes when their connection closes ([#5561](https://github.com/bastani-inc/atomic/issues/5561)).
18
+ - A delayed announcement or reconnect no longer registers an earlier workflow stage’s chat route over its successor. Unless replaced, the released stage keeps its listed ID while answering asks in order and after its chat closes again ([#5577](https://github.com/bastani-inc/atomic/issues/5577)).
19
+
7
20
  ## [0.9.89] - 2026-11-18
8
21
 
9
22
  ### Added
@@ -272,7 +272,7 @@ Do not use `contact_supervisor` for routine completion handoffs. Return the fina
272
272
 
273
273
  Cross-group delivery uses a dedicated broker protocol. Ordinary raw `send` frames always remain group-isolated and are rejected if they include a forged `channel: "supervisor"` marker. A child can cross groups only after its broker-issued capability has bound its registered socket to the exact supervisor. The broker adds the `supervisor` channel marker to validated inbound traffic so parent relays can distinguish it. Replies cross back only when `replyTo` matches a recorded supervisor message in the exact reverse direction; fabricated thread IDs do not bypass isolation.
274
274
 
275
- Parallel asks, decisions, interviews, sends, and progress updates use ordinary Intercom delivery. The exact-child probe/commit handshake may release foreground observations so the parent can reply; it never cancels the batch or discards queued siblings. Only blocking requests wait for a reply. Targeted cancellation and owner/batch cleanup remain separate. Single-child claimed parent asks retain their source-side terminal fresh-start handoff.
275
+ Asks, decisions, interviews, sends, and progress updates from subagents use ordinary Intercom delivery. The exact-child probe/commit handshake lets a child's message reach its busy parent so the parent can reply; it never cancels the batch or discards queued siblings. Only blocking requests wait for a reply. Targeted cancellation and owner/batch cleanup remain separate. Only a single child that an SDK host without a task owner runs directly ends with the source-side terminal fresh-start handoff when its parent ask is claimed.
276
276
 
277
277
  ### Example: Blocked Subagent Asks for Guidance
278
278
 
@@ -488,6 +488,8 @@ A workflow stage warming up before its heavy module exists is the one case the r
488
488
 
489
489
  Messages use length-prefixed JSON over a local socket/pipe transport (4-byte length + JSON payload) to handle fragmentation properly. The protocol includes request correlation for session listing, explicit delivery failures, and validation for malformed or out-of-order messages.
490
490
 
491
+ A broker that accepts individual workflow route retirement advertises `withdrawsPendingStageRoutes: true` in `registered`. A host sends an opaque `generation` with `register_pending_stage_route` for that publication lifetime. To retire it, the registering socket sends `{ type: "withdraw_pending_stage_route", runId, generation, requestId }`. The broker removes the route and roster only if both the socket owner and generation still match. It confirms processing, including a stale no-op, with the same correlated acknowledgement as a publication: `{ type: "pending_stage_route_registered", requestId }`. Other routes on the socket keep working. Registrations without a generation still retire on disconnect. If the broker does not advertise the feature, the host sends no withdrawal frame, reports the fallback once, and closes the route connection when its last run retires.
492
+
491
493
  Host registrations may declare the immutable `recipientPurpose` as `"agent"` or `"control"`; omission retains legacy agent behavior. Dedicated pending-stage route clients register as controls. Presence, name, status, and membership updates cannot change that purpose. The broker keeps control connections for route ownership while excluding them from recipient discovery and ordinary delivery. Known `ctx.ui` prompt and `ctx.tool` paths are rejected before speculative future-stage queueing; wildcard queues remain available for future agents.
492
494
 
493
495
  Workflow roster announcements keep node `recipientPurpose` separate from `routeEligible`: a hidden pending row does not make a genuine live agent ineligible. Internal run-parent metadata carries the uniquely resolved boundary names and IDs, so nested tool paths are refused by the broker before invoking their route owner. Materialized run-ID segments retain their existing precedence and may occur at any depth.
@@ -230,6 +230,7 @@ function exitBecauseLiveBrokerOwnsSocket(): never {
230
230
 
231
231
  interface PendingStageRouteRegistration {
232
232
  readonly sessionId: string;
233
+ readonly generation?: string;
233
234
  readonly group: string;
234
235
  readonly capability: string;
235
236
  /** Registered by a restarted owner for an interrupted run; yields to the process that resumes it (#3760). */
@@ -2152,6 +2153,7 @@ class IntercomBroker {
2152
2153
  ...(supervisorId ? { supervisorSessionId: supervisorId } : {}),
2153
2154
  ...(clientMessage.acknowledgesReceipt === true ? { acknowledgesReceipt: true as const } : {}),
2154
2155
  acknowledgesPendingStageRoutes: true as const,
2156
+ withdrawsPendingStageRoutes: true as const,
2155
2157
  refusesPendingStageRoutesInPlace: true as const,
2156
2158
  brokerStatus: true as const,
2157
2159
  claimsWorkflowInvocations: true as const,
@@ -2776,6 +2778,20 @@ class IntercomBroker {
2776
2778
  break;
2777
2779
  }
2778
2780
 
2781
+ case "withdraw_pending_stage_route": {
2782
+ const { runId, generation, requestId } = clientMessage;
2783
+ if (typeof runId !== "string" || !runId || typeof generation !== "string" || !generation || typeof requestId !== "string")
2784
+ throw new Error("Invalid pending-stage route withdrawal");
2785
+ const owner = this.pendingStageRoutes.get(runId);
2786
+ if (owner?.sessionId === currentId && owner.generation === generation && this.sessions.get(currentId)?.socket === socket) {
2787
+ this.forgetPendingStageRoute(runId);
2788
+ this.dispatchHeldSends(this.releaseInvocationOrphans(owner.group));
2789
+ }
2790
+ // A stale request is also settled. Never disclose or remove the replacement owner.
2791
+ writeMessageIfOpen(socket, { type: "pending_stage_route_registered", requestId });
2792
+ break;
2793
+ }
2794
+
2779
2795
  case "register_pending_stage_route": {
2780
2796
  if (
2781
2797
  typeof clientMessage.runId !== "string" ||
@@ -2784,6 +2800,7 @@ class IntercomBroker {
2784
2800
  typeof clientMessage.capability !== "string" ||
2785
2801
  !clientMessage.capability ||
2786
2802
  (clientMessage.requestId !== undefined && typeof clientMessage.requestId !== "string") ||
2803
+ (clientMessage.generation !== undefined && (typeof clientMessage.generation !== "string" || !clientMessage.generation)) ||
2787
2804
  (clientMessage.launcherCapability !== undefined &&
2788
2805
  (typeof clientMessage.launcherCapability !== "string" || !clientMessage.launcherCapability))
2789
2806
  ) {
@@ -2903,6 +2920,7 @@ class IntercomBroker {
2903
2920
  }
2904
2921
  this.pendingStageRoutes.set(clientMessage.runId, {
2905
2922
  sessionId: currentId,
2923
+ generation: clientMessage.generation,
2906
2924
  group: ownerGroup,
2907
2925
  capability: clientMessage.capability,
2908
2926
  ...(dormant ? { dormant: true as const } : {}),
@@ -3849,6 +3867,20 @@ class IntercomBroker {
3849
3867
  this.afterDeparture(() => writeMessageIfOpen(socket, frame));
3850
3868
  };
3851
3869
 
3870
+ private forgetPendingStageRoute(runId: string): void {
3871
+ this.pendingStageRoutes.delete(runId);
3872
+ this.workflowRosters.delete(runId);
3873
+ this.workflowStageAliases.forgetRun(runId);
3874
+ this.returnPaths.forgetRun(runId);
3875
+ }
3876
+
3877
+ /** Only the last route of an invocation releases its orphaned children. */
3878
+ private releaseInvocationOrphans(invocation: string): HeldSend[] {
3879
+ for (const route of this.pendingStageRoutes.values()) if (route.group === invocation) return [];
3880
+ const inInvocation = (group: string) => invocationOwnsGroup(invocation, group);
3881
+ return [...this.restoringRecipients.dropOrphans(inInvocation), ...this.departedChildren.dropOrphans(inInvocation)];
3882
+ }
3883
+
3852
3884
  private departSession(sessionId: string, ended: boolean): void {
3853
3885
  const departed = this.sessions.get(sessionId);
3854
3886
  if (!departed) return;
@@ -3986,18 +4018,11 @@ class IntercomBroker {
3986
4018
  const endedInvocations = new Set<string>();
3987
4019
  for (const [runId, owner] of this.pendingStageRoutes) {
3988
4020
  if (owner.sessionId !== sessionId) continue;
3989
- this.pendingStageRoutes.delete(runId);
3990
- this.workflowRosters.delete(runId);
3991
- this.workflowStageAliases.forgetRun(runId);
3992
- this.returnPaths.forgetRun(runId);
3993
- endedInvocations.add(normalizeGroup(owner.group));
4021
+ this.forgetPendingStageRoute(runId);
4022
+ endedInvocations.add(owner.group);
3994
4023
  }
3995
4024
  // #4639: once no route of a run is left, the released children its stages kept while away go with it.
3996
- for (const invocation of endedInvocations) {
3997
- if ([...this.pendingStageRoutes.values()].some((route) => normalizeGroup(route.group) === invocation)) continue;
3998
- unreserved.push(...this.restoringRecipients.dropOrphans((group) => invocationOwnsGroup(invocation, group)));
3999
- unreserved.push(...this.departedChildren.dropOrphans((group) => invocationOwnsGroup(invocation, group)));
4000
- }
4025
+ for (const invocation of endedInvocations) unreserved.push(...this.releaseInvocationOrphans(invocation));
4001
4026
  for (const [requestId, pending] of this.pendingStageAcknowledgments) {
4002
4027
  if (pending.ownerSessionId !== sessionId) continue;
4003
4028
  clearTimeout(pending.timeout);
@@ -92,6 +92,7 @@ import {
92
92
  export const BROKER_CONNECT_TIMEOUT_MS = 10_000;
93
93
  /** How long an acknowledged pending-stage route registration waits for the broker's answer. */
94
94
  export const PENDING_STAGE_ROUTE_ACK_TIMEOUT_MS = 10_000;
95
+ let reportedConnectionLevelRetirement = false;
95
96
  const GROUP_REQUEST_TIMEOUT_MS = 5000;
96
97
  const PRESENCE_ACK_TIMEOUT_MS = 5000;
97
98
  const RESTORING_RECIPIENT_REQUEST_TIMEOUT_MS = 5000;
@@ -493,6 +494,7 @@ export class IntercomClient extends EventEmitter {
493
494
  private readonly heardOutcomes = new Map<string, "heard" | "saved">();
494
495
  /** The broker of the current registration answers a pending-stage route registration that carries a `requestId`. */
495
496
  private brokerAcknowledgesPendingStageRoutes = false;
497
+ private brokerWithdrawsPendingStageRoutes = false;
496
498
  private readonly multiplexesPendingStageRoutes: boolean;
497
499
  /** #3906: the broker of the current registration refuses a pending-stage route without ending the connection. */
498
500
  private brokerRefusesPendingStageRoutesInPlace = false;
@@ -801,6 +803,7 @@ export class IntercomClient extends EventEmitter {
801
803
  this._supervisorSessionId = null;
802
804
  this.brokerAcknowledgesReceipt = false;
803
805
  this.brokerAcknowledgesPendingStageRoutes = false;
806
+ this.brokerWithdrawsPendingStageRoutes = false;
804
807
  this.brokerRefusesPendingStageRoutesInPlace = false;
805
808
  this.brokerAnswersStatus = false;
806
809
  this._multiNodeRouting = undefined;
@@ -943,6 +946,7 @@ export class IntercomClient extends EventEmitter {
943
946
  || (brokerMessage.supervisorSessionId !== undefined && typeof brokerMessage.supervisorSessionId !== "string")
944
947
  || (brokerMessage.acknowledgesReceipt !== undefined && brokerMessage.acknowledgesReceipt !== true)
945
948
  || (brokerMessage.acknowledgesPendingStageRoutes !== undefined && brokerMessage.acknowledgesPendingStageRoutes !== true)
949
+ || (brokerMessage.withdrawsPendingStageRoutes !== undefined && brokerMessage.withdrawsPendingStageRoutes !== true)
946
950
  || (brokerMessage.refusesPendingStageRoutesInPlace !== undefined && brokerMessage.refusesPendingStageRoutesInPlace !== true)
947
951
  || (brokerMessage.brokerStatus !== undefined && brokerMessage.brokerStatus !== true)
948
952
  || (brokerMessage.claimsWorkflowInvocations !== undefined && brokerMessage.claimsWorkflowInvocations !== true)
@@ -984,6 +988,7 @@ export class IntercomClient extends EventEmitter {
984
988
  if (heard === "heard" && this.acknowledgesReceipt) this.heardOutcomes.delete(messageId);
985
989
  }
986
990
  this.brokerAcknowledgesPendingStageRoutes = brokerMessage.acknowledgesPendingStageRoutes === true;
991
+ this.brokerWithdrawsPendingStageRoutes = brokerMessage.withdrawsPendingStageRoutes === true;
987
992
  this.brokerRefusesPendingStageRoutesInPlace = brokerMessage.refusesPendingStageRoutesInPlace === true;
988
993
  this.brokerAnswersStatus = brokerMessage.brokerStatus === true;
989
994
  this._multiNodeRouting = brokerMessage.multiNodeRouting as BrokerMultiNodeStatus["status"] | undefined;
@@ -2029,9 +2034,11 @@ export class IntercomClient extends EventEmitter {
2029
2034
  parent?: WorkflowRunParentAnnouncement,
2030
2035
  dormant?: boolean,
2031
2036
  launcherCapability?: string,
2037
+ generation?: string,
2032
2038
  ): void {
2033
2039
  writeMessage(this.requireActiveSocket(), {
2034
2040
  type: "register_pending_stage_route",
2041
+ ...(this.brokerWithdrawsPendingStageRoutes ? { generation } : {}),
2035
2042
  runId,
2036
2043
  group,
2037
2044
  capability,
@@ -2058,6 +2065,7 @@ export class IntercomClient extends EventEmitter {
2058
2065
  dormant?: boolean,
2059
2066
  /** #4006: the launcher-only secret, held by the process that launched the run and never by its stages. */
2060
2067
  launcherCapability?: string,
2068
+ generation?: string,
2061
2069
  ): Promise<void> {
2062
2070
  let socket: net.Socket;
2063
2071
  try {
@@ -2067,7 +2075,7 @@ export class IntercomClient extends EventEmitter {
2067
2075
  }
2068
2076
  if (!this.brokerAcknowledgesPendingStageRoutes) {
2069
2077
  try {
2070
- this.registerPendingStageRoute(runId, group, capability, stages, possibleStages, parent, dormant, launcherCapability);
2078
+ this.registerPendingStageRoute(runId, group, capability, stages, possibleStages, parent, dormant, launcherCapability, generation);
2071
2079
  } catch (error) {
2072
2080
  return Promise.reject(toError(error));
2073
2081
  }
@@ -2109,6 +2117,7 @@ export class IntercomClient extends EventEmitter {
2109
2117
  writeMessage(socket, {
2110
2118
  type: "register_pending_stage_route",
2111
2119
  requestId,
2120
+ ...(this.brokerWithdrawsPendingStageRoutes ? { generation } : {}),
2112
2121
  runId,
2113
2122
  group,
2114
2123
  capability,
@@ -2129,6 +2138,38 @@ export class IntercomClient extends EventEmitter {
2129
2138
  });
2130
2139
  }
2131
2140
 
2141
+ /** Retire one registration without closing a connection that carries other runs. */
2142
+ async withdrawPendingStageRoute(runId: string, generation: string): Promise<void> {
2143
+ if (!this.isConnected()) return; // Closing the socket already retires every registration it owned.
2144
+ if (!this.brokerWithdrawsPendingStageRoutes) {
2145
+ if (!reportedConnectionLevelRetirement) {
2146
+ reportedConnectionLevelRetirement = true;
2147
+ console.warn("The running Intercom broker retires workflow routes only when their connection closes. Run `atomic intercom restart` to enable individual route retirement.");
2148
+ }
2149
+ return;
2150
+ }
2151
+ const socket = this.requireActiveSocket();
2152
+ const requestId = randomUUID();
2153
+ await new Promise<void>((resolve, reject) => {
2154
+ const timeout = setTimeout(() => {
2155
+ void this.requestTimeout(socket, new Error("Pending-stage route withdrawal timeout")).then((error) => {
2156
+ if (this.pendingStageRouteRegistrations.delete(requestId)) reject(error);
2157
+ });
2158
+ }, PENDING_STAGE_ROUTE_ACK_TIMEOUT_MS);
2159
+ this.pendingStageRouteRegistrations.set(requestId, {
2160
+ resolve: () => { clearTimeout(timeout); resolve(); },
2161
+ reject: (error) => { clearTimeout(timeout); reject(error); },
2162
+ });
2163
+ try {
2164
+ writeMessage(socket, { type: "withdraw_pending_stage_route", requestId, runId, generation });
2165
+ } catch (error) {
2166
+ clearTimeout(timeout);
2167
+ this.pendingStageRouteRegistrations.delete(requestId);
2168
+ reject(toError(error));
2169
+ }
2170
+ });
2171
+ }
2172
+
2132
2173
  /**
2133
2174
  * #4006: prove with the run's launcher capability (registered with the run's route, never given to its
2134
2175
  * stages) that this session launched `runId`, so it may send to the run's stages without joining