@bastani/atomic 0.9.72-alpha.1 → 0.9.72
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.
- package/CHANGELOG.md +189 -0
- package/dist/builtin/intercom/CHANGELOG.md +51 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/CHANGELOG.md +8 -0
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +31 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +110 -0
- package/dist/builtin/workflows/package.json +1 -1
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,195 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.72] - 2026-11-08
|
|
6
|
+
|
|
7
|
+
Waiting agents let go of their sessions, work resumes on any machine, and teams share storage with one command.
|
|
8
|
+
|
|
9
|
+
- **Agents that wait hold nothing.** Workflow stages, background subagents and SDK sessions waiting on a long tool call, a question or a shell `wait` release their session and memory and reopen from storage when their input arrives, so thousands can wait at once; oversized tool output is stored with the session and read through `tool-output://` ([#4309](https://github.com/bastani-inc/atomic/issues/4309), [#4326](https://github.com/bastani-inc/atomic/issues/4326), [#4373](https://github.com/bastani-inc/atomic/issues/4373), [#4374](https://github.com/bastani-inc/atomic/issues/4374), [#4379](https://github.com/bastani-inc/atomic/issues/4379), [#4395](https://github.com/bastani-inc/atomic/issues/4395), [#4403](https://github.com/bastani-inc/atomic/issues/4403), [#4502](https://github.com/bastani-inc/atomic/issues/4502)).
|
|
10
|
+
- **Resume on any machine.** Worktree snapshots record the repository content each session and run worked against, so `--resume`, `/resume` and workflow resume continue in a restored worktree on any machine that shares your storage, run your setup hook there, and clean up unused snapshot content in the background ([#4245](https://github.com/bastani-inc/atomic/issues/4245), [#4329](https://github.com/bastani-inc/atomic/issues/4329), [#4355](https://github.com/bastani-inc/atomic/issues/4355)).
|
|
11
|
+
- **Team and CI setup.** `atomic team join` and `ATOMIC_PROFILE=ci` put workflow runs and Intercom on a shared database in one step, runs live in a sharded journal store, and newer Atomic sessions replace an older Intercom broker instead of failing ([#4320](https://github.com/bastani-inc/atomic/issues/4320), [#4325](https://github.com/bastani-inc/atomic/issues/4325), [#4538](https://github.com/bastani-inc/atomic/issues/4538)).
|
|
12
|
+
- **Background compaction.** Sessions, stages and subagents compact older context in the background from 75% of the window while turns continue ([#4330](https://github.com/bastani-inc/atomic/issues/4330)).
|
|
13
|
+
- **Pi's file tools.** `edit` and `write` are upstream pi's exact-text tools, `read` and `search` return plain text, and `read` streams large files instead of loading them whole ([#4328](https://github.com/bastani-inc/atomic/issues/4328), [#4353](https://github.com/bastani-inc/atomic/issues/4353)).
|
|
14
|
+
- **One decision model.** `decisionModel` replaces `routerModel` and answers `decide()`, `model: "auto"` and `structured_output`, and lets a workflow stage advance on its own after you steer it ([#4358](https://github.com/bastani-inc/atomic/issues/4358), [#4526](https://github.com/bastani-inc/atomic/issues/4526)).
|
|
15
|
+
- **Providers and git.** Atomic downloads a portable git when none is installed, Copilot failures retry or fall back by their typed code, GPT Image 2.6 is available, and thinking `off` runs models that cannot turn thinking off at their lowest level ([#4322](https://github.com/bastani-inc/atomic/issues/4322), [#4324](https://github.com/bastani-inc/atomic/issues/4324), [#4332](https://github.com/bastani-inc/atomic/issues/4332), [#4545](https://github.com/bastani-inc/atomic/issues/4545), [#4552](https://github.com/bastani-inc/atomic/issues/4552), [#4556](https://github.com/bastani-inc/atomic/issues/4556)).
|
|
16
|
+
- **Run time travel and event streams.** `/workflow fork` retries a run from any stage in a new run, and `session.subscribe` follows CI checks, reviews, logs and webhooks without every event entering the context ([#4321](https://github.com/bastani-inc/atomic/issues/4321), [#4311](https://github.com/bastani-inc/atomic/issues/4311)).
|
|
17
|
+
- **Task chats and debug mode.** Type into a `/tasks` transcript to message that agent, stage chats and transcripts scroll like the main chat, and one debug switch turns on every debug log ([#4521](https://github.com/bastani-inc/atomic/issues/4521), [#4360](https://github.com/bastani-inc/atomic/issues/4360)).
|
|
18
|
+
- **Storage under load.** SQLite writers hand the lock straight to the next waiter, libSQL writes survive expired streams and brief outages, and tasks keep only their 256 most recently finished records ([#4316](https://github.com/bastani-inc/atomic/issues/4316), [#4383](https://github.com/bastani-inc/atomic/issues/4383), [#4385](https://github.com/bastani-inc/atomic/issues/4385), [#4387](https://github.com/bastani-inc/atomic/issues/4387)).
|
|
19
|
+
|
|
20
|
+
**Breaking change:** Call `edit` with `edits: [{ oldText, newText }]` and give custom `WriteOperations` only `writeFile(path, content)` and `mkdir(dir)`; rename `routerModel` and `getRouterModel()` to `decisionModel` and `getDecisionModel()`; await `exportToJsonl()`; use `isDebugEnabled("model-routing")`; give `admission.userLimits` an explicit journal file; compare `SessionStore.list` cancellations to `signal.reason`; and set `compat.requiresToolsWithToolHistory: true` for proxies that need `tools` with tool history. The bash interceptor, grep's `readFile` and the hashline conflict exports are removed.
|
|
21
|
+
|
|
22
|
+
### Breaking Changes
|
|
23
|
+
|
|
24
|
+
- `SessionStore.list` now rejects cancellation with the original `AbortSignal.reason` across JSONL, SQL and in-memory stores. Callers supplying a custom reason should compare the caught value to `signal.reason` rather than expecting a new `AbortError`; `controller.abort()` without a custom reason still produces the standard `AbortError` ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
25
|
+
- `isModelRoutingDebugEnabled` and `MODEL_ROUTING_DEBUG_ENV` are no longer exported from `@bastani/atomic`. Use `isDebugEnabled("model-routing")`, which is also on in debug mode ([#4360](https://github.com/bastani-inc/atomic/issues/4360))
|
|
26
|
+
- Removed `readFile` from `GrepOperations`. The grep tool takes context lines from ripgrep and no longer reads matched files itself; `GrepOperations` only covers the directory check. To search a remote system, override grep's `execute()` (upstream [#11705](https://github.com/earendil-works/pi/pull/11705))
|
|
27
|
+
- `edit` is upstream pi's exact-text tool: it takes `path` and `edits: [{ oldText, newText }]` instead of a hashline `input` script with `[PATH#TAG]` sections, line ranges and block anchors. It no longer needs a snapshot tag from an earlier `read`, so a file changed by `bash` (`sed -i`, `python -c`, heredocs) or another program is edited by its current text ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
28
|
+
- `write` is upstream pi's tool for file paths: it no longer requires a prior read before overwriting, does not strip copied hashline output, does not refuse files with generated-file markers, and does not make files that start with `#!` executable. Archive, SQLite, `conflict://` and `local://` targets keep working in the built-in tool ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
29
|
+
- `WriteOperations` has pi's shape again: `writeFile(path, content)` and `mkdir(dir)`. Remove `readFile` and the `exclusive` option from custom implementations; the `WriteFileOptions` type is gone ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
30
|
+
- Removed SDK exports: `FileMutationConflict`, `FILE_MUTATION_CONFLICT_CODE` and their detail, reason, evidence and requester types, and the `hashlineStore` and `resolveMutationRequester` tool options ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
31
|
+
- Removed the bash interceptor: the `bashInterceptor.enabled` setting, its **Bash Interceptor** `/settings` item, and the `interceptor`, `interceptorEnabled`, `interceptorRules` and `availableTools` options of `createBashToolDefinition`. Model `bash` calls always run, and extensions no longer receive them as `user_bash` events; interactive `!` commands still do. An existing `bashInterceptor` entry in `settings.json` is ignored ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
32
|
+
- `admission.userLimits` now needs an explicit journal file. The default journal store keeps each root on its own shard, so a run with `userLimits` on it fails before it starts with `WorkflowAdmissionConfigError` (`user-limits-need-one-journal`); a `userDatabase` that is not the run's journal file fails with `user-database-mismatch` instead of a plain error. Set `workflows.journal.path` (or `RunOpts.journal`) and `userDatabase` to the same SQLite file, or remove `userLimits`.
|
|
33
|
+
- The `routerModel` setting is now `decisionModel`, and **Router model** in `/settings` is now **Decision model**. Legacy settings migrate automatically. The extension context's `getRouterModel()` is now `getDecisionModel()`, and in a host without decision model settings it throws `DecisionModelUnavailableError` (reason `host-unsupported`) ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
34
|
+
- `AgentSession.exportToJsonl()` returns `Promise<string>`, because exports now read worktree snapshot content from storage ([#4245](https://github.com/bastani-inc/atomic/issues/4245))
|
|
35
|
+
- OpenAI-compatible models no longer send `"tools": []` when all tools are disabled in a session that has used tools; the field is omitted. This fixes 400 errors (`tools must not be an empty array`) from vLLM 0.20+, also behind LiteLLM. If your proxy requires `tools` once the history has tool calls, such as older LiteLLM versions in front of Anthropic, set `compat.requiresToolsWithToolHistory: true` for that model in `models.json` (upstream [#11891](https://github.com/earendil-works/pi/pull/11891))
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- Background compaction: once context passes `compaction.backgroundThresholdPercent` of the window (75% by default), sessions, workflow stages and subagents compact older context in the background while turns continue, and apply the result at the next turn boundary. Blocking compaction remains only for the `reserveTokens` threshold or an overflow with no ready result. On by default; turn it off with **Background compaction** in `/settings` or `compaction.background: false`. The SDK exposes `session.compaction`, `onCompactionReady()` and `awaitBackgroundCompaction()`, RPC `get_state` and workflow stage status report the same state, failures, including a failed apply, are typed `BackgroundCompactionError`s that retry with backoff without interrupting the turn and keep their class across RPC, and the expected prompt-cache miss is reported when a result is applied ([#4330](https://github.com/bastani-inc/atomic/issues/4330))
|
|
40
|
+
- `createAgentSession({ workspace })` binds a session to a repository, branch and worktree from the new `workspace({ repo, base, branch, worktree, sandbox, label })`. Remote repositories are cloned once per host into a shared store and worktrees are added from it, missing branches are created from `base`, and the binding is recorded in the session and restored when it is reopened. A `"read-only"` workspace removes and refuses `write`, `edit` and `todo`. `workspaceChangeSet()`, `publishPullRequest()` and `restoreWorkspace()` are exported, and failures are typed `WorkspaceError` subclasses with stable codes, in one family with the worktree snapshot errors. A worktree whose checkout was interrupted is added again on the next bind; workspaces run the git that git provisioning resolves and need git 2.33 or later ([#3109](https://github.com/bastani-inc/atomic/issues/3109))
|
|
41
|
+
- `getWriterQueueStats(database)` from `@bastani/atomic/storage` reports how a node-sqlite handle used the database's write lock over the last 10 seconds: `lockHeldRatio`, `waiters` (writers in any process waiting now), `p50WaitMs`, `p95WaitMs`, and `commitsPerSecond` ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
|
|
42
|
+
- `getWriterQueueDegradation(database)` from `@bastani/atomic/storage` returns the `StorageWriterQueueDegradedError`s a node-sqlite handle recorded, once per reason in the order they first happened, so a host can read what the writers' queue gave up on even where process warnings are suppressed ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
|
|
43
|
+
- `openNodeSqliteDatabase(path, { groupCommitHoldMs })` sets how long one group commit runs queued transactions before other processes' writers get the lock (default `DEFAULT_GROUP_COMMIT_HOLD_MS`, 100 ms). An invalid value throws `StorageConfigError` before anything is opened ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
|
|
44
|
+
- Storage errors from the writers' queue are typed: `StorageWriteLockTimeoutError` (code `write-lock-timeout`, still a `StorageUnavailableError`) with `timeoutMs`, `elapsedMs`, `phase`, and the holding process when known; `StorageWriterQueueUnusableError` (code `writer-queue-unusable`, also a `StorageUnavailableError`) with the `errno`; `StorageUnsupportedOperationError`; and `StorageWriterQueueDegradedError`, recorded once per reason on the handle when writers fall back to polling, cannot notify the next writer, or cannot remove an abandoned queue entry, and emitted as a process warning, which Atomic's own processes suppress. `StorageConfigError` has `code` `invalid-config` and an optional `hint`. Guards (`isStorageWriteLockTimeoutError` and others, and `isStorageError` for any storage error), `isRetryableStorageError`, and `serializeStorageError`/`rehydrateStorageError`, which carry every storage error between processes as the same class with its causes, are exported ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
|
|
45
|
+
- `SessionStartTimeoutError`, `SessionStartConfigError` and their `SessionStartError` family are exported with their guards, `findSessionStartError`, `isRetryableSessionStartError`, `serializeSessionStartError`, `rehydrateSessionStartError` and `parseSessionStartTimeoutMs`. A subagent that does not start in time reports one, whose `phase` (`admission`, `setup`, `dispatch` or `event-loop`) and timing fields say what blocked it; see [Session start errors](docs/sdk/reference.md#session-start-errors) ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
46
|
+
- Atomic provides git the way it provides `fd` and `rg`: when no git 2.30.0 or newer is on `PATH`, it downloads a pinned portable git from desktop/dugite-native (macOS x64/arm64, Linux glibc x64/arm64/armv7, Windows x64/arm64/x86), verifies its SHA-256, and installs it under `~/.atomic/agent/bin/git/`. Workflow worktrees, git packages, and the footer branch use it, and the `bash` tool puts it on `PATH` when no git is installed at all. `/tools` and `session.getToolStatus()` show which git runs and its version, or why none is available. On Alpine and other unsupported systems, offline, or after a checksum mismatch Atomic installs nothing and reports a typed `GitUnavailableError` whose hint ends with the command that installs git on your system (`apt-get install git`, `dnf install git`, `apk add git`, `xcode-select --install`, `winget install --id Git.Git -e --source winget`, and so on). A new Atomic release that pins a different git build replaces the installed copy at the next start that can download it; if it cannot, the older copy keeps working, `/tools` shows the reason, and the download is not retried by every git command ([#4322](https://github.com/bastani-inc/atomic/issues/4322))
|
|
47
|
+
- `resolveGit()`, `resolveGitSync()`, and `getGitStatus()` give SDK hosts the same git resolution, with the portable environment to run it in. Failures are typed: `GitProvisionError`, `GitUnavailableError` (codes `unsupported-platform`, `offline`, `not-installed`, `checksum-mismatch`, `download-failed`, `install-failed`), `GitProvisionTimeoutError`, and `GitProvisionConfigError`, with guards, `hint`, and `rehydrateGitProvisionError()` for errors that cross a process boundary ([#4322](https://github.com/bastani-inc/atomic/issues/4322))
|
|
48
|
+
- GPT Image 2.6 (`gpt-image-2.6-sunburst`, `gpt-image-2.6-flare`) is available under `openai-images` with your OpenAI API key. Codemode's `models.generateImages()` and `ctx.modelRegistry.generateImages()` take its options: animated GIF and SVG output, `complexity`, `outputFormat`, `outputCompression`, `moderation` and `safetyIdentifier`, and an image block with `role: "markup"` or `role: "mask"` for markup-guided and masked edits. Codemode accepts only these request options as its third argument; credentials, headers and `fetch` are rejected ([#4332](https://github.com/bastani-inc/atomic/issues/4332)).
|
|
49
|
+
- Image generation failures carry a typed `error` next to `errorMessage`, for example `invalid-option` for a request that cannot succeed and `moderation-blocked` for a blocked prompt, so scripts and extensions can branch on `code` and `retryable` ([#4332](https://github.com/bastani-inc/atomic/issues/4332)).
|
|
50
|
+
- Providers registered with image models can declare `capabilities` to enable the optional GPT Image request features.
|
|
51
|
+
- Codemode saves SVG images from `models.generateImages()` to `.svg` files and names their paths in the result, because `image()` cannot show SVG. Generated SVGs no longer trigger the note asking the script to show them with `image()` ([#4332](https://github.com/bastani-inc/atomic/issues/4332)).
|
|
52
|
+
- GitHub Copilot failures are typed, so retries and model fallback follow the failure's code instead of the wording of Copilot's message, in the main chat, subagents and workflow stages alike: an unavailable model, used-up quota or sign-in failure moves to the next fallback model without retrying; a rate limit, outage, cut-off stream, empty turn or unrecognized response is retried on the same model first; a content-filter refusal follows `retry.fallbackOnContentFilter`; and a prompt over the model's prompt-token limit compacts. The error classes, their codes and guards are exported from `@bastani/atomic`; see [Providers](docs/providers.md#errors) ([#4324](https://github.com/bastani-inc/atomic/issues/4324))
|
|
53
|
+
- The providers guide documents which API, thinking levels, reasoning replay, tool-call behaviour, usage, images and limits each Copilot model family has ([#4324](https://github.com/bastani-inc/atomic/issues/4324))
|
|
54
|
+
- `TaskCleanupError`, `isTaskCleanupError`, `isRetryableTaskError` and `rehydrateTaskCleanupError` are exported from `@bastani/atomic`. Closing a session or workflow stage, or pausing a stage, rejects with this typed, retryable error (code `task_cleanup_unconfirmed`) when a task's process cleanup failed; it carries the `phase`, every task and resource left unconfirmed, and a `hint`. Sessions emit a `task_cleanup_quarantined` event when a task's result settles before its cleanup is confirmed ([#4338](https://github.com/bastani-inc/atomic/issues/4338)).
|
|
55
|
+
- `TaskCleanupAdmissionTimeoutError` and `isTaskCleanupAdmissionTimeoutError` are exported from `@bastani/atomic`. An admission that waits while commands owned by the same session or stage hold permits from that admission provider for unconfirmed cleanup now rejects after five continuous seconds instead of blocking the turn or a stage pause indefinitely. The error extends `TaskCleanupError`, keeps code `task_cleanup_unconfirmed`, and names the holding tasks with `phase: "command-admission"`, `timeoutMs`, `elapsedMs` and a retry hint. The earlier commands keep their results and permits until cleanup is confirmed. Other execution-scoped admission providers remain independent ([#4338](https://github.com/bastani-inc/atomic/issues/4338)).
|
|
56
|
+
- Debug mode turns on every debug output at once: the `debug` setting (**Debug mode** in `/settings`), `--debug`, or `ATOMIC_DEBUG=1`. While it is on, the footer shows a `debug` badge and each area writes one JSON line per event, with credentials redacted, to the debug log that `/debug` shows. Toggling it in `/settings` applies to new work without a restart, and pool workers, pool coordinators and the Intercom broker started afterwards inherit it. `ATOMIC_WORKFLOW_DEBUG`, `ATOMIC_MODEL_ROUTING_DEBUG` and `ATOMIC_DEBUG_POOLED_WATCH` still turn on their own area as before. Debug mode also writes each SQLite writers' queue degradation to the log, once per reason. Extensions can use `isDebugEnabled(area)` and `reportDebug(area, event, fields)`, and the RPC `set_debug` command turns it on or off for an engine. `setDebugSetting()` and `set_debug` refuse anything but `true` or `false` with the exported `DebugConfigError` (code `invalid-setting`), which crosses the RPC boundary as `errorCode: "debug_error"` and rejects `RpcClient.setDebug()` as the same class; `serializeDebugError` and `rehydrateDebugError` do the same for other processes ([#4360](https://github.com/bastani-inc/atomic/issues/4360))
|
|
57
|
+
- Added the Qwen Token Plan (Individual, China) provider, `qwen-token-plan-individual-cn`: the Individual subscription catalog on the China endpoint, with `QWEN_TOKEN_PLAN_CN_API_KEY` and `qwen3.8-max` as its default model (upstream [#7989](https://github.com/earendil-works/pi/pull/7989))
|
|
58
|
+
- `LlamaServerError`, `LlamaServerUnreachableError` and `LlamaServerRequestError`, with `isLlamaServerError()`, `isLlamaServerUnreachableError()`, `isLlamaServerRequestError()`, `isRetryableLlamaServerError()`, `findLlamaServerError()` and `rehydrateLlamaServerError()`, and the `SerializedTypedError` shape their `toJSON()` produces, are exported from `@bastani/atomic`
|
|
59
|
+
- `ShellToolError` and `ShellTimeoutError` (code `shell-timeout`, with `timeoutMs`, `elapsedMs`, `phase` and `shellExit`), with `isShellToolError()`, `isShellTimeoutError()` and `rehydrateShellToolError()`, are exported from `@bastani/atomic`. The local shell backend of `createLocalBashOperations()` throws `ShellTimeoutError`, whose message stays `timeout:<seconds>`
|
|
60
|
+
- `StartupBenchmarkError` and `StartupBenchmarkConfigError` (code `unsupported-mode`, with `source`, `field` and `appMode`), with `isStartupBenchmarkError()`, `isStartupBenchmarkConfigError()` and `rehydrateStartupBenchmarkError()`, are exported from `@bastani/atomic`
|
|
61
|
+
- `edit` and `write` failures are typed: `EditInputError`, `EditMatchError` and `EditTargetError` (family `EditToolError`) and `WriteSelectorError`, each with a stable `code`, structured `fields` and a `hint`, plus guards, `serializeFileToolError` and rehydration helpers. A cancelled `edit` or `write` throws `FileToolAbortedError` with the signal's reason as `cause` ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
62
|
+
- `atomic team join <url> [--token-file <path>] [--prefix <prefix>]` sets up the team layout in one command: workflow runs and Intercom on the team database, sessions pinned to the local store, the Intercom broker restarted, and the storage report printed. `atomic team status` shows the profile in effect (`individual`, `team`, `ci` or `custom`), and `atomic team leave` removes only the `storage` value `team join` recorded (a changed URL or prefix stays), keeping sessions local when another global, legacy global or trusted project storage selection remains. A `storage` written by an earlier build has no record: run `atomic team join` once more. Concurrent setup commands coordinate settings and token-file updates ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
63
|
+
- `ATOMIC_PROFILE=ci` with `ATOMIC_TEAM_URL` and `ATOMIC_TEAM_TOKEN` or `ATOMIC_TEAM_TOKEN_FILE` (and optional `ATOMIC_TEAM_PREFIX`) puts sessions, workflow runs and Intercom on the team database without a settings file. Incomplete or invalid variables, and a missing libSQL adapter, fail at startup with a typed error naming what to set or install ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
64
|
+
- SDK: `joinTeam()`, `leaveTeam()`, `getTeamProfile()` and `teamProfileSelection()` from `@bastani/atomic/storage`, the `createAgentSession({ storage })` option, in-memory `{ value }` secrets that serialize as `[redacted]`, the typed `TeamProfileError` and `TeamProfileConfigError` with their guards and `serializeTeamError()`/`rehydrateTeamError()` for passing them between processes, and `ProjectGroupError` with `isProjectGroupError()` from `@bastani/atomic` ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
65
|
+
- A new [Team and CI setup](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/docs/guides/team-setup.md) guide with a GitHub Actions and gh-aw snippet ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
66
|
+
- `atomic storage adopt <path>...` registers existing workflow journal files in the journal store in place, without copying them, so their runs are found by ID and resume where they are; it also adopts the journal files those runs were written to. `atomic storage consolidate` moves finished runs from adopted files into the store's own shards. The SDK exports the same operations and the catalog from `@bastani/atomic/storage`: `adoptJournals`, `consolidateJournalStore`, `JournalCatalog` and `defaultJournalStoreDirectory`, with the typed errors `JournalCatalogError`, `JournalShardUnavailableError` and `JournalAdoptError` and their codes and guards ([#4325](https://github.com/bastani-inc/atomic/issues/4325))
|
|
67
|
+
- `decide({ state, questions, deadline })` asks the configured decision model typed Choice, yes/no and Score questions in one request. A classifier answers with each answer's probabilities and confidence; when it fails, the current chat model answers without probabilities, unless `requireProbabilities` is set. Failures reject with the exported `DecisionError` family (`DecisionConfigError`, `DecisionRequestError`, `DecisionModelUnavailableError`, `DecisionTimeoutError`, `DecisionOutputError`, `DecisionProviderError`), with stable codes, hints, guards, and `serializeDecisionError` / `rehydrateDecisionError` for errors that cross a process boundary ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
68
|
+
- `/settings` → **Auto-advance after steer** turns `workflows.autoAdvanceAfterSteer` on or off ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
69
|
+
- `intercom.showUnknownTargetWarnings` setting (default `false`) adds a note to queued workflow Intercom sends whose target is outside the run's known and predicted stages; by default such sends just report `Message queued for <target>` ([#4359](https://github.com/bastani-inc/atomic/issues/4359))
|
|
70
|
+
- Sessions and workflow runs record worktree snapshots and resume on another machine, or after a worktree was deleted or reset, with the repository content they were made against. A turn that calls `bash`, `edit`, `write`, `powershell` or an extension tool with `writesFiles: true` records a `worktree_snapshot` entry: the Git tree of the working copy, a binary patch chain, a bundle of unpushed commits, omissions and an environment hash, with patches and bundles stored once per content hash in the same SQLite or database storage. Resuming restores a drifted or missing checkout automatically into a fresh worktree under `~/.atomic/agent/worktree-snapshots/` and prints one line naming it; it never writes into your checkout, and it fails with a typed `WorkspaceDriftError` when the snapshot cannot be restored. `.gitignore`, global excludes, `.atomic/snapshot-ignore` and a built-in secret deny list are respected: no deny-listed bytes are captured unless they are already in a commit reachable from a remote-tracking ref. New `snapshots.*` settings, a `snapshots` option on `createAgentSession`, `/session snapshot`, JSONL exports that carry snapshot content, and SDK exports `captureWorktreeSnapshot`, `restoreWorktreeSnapshot`, `verifyWorktree`, `WorkspaceBinding` and the `WorkspaceError` family. Restore refuses snapshot records with values Atomic never writes (`invalid-snapshot`), fetches only over https, http, ssh, git or local paths and never waits for a password or host-key prompt, verifies each worktree under a staging directory before moving it into place, and removes what an interrupted restore left behind; `collectSnapshotGarbage` keeps blobs younger than a grace window so it can run while captures are in flight. See [Worktree snapshots](docs/worktree-snapshots.md) ([#4245](https://github.com/bastani-inc/atomic/issues/4245))
|
|
71
|
+
- Worktree snapshot content that no session or resumable workflow run needs is deleted automatically in the background when a session closes or a root workflow run finishes. Collection uses an incremental reference index rather than scanning session or run histories, runs at most once per `snapshots.collectIntervalSeconds` per database, and protects content stored or reused within `snapshots.graceSeconds`. An older database is indexed in background batches before anything is deleted. Collection timers do not keep an otherwise idle process alive. Closing the last session or journal on a database aborts collection at the next batch boundary and releases the database before the awaited close resolves, without waiting for the remaining collection. New settings `snapshots.autoCollect`, `snapshots.collectIntervalSeconds` and `snapshots.graceSeconds`; `collectSnapshotGarbage(blobs, { graceSeconds, signal })` now finds retained snapshots itself, `scheduleSnapshotCollection` starts automatic collection, and a failed collection is a retryable `WorkspaceCollectionError` (`collection-failed`) found with `isRetryableWorkspaceError`. See [Retention and collection](docs/worktree-snapshots.md#retention-and-collection) ([#4355](https://github.com/bastani-inc/atomic/issues/4355))
|
|
72
|
+
- Workflow run time travel: `forkRun` and `listForkPoints` in `@bastani/atomic/workflows`, the `workflow` tool's `fork` action and `/workflow fork <run> [--from <stage>]` retry a run from a stage in a new run, with optional replacement inputs, while the source run stays unchanged. Stage options gain `forkFromEntryId` to start a stage at an exact entry of an earlier session. Failures are typed `ForkError`s with codes and hints ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
73
|
+
- `RunJournal.createRunWithEvents` in `@bastani/atomic/storage`, an optional member that creates a run with its first events in one transaction ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
74
|
+
- `atomic auth login <provider>` signs in to a provider from the shell without starting a session, for example `atomic auth login openai`. It signs in with an account in the browser and exits; `--api-key` saves an API key instead, and `--no-browser` uses device code or copy-code sign-in. `atomic auth logout <provider>` removes the stored credentials, like `/logout`. Both take a provider ID or display name; a name that matches more than one provider is rejected with the matching IDs instead of picking one. For MCP servers that use provider credentials, `atomic mcp login` and `atomic mcp logout` now point to these commands (upstream 9b9cb30a)
|
|
75
|
+
- `ctx.ui.custom()` overlays now honor the `blocked` option, also in the default isolated mode: Atomic reports blocked program status (OSC 7501) from when the overlay is shown until it calls `done()` or its `signal` aborts, also while it is hidden with `setHidden()`. Closing one overlay keeps other open questions blocked, and `/reload` or a session switch clears the status of overlays it drops (upstream [#11816](https://github.com/earendil-works/pi/issues/11816))
|
|
76
|
+
- `TaskEvictedError` (code `task_evicted`, `retryable: false`, with `taskId`, `retainedFinishedTasks` and `hint`) is exported from `@bastani/atomic` with `isTaskEvictedError`, `findTaskEvictedError` (which searches an error's `cause` chain), `rehydrateTaskEvictedError` and `FINISHED_TASK_RETENTION`. Task supervisor doors refuse a finished task their owner no longer keeps with the code `TaskEvicted` instead of `UnknownTask`, and `watchOwnerTasks` reports each eviction as a `task-evicted` event ([#4385](https://github.com/bastani-inc/atomic/issues/4385))
|
|
77
|
+
- A tool can declare `detachable: true` when its work does not need the session once started. With a policy set through `AgentSession.setToolDetachment({ afterMs })` (at most `MAX_TOOL_DETACHMENT_AFTER_MS`, 2,147,483,647 ms), a call that runs longer than `afterMs` goes on outside the session and the run ends on it, so the host can dispose of the session; `takeDetachedToolCalls()`, `hasPendingDetachedTurn()`, `resumeDetachedTurn(results)` and `redispatchDetachedToolCalls()` hand the result back to a reopened session, which continues the same turn without a new user message. Results can be handed back together or one at a time: each is recorded right after its call as it arrives, and the turn continues once, when every detachable call of it has a result. A detached result goes through the same `tool_result` handlers, image normalization and oversized-output spill as an inline one, and the detached work keeps no reference to the session. Refused operations throw the typed `ToolDetachmentError`; a workflow stage released while it waits refuses a task launch with its retryable code `stage-parked`, which serializes with `toJSON()` / `deserializeToolDetachmentError()` and is found in a cause chain with `findToolDetachmentError()` ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
78
|
+
- Workflow stages that only wait give up their session and admission slot and reopen from the session store when their input arrives; see the workflows changelog ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
79
|
+
- A workflow run started with `evictWhenWaiting` leaves memory while its stages only wait on detached tool calls, keeping one small index entry per waiting stage, and is rebuilt by replay when a result arrives; see the workflows changelog ([#4373](https://github.com/bastani-inc/atomic/issues/4373))
|
|
80
|
+
- `AgentSession.clearQueue()` retains queued images in an optional `images` field aligned with its steering and follow-up text arrays. Workflow stages preserve those images when releasing and reopening their sessions, including messages held during compaction ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
81
|
+
- SDK hosts can keep many conversations without a live session for each: `session.release()` keeps only the stored history, `AgentSessionRuntime.rehydrate(sessionId)` brings a session back from storage, and `createAgentSession({ releaseWhenIdle: { afterMs } })` releases an idle session automatically. A released session holds no timer, listener, connection or extension instance; rehydrated sessions share the runtime's services. A session with background tasks still queued or running is not released, so its tasks keep running: `release()` refuses with a retryable `session-busy` (`activity: "background-tasks"`) and `releaseWhenIdle` checks again later. Failures are typed `AgentRehydrateError` / `AgentReleaseConfigError` with stable codes, a session missing from local-only storage names `atomic team join`, a session whose history lives in a private in-memory store is refused at once instead of being lost on release, an `afterMs` above 2147483647 is refused before anything is created, and a close that fails rejects as `release-failed` with the failure as its cause; when the runtime closes while a session rehydrates, its `SessionClosed` error carries that close failure as `cleanupCause`. Sessions kept in memory write each new entry at the cost of that entry instead of the whole session ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
82
|
+
- `AgentWakeDispatcher` and `agentWakeDispatcher()`: one process-wide owner of waiting agents that wakes each one in arrival order, one batch at a time, with timed wakes on a single shared timer that also handles delays longer than one timer can hold. `onUnobservedFailure(listener)` reports wakes that failed with nobody waiting on them, and `whenIdle(wakeKey?)` resolves once a key, or the whole dispatcher, has nothing queued or running ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
83
|
+
- `AgentSessionBusyError` and `isAgentSessionBusyError`: `prompt()` during a running turn without `streamingBehavior` now throws this typed error (`code: "agent_session_busy"`, with a `hint`) ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
84
|
+
- A tool's `detachable` may be a function of the call's arguments, so a tool can let only its waiting calls outlive a run: only those calls detach under a host's release policy and are started again after a restart. A shell `wait` without a budget is such a call: in a session that may be released it waits until its task finishes, so a background subagent waiting on its own shell is released while the task runs ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
85
|
+
- A detachable tool can require a durable handoff before it releases the session with `detachmentRequiresReady: true`; `toolCallNeedsDetachmentHandoff(signal)` and `markToolCallReadyForDetachment(signal)` let it save and signal that handoff before detachment ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
86
|
+
- `session.subscribe(source, handler, options?)` subscribes an SDK session to an event stream. Each event is handled by `handler(event, child)`: `child.task()` runs a short-lived child session seeded with the event, and `child.report()` delivers a short `event_report` message into the session only when the event matters. Processed event ids are recorded in the session transcript, so a reopened session does not handle them again ([#4311](https://github.com/bastani-inc/atomic/issues/4311))
|
|
87
|
+
- Event sources for `session.subscribe` and the workflow `ctx.subscribe`/`ctx.events`: `githubChecks`, `githubReviews`, `logTail`, `webhook` and `interval`, plus the `EventSource` interface for your own, and `publishEvent(subscriptionId, event)` to bridge a host's own webhooks. Failures are typed: `SubscriptionError` and its subclasses carry a stable `code`, fields and a `hint` ([#4311](https://github.com/bastani-inc/atomic/issues/4311))
|
|
88
|
+
- `redactUrlCredentials(text)` is exported from `@bastani/atomic`: it removes the user info, which can hold a token, from every URL in a text ([#4378](https://github.com/bastani-inc/atomic/issues/4378))
|
|
89
|
+
- `restoreWorktree` and `restoreWorktreeSnapshot` take `git: { path, env }`, the Git executable one restore runs instead of the one worktree snapshot operations resolve ([#4416](https://github.com/bastani-inc/atomic/issues/4416))
|
|
90
|
+
- `StorageTransientError` (a `StorageUnavailableError`, `retryable: true`) with codes `stream-expired`, `transaction-timeout`, `connection-refused` and `connection-lost`, an `outcome` of `"not-applied"` or `"unknown"`, `attempts` and a `hint`, plus `isStorageTransientError()` and `STORAGE_TRANSIENT_ERROR_CODES`, exported from `@bastani/atomic/storage` and carried across processes by `serializeStorageError`/`rehydrateStorageError` ([#4383](https://github.com/bastani-inc/atomic/issues/4383))
|
|
91
|
+
- `createSqliteDatabase` drivers can recognize their transient failures with an optional `transientFailure(failure)`; the call then fails with `StorageTransientError`. The libSQL adapter recognizes an expired stream, a transaction the server timed out, a refused connection and a broken connection by their codes. A statement or batch that such a failure ended before it wrote anything runs again, up to `STORAGE_TRANSIENT_RETRY_ATTEMPTS` (5) times with a doubling backoff from 250 ms, and so does a transaction that passes the new `retryTransientFailures: true` option; a call whose outcome is unknown never runs again ([#4383](https://github.com/bastani-inc/atomic/issues/4383))
|
|
92
|
+
- `ModelRuntime.whenRegistrationRefreshesSettled()` resolves once no catalog refresh started in the background by `registerProvider()`, `registerNativeProvider()` or `unregisterProvider()` is still running, including one a registration starts while it waits. When one provider's credential check fails during a refresh, the refresh now stops its remaining checks instead of leaving them running after it ends ([#4480](https://github.com/bastani-inc/atomic/issues/4480))
|
|
93
|
+
- Session stores can keep blobs apart from a session's entries: `SessionStore.putBlob(sessionId, data)` stores bytes under their SHA-256 and `getBlob(sessionId, hash)` reads them back. The SQLite and libSQL stores keep them in `session_blobs` and `session_blob_chunks` tables, a header and rows of at most 1 MiB, so a remote libSQL server's row size limit never applies, and the in-memory store keeps them in memory; blobs are deleted with their session, are never touched by worktree snapshot collection, and travel with a session when it is branched, forked, moved to another store, or copied by a workflow fork. The oversized result of an agent released while it waited (a workflow stage or a background subagent) is stored this way and read with `read` or `search` on `tool-output://<sha256>`. `exportToJsonl` carries these outputs inline, one at a time into a file moved into place when complete, owner-only for a new file and with the mode of the file it replaces (`toolOutputContent: false` leaves them out, as `/share` does) and importing or forking the file restores them after checking each hash. A copy, fork or export whose source no longer holds a blob it references carries on without it and reports it once as a process warning. Failures are a typed `SessionBlobError` with codes `blobs-unsupported`, `blob-missing`, `blob-corrupt` and `blob-incomplete`, recognized by `isSessionBlobError` ([#4379](https://github.com/bastani-inc/atomic/issues/4379))
|
|
94
|
+
- In a workflow stage's session, `ask_user_question` is detachable as well, so a stage releases its session while the model waits on the user's answer, as it does during a shell `wait` without a budget. A detached call's error result carries a thrown error's `code` as data in `details.error`, with its `hint`, `retryable`, JSON-safe `fields` and cause chain; an error whose own `toJSON()` throws is reported from its properties instead, marked `serialization: "fallback"`, and the call's `result` still never rejects. A shell wait whose task is gone after a restart reports its `TaskToolError` there. `TaskToolError` now carries `hint`, `retryable` (only `StaleGeneration` is retryable) and `fields.taskId`, and `TaskToolError`, `isTaskToolError`, `rehydrateTaskToolError` and their types are exported ([#4374](https://github.com/bastani-inc/atomic/issues/4374))
|
|
95
|
+
- `SessionSpillError` (codes `spill-dir-refused`, `spill-write-failed`, `spill-read-failed`, `spill-missing`, `spill-corrupt`, `spill-cleanup-failed`), `isSessionSpillError()` and `SESSION_SPILL_ERROR_CODES` are exported from `@bastani/atomic/storage`. A released session whose file cannot be read, or holds something other than what was written, rejects its load with one (`spill-read-failed` is retryable when the failure passes), never as a session that does not exist; a listing leaves such a session out and reports it once, and fails only on a retryable read. A file that cannot be written keeps that history in memory and is reported once as a process warning. Session stores may implement the optional `releaseSession(sessionId)` hook to move a released session's history out of memory ([#4502](https://github.com/bastani-inc/atomic/issues/4502))
|
|
96
|
+
- `IntercomBrokerSuccessorTimeoutError` (code `broker-successor-timeout`, `retryable: true`, with `phase`, `timeoutMs`, `elapsedMs`, `attempts` and `hint`) and its family base `IntercomBrokerError` are exported from `@bastani/atomic` with `isIntercomBrokerError`, `isIntercomBrokerSuccessorTimeoutError`, `isRetryableIntercomBrokerError`, `serializeIntercomBrokerError` and `rehydrateIntercomBrokerError`. Intercom raises the timeout when a registration lost to a retiring broker finds no replacement within 10 seconds ([#4496](https://github.com/bastani-inc/atomic/issues/4496))
|
|
97
|
+
- Type in a `/tasks` agent transcript and press Enter to message that agent through its Intercom target, as an Intercom message from your session would. The agent records the message, so it appears in the transcript once delivered; a refused or unconfirmed message stays in the prompt with the reason, and comes back there when you reopen the transcript if you had already left it. `TaskViewSource.sendTaskMessage()` does the same for SDK hosts, and its failures are typed: `TaskMessageError` (codes `task-unavailable`, `messages-unsupported`, `delivery-refused`, and `delivery-unconfirmed` when the channel failed without an answer) and `TaskMessageTimeoutError` (`delivery-unconfirmed`), with guards, `isRetryableTaskMessageError()`, `findTaskMessageError()` and `rehydrateTaskMessageError()`. Only `delivery-refused` is retryable ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
98
|
+
- Attached workflow stage chats and `/tasks` transcripts scroll like the main transcript: the mouse wheel follows `fullscreenWheelScrollLines` with velocity acceleration in `"auto"`, Alt+wheel scrolls five times as far, `fullscreenScrollbar` shows a scrollbar, Ctrl+Up/Ctrl+Down jump between prompts, and the `tui.altScreen.halfPageUp`/`halfPageDown` bindings page by half a view. `ScrollableComponentViewport` takes these as constructor options, `ChatSessionHost` accepts `commands.send` and `onNearTop` and has `prependMessages()` and `replaceMessages()`, and `ChatRenderSettings` may carry `fullscreenScrollbar` and `fullscreenWheelScrollLines` ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
99
|
+
- Sessions resume on any machine that shares your storage. `atomic --session`, `--resume`, `/resume` and SDK `createAgentSession({ sessionManager })` continue a session whose checkouts are missing or changed here, and `runtime.rehydrate()` one whose checkouts are missing here or are other clones that differ from its snapshots, keeping each checkout it worked in on this machine as it is: in a matching checkout of the same repository, or in fresh worktrees restored from its snapshots, asking only when you start `atomic` in a checkout of the repository that differs and has local changes. Every recorded checkout is restored, also for a session that worked outside all of them. Absolute paths from the earlier machine resolve in the restored worktrees for that session's tool calls, and for those of a released background subagent woken on another machine, and a trusted repository's `.atomic/setup` or `resume.setupCommand` from your global settings installs dependencies once per restored worktree and lockfile state. See [Resume on any machine](docs/guides/resume-on-any-machine.md) ([#4329](https://github.com/bastani-inc/atomic/issues/4329))
|
|
100
|
+
- Resumes check their setup in one pass before restoring anything and fail typed, naming every missing piece and its fix: `ResumePreconditionError` (adapter not installed, missing or unreadable token, Git that can be neither started nor provisioned, with the `GitUnavailableError` as its `cause`, or no setup hook that could run), `ResumeNotFoundError` (a machine that keeps sessions in local-only storage is told to run `atomic storage join <url> --token-file <path>`, after `atomic team leave` on a machine joined with `atomic team join`, which keeps sessions on each machine; `rehydrate()`'s `session-not-found` hint says the same), `ResumeSetupHookError`, and the retryable `ResumeCatalogUnavailableError` and `ResumeCatalogTimeoutError`: the CLI resume, `/resume` and `rehydrate()` stop after 15 seconds when shared storage does not answer, instead of waiting for the network to give up. The family is exported from `@bastani/atomic` with its guards, `serializeResumeError` and `rehydrateResumeError`, and crosses workflow worker boundaries as itself ([#4329](https://github.com/bastani-inc/atomic/issues/4329))
|
|
101
|
+
- `atomic intercom upgrade` replaces an Intercom broker that an older Atomic started, when that is safe: it stops one with no session connected, so the next session starts the new broker, and leaves one with sessions connected to the next session of the new version, which hands it over. The installers and `atomic update` run it after a successful install, only when the installed version has the command and without passing it any input; a failure there only warns. `atomic intercom status` shows the broker's protocol range. The `IntercomBrokerError` family adds `IntercomBrokerProtocolError` (`broker-protocol-unsupported`), `IntercomBrokerUpgradeError` (`broker-upgrade-failed`) and `IntercomBrokerStopTimeoutError` (`broker-stop-timeout`), exported with `isIntercomBrokerProtocolError()`, `isIntercomBrokerUpgradeError()` and `isIntercomBrokerStopTimeoutError()` ([#4538](https://github.com/bastani-inc/atomic/issues/4538))
|
|
102
|
+
|
|
103
|
+
### Changed
|
|
104
|
+
|
|
105
|
+
- A node-sqlite writers' queue directory (`<file>-writers`) that exists but cannot be read now fails transactions with `StorageWriterQueueUnusableError`, a `StorageUnavailableError` naming the cause, instead of letting them skip the queue unnoticed. A writer that cannot read the queue when it lets go of the lock still commits and reports a `StorageWriterQueueDegradedError` warning ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
|
|
106
|
+
- `/debug` appends its snapshot to the debug log instead of replacing the file, so debug mode output written before it is kept. Each `/debug` adds another snapshot with conversation text, and Atomic never trims the file, so delete it before reproducing a problem you want to share ([#4360](https://github.com/bastani-inc/atomic/issues/4360))
|
|
107
|
+
- Credential redaction in debug output, and in the error messages of `atomic auth` credential printing and Morph compaction, also replaces GitHub tokens (`ghp_…`, `gho_…`, `github_pat_…` and the like) and private key blocks with `[redacted]` ([#4360](https://github.com/bastani-inc/atomic/issues/4360))
|
|
108
|
+
- The default model for the `anthropic` and `anthropic-api` providers is now Claude Opus 5.5 (`claude-opus-5-5`) instead of Claude Opus 4.8 (upstream b425754a)
|
|
109
|
+
- Default models moved to newer models at the same or a lower price: `amazon-bedrock` Claude Opus 5.5, `azure` GPT-6.1 Sol, `google` and `google-vertex` Gemini 4 Argon, `vercel-ai-gateway` GLM 5.3, `minimax` and `minimax-cn` MiniMax-M3, `qwen-token-plan` and `qwen-token-plan-cn` Qwen3.8 Max, `opencode-go` Kimi K3.1 Pro, and Kimi K2.7 Code instead of Kimi K2.6 for `moonshotai`, `moonshotai-cn`, `huggingface`, `opencode`, `openrouter`, `cloudflare-workers-ai` and `cloudflare-ai-gateway` (upstream d84123b3)
|
|
110
|
+
- Mermaid diagrams render with lovely-mermaid 0.3.3 instead of grok-mermaid: pie charts and other new diagram types render, `classDef` styles from the diagram apply over the theme colors, and `click` links become terminal hyperlinks on the node label when the terminal supports them (upstream [#8158](https://github.com/earendil-works/pi/pull/8158))
|
|
111
|
+
- `read` and `search` return plain text without `[path#TAG]` headers or `LINE:` prefixes. `read` shows file content as is, and a line-range selection that is not the whole file labels each run of lines, for example `[Lines 9-14 of 40]`, with the continuation hint pointing after the last line shown; `:raw` returns the exact requested lines without labels. `search` rows are `path:LINE: text` for matches and `path-LINE- text` for context, with paths relative to the working directory. Line ranges, `:raw`, conflict views, archives, SQLite, URLs and internal resources such as `history://` work as before ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
112
|
+
- The interactive `edit` row previews its diff as soon as the call's arguments are complete, as upstream pi does ([#4328](https://github.com/bastani-inc/atomic/issues/4328))
|
|
113
|
+
- `atomic storage join` reuses the private token file the current selection references when it already holds the same token, so joining again leaves settings unchanged, its connection check gives up after 15 seconds with a retryable `connection-timeout` instead of waiting for the operating system, and its errors are typed (`TeamProfileConfigError`, `TeamProfileError`) ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
114
|
+
- Workflow runs are kept by default in one logical journal store, `~/.atomic/workflows/journal/`: a catalog plus SQLite shard files that Atomic creates and grows by itself. Each root run and its children live on one shard, so concurrent campaigns and their local workers no longer wait for one file's write lock, and you no longer need a separate journal per campaign or pool. Status, resume, attach, fork, `history://` and the resume picker find any run through the catalog. The previous default file, `~/.atomic/workflows/journal.sqlite`, is adopted in place on first use and keeps holding sessions. A run ID that this machine's local storage does not hold now reports `run-not-found` with the command that joins shared storage ([#4325](https://github.com/bastani-inc/atomic/issues/4325))
|
|
115
|
+
- `decisionModel` is the model every decision uses. `model: "auto"` selection for workflow stages and subagents asks its questions through `decide()`, and the `structured_output` tool without its own `model` starts on `decisionModel` (a classifier answers when the result schema is a finite Choice), then its fallbacks and the current chat model. It resolves `decisionModel` as `decide()` does, classifier first: an unregistered or invalid value rejects with `DecisionModelUnavailableError` or `DecisionConfigError` instead of being skipped, and a call that no candidate answers rejects with `DecisionOutputError` or `DecisionProviderError`. With `decisionModel` unset, the tool still uses the current chat model ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
116
|
+
- A structured decision that overruns its deadline rejects with `DecisionTimeoutError` (`Decision timed out: no answer within its <n>ms deadline …`), and an `AutoRoutingInferenceError` keeps the `DecisionError` that caused it as its `cause` ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
117
|
+
- The OpenAI Codex provider is shown as "OpenAI Codex" again instead of "OpenAI Codex (legacy)" in `/login`, the model selector and `atomic auth login` (upstream [`36142c1c`](https://github.com/earendil-works/pi/commit/36142c1c7eab1d756e977b5f39149a634cc472ac))
|
|
118
|
+
- Each session and workflow stage keeps its 256 most recently finished tasks in `/tasks` instead of every task it ever ran. A long session that launches thousands of background subagents or shells no longer keeps a record of each one until it closes. Running, queued and stopping tasks, shells whose cleanup is still being confirmed or failed, and finished tasks whose completion notice is still being delivered are always kept, so every notice keeps its task's title, excerpt and output, and a foreground shell still gets no second notice. A `wait`, `kill` or output read of an older finished task reports `Task "<id>" finished and is no longer kept in this session`; its result stays in the conversation, a subagent's transcript stays in its own saved session, and a shell's full output is deleted with its record ([#4385](https://github.com/bastani-inc/atomic/issues/4385))
|
|
119
|
+
- Oversized tool output is saved to a file named by the SHA-256 of its content, so identical outputs share one file, and the result names the digest after the path. A result that reaches an agent released while it waited (a workflow stage or a background subagent), in a session kept in SQLite or libSQL, is stored in the session store with its session and named `tool-output://<sha256>`, so every host that shares the store can read it; see the Added entry for session blobs ([#4309](https://github.com/bastani-inc/atomic/issues/4309), [#4379](https://github.com/bastani-inc/atomic/issues/4379))
|
|
120
|
+
- `redispatchDetachedToolCalls()` reports each call it starts again with a `tool_execution_start` event, delivered to session listeners before it returns, and the call's work can use the session's `ctx` until its first `await`. A workflow stage resumed after a restart asks an interrupted `ask_user_question` again this way, after its session opens, instead of during session recovery ([#4374](https://github.com/bastani-inc/atomic/issues/4374))
|
|
121
|
+
- A released session or subagent keeps less in memory while it waits. The in-memory session store merges a session's appends into a few buffers instead of keeping one per append, so a session of n bytes is held in at most log2(n) + 1 buffers. A detachable tool call that outlives its session no longer keeps a place in that session's tool scheduler, and a released subagent keeps only what delivers its call's result, not the call and its abort controller ([#4403](https://github.com/bastani-inc/atomic/issues/4403))
|
|
122
|
+
- A session released over an in-memory session store (a memory selection: `--no-session`, `ATOMIC_STORAGE=memory`, `{ "memory": true }`, or an SDK `{ kind: "memory" }` store) no longer keeps its history in process memory: `release()` moves it to a file under the agent directory, in `released-history/<host-identity>/<pid>-<start>/`, and keeps only its header; rehydrating reads the file once. Permissions are owner-only 0700 directories and 0600 files on POSIX; Windows inherits the agent directory's ACL. Re-release requests a copy-on-write clone and stages the append before renaming the complete file into place; without reflink support, each re-release still copies the whole previous history. An incremental checksum detects accidental same-length corruption too. Files are removed with their session, when the store's last handle closes, and on process exit, including `process.exit()` from Atomic's signal handlers. Opening an in-memory store or running the session startup sweep on main registers worker-owned directories for cleanup on main-thread exit, including after `worker.terminate()`; importing the SDK alone does not install cleanup. Worker-only stores rely on explicit close, normal worker exit or the next sweep. Killed processes leave plaintext history until a matching startup sweep proves their owner gone by pid and start time. Sweeps are limited to the same hostname, platform/kernel, boot and Linux PID namespace; unknown identities, other namespaces/boots and older host-only layouts are preserved. Missing directories are recreated on later writes, but deleted history cannot be recovered. `--no-session` means no resumable session, not disk-free history ([#4502](https://github.com/bastani-inc/atomic/issues/4502))
|
|
123
|
+
- A `/tasks` agent transcript is now a chat on the same view as an attached workflow stage chat. It opens at the latest message and follows new output; PageUp/PageDown page it, Ctrl+Home/Ctrl+End jump to the first retained message (loading earlier history as needed) and the latest message, and earlier retained history loads as you scroll toward the top instead of when PageUp reaches it. Up/Down, Home/End and `x` are prompt keys there; stop a task with `x` from its detail page, which is now the only page where `x` stops a task. Escape goes back, and so does Left while the prompt is empty. Thinking blocks follow Ctrl+T and tool output follows Ctrl+O, as in the chat ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
124
|
+
- The **↓ Jump to latest message** row of an attached workflow chat now replaces the last visible row rather than the first, so the first message stays reachable while you are scrolled up ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
125
|
+
- `ChatSessionHost.handleTaskInput()` returns `false` only for the thinking key an open task inspector leaves to its host; it used to return `true` for every key while an inspector was open. `ScrollableComponentViewport` and `ScrollableChatTranscriptComponent` scroll by `"auto"` wheel steps, one row for an isolated notch and more for a fast spin, instead of a fixed four rows unless given `wheelScrollLines`, and they drop cursor movement, erasing and other CSI control sequences except colors and styles, and control characters other than escape and bell, from the rows they paint ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
126
|
+
- `atomic intercom restart` reports a broker that is still running 10 seconds after its shutdown request with `IntercomBrokerStopTimeoutError` (`broker-stop-timeout`, retryable) instead of a plain error ([#4538](https://github.com/bastani-inc/atomic/issues/4538))
|
|
127
|
+
|
|
128
|
+
### Fixed
|
|
129
|
+
|
|
130
|
+
- A workflow stage resumed while a detachable call such as `ask_user_question` waits no longer starts a turn ahead of that call for a delivery its recovery replays, which answered the call as interrupted; the delivery joins the turn the call resumes ([#4391](https://github.com/bastani-inc/atomic/issues/4391))
|
|
131
|
+
- Writers to one SQLite database in different processes no longer leave the write lock idle while others wait. Each waiting writer used to find out that the lock was free by polling, sleeping up to 100 ms between checks, so on a journal shared by pool coordinators, the parent, and workers the lock sat idle most of the time. The writer that releases the lock now wakes the next one in line at once, and transactions requested while a batch waits for the lock join that batch's commit instead of queuing for the lock again. Order stays first come, first served, and writers killed or stopped while holding or waiting for the lock still never block the others ([#4316](https://github.com/bastani-inc/atomic/issues/4316))
|
|
132
|
+
- A workflow root whose children run on local workers no longer keeps every child's checkpoints in the parent process. Each pooled stage session records a checkpoint in the root's journal, and a long-running root held 250,000 to 400,000 of them in memory, which grew the parent's memory and slowed each checkpoint lookup of the root. The parent now keeps the root's own checkpoints and reads a child's from the journal when it needs them: when a resumed root replays or checks that child, when the child's nested runs settle, and when a post-mortem chat or `/workflow status` inspects the root. Resuming a pooled root replays its completed children as before ([#4318](https://github.com/bastani-inc/atomic/issues/4318))
|
|
133
|
+
- Subagents start promptly in a process whose main thread is busy, such as one hosting busy pooled workflow roots. A JSONL session read its header one byte per file read on every write, so a child took about 750 event-loop turns to reach its provider; it now reads the header in one read, writes a new session's model and thinking level together, and opens its session while its resources load, so a child reaches its provider in under 100 turns ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
134
|
+
- Concurrent sessions on Windows no longer sporadically fail with `StorageUnavailableError` while another process releases their JSONL directory lock. Temporary `EPERM` acquisition failures now retry within a bounded budget; persistent failures retain their cause, and cancellation preserves the caller's reason ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
135
|
+
- The `ask_user_question` dialog stays responsive while workflows, pooled children and subagents update the screen. Keystrokes are handled ahead of background widget and transcript repaints, and the dialog redraws only when its own state or the terminal size changes ([#4333](https://github.com/bastani-inc/atomic/issues/4333))
|
|
136
|
+
- GitHub Copilot Gemini models keep their reasoning across tool-loop turns, and their reasoning tokens now count toward output tokens and cost. A GitHub Copilot turn that ends with no text and no tool call, as Gemini sometimes returns, is retried as a failure instead of ending the turn. Discovered GitHub Copilot models send strict tool schemas only when the account's list says they support them, and resize images to the per-image size the list gives ([#4324](https://github.com/bastani-inc/atomic/issues/4324))
|
|
137
|
+
- A bash call whose command leaves a process holding its output open, or (on Linux) whose process group is slow to exit on a busy machine, no longer fails with `CleanupFailed: Process-group exit or reader drain was not confirmed`. The tool returns the command's output and exit code, and the task's cleanup shows as `quarantined` while it is confirmed in the background until the session or stage closes; its process permit stays held until then. On macOS, a process group the system still refuses to probe after the drain window fails as before ([#4338](https://github.com/bastani-inc/atomic/issues/4338)).
|
|
138
|
+
- Aborting while a tool runs no longer ends the turn with an error when the next request's credential setup sees the aborted signal; the turn ends as aborted (upstream [#8635](https://github.com/earendil-works/pi/pull/8635))
|
|
139
|
+
- The grep tool's ripgrep search (literal patterns, custom operations, or when native search is unavailable) no longer reads every matched file into memory when `context`, `contextBefore` or `contextAfter` is set, which ran out of memory on large files. Context lines come from ripgrep, so overlapping context prints once, UTF-16 and non-UTF-8 files show correctly, and the match limit notice no longer appears when exactly `limit` matches exist. A fractional `limit` or a huge context value is clamped to a whole number (upstream [#11705](https://github.com/earendil-works/pi/pull/11705))
|
|
140
|
+
- The ls tool with `limit: 0` no longer lists nothing and reports `(empty directory)`; limits below 1 now mean 1 and fractional limits are rounded down (upstream [#11747](https://github.com/earendil-works/pi/pull/11747))
|
|
141
|
+
- On Windows and WSL, `ctrl+v` pastes again: `app.clipboard.pasteImage` defaults to both `alt+v` and `ctrl+v` there, instead of only `alt+v` (upstream [#11780](https://github.com/earendil-works/pi/pull/11780))
|
|
142
|
+
- Dart (`.dart`), Nix (`.nix`), Groovy (`.groovy`) and Gradle (`.gradle`) files are syntax-highlighted in read and write views (upstream [#11790](https://github.com/earendil-works/pi/pull/11790))
|
|
143
|
+
- `atomic config` uses your `keybindings.json`, so remapped list navigation keys work in its selector (upstream [#11788](https://github.com/earendil-works/pi/pull/11788))
|
|
144
|
+
- Truncated grep match lines, codemode output, compaction summaries of tool results, and MCP stderr tails and server summaries no longer cut an emoji or other non-BMP character in half, which left an invalid lone surrogate in the text (upstream [#11757](https://github.com/earendil-works/pi/pull/11757))
|
|
145
|
+
- Extension selectors with more than 10 options show a window of 10 around the selection with a `(selected/total)` indicator, instead of rendering every option and pushing the selection off screen (upstream [#11072](https://github.com/earendil-works/pi/pull/11072))
|
|
146
|
+
- The session tree's "Type to search" line shows a cursor while the tree has focus, like the resume picker's search; the cursor moves to the label input while you edit a label (upstream [#9157](https://github.com/earendil-works/pi/pull/9157))
|
|
147
|
+
- A collapsed paste (`[paste #1 +12 lines]`) in the editor keeps its content when an extension replaces the editor, when an inline extension UI closes, and when queued messages are restored above the draft; before, the draft came back as the bare marker (upstream [#10146](https://github.com/earendil-works/pi/pull/10146))
|
|
148
|
+
- The `/model` selector keeps the model you moved to when its background catalog refresh lands, instead of jumping back to the current model or the top search result; if that model is gone, it falls back as before. The llama.cpp Hugging Face search likewise keeps the result you browsed to when a search finishes (upstream [#11810](https://github.com/earendil-works/pi/pull/11810))
|
|
149
|
+
- Extensions installed through a symlink, such as a pnpm package whose dependencies exist only next to the real file in the store, now load: the entry is imported by its real path, so its imports resolve from there (upstream [#8112](https://github.com/earendil-works/pi/pull/8112))
|
|
150
|
+
- The plan-mode example extension tracks progress more reliably: it reads `[DONE:n]` markers from thinking blocks too, accepts variants such as `[DONE: 1]`, `Done: 2` and "Step 3 is complete", marks every step done when the final message says all steps are complete, keeps whole step text (the widget shortens it for display), keeps steps that start with a backtick, uses only the last `Plan:` section, and delivers the completion card with the next prompt instead of starting another turn (upstream [#7950](https://github.com/earendil-works/pi/pull/7950))
|
|
151
|
+
- Images in steering and follow-up messages, including a prompt sent while the agent is working, are now resized like images in idle prompts instead of being sent and saved at full size (upstream [#11782](https://github.com/earendil-works/pi/pull/11782))
|
|
152
|
+
- An image-only steering or follow-up message leaves the queue once it is delivered, so the pending count and queued-message display no longer keep a stale entry (upstream [#8612](https://github.com/earendil-works/pi/pull/8612))
|
|
153
|
+
- A user `!` command whose earlier output was dropped from the in-memory buffer now reports its output as truncated, with the path of the saved full log, even when the kept tail fits the output limits (upstream [#10165](https://github.com/earendil-works/pi/pull/10165))
|
|
154
|
+
- A symlinked `auth.json` shares one lock with the file it points to, so two Atomic processes that reach the same credentials through different paths no longer refresh the same OAuth token at the same time. Writes replace the real file instead of the symlink, which a write used to turn into a separate regular file (upstream [#11787](https://github.com/earendil-works/pi/pull/11787))
|
|
155
|
+
- Tree navigation can no longer start while a prompt is still running its input hooks, which let navigation rebuild the context under the prompt and drop it. A `session_tree` handler can prompt or navigate again: the selected context is installed before the event, so such a prompt no longer waits for the navigation that is waiting for the handler (upstream [#9155](https://github.com/earendil-works/pi/pull/9155))
|
|
156
|
+
- `atomic mcp list` no longer reports MCP servers with `"auth": { "provider": "<provider>" }`, such as Radius, as needing sign-in while the provider is signed in: it sends the provider's `/login` token and refreshes it when it expired. For these servers the sign-in hint names `/login <provider>`, and `atomic mcp login` and `atomic mcp logout` point to the provider's login and logout instead of failing with "does not use OAuth". A provider token that cannot be read is logged to `mcp.log` (upstream 4d72d05b)
|
|
157
|
+
- When the llama.cpp server cannot be reached, `/login llama.cpp`, `/llama` and the model catalog refresh name the server and the network-level cause, for example `Could not reach llama.cpp server at http://127.0.0.1:8099: connect ECONNREFUSED 127.0.0.1:8099`, instead of only `fetch failed`. The error is a `LlamaServerUnreachableError` (code `server-unreachable`) with the server URL, the cause, and a hint. A request the runtime refuses to send, such as a server URL with a user name and password or a port Node's `fetch` blocks, is a non-retryable `LlamaServerRequestError` (code `request-rejected`) instead, and user names and passwords never appear in the message, fields or serialized cause. In `/llama`, a model action that fails because the server cannot be reached no longer adds an error notification on top of the connection prompt, and a failed Hugging Face request now shows its own error instead of being dropped (upstream [#11779](https://github.com/earendil-works/pi/pull/11779))
|
|
158
|
+
- When a bash command times out after the shell itself exited, because a background process it started kept writing to its output, the error also reports the shell's exit code and when it exited, instead of only `Command timed out after N seconds` (upstream [#11813](https://github.com/earendil-works/pi/pull/11813))
|
|
159
|
+
- Malformed llama.cpp server URLs and URL-like error details no longer stall credential redaction on long inputs. User names and passwords are still removed before errors are displayed or relayed.
|
|
160
|
+
- The grep tool preserves skipped matches as leading context when `offset` pages past them and avoids repeatedly scanning large leading-context windows. The plan-mode example only clears a completed plan after an affirmative final visible reply, not a negated summary or a claim made only in hidden thinking.
|
|
161
|
+
- Settings files are written to a temporary file and renamed into place, keeping their mode and symbolic links, so another Atomic process never reads a half-written `settings.json`, and a killed or out-of-space write leaves the previous file intact. A settings file that cannot be replaced, such as a single file mounted into a container, is still written in place ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
162
|
+
- An invalid `--storage`, `ATOMIC_STORAGE` or `ATOMIC_PROFILE` selection, or a missing libSQL adapter for the CI profile, now stops startup with one `Error:` line and exit code 1 instead of a stack trace ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
163
|
+
- llama.cpp chat models remain available for automatic task analysis and structured-output fallbacks when a classifier shares the same model ID ([#4358](https://github.com/bastani-inc/atomic/issues/4358)).
|
|
164
|
+
- On Windows, writers to one SQLite database in different processes keep taking the write lock in turn after the system clock is set, for example by a virtual machine's time synchronization. A running process's own clock could stay seconds off the system clock for up to a minute afterwards, so writers took waiting writers for gone and went ahead of them, or removed their places in line. Writers now judge the queue on the database's clock, which every process shares. A writer waiting for its turn also no longer pauses its process while it reads the queue or writes, refreshes or removes its place in line ([#4387](https://github.com/bastani-inc/atomic/issues/4387))
|
|
165
|
+
- `Ctrl+P` switches to the only model in scope, or the only available model, when the active model is a different one, instead of showing "Only one model in scope". Cycling forward from a model outside the scope now selects the first scoped model instead of skipping it (upstream [#11806](https://github.com/earendil-works/pi/issues/11806))
|
|
166
|
+
- `/reload` and session switches no longer leave extension overlays on screen when more than one `ctx.ui.custom({ overlay: true })` was open: only the topmost overlay was removed, and the others kept focus and input although the extension that opened them was gone. All extension overlays, including hidden ones, are now removed and disposed, newest first; Atomic's own overlays stay open (upstream [#11853](https://github.com/earendil-works/pi/issues/11853))
|
|
167
|
+
- MCP sign-in from `/mcp` or `atomic mcp login` no longer hangs for minutes after a successful browser sign-in, with Ctrl+C doing nothing: Atomic waited for the browser to drop an unused connection to the OAuth callback port before connecting. The callback server now closes remaining connections when it shuts down (upstream [#11311](https://github.com/earendil-works/pi/issues/11311))
|
|
168
|
+
- The resume picker keeps session names readable when a project or session file path is long. In the **All** view, and with paths shown, a path that would crowd out the name is shortened from the start behind `…`, so its last folders and the message count and age stay visible ([#4406](https://github.com/bastani-inc/atomic/issues/4406))
|
|
169
|
+
- `tool_search` and codemode's `searchTools()` find a tool by the property names and descriptions behind a local `$ref`, as in MCP input schemas that put their models in `$defs`; before, a search for a word that appeared only there found nothing. Referenced definitions are read once, so recursive schemas do not loop, and definitions nothing references stay out of the search text (upstream [#11803](https://github.com/earendil-works/pi/issues/11803))
|
|
170
|
+
- The codemode `resolves to` summary of a tool lists the field names behind a local `$ref`, for example `structuredContent?: { results }` instead of `structuredContent?` for MCP output schemas that put their models in `$defs` (upstream [#11803](https://github.com/earendil-works/pi/issues/11803))
|
|
171
|
+
- When `fd` or `ripgrep` cannot be downloaded, the `find`, `grep` and `search` tools now fail with the reason instead of only saying the tool "could not be downloaded": the URL of the request that failed and what went wrong, for example `Could not download ripgrep: resolving the latest release at https://github.com/BurntSushi/ripgrep/releases/latest did not finish within 10000ms`. The startup warning shows the same text. SDK callers get a typed `ManagedToolDownloadError` (code `download-failed`, with `url`, `phase`, `httpStatus` and the underlying error as `cause`) or `ManagedToolTimeoutError` (code `download-timeout`), exported from `@bastani/atomic` with their guards and `isRetryableManagedToolError()` ([#4389](https://github.com/bastani-inc/atomic/issues/4389))
|
|
172
|
+
- `atomic storage consolidate` recovers stale consolidation fences and runs stranded by a crash during cleanup instead of leaving the catalog on a shard missing committed events. Recovery also preserves the selected copy when another consolidation finishes a move in the meantime, and keeps events a concurrent resume writes to the new shard even after that resume releases its lease. A stranded run whose selected copy lacks events the old file holds, for example because resumes wrote to both copies during an interrupted move, is reported as `conflict` and the command exits `1`; both copies are kept ([#4402](https://github.com/bastani-inc/atomic/issues/4402))
|
|
173
|
+
- An SDK host that creates and disposes many sessions no longer keeps the launch details (routing choice, requested model and heartbeat cadence) of the subagents and shells those sessions ran. These details were held process-wide, so each disposed session that had run tasks left up to 256 of each behind, and the total grew with every session. They now belong to the session's own tasks: they go when a task is dropped from the session's 256 most recently finished tasks, when a launch fails, and when the session closes ([#4451](https://github.com/bastani-inc/atomic/issues/4451))
|
|
174
|
+
- A disposed workflow stage session is no longer kept reachable by the stage that opened it: the stage's message admission, the reason it closed its generation and its task host used to hold the first session for as long as the stage lived ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
175
|
+
- When a tool call's message could not be saved, the call's blocked result is no longer saved either, so a session never holds a tool result without its call ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
176
|
+
- `read` no longer loads a whole file to show some of its lines, which took several times the file's size in memory and failed on files over 2 GB. It streams plain-text files and keeps only the lines it shows, with the same output as before. Custom `ReadOperations` can stream too by providing the new optional `createReadStream`. A cancelled `read` stops reading and throws `FileToolAbortedError` with the signal's reason as `cause` ([#4353](https://github.com/bastani-inc/atomic/issues/4353))
|
|
177
|
+
- A response cut off by the length limit is continued even when the session store takes longer than 100 ms to record that the cut-off attempt is left out of the model's context. The continuation used to start before that write finished, fail with "Cannot continue from message role: assistant", and end the turn on the partial answer ([#4476](https://github.com/bastani-inc/atomic/issues/4476))
|
|
178
|
+
- Session stores on a libSQL server no longer fail a write when the process stalled mid-transaction (stopped by a signal, starved of CPU) long enough for the server to expire its stream, or when the server timed out or refused it briefly: the write runs again and is saved once ([#4383](https://github.com/bastani-inc/atomic/issues/4383))
|
|
179
|
+
- The Windows installer no longer reports a failed install when Windows briefly keeps the just-verified `atomic.exe` in its temporary download directory locked. It now retries removing that directory for up to 9 seconds instead of about 1 second before it gives up ([#4483](https://github.com/bastani-inc/atomic/issues/4483))
|
|
180
|
+
- Atomic no longer aborts after repeated image reads, reported on macOS arm64 with Node 24.16. Each image resize runs in a worker thread, and the next resize used to start a new worker while the previous one was still shutting down. Image resizes now wait for their worker to stop, which adds about 15 ms per image (upstream [#10695](https://github.com/earendil-works/pi/issues/10695))
|
|
181
|
+
- Prompt template arguments keep apostrophes and no longer merge words: an apostrophe inside a word, as in `doesn't`, no longer opens a quote; a quote with no closing match is kept as text; and `\"` inside `"..."` (or `\'` inside `'...'`) gives a literal quote (upstream [#11861](https://github.com/earendil-works/pi/issues/11861))
|
|
182
|
+
- The grep tool's `glob` is relative to `path` when the search runs through ripgrep (`literal: true`, or custom `operations`), as it already was for the native search: with `path: "repo"`, `glob: "migrations/main/*.js"` returned `No matches found` even though `repo/migrations/main/a.js` exists, because ripgrep matched the glob from the folder Atomic was started in. This also holds when `path` is a symlink. A leading `./` (`./src/*.ts`) is ignored instead of matching nothing, on both search paths, and so is one after a negating `!` on the ripgrep path (`!./dist/**`) (upstream [#11807](https://github.com/earendil-works/pi/issues/11807), [#10998](https://github.com/earendil-works/pi/issues/10998))
|
|
183
|
+
- `ctrl+o` expands and collapses the output of `!` and `!!` commands run while the agent is working. New `!`/`!!` output starts in the current expand state, it no longer disappears when a steering or follow-up message is queued, and it moves into the chat when the agent finishes instead of on the next submitted message. Output still waiting there is no longer carried into the next session after `/new`, `/resume` or `/fork` (upstream [#11875](https://github.com/earendil-works/pi/issues/11875))
|
|
184
|
+
- Resuming a session no longer restores an old thinking level after `/tree` navigated to before a thinking level change. The live thinking level is now recorded on the new branch with the next prompt when the branch implies another one (upstream [#11451](https://github.com/earendil-works/pi/issues/11451))
|
|
185
|
+
- `edit` keeps the line endings of the lines it does not touch. It used to take the first line ending in the file and write the whole file back with it, so in a file mixing LF and CRLF, or with a lone CR inside a line, untouched lines changed. Line breaks in the new text take the ending of the line they replace, and a file that uses only lone CR line endings gets CR instead of being converted to LF (upstream [#8544](https://github.com/earendil-works/pi/issues/8544))
|
|
186
|
+
- `edit` computes its diff and patch before it writes the file, and only around the replaced text, so a small edit of a large file no longer runs out of memory or takes seconds after the file was already written. `details.diff`, `details.patch` and `firstChangedLine` keep their format; in runs of repeated lines a change can be aligned differently, and the patch still applies (upstream [#11751](https://github.com/earendil-works/pi/pull/11751))
|
|
187
|
+
- A `/tasks` transcript shows compaction boundaries, branch summaries and extension notices, also after it is reopened, and shows the compaction status while the agent compacts ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
188
|
+
- Ctrl+T in an attached workflow stage chat or a `/tasks` transcript changes their thinking display in the default isolated CLI; it used to change only the main chat behind them. A `/tasks` transcript there now opens with the chat's tool-output setting, and Ctrl+O in it changes the transcript's. The task pages opened from the main chat leave only Ctrl+T to it and keep every other key, so keys such as Ctrl+Home on the list or detail page no longer scroll the chat behind them ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
189
|
+
- An old `routerModel` setting is now migrated to `decisionModel` instead of stopping startup ([#4526](https://github.com/bastani-inc/atomic/issues/4526))
|
|
190
|
+
- Extensions importing legacy `@mariozechner/pi-coding-agent` resolve against Atomic again. Interactive startup skips a broken extension with a warning naming its path and cause; print and standalone RPC modes exit with a named error. Unexpected engine exits restore the terminal before reporting their diagnostic, keeping the reason visible after exit ([#4524](https://github.com/bastani-inc/atomic/issues/4524))
|
|
191
|
+
- Verbatim compaction no longer sends earlier assistant thinking to the compaction model. Some providers refused thinking-heavy sessions with a policy refusal and Atomic fell back to a lossy summary; the compacted transcript and the recent tail appended to the compaction boundary now leave thinking out, as summary compaction already did, while tool results in the recent tail keep their full text. Messages after the boundary and the session file keep their thinking. Compactions from earlier versions still load, and compacting such a session again drops the thinking sections from its earlier compacted text. `serializeConversationForCompaction()` no longer emits `[Assistant thinking]:` sections ([#4544](https://github.com/bastani-inc/atomic/issues/4544))
|
|
192
|
+
- Thinking `off` no longer leaves a model that cannot turn thinking off at its provider's default effort, which is often high. Compaction, branch summaries, fast model routes and other requests with thinking `off` run such a model, for example Claude Opus 5.5 (including its fast mode) or a `github-copilot` Claude or GPT model, at its lowest supported level, and record a `thinking_off_fallback` diagnostic on the reply. `github-copilot` models that can turn reasoning off, such as GPT-6 Luna, and Azure GPT-5.1 and later deployments, which now offer `off`, are now sent that setting. Requests that reach a provider without a reasoning level, such as SDK calls that omit it, now run a model that cannot turn thinking off at its lowest supported level on Amazon Bedrock, OpenAI-compatible Chat Completions (such as OpenRouter) and Mistral, on Azure GPT-5 Pro and o-series deployments, and on Gemini 2.5 Pro, with a `thinking_off_fallback` diagnostic on the reply. These requests used to run at the provider's default effort or send a disabled setting the model does not support. Gemini 2.5 Pro and Azure o-series deployments no longer offer `off`, so a session at `off` uses their lowest offered level. Sessions, subagents and compaction at thinking `off` on Azure GPT-5 Pro, GPT-5.2 Pro, GPT-5.4 Pro, GPT-5.3 Codex Spark and o-series deployments run at the lowest effort the model accepts instead of sending `minimal`, which these models reject, and the thinking level selector offers only the levels they accept. `gemini-pro-latest` is sent a thinking level it supports at every level, including `off`, instead of dynamic thinking ([#4545](https://github.com/bastani-inc/atomic/issues/4545), [#4552](https://github.com/bastani-inc/atomic/issues/4552), [#4556](https://github.com/bastani-inc/atomic/issues/4556))
|
|
193
|
+
|
|
5
194
|
## [0.9.72-alpha.1] - 2026-11-08
|
|
6
195
|
|
|
7
196
|
Waiting agents let go of their sessions, work resumes on any machine, and teams share storage with one command.
|
|
@@ -4,6 +4,57 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.72] - 2026-11-08
|
|
8
|
+
|
|
9
|
+
Released subagents stay reachable, and newer sessions replace older brokers.
|
|
10
|
+
|
|
11
|
+
- **Messages reach released subagents.** Sends and asks to a background subagent that released its session are held and delivered once, in order, when it wakes, on this machine or another one that shares the database ([#4326](https://github.com/bastani-inc/atomic/issues/4326), [#4488](https://github.com/bastani-inc/atomic/issues/4488)).
|
|
12
|
+
- **Broker upgrades.** A newer Atomic replaces an older running broker instead of failing, and requests that need a newer broker fail early with a typed error ([#4496](https://github.com/bastani-inc/atomic/issues/4496), [#4538](https://github.com/bastani-inc/atomic/issues/4538)).
|
|
13
|
+
- **Project groups and quieter sends.** With multi-node routing on, sessions join a group for their repository, and queued workflow sends report a `prediction` instead of a warning ([#4320](https://github.com/bastani-inc/atomic/issues/4320), [#4359](https://github.com/bastani-inc/atomic/issues/4359)).
|
|
14
|
+
|
|
15
|
+
**Breaking change:** Read `prediction === "unknown"` from a queued workflow send's result where you read `notInKnownSet`.
|
|
16
|
+
|
|
17
|
+
### Breaking Changes
|
|
18
|
+
|
|
19
|
+
- A queued workflow send reports how its target relates to the run's stages as `prediction` (`known`, `predicted` or `unknown`) in the send result and the tool's `details`, replacing `notInKnownSet`. Read `prediction === "unknown"` where you read `notInKnownSet` ([#4359](https://github.com/bastani-inc/atomic/issues/4359))
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- While multi-node routing is on, a session with no explicit group joins a project group, `project:<owner>/<repo>` from its `origin` remote (the repository or directory name otherwise), instead of `default`, so sessions of different repositories sharing one database cannot see or message each other. Explicit groups still win, joining `default` explicitly warns that every teammate's sessions can address it (a session without a UI, such as a print run or a workflow stage, writes the warning to stderr once per process), and a missing or failing Git inside a repository fails fast with `ProjectGroupError` ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
24
|
+
- The broker follows `ATOMIC_PROFILE=ci` like `ATOMIC_STORAGE` ([#4320](https://github.com/bastani-inc/atomic/issues/4320))
|
|
25
|
+
- `intercom list` labels future rows the decision model predicted as `predicted <probability>`, `confirmed` or `unused` ([#4359](https://github.com/bastani-inc/atomic/issues/4359))
|
|
26
|
+
- A released subagent stays addressable without a connection: the broker holds sends and asks to it, asks its owner to wake it, and delivers them once each, in the order they were sent, when it is back ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
27
|
+
- A released subagent's owner can reserve any number of children by name in one call (`reserveReleasedChildren`, in frames of up to 500) instead of one round trip per child, park a child so sends are held without asking the owner to wake it, and confirm a wake (`acknowledgeReleasedChildWake`) so the sends waiting for it are held for up to 120 seconds instead of 20. A frame with an invalid child is refused whole with a typed error that names the child ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
28
|
+
- A send or ask held for a released subagent on another machine now wakes it on its owner's machine, and the sender's delivery failure carries a `reasonCode` of `recipient_not_restored` (the hold ended while the subagent was being restored or woken) or `recipient_parked` (the subagent is parked and is not woken for a send) alongside the existing text ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
29
|
+
- `broker_status` reports how many reservations the broker holds, how many sends are waiting on them, and how many released-asker reply routes were dropped at capacity since the broker started ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
30
|
+
- A released subagent's hold belongs to the session that launched it: the session that reserved it first, or that authorized it as its supervisor, and it keeps the hold after reconnecting with the same Intercom session id. Another session's reserve, drop or wake acknowledgement for that child is refused whole with a `not_owner` `ReleasedChildReservationError` and changes nothing, also across machines with multi-node routing. A child reserved in a `workflow:` group that the session is not a member of is refused with `group_not_allowed`. The released-child errors (`IntercomReleasedChildError`, `ReleasedChildReservationError`, `UnknownReleasedChildError`) carry a `code` from a closed set, can be serialized and rehydrated across processes, and are documented in the Intercom reference ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
31
|
+
- Sends held for a released subagent go only to the child its owner relaunches, which registers with the supervisor capability that owner issued for it. A session that only shares the child's name and group, or that holds a capability another session issued, receives none of them and does not end the hold. Atomic's `resume` and automatic wakes already register the child this way. An SDK host that relaunches a released child itself must request the child's capability from the owning session's Intercom extension (the `subagent:supervisor-authorization` event) and register the child with it ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
32
|
+
- A background subagent waiting on an `ask`, or on `contact_supervisor` with `need_decision` or `interview_request`, is released while it waits when its broker uses local routing. Its question stays open: the reply reaches the session that launched it, and the subagent wakes with that reply as the result of its call. Each question takes exactly one reply; a later reply is refused, and the reply is not also queued as an ordinary message. ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
33
|
+
- With multi-node routing on, a background subagent waiting on an `ask` or `contact_supervisor` question is released too. A question it asked of a session on another node is kept in the shared database, so a reply through any broker reaches the session that launched it and wakes the subagent once, in the order the replier sent its replies, also after a broker restart in between. A later reply to the same question is refused with a typed `ReleasedReplyAnsweredError` (`released_reply_answered`), or `ReleasedReplyInFlightError` (`released_reply_in_flight`, retryable) while another reply is still being handed over; the send result carries the error as `error` and its code as `reasonCode`. A reply that could not be handed over never keeps the question from the next one. An ask that another node's session sent to a subagent that is then released also stays open, and the subagent answers it once it wakes, on any node. Brokers that share one database must run this version: an older broker cannot hand such a reply over ([#4386](https://github.com/bastani-inc/atomic/issues/4386))
|
|
34
|
+
- A request that needs a newer broker than the one the session is connected to, such as keeping released subagents addressable, fails before it is sent with `IntercomBrokerProtocolError` (`broker-protocol-unsupported`) instead of ending the connection ([#4538](https://github.com/bastani-inc/atomic/issues/4538))
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- A queued workflow send to a path outside the run's known stages no longer shows the "not in the workflow's known stage set" warning; the result is a plain `Message queued for <target>`. A path the decision model judged unlikely gets one `No stage named <x> is expected; did you mean <closest>?` line, and the `intercom.showUnknownTargetWarnings` setting restores the old warning. Delivery is unchanged ([#4359](https://github.com/bastani-inc/atomic/issues/4359))
|
|
39
|
+
- A pending workflow-stage route requested after its Intercom runtime ended now fails with `IntercomRuntimeInactiveError` (`code: "intercom_unavailable"`), which workflows treat as a retryable infrastructure fault by its type ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
40
|
+
- A workflow run's pending-stage route registration that the broker does not acknowledge within 10 seconds now fails with `IntercomPendingStageRouteTimeoutError` (`code: "pending_stage_route_timeout"`), which names the run, how many roster stages the registration carried, the bound and how long it waited, and is still a recoverable broker timeout ([#4376](https://github.com/bastani-inc/atomic/issues/4376))
|
|
41
|
+
- A message a workflow stage's pending-stage delivery hands over after its Intercom runtime ended fails with `IntercomRuntimeInactiveError` too, and stays queued for the stage ([#4391](https://github.com/bastani-inc/atomic/issues/4391))
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
|
|
45
|
+
- A reconnect re-authorizes only the subagents that are still running. Children that were released, parked, dropped, reported gone or finished are no longer re-authorized one by one on every reconnect, and waking a child again no longer adds another entry for it ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
46
|
+
- A session of a newer Atomic no longer fails with `broker-routing-unavailable` when an older version's broker is running. It replaces the older broker with its own, waiting up to a minute for the older process to exit (about 30 seconds on Windows with sessions connected) while sessions of either version wait for the successor, and sessions of the older version reconnect to it under their session IDs and keep exchanging messages with the new ones. Each broker reports the range of Intercom protocol versions it accepts, keeps accepting every request an Atomic 0.9.71 session sends, and never sends such a session a message it does not handle. A broker that cannot be replaced is used on this machine only, with one warning, unless multi-node storage is selected or the broker routes across machines; then the session is still refused with `IntercomRoutingUnavailableError` ([#4538](https://github.com/bastani-inc/atomic/issues/4538))
|
|
47
|
+
- A message a workflow stage's queue delivered is replayed when the stage's session is recovered, such as by a pooled stage's replacement on another host, instead of being deferred or shown only as history because its sender is not connected there ([#4391](https://github.com/bastani-inc/atomic/issues/4391))
|
|
48
|
+
- The intercom broker writes `broker.pid` before its socket accepts connections, so a client that has connected, including one that waited for the broker to answer, always finds the pid file naming the running broker. Brokers that start at the same time take turns, and one that finds a live broker leaves its pid file alone ([#4409](https://github.com/bastani-inc/atomic/issues/4409))
|
|
49
|
+
- A send to a recipient on another broker node that is still saving the message no longer ends uncertain because one of the recipient's progress reports arrived late, as happens when its machine is busy. Once the destination broker has claimed the message, a recipient that misses one report gets one more receipt wait to report, so a claimed recipient on another node that neither confirms nor reports is reported uncertain after about 16 seconds instead of 8, while unclaimed sends and same-node sends still end uncertain after about 8 seconds ([#4443](https://github.com/bastani-inc/atomic/issues/4443))
|
|
50
|
+
- With multi-node routing on, a send that another machine's broker queued for a released subagent is now delivered after its owner's broker or the owner's process was killed, or while that broker could not reach the shared database. Before, such a send could stay queued forever because nothing woke the subagent. The owner's broker now wakes the subagent when the owner holds sends for it again, for example after either restarts, and otherwise within about 30 seconds, and the subagent receives the queued messages once each, in the order they were queued. This holds even when the owner returns after the brokers stopped remembering the subagent's session, seven days after it last connected ([#4401](https://github.com/bastani-inc/atomic/issues/4401))
|
|
51
|
+
- On Windows, an Intercom broker that shuts down, on `atomic intercom restart` or when it retires idle, now exits as soon as it has closed. Before, it could stay alive for about 30 seconds after closing its pipe, and sessions connecting to it in that time waited until their connection timed out ([#4497](https://github.com/bastani-inc/atomic/pull/4497))
|
|
52
|
+
- A workflow run whose Intercom registration races a retiring broker, such as a run resumed just as the broker's idle window ends after its previous process was killed, spawns the replacement broker and registers with it instead of failing with `Intercom broker went away before it registered this session`. A run's route connection now retries like a session's own connection, for up to 10 seconds, and fails with `IntercomBrokerSuccessorTimeoutError` (`code: "broker-successor-timeout"`) only if no broker takes over ([#4496](https://github.com/bastani-inc/atomic/issues/4496))
|
|
53
|
+
- With multi-node routing on, a released subagent whose broker restarted while it ran is woken by the next send to it. Before, when the subagent reconnected to the restarted broker just as it was released, that late registration could end the reservation its owner had just made, so later sends waited for it without waking it ([#4488](https://github.com/bastani-inc/atomic/issues/4488))
|
|
54
|
+
- With multi-node routing on, a send to a released subagent on another machine reaches it when it is sent just as the subagent is released, or arrives while it is being released again. Before, such a send could wait without waking the subagent and fail after 20 seconds with `recipient_parked` ("still being restored after the restart"), or reach it only at the next 30-second check. A send held for a subagent now also reaches it as soon as the wake that restores it registers, instead of at the next outcome check up to 5 seconds later ([#4488](https://github.com/bastani-inc/atomic/issues/4488))
|
|
55
|
+
- With multi-node routing on, one send held during a subagent's release wakes it only once, even when both the sender's broker and the owner's broker notice it. Before, their overlapping checks could restore the child a second time without another message. Later sends and subsequent releases still wake it normally ([#4488](https://github.com/bastani-inc/atomic/issues/4488))
|
|
56
|
+
- With multi-node routing on, a send to a released subagent on another machine that the sender's broker routed while the subagent was still connected, but queued only after it disconnected, now wakes the subagent right away. Before, nothing woke the subagent for it until the owner's broker's next check, up to 30 seconds later. The send still reaches the subagent once, in order, and wakes it only once ([#4512](https://github.com/bastani-inc/atomic/issues/4512))
|
|
57
|
+
|
|
7
58
|
## [0.9.72-alpha.1] - 2026-11-08
|
|
8
59
|
|
|
9
60
|
### Breaking Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.72
|
|
3
|
+
"version": "0.9.72",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
|
|
6
6
|
"contributors": [
|
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.9.72] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Streamable HTTP SSE streams framed with a lone CR line ending are now split into events. Lines end at CR, LF or CRLF, a CRLF split across chunks counts once, and a CR-terminated event is delivered while the stream stays open. Before, such a stream was parsed as one line at EOF and a tool call answered this way failed with "stream ended without a response" (upstream [#11775](https://github.com/earendil-works/pi/pull/11775))
|
|
15
|
+
- stdio MCP servers that send a large message in many chunks no longer slow down quadratically: the transport keeps an incomplete message as a list of chunks and joins it once when its newline arrives, instead of copying and rescanning the whole buffer on every chunk. A 1 MiB message in 4 KiB chunks now takes one `Buffer.concat` instead of 257 (upstream [#11791](https://github.com/earendil-works/pi/pull/11791))
|
|
16
|
+
- `OAuthCallbackServer.close()` no longer waits for minutes when the browser keeps an unused connection open to the callback port, for example a preconnect. It now closes the remaining connections (upstream [#11311](https://github.com/earendil-works/pi/issues/11311))
|
|
17
|
+
|
|
10
18
|
## [0.9.72-alpha.1] - 2026-11-08
|
|
11
19
|
|
|
12
20
|
### Fixed
|
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.72] - 2026-11-08
|
|
6
|
+
|
|
7
|
+
Background subagents that wait let go of their sessions.
|
|
8
|
+
|
|
9
|
+
- **Released while waiting.** A background subagent waiting on a long tool call, a question or a shell task releases its session and memory, and wakes with the result, also after a restart of its owner or on another machine ([#4326](https://github.com/bastani-inc/atomic/issues/4326), [#4329](https://github.com/bastani-inc/atomic/issues/4329), [#4502](https://github.com/bastani-inc/atomic/issues/4502)).
|
|
10
|
+
- **Clear start failures.** A child that does not start in time fails with a `SessionStartTimeoutError` naming what blocked it, and `sessionStartTimeoutMs` sets the budget ([#4319](https://github.com/bastani-inc/atomic/issues/4319)).
|
|
11
|
+
- **Message running children.** Type into a child's `/tasks` transcript to message it ([#4521](https://github.com/bastani-inc/atomic/issues/4521)).
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- A released background subagent is woken in the restores of the session or run that launched it, and in those its owner recorded since. When it is woken on another machine, its recorded directory is mapped through them before anything checks that it exists, and its own session is prepared as a woken session is: each checkout it worked in on this machine stays, and the others are restored from its snapshots into worktrees there. A child that still cannot be restored stays the typed unrestorable outcome. See [Resume on any machine](../coding-agent/docs/guides/resume-on-any-machine.md) ([#4329](https://github.com/bastani-inc/atomic/issues/4329))
|
|
16
|
+
- `sessionStartTimeoutMs` in the subagent `config.json` sets how long a child may take to start (default 5 minutes). An invalid value is reported when the config loads and the default applies ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
17
|
+
- A background subagent waiting on a long-running detachable tool call is released instead of holding a live session: after a minute its task stops as a resumable stop, its record says `released` and what it waits on, and it holds no session, task or connection. The call's result, an Intercom message or ask sent to it, or `subagent({ action: "resume" })` wakes it from its saved session; `pause` and `quit` keep it stopped and keep arriving results for its resume, and `status` lists it as released ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
18
|
+
- A released subagent stays addressable across Intercom reconnects and restarts of its owner: the owner reserves its released children again whenever Intercom connects and parks them while they are paused or quit. A wake that cannot find, restore or record a child fails with a typed `ReleasedChildError` (`child-record-missing`, `child-unrestorable`, `record-append-failed` or `hold-failed`) whose hint names the fix, and a result that arrives while a child is being released is recorded first, so the wake never finds the child still running ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
19
|
+
- Only background subagents are released; a foreground subagent stays live while its parent's turn waits for it. A released subagent keeps the steering and follow-up messages it had queued and not read, and reads them once, in order, when it wakes; a result that arrives while a woken subagent runs is kept and wakes it again when that run ends; results held for a woken subagent stay saved until its session has them; and a wake reopens the subagent's session only after its previous run has closed it. While it waits, a released subagent keeps nothing in its owner's process but its latest record ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
20
|
+
- A shell task a released subagent started that finishes while it is released wakes it with the task's completion notice, which is kept for its `resume` while it is paused or quit, instead of going to the session that launched it ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
21
|
+
- A released subagent survives a failed wake and a restart of its owner. A wake that fails keeps every result it carried in the subagent's record with a typed failure (`ReleasedChildError` code, reason and hint, a new `wake-failed` code for untyped failures) that `status` shows; the launching session gets one notice, and `resume` delivers the kept results. When the launching session is reopened after Atomic restarts, each detachable call a released subagent still waited on starts again under its call id and the subagent is released again without a model turn, so the new result wakes it; one already holding its call's result is woken with it instead. Released subagents of one session are woken at most `parallel.runningCapacity` at a time ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
22
|
+
- A `resume` or a result that arrives while a released subagent is being restored is delivered after that wake, in order, instead of being lost, and a child record that could not be saved is reported once to the launching session in `status` ([#4326](https://github.com/bastani-inc/atomic/issues/4326))
|
|
23
|
+
- A child with an Intercom target accepts messages typed into its `/tasks` transcript, delivered through the parent's Intercom relay, and its transcript shows when it is compacting ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- A released subagent keeps one small entry of a fixed size in the session that launched it, instead of a copy of its whole latest record, so its task, held messages and held results no longer stay in memory while it waits; they are read from the session's history when it wakes. Each record a subagent saves is now complete, and a session saved by an older Atomic gets one complete record per subagent the first time it is opened. A released subagent launched in a parallel run no longer keeps that run's scheduler in memory; when it wakes, it is limited by `parallel.runningCapacity` like any other released subagent. A record that cannot be read fails with the new `ReleasedChildError` code `child-record-unreadable` ([#4395](https://github.com/bastani-inc/atomic/issues/4395))
|
|
28
|
+
- A released background subagent whose session is in an in-memory session store, such as a forked child's, no longer keeps its history in memory while it waits: its history moves to a file under the agent directory and its wake reads it back. A wake or resume whose read of that history fails in a way that passes (a retryable storage error, such as running out of file descriptors) no longer reports the subagent gone: the wake fails with the retryable `ReleasedChildError` code `wake-failed`, the subagent stays released with its results kept, and a later wake or resume restores it ([#4502](https://github.com/bastani-inc/atomic/issues/4502))
|
|
29
|
+
- A child that does not start within its start budget fails with a `SessionStartTimeoutError` whose `phase` names what blocked it (`admission`, `setup`, `dispatch` or `event-loop`), instead of a message that always blamed session creation and a resource-admission wait. The child's result carries it as `startError`, and the budget now also covers dispatching the child's task ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- SDK subagent launches return their start timeout even when an extension's `input` or `before_agent_start` handler never settles. Session cleanup continues separately instead of holding the timeout result ([#4319](https://github.com/bastani-inc/atomic/issues/4319))
|
|
34
|
+
- A background subagent that was woken when its owner's process died is released again when the reopened session restores it, instead of ending with an error at its next release. The message Intercom had saved for it just before the crash is read once, after the call it was waiting on gets its result, instead of starting a turn on top of that call ([#4488](https://github.com/bastani-inc/atomic/issues/4488))
|
|
35
|
+
|
|
5
36
|
## [0.9.72-alpha.1] - 2026-11-08
|
|
6
37
|
|
|
7
38
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/subagents",
|
|
3
|
-
"version": "0.9.72
|
|
3
|
+
"version": "0.9.72",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for delegating tasks to subagents with parallel execution. Fork of: https://github.com/nicobailon/pi-subagents",
|
|
6
6
|
"contributors": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.72
|
|
3
|
+
"version": "0.9.72",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for web search, URL fetching, GitHub repo cloning, PDF/video extraction. Fork of: https://github.com/nicobailon/pi-web-access",
|
|
6
6
|
"contributors": [
|
|
@@ -6,6 +6,116 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.9.72] - 2026-11-08
|
|
10
|
+
|
|
11
|
+
Waiting stages free their resources, and pooled work runs across machines.
|
|
12
|
+
|
|
13
|
+
- **Stages that only wait release their session.** A stage waiting on a detachable tool call, a question, a shell `wait` or an idle hold gives up its session and slot and reopens when its input arrives, and `evictWhenWaiting` takes a whole waiting run out of memory ([#4309](https://github.com/bastani-inc/atomic/issues/4309), [#4373](https://github.com/bastani-inc/atomic/issues/4373), [#4374](https://github.com/bastani-inc/atomic/issues/4374)).
|
|
14
|
+
- **Worker pools across machines.** `workers: { placement: "shared" }` and `startWorkflowWorkerHost()` run pooled children on other machines, restore their bound worktrees from snapshots, and deliver chat, questions and Intercom messages to remote stages ([#4310](https://github.com/bastani-inc/atomic/issues/4310), [#4391](https://github.com/bastani-inc/atomic/issues/4391), [#4416](https://github.com/bastani-inc/atomic/issues/4416), [#4492](https://github.com/bastani-inc/atomic/issues/4492), [#4503](https://github.com/bastani-inc/atomic/issues/4503), [#4505](https://github.com/bastani-inc/atomic/issues/4505), [#4513](https://github.com/bastani-inc/atomic/issues/4513)).
|
|
15
|
+
- **Workspaces and resume anywhere.** `workspace()` binds children to a repository, branch and worktree, and runs resume on another machine from recorded snapshots and setup hooks ([#3109](https://github.com/bastani-inc/atomic/issues/3109), [#4245](https://github.com/bastani-inc/atomic/issues/4245), [#4329](https://github.com/bastani-inc/atomic/issues/4329), [#4382](https://github.com/bastani-inc/atomic/issues/4382)).
|
|
16
|
+
- **Run time travel.** `forkRun` and `/workflow fork` retry a run from any stage in a new run, leaving the source unchanged ([#4321](https://github.com/bastani-inc/atomic/issues/4321)).
|
|
17
|
+
- **Smarter stage flow.** The decision model judges whether a stage is done after you steer it, predicts stage names for Intercom, and `ctx.subscribe` and `ctx.events` follow event streams without flooding context ([#4358](https://github.com/bastani-inc/atomic/issues/4358), [#4359](https://github.com/bastani-inc/atomic/issues/4359), [#4311](https://github.com/bastani-inc/atomic/issues/4311)).
|
|
18
|
+
- **Typed failures across processes.** Pool, placement, storage, workspace and other error families keep their class, code and hint when they cross from a worker to its parent ([#4327](https://github.com/bastani-inc/atomic/issues/4327), [#4338](https://github.com/bastani-inc/atomic/issues/4338), [#4378](https://github.com/bastani-inc/atomic/issues/4378)).
|
|
19
|
+
- **Large pools stay responsive.** Fewer heartbeat writes, read-only pool queries, incremental publications, checkpoints read on demand and shared route publications keep thousands of stages moving ([#4313](https://github.com/bastani-inc/atomic/issues/4313), [#4314](https://github.com/bastani-inc/atomic/issues/4314), [#4315](https://github.com/bastani-inc/atomic/issues/4315), [#4317](https://github.com/bastani-inc/atomic/issues/4317), [#4318](https://github.com/bastani-inc/atomic/issues/4318), [#4376](https://github.com/bastani-inc/atomic/issues/4376)).
|
|
20
|
+
|
|
21
|
+
**Breaking change:** Read a released stage's transcript with `await stage.readMessages()` (or call `stage.rehydrate()` first, or set `releaseWhenWaiting: false`) instead of `stage.messages`; build `WorkflowInfrastructureError` as `new WorkflowInfrastructureError(code, { hint, runId, stageId, cause })` and match pool faults by class or `code` instead of message.
|
|
22
|
+
|
|
23
|
+
### Breaking Changes
|
|
24
|
+
|
|
25
|
+
- While a workflow stage's session is released, including a stage the workflow holds idle past its `releaseWhenWaiting` threshold (60 seconds by default) and a stage whose tool wait ended without reopening its session, `stage.messages` and `stage.agent` throw `StageReleasedError` (code `stage-released`, a `StageWaitError` with the guard `isStageReleasedError`) naming the stage, its session and the member read; after a failed reopen, `fields.reopenFailed` is `true` and `cause` is the failure. Migration: replace `stage.messages` after a long hold with `await stage.readMessages()`, which reads the transcript from the session store without reopening the session. Alternatively call `await stage.rehydrate()` before reading, or set `releaseWhenWaiting: false` on a stage the workflow must read synchronously. `stage.model` and `stage.thinkingLevel` return the session's last values while it is released, and `stage.isStreaming` is `false` ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
26
|
+
- `WorkflowInfrastructureError`'s constructor is now `new WorkflowInfrastructureError(code, { hint?, runId?, stageId?, cause? })`, and its message is built from its code and fields. Pool faults are concrete subclasses (`WorkerLostError`, `WorkerStartupError`, `WorkerStartupTimeoutError`, `WorkerRetryLimitError`, `WorkerCleanupUnconfirmedError`, `QuarantinedCapacityError`, `AdmissionHolderStoppedError`) with their own names; the fault codes are unchanged. Code that matched pool error messages must branch on the class or `code` instead ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
27
|
+
- A child result recorded by an earlier version, whose failure names a pool fault only in its error text, is no longer recognized as a pool fault when its root resumes ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- After you steer a stage that asked you a question, the decision model decides its readiness instead of always asking "Are you ready to move on to the next stage?". It asks an advance/stay Choice and the yes/no companion "does the reply fully address the user's message". The stage completes at P(advance) ≥ 0.85 with the companion ≥ 0.8, and stays open without asking at P(stay) ≥ 0.7; otherwise, or when the decision model is unavailable, times out or fails, the question is asked as before. A chat decision model gives no probabilities, so with one, or none configured, the question is always asked and no decision is recorded. Only a message sent after the stage's question is judged, and a message sent while the decision model is answering makes it decide again on that message once the stage replies. The thresholds are exported as `READINESS_DECISION_THRESHOLDS`, with `readinessVerdict`. Each decision is recorded on the stage as `readinessDecision` in workflow stage status, and as a notice in the stage transcript and `/workflow connect`. Turn it off with `workflows.autoAdvanceAfterSteer: false` ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
32
|
+
- `@bastani/atomic/workflows` re-exports `decide()` and the `DecisionError` family, so workflows can make their own decisions with the user's decision model ([#4358](https://github.com/bastani-inc/atomic/issues/4358))
|
|
33
|
+
- `ctx.workflow(child, { workspace })`, and `workspace` on `ctx.task`, `ctx.stage`, `ctx.chain` and `ctx.parallel`, bind work to a repository, branch and worktree from `workspace({ … })` in `@bastani/atomic/workflows`. A parent can run builtin Goal or Ralph in several unrelated repositories at once: each child's `ctx.cwd` and stages use its own worktree, the binding is recorded at the child boundary and restored on resume (failing closed on repository, branch, remote or history drift, and when a commit a completed step recorded is gone), concurrent writer children on one worktree are refused, read-only reviewers cannot use file-writing tools, and results carry a `changeSet` for `publishPullRequest()` ([#3109](https://github.com/bastani-inc/atomic/issues/3109))
|
|
34
|
+
- Run time travel: `forkRun(runId, { fromStage, inputs, cwd, carryMessages })` forks a durable run from a stage, named by a dot path into nested workflows, into a new run that replays earlier tool calls, prompt answers and stages and runs the rest again; the source run is never changed. It returns the new run with the same event stream `run()` reports and records `forkedFrom` in status. `listForkPoints(runId)` lists the stages a run can be forked from. The `workflow` tool gains a `fork` action and `/workflow fork <run> [--from <stage>]` does the same from chat ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
35
|
+
- `forkFromEntryId` beside `forkFromSessionId` on stage, task, chain and parallel options starts a stage session at an exact entry of an earlier session ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
36
|
+
- Fork failures are typed `ForkError`s with stable codes, a hint and an explicit retry flag: `ForkTargetNotFoundError` lists up to 10 stages you can fork from, and `ForkDefinitionMismatchError`, `ForkSourceBusyError`, `ForkEntryNotFoundError`, `ForkSessionNotFoundError`, `ForkConfigError`, `ForkSourceNotFoundError`, `ForkJournalUnsupportedError`, `ForkJournalUnavailableError`, `ForkCopyFailedError`, `ForkClaimReleaseError` and `ForkSessionUnavailableError` cover the other cases. A storage failure while reading or claiming the source is a retryable `ForkJournalUnavailableError`, not a raw storage error. A fork checks everything before it writes, so a failure leaves nothing behind. If the write rejects, the fork run is read back: one that exists goes on, and on a shared journal an unconfirmed write keeps the copied sessions and rejects with a non-retryable `ForkJournalUnavailableError` (`phase: "commit"`) naming the fork run to inspect, or with the abort reason when the caller cancelled. A fork renews its claim on the source every 30 s and checks it before it reads the source's sessions and before it writes, so a source taken over by a resume mid-fork stops the fork with a retryable `ForkSourceBusyError` instead of mixing old checkpoints with newer conversations. A failed cleanup step (`ForkCleanupError`, `ForkClaimReleaseError`) never replaces the fork's result or error: it is attached as `cleanupCause` or logged once ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
37
|
+
- Run journals can implement `createRunWithEvents` to create a run with its first events in one transaction; the SQLite and memory journals do ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
38
|
+
- Fork errors include `ForkSourceOwnershipError` (`source-not-owned`) for model-facing requests from another session and `ForkSessionClaimError` (`session-claim-refused`) when a copied worker conversation cannot be safely resumed. Hosts can handle either by class or code instead of parsing messages ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
39
|
+
- `localWorkers.heartbeatMs` sets how often each local worker sends its heartbeat, from `100` ms to half of `localWorkers.leaseMs`. It defaults to a quarter of the lease, and is available in `RunOpts.localWorkers` and in `workflows.localWorkers` settings. An out-of-range `leaseMs` or `heartbeatMs` now refuses the run or resume before it starts with the exported `LocalWorkerOptionsError` (family `LocalWorkerPoolError`, codes `invalid-lease` and `invalid-heartbeat`). The error names the setting's `source` and `field` and carries a `hint`. Use `isLocalWorkerOptionsError`, `isLocalWorkerPoolError` or `findLocalWorkerPoolError` to recognize it ([#4313](https://github.com/bastani-inc/atomic/issues/4313))
|
|
40
|
+
- Stage status from `workflow stages` and `workflow stage` includes `compaction`, the stage session's background compaction state (`idle`, `running`, `ready` or `failed`, with the typed error when it failed), kept current after the stage finishes or its session is replaced ([#4330](https://github.com/bastani-inc/atomic/issues/4330))
|
|
41
|
+
- A root that runs a local worker pool records its coordinator's requests and journal writes per second, by kind, in the root run's `pool.coordination` snapshot. In debug mode, `workflow` status and `/workflow status` also show them as a `pool:` line ([#4313](https://github.com/bastani-inc/atomic/issues/4313), [#4360](https://github.com/bastani-inc/atomic/issues/4360))
|
|
42
|
+
- Workflows that create git worktrees work on a machine without git: worktree commands run the git Atomic resolves, including a portable git it downloads when none is installed. A run whose inputs select a worktree (`worktreeFromInputs`, as in the builtin goal and ralph workflows) fails before its body with `WorkflowGitRequiredError` (code `git-required`, naming the workflow input and carrying the `GitUnavailableError` with its install command) when git cannot be provided, and a task that creates its own worktree fails the same way, naming the task. Runs that never create a worktree never wait for or download git. Tasks that reuse a saved result do not provision git just to replay it ([#4322](https://github.com/bastani-inc/atomic/issues/4322))
|
|
43
|
+
- `ProcessCleanupUnconfirmedError`, `isProcessCleanupUnconfirmedError`, `serializeWorkflowInfrastructureError` and `rehydrateWorkflowInfrastructureError` are exported from `@bastani/atomic/workflows`, so a stage's cleanup failure keeps its class and fields when it is passed to another process ([#4338](https://github.com/bastani-inc/atomic/issues/4338)).
|
|
44
|
+
- Debug mode covers workflows: failed workflow notices and background discovery, `model: "auto"` stage fallbacks, pooled stage watch traces and pool coordination counts go to the debug log. A running pool passes a debug mode change on to the workers it starts next ([#4360](https://github.com/bastani-inc/atomic/issues/4360))
|
|
45
|
+
- When possible-stage discovery cannot read some stage names (names built by helpers, step factories imported from other modules, loops over lists, or child workflows chosen at run time), the decision model ranks candidate names taken from the workflow's source in the background, and a send to a path outside the known set gets a yes/no judgment. Launch and delivery never wait for it. Accepted names appear in `intercom list` and in `workflow` status as `predicted`, then `confirmed` or `unused`. The policy lives in the exported `POSSIBLE_STAGE_PREDICTION_THRESHOLDS`, and failures fall back to the static scan with one typed `PossibleStagePredictionError` reason (`decision-unavailable`, `decision-failed`, `decision-timeout`, `invalid-answer`) ([#4359](https://github.com/bastani-inc/atomic/issues/4359))
|
|
46
|
+
- Workflow checkpoints record repository snapshots so resumed runs can restore their latest recorded Git content into a fresh worktree, including on another host that shares the journal and snapshot blobs ([#4245](https://github.com/bastani-inc/atomic/issues/4245))
|
|
47
|
+
- Finishing a root workflow run starts a background collection of worktree snapshot content that no resumable run or session needs, without delaying the run's result; a failed collection becomes a warning notice on the run. `WorkspaceCollectionError`, `isWorkspaceCollectionError` and `isRetryableWorkspaceError` are exported ([#4355](https://github.com/bastani-inc/atomic/issues/4355))
|
|
48
|
+
- Pooled children can run on workers on other machines. A root started with `workers: { placement: "shared" }` on a journal every machine opens through a storage adapter, such as libSQL or Turso, keeps its pool's work queue, leases, admission state and stage inputs in that journal, under its prefix. `startWorkflowWorkerHost({ journal, maxWorkers, labels })` runs workers for it on any machine. Session and process limits count across every host. The root can resume on any machine that opens the journal, and its children finish from their checkpoints. Children can be bound to a repository state with `workers.workspace`, a binding or a `workspace({ … })` value; a bound child runs only on a host that has that tree or can restore it, and fails with `WorkspaceRestoreUnavailableError` when no such host is live. A host that restores runs the git `resolveGit()` resolves, downloading a portable git when the machine has none. Typed `WorkerPlacementError` errors report invalid options and missing setup before anything starts, and `/workflow status` shows a shared pool's queue, hosts and leases ([#4310](https://github.com/bastani-inc/atomic/issues/4310))
|
|
49
|
+
- A worker host started without `restore` restores bound children by default from the worktree snapshots recorded in the shared journal, uncommitted content included, with `restoreWorktree` and the git the machine already has; it never downloads git for this. `restore: false` turns restoring off. A binding whose restore fails waits before the host tries it again (one second, doubling up to a minute), its failed restore does not count as one of the child's attempts, and while every host waits, the child fails with `WorkspaceRestoreUnavailableError` once its claim window passes, with the last restore failure as its `cause`. Workspace and git errors, such as that cause, now keep their class, code, fields and hint when they cross between a pool's processes ([#4416](https://github.com/bastani-inc/atomic/issues/4416))
|
|
50
|
+
- A child started with `ctx.workflow(child, { workspace })` under a root with shared placement runs only on a host that has its workspace's tree or can restore it, with its workspace bound to that host's worktree ([#4416](https://github.com/bastani-inc/atomic/issues/4416))
|
|
51
|
+
- `RunOpts.evictWhenWaiting` (`true`, or `{ afterMs }`) evicts a root run from memory once its stages only wait on detached tool calls: each waiting stage is then only a small index entry, and the calls keep running. The run is rebuilt in the same process by replaying its journal when a stage's calls all have results, a waiting stage is sent a message, or the run is paused, quit or killed; finished calls are answered from the record, and waiting stages wait on the same calls again without reopening their sessions or running the calls again. Invalid values and runs that cannot be rebuilt are refused before anything is written with `RunEvictionConfigError`, and a rebuilt body that no longer waits on its stages' calls fails the run with `RunReplayError`; both are in the exported `RunEvictionError` family with guards, `findRunEvictionError` and `deserializeRunEvictionError` ([#4373](https://github.com/bastani-inc/atomic/issues/4373))
|
|
52
|
+
- The stage sessions `forkRun` copies, and a stage session started with `forkFromSessionId`, keep the oversized tool outputs that released stages stored with the sessions they copy; a session store that cannot hold them fails the copy with `SessionBlobError` (`blobs-unsupported`) before anything is written ([#4379](https://github.com/bastani-inc/atomic/issues/4379))
|
|
53
|
+
- A stage on a pooled worker, local or shared, that is released while it waits stores its oversized tool outputs in the pool's session tables like any other session, readable through `tool-output://` from the root and from other hosts. The worker writes the bytes straight to those tables, and the reference entry still commits through the pool, which refuses it from a fenced attempt ([#4379](https://github.com/bastani-inc/atomic/issues/4379))
|
|
54
|
+
- A stage also releases its session and slot while its model waits in a `bash` or `powershell` `wait` on a background task without `budgetMs`, or in `ask_user_question`. The task keeps running on the stage's task host; a stage waiting on its question stays `awaiting_input`, and your answer, or the task's end, reopens the session and continues the same turn. After a restart, `/workflow resume` starts the wait again or asks the question again, and a wait whose task ended with the old process gets an error result naming the task instead of hanging ([#4374](https://github.com/bastani-inc/atomic/issues/4374))
|
|
55
|
+
- A pooled child whose live stages all wait released, on a tool call's result or an answer, gives up its place among `localWorkers.count` so the next child runs meanwhile: the pool starts another worker for it, at most `count` more, and keeps the waiting child where it runs. At most `count` children still run at once: a child whose result or answer arrives takes a place back before it opens a session or starts a process, ahead of children that have not started. The pool ends an extra worker once it is idle and `count` other workers are ready. A worker host keeps to its `maxWorkers` and starts no extra workers ([#4374](https://github.com/bastani-inc/atomic/issues/4374))
|
|
56
|
+
- A child that failed because no Intercom broker took over from a retiring one reaches its parent as `IntercomBrokerSuccessorTimeoutError`, in the new `intercom-broker` error family ([#4496](https://github.com/bastani-inc/atomic/issues/4496))
|
|
57
|
+
- A worker host without a bound tree restores it with its uncommitted, untracked and unpushed content even when no checkpoint recorded it. A root with shared placement snapshots its own bound worktree when it starts, and the worktree of a child started with `ctx.workflow(child, { workspace })` when it dispatches the child, following its `snapshots` settings. The work carries the snapshot, which the default restore uses and a custom `restore` receives as `options.snapshot`, and snapshot garbage collection keeps the root's own snapshot while its worker pool runs and a child's for as long as the root run's queued work exists, at any `snapshots.graceSeconds`, `0` included ([#4503](https://github.com/bastani-inc/atomic/issues/4503)). Without a snapshot, a child still fails with `WorkspaceRestoreUnavailableError` once no host can restore it ([#4492](https://github.com/bastani-inc/atomic/issues/4492))
|
|
58
|
+
- A pooled stage on another machine takes stage chat messages, steers and follow-ups, shows its `ask_user_question` form at the root, and receives Intercom messages sent to it. Each goes through the stage's input queue in the shared journal, one at a time and in order, with a receipt, and reaches the stage's session once, including when another host takes the stage over. Its stage chat shows no live transcript, and pausing that stage, `/compact` and `!` commands fail with `RemoteStageCommandUnsupportedError`. An Intercom ask to such a stage is refused, since its replies cannot reach the sender, and so is a send to such a stage without Intercom access. Stage inputs are typed `PooledStageInputKind`s: a malformed one is refused with `StageInputInvalidError` before it is written, a receipt that does not come in time fails with the retryable `StageInputTimeoutError`, and an input the stage did not take fails with `StageInputRefusedError`. An Intercom message the stage's session fails to take is reported to its sender as undeliverable, and later messages go on; `isRetryableWorkerPlacementError` tells which placement errors may be retried ([#4391](https://github.com/bastani-inc/atomic/issues/4391))
|
|
59
|
+
- A run resumed on another machine continues where it stopped: each checkout it recorded is restored once from its snapshots before it continues, the setup hook (`.atomic/setup` in a trusted project, or `resume.setupCommand`) runs in each checkout the run restores, and a worker host's default restore runs it, from the host's own agent directory, in each worktree it restores for a pooled child (a host given its own `restore` runs none), and the earlier machine's absolute paths resolve in the restored worktrees for its tools. A child bound with `workspace()` whose worktree, branch or commits exist only on the machine that recorded it continues in its restored worktree, and a run bound to an input worktree continues in the worktree restored for it. Missing Git or setup hooks are reported as `ResumePreconditionError` before the run is claimed or anything is restored, and a hook that fails stops the run and removes the worktrees restored for it ([#4329](https://github.com/bastani-inc/atomic/issues/4329))
|
|
60
|
+
- `run()` with the id of a run in shared storage fails with a retryable `ResumeCatalogTimeoutError` (`subject: "run"`) when the storage does not answer within 15 seconds, instead of waiting for the network to give up. The deadline ends once the storage answers, so listing the runs of a large journal is not bounded by it, and a retry in the same process opens the journal again. A `run()` of a run that another machine still holds is refused before anything is restored or set up ([#4329](https://github.com/bastani-inc/atomic/issues/4329))
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
|
|
64
|
+
- The interactive cross-project `/workflow resume` fork now uses `forkRun`, so its copy is written in one step and an interrupted fork leaves no partial run ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
65
|
+
- Resuming a pooled root, whose pool database is on another machine, now fails with a typed `SharedPoolSetupError` (code `pool-on-another-host`) that names both machines and says where to resume, instead of a plain error ([#4310](https://github.com/bastani-inc/atomic/issues/4310))
|
|
66
|
+
- Starting a root with `localWorkers` on Windows, or on a host without Atomic's native process identity, now fails with a typed `SharedPoolSetupError` (code `process-containment-unavailable`, operation `local-pool`) whose hint says what to do, instead of a plain error ([#4310](https://github.com/bastani-inc/atomic/issues/4310))
|
|
67
|
+
- Stages that only wait no longer hold a session. A stage releases its session and admission slot, shows as `waiting`, and reopens the same session from the session store when its input arrives, continuing without a new prompt, in four cases: a call of a `detachable` tool runs longer than the stage's `releaseWhenWaiting` threshold (60 seconds by default, `DEFAULT_RELEASE_WHEN_WAITING_AFTER_MS`, at most `MAX_RELEASE_WHEN_WAITING_AFTER_MS`); the workflow calls `stage.release()` (the stage reopens on `rehydrate()` or its next `sendUserMessage`, `steer` or `followUp`; a `ctx.stage` still runs a single `prompt()`); the workflow holds a finished stage unused past the threshold, for example while it awaits a child workflow or a prompt; or the stage's readiness question waits on a person past the threshold. Steering, messages and Intercom sends to a waiting stage queue until it reopens, pause holds it, and quit or a crash followed by `/workflow resume` continues every stage without prompting it again. Set `releaseWhenWaiting` on a task, stage, chain, parallel step or run; `false` keeps a stage resident, and an invalid value is refused before anything runs ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
68
|
+
- A waiting stage whose session store is briefly unreachable when its tool results arrive saves the results, retries reopening its session and saving the results into it three times with backoff (an unreachable store and a store write-lock timeout alike), and then blocks the run resumably instead of failing it; `/workflow resume` continues the turn from the saved results without running the tool again, and a stage never completes on a turn whose tool results its session did not save. A message, `rehydrate()` or prompt sent while a stage is releasing its session waits for the release, so a stage is never shown `waiting` with a live session ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
69
|
+
- `stage.release()` and `stage.rehydrate()` give up and reopen a held stage's session explicitly, and `stage.readMessages()` reads a stage's transcript, from the session store while its session is released, without reopening it ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
70
|
+
- A completed stage replayed from its checkpoint exposes the same released-stage getters: `messages` and `agent` throw `StageReleasedError`, and `readMessages()` reads its stored transcript. `release()` succeeds without opening a session; `rehydrate()` throws the non-retryable `StageRehydrationError` code `replayed-stage`, with a hint to read the transcript or fork the run to execute the stage again ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
71
|
+
- `RunOpts.onStageLifecycleEvent` reports `stage_waiting` and `stage_rehydrated`, and a waiting stage's snapshot says what it waits on in `wait`. Workflow status filters on `waiting`, reports `waitingCount` and lists the waiting stages with what each waits on, `stages` gives each waiting stage a `wait` and reads `waiting (tool: wait_ci)`, `waiting (released)` or `waiting (idle)`, a waiting stage shows `◷` in node cards, status rows and the background strip as in the graph header, a stage still released when its run ends leaves `waiting`, and a run whose stages wait reports activity `waiting` ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
72
|
+
- Each stage has a mailbox for the messages that wake it. `registerStageWakeKind()` adds a message kind declared on the `StageWakeKinds` interface, and `deliverStageWake()` delivers one and reports whether it was delivered, handled or queued ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
73
|
+
- The `StageWaitError` family (`StageWaitConfigError`, `StageReleaseError`, `StageRehydrationError`, `StageWakeError`) reports invalid settings, refused releases, sessions that cannot be reopened, invalid or unknown wake kinds (`registerStageWakeKind` misuse included) with stable codes and remediation hints. `StageWaitRecordError` (`wait-record-unavailable`) appears in a stage snapshot's `waitRecordFailure` when a record of its wait could not be saved. A woken stage whose reopened session returns without saving its tool results fails with `StageRehydrationError` code `results-not-saved`, and `/workflow resume` continues the turn from the results saved with its wait. Missing waiting-stage sessions in the run's store fail resume preflight with `StageRehydrationError` code `session-not-found`, listing every missing session. A stage with its own `sessionStore` or `sessionManager` is checked when the resumed workflow calls it again, before it opens or reads its session; pass the same store again, or the stage fails with the same typed error rather than falling back to the run's store or starting a fresh session ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
74
|
+
- A `StageWaitError` or `ToolDetachmentError` that fails a child workflow, in process or on a pooled worker, reaches the parent as the same class in its error chain, and `RunResult` and stage snapshots carry it as `failureDetail` ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
75
|
+
- Typed worker pool errors in `@bastani/atomic/workflows`. `StaleWorkLeaseError`, `PublicationRejectedError`, `PoolNotInitializedError`, `WorkAttemptFencedError` and `PoolProtocolError` join the `LocalWorkerPoolError` family, so `isLocalWorkerPoolError` and `findLocalWorkerPoolError` recognize them, and the pool's faults are concrete `WorkflowInfrastructureError` classes. Each has a stable `code`, structured fields, a `hint`, `retryable`, and a guard such as `isStaleWorkLeaseError`. `LocalWorkerOptionsError` also carries `omitted`, what leaving the setting out means. `StaleLeaseError` now has `code: "stale_lease"`, a `hint` and `isStaleLeaseError`; `PoolAppendRefusedError` is exported with `code: "pool_append_refused"` ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
76
|
+
- Local worker pool errors keep their class, code, fields and causes across the worker, coordinator and root processes instead of arriving as text, so `ctx.workflow(child)` reports, for example, a `WorkerRetryLimitError` whose `cause` is the fault that ended the child's last attempt, and whose `cleanupCause` names process groups its last worker left running. A group of errors, such as a fork's several cleanup failures, crosses with its members in order ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
77
|
+
- Pool errors name the worker's log file instead of copying the worker's or coordinator's stderr into the message ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
78
|
+
- A storage error in a pool error's cause chain, such as `StorageWriteLockTimeoutError`, crosses the worker, coordinator and root processes as its own class through `rehydrateStorageError`, and the errors under it cross without their text. A journal store error, such as `JournalShardUnavailableError`, crosses the same way through `rehydrateJournalStoreError`, and a fork error, such as `ForkSessionClaimError`, through `rehydrateForkError` with its cleanup cause, on the same envelope as every other pool error ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
79
|
+
- `ProcessCleanupUnconfirmedError` has its own `name`, `"ProcessCleanupUnconfirmedError"`, and its message reads like the other infrastructure errors'. `serializeWorkflowInfrastructureError` and `rehydrateWorkflowInfrastructureError` now send and rebuild the local worker pool's own error envelope, so any `WorkflowInfrastructureError` round-trips as its class with its fields and causes, and a stage cleanup failure in a pooled child reaches the root as `ProcessCleanupUnconfirmedError` caused by its `TaskCleanupError`. A value whose fields or cause are malformed now throws `PoolProtocolError` instead of falling back to the base class; a copy that only lost its cause is still rebuilt from its `phase` and `resources` ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
80
|
+
- `ctx.subscribe(source, handler, options?)` lets a long-lived stage follow an event stream (CI checks, pull request reviews, log lines, webhooks) without every event entering its context. Each event runs in its own short-lived, tracked child stage seeded with the event and your handling instructions; the child reports to the subscriber stage only when the event matters. The journal records the subscription and every processed event id, so repeated ids, including ones delivered again after a resume, are handled once. `maxConcurrent` and `maxRate` cap concurrent event children and their start rate per subscription ([#4311](https://github.com/bastani-inc/atomic/issues/4311))
|
|
81
|
+
- `for await (const event of ctx.events(source))` reads a stream inline in the run body, for events that belong in a stage's own history, with the same deduplication and rate cap ([#4311](https://github.com/bastani-inc/atomic/issues/4311))
|
|
82
|
+
- Every error family with its own JSON form reaches the parent as the same class when it fails a child workflow, in process or on a pooled worker of this or another host, not only `StageWaitError` and `ToolDetachmentError`: workspace, git provisioning, `WorkflowGitRequiredError`, session start, decision, task eviction, idle agent release and rehydration, background compaction, GitHub Copilot, debug, file and shell tool, llama-server, startup benchmark and event subscription errors, and the worker pool, placement, storage, journal and fork errors the pool already carried. `failureDetail` on `RunResult` and stage snapshots is now the pool's `SerializedError` envelope, which `rehydrateError` from `@bastani/atomic/workflows` rebuilds, and replaces both the `SerializedTypedError` union and `RunResult.workspaceError`. URL credentials are removed from the text of causes outside these families when they cross ([#4378](https://github.com/bastani-inc/atomic/issues/4378))
|
|
83
|
+
- Attached stage chats scroll like the main transcript, following `fullscreenWheelScrollLines` and `fullscreenScrollbar`, with Alt+wheel, prompt jumps and half-page bindings; a `/tasks` transcript opened from a stage chat is a chat of its own that follows the stage's Ctrl+T and Ctrl+O ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- The `/workflow connect` picker no longer shows a completed/total stage count on each run row. The count wasn't kept up to date and often didn't match the run; rows now show the run's name and elapsed time
|
|
88
|
+
- The `session-not-found` hint of `StageRehydrationError` now names `atomic team join <url> --token-file <path>` for a machine that uses local-only storage and is not joined to shared storage, and says that joining keeps sessions in a local store, so the session storage that holds the waiting stage's session must still be selected ([#4377](https://github.com/bastani-inc/atomic/issues/4377))
|
|
89
|
+
- Large local worker pools no longer spend most of their journal's write lock on worker heartbeats. Each worker used to send a lease renewal, a control poll and a usage report every second, as three journal transactions. It now sends one heartbeat every quarter of its lease that does all three in one transaction. With 450 workers and a 60 s lease, that is 30 heartbeat writes per second instead of 1,350, and leases are renewed well before they expire. Pause, resume and quit are pushed to workers as soon as they are committed, so they reach running children no later than before ([#4313](https://github.com/bastani-inc/atomic/issues/4313))
|
|
90
|
+
- A root hosting large local-worker pools no longer pins its main thread applying worker activity, which delayed its lease renewals and new stages' routing. Each publication now carries only the stages, tool nodes and run fields that changed since the attempt's previous one, and the root updates its copy of the run in place instead of copying and comparing every stage it holds: a batch that changes one stage costs the same whether the run has 250 or 4,000 stages. A large batch is applied over several turns of the event loop, so timers such as lease renewal run while it applies ([#4317](https://github.com/bastani-inc/atomic/issues/4317))
|
|
91
|
+
- A workflow root whose children run on local workers no longer keeps every child's checkpoints in the parent process. Each pooled stage session records a checkpoint in the root's journal, and a long-running root held 250,000 to 400,000 of them in memory, which grew the parent's memory and slowed each checkpoint lookup of the root. The parent now keeps the root's own checkpoints and reads a child's from the journal when it needs them: when a resumed root replays or checks that child, when the child's nested runs settle, and when a post-mortem chat or `/workflow status` inspects the root. Resuming a pooled root replays its completed children as before ([#4318](https://github.com/bastani-inc/atomic/issues/4318))
|
|
92
|
+
- One bash call whose process cleanup is confirmed late no longer fails its workflow stage, the child workflow and the parent run. The stage keeps going and records a `cleanup` stage notice instead. Cleanup that is still unconfirmed when the stage closes fails the stage with a retryable `ProcessCleanupUnconfirmedError` (a `WorkflowInfrastructureError` with code `process_cleanup_unconfirmed`, fields `hint`, `phase` and `resources`, caused by a `TaskCleanupError`) that resume handles: the stage's saved session already holds the command's result, so the resumed stage continues after it ([#4338](https://github.com/bastani-inc/atomic/issues/4338)).
|
|
93
|
+
- Local workers' budget checks, control polls and pool reads no longer wait for the journal's write lock. The pool coordinator answered these requests, which only read, inside write transactions, so each one queued behind the pool's own writes and every other process writing the journal, and a tool's reported duration included that wait. These requests now run as read transactions on a read-only connection to the journal, which reads the last commit while another connection holds the lock. Fencing is unchanged: a stale or replaced attempt is still refused ([#4314](https://github.com/bastani-inc/atomic/issues/4314))
|
|
94
|
+
- An agent step on a pooled local worker no longer waits behind the worker's own heartbeat. Session writes and admission checks run alongside heartbeat traffic, while each worker's journal writes still apply one at a time in send order. Attempt transitions wait for earlier requests to finish, and concurrent heartbeat and lease-extension replies cannot move the held lease backwards ([#4315](https://github.com/bastani-inc/atomic/issues/4315))
|
|
95
|
+
- Fork event readers now receive run and stage snapshots as they were when each event fired, even when reading after the run finishes. Later execution updates and callback mutations no longer change queued lifecycle events ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
96
|
+
- Forking a paused local-worker run preserves and resumes its unfinished conversations instead of failing when a new worker opens or saves the copied session, including when the workflow journal uses a storage adapter ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
97
|
+
- Forking with incompatible saved worker or admission settings now fails with `ForkConfigError` before conversations are copied or a new run is saved, while supported pool-size and local-limit overrides remain available ([#4321](https://github.com/bastani-inc/atomic/issues/4321))
|
|
98
|
+
- A resumed `ctx.workflow` child bound with `workspace(...)` now checks only the commit its latest completed step recorded, so a child that amends, squashes or rebases its own earlier commits can resume. This includes builtin Goal and Ralph, which record the branch's head after every turn. Earlier commits a step replaced no longer need to exist or have been pushed. The resume still fails closed when the latest step's commit is gone from the branch (`drift`) or found nowhere (`commits-unavailable`). When steps on the branch run in parallel, the resume checks the commits of the step that started last and of every step still running when it started, so a step that saved an older head after another step's commit cannot hide that commit's loss ([#4382](https://github.com/bastani-inc/atomic/issues/4382))
|
|
99
|
+
- A finished stage keeps its completed or failed status when a follow-up message waits on a detached tool and then reopens, instead of appearing as running after its run ends ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
100
|
+
- A waiting stage keeps tool results and wait-state changes recorded in the same millisecond instead of silently discarding them as duplicate checkpoints, so resume does not dispatch already-finished tool calls again ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
101
|
+
- `stage.setThinkingLevel()` can set a resumed, released stage's level even when its previous level is unknown, without reopening the session. The next reopen applies the saved level, and unrelated getter failures still propagate unchanged ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
102
|
+
- Concurrent messages to one idle stage share its concurrency slot until the last call ends instead of leaking a slot and blocking later stages ([#4309](https://github.com/bastani-inc/atomic/issues/4309))
|
|
103
|
+
- A child that ran out of attempts on a quarantined process permit is reported as `worker_retry_limit` with the quarantine refusal as its cause, instead of as `worker_cleanup_unconfirmed` because its message quoted the refusal ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
104
|
+
- An error that merely reads like a pool fault ("Stale work lease", "Storage unavailable", "Agent is already processing") no longer ends a pooled child's attempt or queues a stage message; only the typed errors do ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
105
|
+
- A pooled child that writes a checkpoint or session change while its root is not running is refused with `StaleWorkLeaseError` (`reason: "root-not-running"`), as its completion already was, so its attempt ends and the child replays instead of the write failing with an untyped error ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
106
|
+
- A local worker pool asked to run a child, start its workers or take a stage command for a root it was not prepared for refuses with `PoolNotInitializedError` instead of an untyped error. Its `root` names the root it was asked about, and is absent when the pool was never prepared for any root ([#4327](https://github.com/bastani-inc/atomic/issues/4327))
|
|
107
|
+
- On a machine that runs roots with `workers: { placement: "shared" }` and roots without it on one journal, post-mortem chat reopens the finished pooled stages of both kinds. Forking a shared root copies its child workflows' stage conversations into the journal, where its workers take them over, instead of this machine's pool database. A fork whose pool tables are missing now fails before copying anything with `ForkPoolSessionsUnavailableError` (`pool-sessions-unavailable`), which names the placement and how to fork instead, rather than a retryable `ForkCopyFailedError` ([#4357](https://github.com/bastani-inc/atomic/issues/4357))
|
|
108
|
+
- A resumed child workflow, including one a local or shared worker pool runs, now checks that the session store it reopens its stages from still holds the sessions of every stage it left waiting before it does any work. A missing session fails the child at once with `StageRehydrationError` (`session-not-found`), listing every missing session and naming the root run to resume in its new `rootRunId` field, instead of failing only when the stage reopens after the child has started other work. The failure reaches the parent as the child's typed failure; the pool does not treat it as a lost worker and does not retry the child, and resuming the root runs the child again so it checks its sessions again. Results the stage's detached calls recorded stay saved for a later resume ([#4440](https://github.com/bastani-inc/atomic/issues/4440))
|
|
109
|
+
- Overlapping `sendUserMessage()`, `prompt()` or `complete()` calls on one stage each settle with their own result. A call that finishes first no longer ends the stage and makes a call still running reject with `skipped after parallel fail-fast`. The stage ends once, after the last of them, and fails with the first error among them, so a failed message is no longer recorded as completed. A real parallel fail-fast or workflow exit still rejects every call; a call whose turn already finished when the workflow exits rejects with the exit rather than a fail-fast error. A workflow that fails with one of those errors while another call still runs, for example through `Promise.all`, fails or blocks for resume on that stage, and the run keeps the stage until that call ends, so a resume in between is refused rather than sending the stage another message ([#4450](https://github.com/bastani-inc/atomic/issues/4450))
|
|
110
|
+
- A run that starts thousands of stages no longer fails them with `Pending-stage route registration timeout`. Every starting stage used to publish its run's whole stage roster to Intercom, so a 2,500-stage run published it 1,478 times; stages that start while the run's last publication is unacknowledged now share the next one, and the same run publishes it five times ([#4376](https://github.com/bastani-inc/atomic/issues/4376))
|
|
111
|
+
- Resuming a run that stopped after a stage's model gave its final answer to the stage's prompt, but before the stage was recorded as finished, no longer sends that stage a "continue" prompt. The stage or task finishes with that answer, including the `output` file it writes, so the resumed run makes no extra model request and the stage's result is the answer the model gave before the stop. Only an answer to the same prompt text counts: a forked stage whose inherited conversation ends on another stage's answer, a stage with a `schema`, or one whose last turn asked the user a question still gets the "continue" prompt ([#4375](https://github.com/bastani-inc/atomic/issues/4375))
|
|
112
|
+
- A workflow run on a libSQL journal no longer fails with `storage_unavailable` when its process is stopped mid-write past the server's stream expiry (about 10 seconds for sqld) and continues: the journal write runs again and each event is recorded once. Journal writes ended by a server timeout or a refused connection run again the same way. A `StorageTransientError` from another process or realm counts as a storage outage too ([#4383](https://github.com/bastani-inc/atomic/issues/4383))
|
|
113
|
+
- A resumed stage that was waiting on a tool call after earlier prompts or messages had finished answers those calls from the run's record and continues its waiting turn, instead of failing on its next message ([#4373](https://github.com/bastani-inc/atomic/issues/4373))
|
|
114
|
+
- A worker host that loses its root's lease while restoring a child's workspace now detaches so it can reattach to the current root, instead of remaining idle indefinitely after refusing the stale claim ([#4391](https://github.com/bastani-inc/atomic/issues/4391))
|
|
115
|
+
- A pooled stage on another machine (`workers: { placement: "shared" }`) that takes its queued Intercom messages before its first turn and ends before the root's drain reaches it no longer has those messages reported to their senders as undeliverable: the root records each as delivered to the stage, once. A message sent to several stages, such as a broadcast, that one such stage's session fails to take stays queued for its other stages and now shows in the root run's `Intercom delivery:` status line, and a stage session that closes is no longer kept in memory until its child finishes ([#4505](https://github.com/bastani-inc/atomic/issues/4505))
|
|
116
|
+
- A stage of a nested workflow inside a pooled child on another machine (`workers: { placement: "shared" }`) that takes its queued Intercom messages before its first turn keeps them delivered when the update showing it ended never reached the root, for example after a root restart: the root records them as delivered once as the child completes, so their senders are not told they were undeliverable, and a broadcast the stage took is recorded as delivered to it ([#4513](https://github.com/bastani-inc/atomic/issues/4513))
|
|
117
|
+
- A `/tasks` transcript of a stage on a local worker shows the streaming reply's thinking, and messages typed into it reach the agent on the worker ([#4521](https://github.com/bastani-inc/atomic/issues/4521))
|
|
118
|
+
|
|
9
119
|
## [0.9.72-alpha.1] - 2026-11-08
|
|
10
120
|
|
|
11
121
|
Waiting stages free their resources, and pooled work runs across machines.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.72
|
|
3
|
+
"version": "0.9.72",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bastani/atomic",
|
|
9
|
-
"version": "0.9.72
|
|
9
|
+
"version": "0.9.72",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bastani/atomic-natives": "0.9.72
|
|
13
|
-
"@bastani/pi-ai": "0.9.72
|
|
12
|
+
"@bastani/atomic-natives": "0.9.72",
|
|
13
|
+
"@bastani/pi-ai": "0.9.72",
|
|
14
14
|
"@earendil-works/pi-agent-core": "1.5.0",
|
|
15
15
|
"@earendil-works/pi-codemode": "1.5.0",
|
|
16
16
|
"@earendil-works/pi-tui": "1.5.0",
|
|
@@ -427,18 +427,18 @@
|
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
"node_modules/@bastani/atomic-natives": {
|
|
430
|
-
"version": "0.9.72
|
|
431
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.72
|
|
430
|
+
"version": "0.9.72",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.72.tgz",
|
|
432
432
|
"license": "MIT",
|
|
433
433
|
"optionalDependencies": {
|
|
434
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.72
|
|
435
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.72
|
|
436
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.72
|
|
437
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.72
|
|
438
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.72
|
|
439
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.72
|
|
440
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.72
|
|
441
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.72
|
|
434
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.72",
|
|
435
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.72",
|
|
436
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.72",
|
|
437
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.72",
|
|
438
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.72",
|
|
439
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.72",
|
|
440
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.72",
|
|
441
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.72"
|
|
442
442
|
},
|
|
443
443
|
"engines": {
|
|
444
444
|
"bun": ">=1.4.2",
|
|
@@ -446,8 +446,8 @@
|
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
448
|
"node_modules/@bastani/atomic-natives-darwin-arm64": {
|
|
449
|
-
"version": "0.9.72
|
|
450
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.72
|
|
449
|
+
"version": "0.9.72",
|
|
450
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.72.tgz",
|
|
451
451
|
"license": "MIT",
|
|
452
452
|
"os": [
|
|
453
453
|
"darwin"
|
|
@@ -458,8 +458,8 @@
|
|
|
458
458
|
"optional": true
|
|
459
459
|
},
|
|
460
460
|
"node_modules/@bastani/atomic-natives-darwin-x64": {
|
|
461
|
-
"version": "0.9.72
|
|
462
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.72
|
|
461
|
+
"version": "0.9.72",
|
|
462
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.72.tgz",
|
|
463
463
|
"license": "MIT",
|
|
464
464
|
"os": [
|
|
465
465
|
"darwin"
|
|
@@ -470,8 +470,8 @@
|
|
|
470
470
|
"optional": true
|
|
471
471
|
},
|
|
472
472
|
"node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
|
|
473
|
-
"version": "0.9.72
|
|
474
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.72
|
|
473
|
+
"version": "0.9.72",
|
|
474
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.72.tgz",
|
|
475
475
|
"license": "MIT",
|
|
476
476
|
"os": [
|
|
477
477
|
"linux"
|
|
@@ -485,8 +485,8 @@
|
|
|
485
485
|
"optional": true
|
|
486
486
|
},
|
|
487
487
|
"node_modules/@bastani/atomic-natives-linux-arm64-musl": {
|
|
488
|
-
"version": "0.9.72
|
|
489
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.72
|
|
488
|
+
"version": "0.9.72",
|
|
489
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.72.tgz",
|
|
490
490
|
"license": "MIT",
|
|
491
491
|
"os": [
|
|
492
492
|
"linux"
|
|
@@ -500,8 +500,8 @@
|
|
|
500
500
|
"optional": true
|
|
501
501
|
},
|
|
502
502
|
"node_modules/@bastani/atomic-natives-linux-x64-gnu": {
|
|
503
|
-
"version": "0.9.72
|
|
504
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.72
|
|
503
|
+
"version": "0.9.72",
|
|
504
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.72.tgz",
|
|
505
505
|
"license": "MIT",
|
|
506
506
|
"os": [
|
|
507
507
|
"linux"
|
|
@@ -515,8 +515,8 @@
|
|
|
515
515
|
"optional": true
|
|
516
516
|
},
|
|
517
517
|
"node_modules/@bastani/atomic-natives-linux-x64-musl": {
|
|
518
|
-
"version": "0.9.72
|
|
519
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.72
|
|
518
|
+
"version": "0.9.72",
|
|
519
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.72.tgz",
|
|
520
520
|
"license": "MIT",
|
|
521
521
|
"os": [
|
|
522
522
|
"linux"
|
|
@@ -530,8 +530,8 @@
|
|
|
530
530
|
"optional": true
|
|
531
531
|
},
|
|
532
532
|
"node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
|
|
533
|
-
"version": "0.9.72
|
|
534
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.72
|
|
533
|
+
"version": "0.9.72",
|
|
534
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.72.tgz",
|
|
535
535
|
"license": "MIT",
|
|
536
536
|
"os": [
|
|
537
537
|
"win32"
|
|
@@ -542,8 +542,8 @@
|
|
|
542
542
|
"optional": true
|
|
543
543
|
},
|
|
544
544
|
"node_modules/@bastani/atomic-natives-win32-x64-msvc": {
|
|
545
|
-
"version": "0.9.72
|
|
546
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.72
|
|
545
|
+
"version": "0.9.72",
|
|
546
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.72.tgz",
|
|
547
547
|
"license": "MIT",
|
|
548
548
|
"os": [
|
|
549
549
|
"win32"
|
|
@@ -554,8 +554,8 @@
|
|
|
554
554
|
"optional": true
|
|
555
555
|
},
|
|
556
556
|
"node_modules/@bastani/pi-ai": {
|
|
557
|
-
"version": "0.9.72
|
|
558
|
-
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.72
|
|
557
|
+
"version": "0.9.72",
|
|
558
|
+
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.72.tgz",
|
|
559
559
|
"license": "MIT",
|
|
560
560
|
"dependencies": {
|
|
561
561
|
"@anthropic-ai/sdk": "0.129.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.72
|
|
3
|
+
"version": "0.9.72",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@bastani/atomic-natives": "0.9.72
|
|
93
|
-
"@bastani/pi-ai": "0.9.72
|
|
92
|
+
"@bastani/atomic-natives": "0.9.72",
|
|
93
|
+
"@bastani/pi-ai": "0.9.72",
|
|
94
94
|
"@earendil-works/pi-agent-core": "1.5.0",
|
|
95
95
|
"@earendil-works/pi-codemode": "1.5.0",
|
|
96
96
|
"@earendil-works/pi-tui": "1.5.0",
|