@bastani/atomic 0.9.38-alpha.9 → 0.9.39-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -0
- package/dist/builtin/intercom/CHANGELOG.md +16 -0
- package/dist/builtin/intercom/index.bundle.mjs +216 -2
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +16 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +16 -1
- package/dist/builtin/web-access/CHANGELOG.md +7 -0
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +74 -0
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +2 -15
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +532 -64
- package/dist/builtin/workflows/src/index.js +301 -27
- package/dist/cli.js +13 -6
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +4 -1
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +1 -0
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +57 -15
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +1 -0
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +2 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +13 -10
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/extensions/api-types.d.ts +2 -0
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/context-types.d.ts +5 -0
- package/dist/core/extensions/context-types.d.ts.map +1 -1
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +4 -0
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +1 -0
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +3 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/runtime-types.d.ts +1 -0
- package/dist/core/extensions/runtime-types.d.ts.map +1 -1
- package/dist/core/extensions/runtime-types.js.map +1 -1
- package/dist/core/queued-input-admission.d.ts +20 -0
- package/dist/core/queued-input-admission.d.ts.map +1 -0
- package/dist/core/queued-input-admission.js +55 -0
- package/dist/core/queued-input-admission.js.map +1 -0
- package/dist/core/sdk-types.d.ts +7 -1
- package/dist/core/sdk-types.d.ts.map +1 -1
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.js +1 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +1 -0
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +12 -0
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/storage/provider.d.ts +14 -0
- package/dist/core/storage/provider.d.ts.map +1 -1
- package/dist/core/storage/provider.js.map +1 -1
- package/dist/core/storage/session/legacy-session-store.d.ts +4 -1
- package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/legacy-session-store.js +42 -2
- package/dist/core/storage/session/legacy-session-store.js.map +1 -1
- package/dist/core/storage/session/legacy-session-summary.d.ts +8 -0
- package/dist/core/storage/session/legacy-session-summary.d.ts.map +1 -1
- package/dist/core/storage/session/legacy-session-summary.js +42 -2
- package/dist/core/storage/session/legacy-session-summary.js.map +1 -1
- package/dist/extensions/mcp/client/transports/streamable-http.js +9 -8
- package/dist/extensions/mcp/client/transports/streamable-http.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts +4 -0
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.js +104 -30
- package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.js +1 -0
- package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.d.ts +4 -0
- package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.js +4 -0
- package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +4 -3
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +8 -2
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.d.ts +4 -0
- package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.js +4 -0
- package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js +8 -2
- package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
- package/dist/modes/interactive/interactive-queueing.js +94 -73
- package/dist/modes/interactive/interactive-queueing.js.map +1 -1
- package/dist/modes/interactive/interactive-session-runtime.js +1 -0
- package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.js +2 -0
- package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/engine-heap.d.ts +24 -0
- package/dist/modes/interactive-engine/engine-heap.d.ts.map +1 -0
- package/dist/modes/interactive-engine/engine-heap.js +88 -0
- package/dist/modes/interactive-engine/engine-heap.js.map +1 -0
- package/dist/modes/rpc/rpc-client-api.d.ts +1 -0
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +3 -0
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +7 -0
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +9 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/heap-relaunch.d.ts +14 -0
- package/dist/utils/heap-relaunch.d.ts.map +1 -0
- package/dist/utils/heap-relaunch.js +59 -0
- package/dist/utils/heap-relaunch.js.map +1 -0
- package/docs/environment-variables.md +2 -1
- package/docs/intercom/reference.md +1 -1
- package/docs/rpc/protocol.md +23 -0
- package/docs/sdk/web-server.md +1 -1
- package/docs/sdk.md +10 -1
- package/docs/session-format.md +1 -0
- package/docs/sessions.md +2 -0
- package/docs/settings.md +1 -1
- package/docs/usage.md +2 -0
- package/docs/workflows/api-reference.md +1 -1
- package/docs/workflows/operations.md +5 -1
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,125 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.39-alpha.1] - 2026-10-19
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added RPC `delete_session` (`{"type":"delete_session","sessionId":"<id>"}`, or `{"type":"delete_session","id":"<id>"}` when `sessionId` is omitted), `RpcClient.deleteSession(sessionId)`, and `SessionManager.deleteSession(sessionId)` to delete a stored session and its entries from SQLite or JSONL storage. The session currently open in the process cannot be deleted and returns an error ([#3740](https://github.com/bastani-inc/atomic/issues/3740)).
|
|
10
|
+
- Added `createAgentSession({ journal })` so each SDK session can choose its workflow journal (file path, caller-owned database, process-local memory, adapter, or supplied journal) without the process-wide `ATOMIC_WORKFLOW_JOURNAL_PATH` ([#3743](https://github.com/bastani-inc/atomic/issues/3743)).
|
|
11
|
+
- When Atomic runs on Node, the process that runs agents now gets half of system memory for its heap when that is more than Node's default limit (about 4 GiB), so large machines can run more subagents and workflow stages at once. This applies to the interactive engine and to headless runs (`-p`, `--mode json`, `--mode rpc`), which restart themselves once with the larger heap. Set `ATOMIC_HEAP_MB` to choose the size or `0` to keep Node's default; an explicit `--max-old-space-size` in `NODE_OPTIONS` still wins.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `/export` and the RPC `export_html` command now export sessions stored in the default SQLite session store instead of refusing them, reading entries through the session store rather than a session file ([#3741](https://github.com/bastani-inc/atomic/issues/3741))
|
|
16
|
+
- When the earlier JSONL sessions folder holds several copies of one session, such as conflict copies left by a file-sync tool, the default store now lists and imports the copy with the newest message instead of the alphabetically first file.
|
|
17
|
+
|
|
18
|
+
## [0.9.38] - 2026-10-18
|
|
19
|
+
|
|
20
|
+
### Breaking Changes
|
|
21
|
+
|
|
22
|
+
- Workflow discovery now uses only `.atomic` default roots, and discovered modules use `@bastani/atomic/workflows` with `typebox`. Removed deprecated workflow API stubs, separate reasoning authoring fields, old stage-target and X10 mouse input formats, and replay without current topology, replay keys, or child exit tags. Use model strings such as `provider/model:high` for reasoning effort. Workflow results, inspection details and status summaries always include their tool collections. Queued stage delivery requires persisted admission order.
|
|
23
|
+
- Workflow heartbeat records require their original launch cadence instead of inheriting the current definition when cadence is missing. Configuration load results always include their global and project source fields, using `null` for absent or invalid sources.
|
|
24
|
+
- Workflow run snapshots require `toolNodes`, and inline forms require injected keybindings without obsolete submit-choice state. Removed the ignored workflow text-truncation `preserveAnsi` argument; ANSI-aware rendering is unchanged.
|
|
25
|
+
- Workflow runs now persist only in the local SQLite journal. Journal initialization failures throw `StorageUnavailableError` instead of continuing without durable storage. Postgres connection settings (`workflows.durability.systemDatabaseUrl` and `workflows.durability.poolSize`) and `DBOS_SYSTEM_DATABASE_URL`, `ATOMIC_POSTGRES_*`, and `PG*` environment variables no longer configure workflow storage.
|
|
26
|
+
- Removed automatic session-format migrations and the `migrateSessionEntries` export. Reading session files no longer appends missing newlines.
|
|
27
|
+
- Removed the workflow `durability` option, `WorkflowDurability`, and `WorkflowDurabilityRequiredError`. Use `RunOpts.journal` to select storage or isolate runs, and handle typed journal errors when storage is unavailable.
|
|
28
|
+
- Removed `InMemoryDurableBackend` and `createInMemoryTestBackend`. Use `JournalDurableBackend` over `MemoryRunJournal` for an explicitly in-memory backend. Removed the `legacyRecovery` workflow-tool argument and remaining `workflows.durability` settings.
|
|
29
|
+
- Removed the `@bastani/workflows` import alias; import workflow APIs from `@bastani/atomic/workflows`.
|
|
30
|
+
- Custom `RunJournal` implementations must provide atomic `deleteOwnedRun(lease)`, and invocation records require `invocationFingerprint`.
|
|
31
|
+
- `SessionManager.create`, `open`, `continueRecent`, `forkFrom`, and mutations now return promises. Await session writes, branch changes, labels, names, and model/thinking changes before reading their results or continuing dependent work. Extension `pi.appendEntry`, `pi.setSessionName`, `pi.setLabel`, and `pi.setThinkingLevel` must also be awaited. Persistent session creation writes its header immediately, and setup entries commit without waiting for the first message. A failed write rejects that call with its typed storage error without publishing the failed entry; there is no `flush` API. Explicit in-memory sessions remain available synchronously through `SessionManager.inMemory()`.
|
|
32
|
+
- Session headers use the format-4 fields `createdAt` and `parentSessionId`, including the header returned by `SessionManager.getHeader()`. The `timestamp` and `parentSession` header fields are removed.
|
|
33
|
+
- Extension provider registration and removal now return promises too: await `pi.registerProvider`, `pi.registerProviderAlias`, and `pi.unregisterProvider` before dependent model or session work.
|
|
34
|
+
- Workflow SQLite journals now use `SqlRunJournal` with async initialization and `wf_` table names. Use `await openSqlRunJournal(pathOrDatabase?)` or `await SqlRunJournal.open(database, { prefix })`, and await `resolveRunJournal`. Earlier unreleased bare tables are not read or migrated. Workflow `StorageUnavailableError` now provides `adapter`, `location`, and `cause` instead of `path`.
|
|
35
|
+
- Session selection now uses IDs instead of file paths: `--session` and `--fork` accept exact IDs or unique eight-hex UUID prefixes; use `--import <file>` for format-4 JSONL exports. Extension `switchSession` takes an ID, lifecycle events use `previousSessionId` and `targetSessionId`, and RPC `switch_session` takes `sessionId`. RPC state reports `sessionLocation` for optional display instead of `sessionFile`. Shell tools no longer expose `ATOMIC_SESSION_FILE` or `PI_SESSION_FILE`; use `ATOMIC_SESSION_ID` or `PI_SESSION_ID`.
|
|
36
|
+
- `RunOpts.journal.database` now takes an async `SqliteDatabase` facade, not a raw `node:sqlite` connection; use `wrapNodeSqliteDatabase` for an existing connection. Journal configuration failures now use `StorageConfigError` with `source`, `field`, and `reason` instead of `JournalConfigurationError`.
|
|
37
|
+
- Workflow stage forks now take `forkFromSessionId`, and stage resume, retained chat, and subagent forks resolve IDs within the selected session store. File paths are not session identities. Embedded chat hosts must use `await host.loadSession(store, sessionId)` instead of `loadSessionFile(path)`.
|
|
38
|
+
- Sessions now default to the local SQLite database shared with workflow runs, rather than JSONL files. JSONL must be selected explicitly. Removed the `sessionDir` setting without an alias; use `sessions.storage.dir` instead.
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- Added a guide to running local models on NVIDIA RTX GPUs with llama.cpp, including recipe prerequisites, router preset conversion, and connecting Atomic.
|
|
43
|
+
- Changing the thinking level mid-session on OpenAI GPT-6 models with an API key now preserves the prompt cache ([#10853](https://github.com/earendil-works/pi/issues/10853)).
|
|
44
|
+
- Added `formatReadLineRange` to the SDK exports so extensions can render `read` line-range labels the same way Atomic does.
|
|
45
|
+
- Added the async SQLite facade and node adapter through `@bastani/atomic/storage`, with typed storage errors, prefix and schema-version helpers, and an adapter conformance suite in `@bastani/atomic/storage/testing`. String bindings containing NUL are rejected with `StorageInvalidTextError`; zero bytes remain supported in binary values.
|
|
46
|
+
- Added the `workflows.journal.path` and `workflows.journal.memory` settings, plus SDK `RunOpts.journal` for a file, caller-owned SQLite connection, explicit memory journal, or supplied journal. TUI, CLI, background, and SDK runs use the selected journal. Relative settings paths resolve against the Atomic home directory.
|
|
47
|
+
- Added `ctx.sessionSignal` so extension commands can close long-running resources when reload or shutdown begins, before admitted work is drained. Custom UI is now dismissed automatically at that boundary while preserving caller-signal cancellation.
|
|
48
|
+
- Added `wrapNodeSqliteDatabase(connection)` for caller-owned connections and facade-backed workflow journals that can share a database with the session store or use a user-supplied SQLite-compatible driver.
|
|
49
|
+
- Added user-installed journal adapter modules, environment/file secret references, shared `storage` defaults, and `StorageProvider` for explicit session/journal opens with shared database lifetime. `RunOpts.journal.database` accepts an async SQLite facade; invalid selections raise `StorageConfigError` without falling back to memory.
|
|
50
|
+
- Added `sessions.storage` and SDK `sessionStore` to select SQLite, explicit JSONL or memory, a caller-owned database, or a user-installed adapter. Shared `storage` settings now configure sessions too; SDK, CLI and environment overrides take precedence without merging selections. Store-open failures raise typed errors rather than falling back to memory.
|
|
51
|
+
- Added `--session-store <path>` and `--session-prefix <prefix>` to select a SQLite session database from the CLI. SQLite resume hints and Herdr commands always include `--session-store` and include `--session-prefix` when non-default.
|
|
52
|
+
- Added a Models Configuration reference generated from the `models.json` schema, listing provider, model, model override, and compatibility fields ([#10790](https://github.com/earendil-works/pi/issues/10790)).
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- The storage adapter conformance suite now checks call-time binary binding inside transactions.
|
|
57
|
+
- Node SQLite facade transactions opened on the same file now queue asynchronously within a process, including when paths use symlinks, instead of stalling the event loop and failing with a locked database.
|
|
58
|
+
- Changed the default NVIDIA model to `nvidia/nemotron-3.5-super-vl-120b-a12b` ([#10910](https://github.com/earendil-works/pi/pull/10910) by [@cv](https://github.com/cv)).
|
|
59
|
+
- Subagent parallel task limits can now be raised above 50 with `parallel.maxTasks`. Configure `parallel.concurrency` and the new `parallel.runningCapacity` together to run more than four child turns per parent; defaults remain 50 tasks, concurrency 3, and running capacity 4.
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
- Fixed resumed sessions dropping built-in tools activated during the session or reactivating tools that had been disabled. Default tool selections now restore the recorded loadout, with `--tools +name`/`-name` modifiers applied. Explicit tool selections and exclusions remain authoritative ([#10785](https://github.com/earendil-works/pi/issues/10785)).
|
|
64
|
+
- Fixed `read` line-range labels for numeric-string or null `offset`/`limit` arguments, such as those in sessions recorded with offset-based `read` tools, in the session tree, HTML exports, and the subagent example ([#9887](https://github.com/earendil-works/pi/issues/9887)).
|
|
65
|
+
- Fixed prompt templates dropping empty quoted arguments (`""` or `''`), which shifted later positional arguments and prevented positional defaults from applying ([#10867](https://github.com/earendil-works/pi/issues/10867)).
|
|
66
|
+
- Fixed `--model` choosing a provider by catalog order when several providers offer the match; Atomic now prefers the provider with credentials and otherwise reports the ambiguity. `--models` and `enabledModels` add a model for each provider that offers it and warn about the ambiguity. `--api-key` no longer lets stored credentials pick the provider, so a bare model ID offered by several providers needs `provider/model` alongside it, and a bare ID in `modelRouting.allowedModels` or `excludedModels` now covers every provider that offers it ([#10160](https://github.com/earendil-works/pi/issues/10160)).
|
|
67
|
+
- Fixed forked workflow stages and subagents losing their own tools when inheriting conversation history, and deferred startup reactivating extension tools disabled in a resumed session. Completing project-trust startup preserves the recorded selection and deliberate tool changes made by `session_start` handlers ([#3624](https://github.com/bastani-inc/atomic/pull/3624)).
|
|
68
|
+
- Fixed malformed tool-call arguments being executed or losing their original parse error in npm installations. Invalid calls now fail before argument preparation and schema validation, including tools whose arguments are all optional ([#3624](https://github.com/bastani-inc/atomic/pull/3624)).
|
|
69
|
+
- Fixed turns failing after about 14 seconds of Cloudflare 520-524 responses or connection resets. Agent-level retries now wait as long as the server asks through `Retry-After` headers or a Cloudflare `retry_after` body field, capped by `retry.provider.maxRetryDelayMs` (60s), and still stop after `retry.maxRetries`. Without a hint the 2s/4s/8s backoff is unchanged. Switching to a configured fallback model can therefore take up to about `retry.maxRetries` × 60s ([#3623](https://github.com/bastani-inc/atomic/issues/3623))
|
|
70
|
+
- Fixed running sessions retaining stale `auth.json` credentials and login status after another window signs in, logs out, or refreshes a token, including extension OAuth providers. Chat requests rejected for invalid credentials reread the store and retry once when newer credentials are available ([#3620](https://github.com/bastani-inc/atomic/issues/3620)).
|
|
71
|
+
- Fixed the OSC 7501 terminal program status showing `working` instead of `blocked` while the main chat waits on an `ask_user_question` prompt. It now reports `blocked` (`kind=question`) while the questionnaire is open and returns to `working` after you answer, matching workflow-stage prompts ([#3616](https://github.com/bastani-inc/atomic/issues/3616)).
|
|
72
|
+
- Fixed workflow approval gates (a run-level `ctx.ui.confirm`) reporting OSC 7501 `blocked` with `kind=question`. They now report `kind=permission`, so terminals can tell an approval apart from a typed question ([#3618](https://github.com/bastani-inc/atomic/issues/3618)).
|
|
73
|
+
- Fixed paused and cancelled workflow runs reporting OSC 7501 `done`. A paused or cancelled run now reports `idle`, and `done` is reserved for a successful completion ([#3617](https://github.com/bastani-inc/atomic/issues/3617)).
|
|
74
|
+
- Fixed the OSC 7501 status disappearing mid-run in terminals that drop it when transcript rendering emits a prompt mark. The reporter now re-sends its current status after the workflow graph and stage-chat overlay render, restoring the status during a run ([#3615](https://github.com/bastani-inc/atomic/issues/3615)).
|
|
75
|
+
- Fixed Xiaomi MiMo and all regional Token Plan providers defaulting to a deprecated model omitted from the generated catalog. They now select MiMo V2.6 Pro (`mimo-v2.6-pro`) by default.
|
|
76
|
+
- Fixed failed prompts sent after compaction dropping messages queued while the prompt was pending. Later steering, follow-up, and compaction messages now survive recovery without duplicating the original batch ([#3654](https://github.com/bastani-inc/atomic/issues/3654)).
|
|
77
|
+
- Fixed compaction file lists omitting hashline edits, including multi-file edits and nested tool calls. Edited files now appear under modified files rather than read-only files ([#3656](https://github.com/bastani-inc/atomic/issues/3656)).
|
|
78
|
+
- Fixed reordering filtered scoped models crashing or selecting a different model instead of saving the new order ([#3657](https://github.com/bastani-inc/atomic/issues/3657)).
|
|
79
|
+
- Fixed overlapping prompts duplicating deferred shell results in session history, and retries replaying results that were already saved.
|
|
80
|
+
- Fixed new and branched sessions becoming unwritable when a resumed session uses a different destination session directory.
|
|
81
|
+
- Fixed tree label edits appearing saved before persistence completed. Failed saves now display the error and keep the editor open for retry.
|
|
82
|
+
- Fixed failed custom-message writes dropping accepted pending and next-turn messages. Retries now retain the uncommitted messages in order, and overlapping drains do not duplicate saved messages.
|
|
83
|
+
- Fixed overlapping model, thinking-level and session-name changes losing later choices. Model and thinking cycles now advance once per request, and saved defaults retain the last choice.
|
|
84
|
+
- Fixed history refresh failures after a turn escaping error handling. The interactive engine now displays the failure without an unhandled rejection, and label edits await their saved history before reporting success.
|
|
85
|
+
- Renaming the active session in the selector writes through its active manager, so later session writes retain the correct sequence.
|
|
86
|
+
- Session pickers keep selection and rename bound to the selected project's store when IDs repeat across projects. Imported empty session IDs remain persistent across resume and restart instead of starting a new conversation.
|
|
87
|
+
- Fixed Alt+Y restoring stale text and moving the cursor before the start of the scoped-model search after clearing it with Ctrl+C ([#3668](https://github.com/bastani-inc/atomic/issues/3668)).
|
|
88
|
+
- Fixed MCP tools with colliding generated names overwriting another tool's owner. Generated names now avoid names already in use or reserved by other tools ([#3667](https://github.com/bastani-inc/atomic/issues/3667)).
|
|
89
|
+
- Fixed extension input dialogs ignoring the supplied placeholder. The hint now appears while the input is empty without becoming submitted text ([#3672](https://github.com/bastani-inc/atomic/issues/3672)).
|
|
90
|
+
- Session shutdown and replacement now wait for already-admitted extension session entries to finish saving before releasing their resources.
|
|
91
|
+
- Storage providers now preserve domain-adapter prefixes, make returned stores safe to close repeatedly, and retain typed opening errors when cleanup also fails.
|
|
92
|
+
- Fixed sessions written before format 4 disappearing from `/resume` and failing to open with `--continue`, `--session`, or `--fork`. Older supported sessions now upgrade automatically when opened; listing leaves their files unchanged.
|
|
93
|
+
- Fixed session stores closing during conversation replacement or remaining open after CLI shutdown and failed startup. Project storage settings now take effect on first trust approval, JSONL resume commands retain their directory, and SQLite sessions keep full URL-read artifacts.
|
|
94
|
+
- Fixed stopping a codemode script or reaching its deadline waiting for a non-interruptible built-in to return in the standalone binary ([#10748](https://github.com/earendil-works/pi/issues/10748)).
|
|
95
|
+
- Fixed repeated codemode timeouts or aborts accumulating surviving workers. At most two codemode workers may be alive across all sessions, and a cancelled worker counts against that limit until it actually exits ([#10748](https://github.com/earendil-works/pi/issues/10748)).
|
|
96
|
+
- Fixed sessions in symlinked project directories, including macOS temporary directories, being omitted from session lookup or mistaken for sessions from another project.
|
|
97
|
+
- Fixed compaction fallback and branch summaries failing with "generation hit the token cap" when reasoning used most of a fixed output budget. The provider now sizes summary output, and `compaction.reserveTokens` only controls when automatic compaction starts ([#9512](https://github.com/earendil-works/pi/issues/9512), [#9075](https://github.com/earendil-works/pi/issues/9075)).
|
|
98
|
+
- Fixed `models.schema.json` missing descriptions for provider and model fields, so editors now show hints for them ([#10790](https://github.com/earendil-works/pi/issues/10790)).
|
|
99
|
+
- Fixed sessions saved before the SQLite default disappearing from `/resume` and failing to open with `--continue`, `--session`, or `--fork`. With the default store, sessions in `~/.atomic/agent/sessions`, including workflow stage sessions and early 0.9.38 alpha sessions that use a `timestamp` header, are listed alongside newer ones and copied into the database only when you open one, so startup does no extra work. Original files are left untouched, deleted sessions stay deleted, and explicitly selected stores do not show them.
|
|
100
|
+
- Fixed slow interactive startup on machines with many sessions saved before the SQLite default, a follow-up to [#3721](https://github.com/bastani-inc/atomic/pull/3721). Opening a session by its exact ID, which the interactive engine does at launch, now looks up only that session instead of scanning `~/.atomic/agent/sessions`. `/resume`, `--resume`, and `--continue` list unconverted sessions larger than 32 KiB from their first message and most recent entries rather than parsing every file, so their message count is a lower bound and `/resume` search sees only that text until you open one, which still converts it in full.
|
|
101
|
+
- Fixed `/resume` and `--resume` filling up with "(no messages)" sessions. The picker now hides sessions that have no messages, name, or summary, including ones already saved by earlier versions. Opening such a session by ID still works.
|
|
102
|
+
- Fixed MCP Streamable HTTP servers that keep closing their GET event stream without sending event IDs causing endless reconnects. Only a new event ID or a stream that stays open resets the reconnect budget, so `reconnect.maxRetries` now bounds these reconnects ([#3729](https://github.com/bastani-inc/atomic/issues/3729)).
|
|
103
|
+
- Fixed queued steering and follow-up messages being reordered when an extension's async `input` hook takes longer for an earlier message than a later one. Each queue now keeps submission order. Extension commands, extension-sent messages, and messages sent from inside an `input` hook are still delivered immediately ([#3590](https://github.com/bastani-inc/atomic/issues/3590)).
|
|
104
|
+
- Fixed messages queued during compaction coming back out of order when the first one fails to send. The failed message stays at the front of the queue, followed by the rest of its batch and then anything you typed afterwards, both for **ALT+Up** retrieval and when they are sent again. This also applies to workflow stage chats ([#3664](https://github.com/bastani-inc/atomic/issues/3664)).
|
|
105
|
+
|
|
106
|
+
### Removed
|
|
107
|
+
|
|
108
|
+
- Removed DBOS, embedded Postgres, their bundled runtimes and native process ownership, and the non-durable storage fallback. Server-specific admission, recovery, outage handling, and deferred persistence queues are gone; workflow pause, resume, quit, answer, and checkpoint replay remain supported.
|
|
109
|
+
|
|
110
|
+
## [0.9.38-alpha.11] - 2026-10-17
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
|
|
114
|
+
- Fixed MCP Streamable HTTP servers that keep closing their GET event stream without sending event IDs causing endless reconnects. Only a new event ID or a stream that stays open resets the reconnect budget, so `reconnect.maxRetries` now bounds these reconnects ([#3729](https://github.com/bastani-inc/atomic/issues/3729)).
|
|
115
|
+
- Fixed queued steering and follow-up messages being reordered when an extension's async `input` hook takes longer for an earlier message than a later one. Each queue now keeps submission order. Extension commands, extension-sent messages, and messages sent from inside an `input` hook are still delivered immediately ([#3590](https://github.com/bastani-inc/atomic/issues/3590)).
|
|
116
|
+
- Fixed messages queued during compaction coming back out of order when the first one fails to send. The failed message stays at the front of the queue, followed by the rest of its batch and then anything you typed afterwards, both for **ALT+Up** retrieval and when they are sent again. This also applies to workflow stage chats ([#3664](https://github.com/bastani-inc/atomic/issues/3664)).
|
|
117
|
+
|
|
118
|
+
## [0.9.38-alpha.10] - 2026-10-17
|
|
119
|
+
|
|
120
|
+
### Fixed
|
|
121
|
+
|
|
122
|
+
- Fixed `/resume` and `--resume` filling up with "(no messages)" sessions. The picker now hides sessions that have no messages, name, or summary, including ones already saved by earlier versions. Opening such a session by ID still works.
|
|
123
|
+
|
|
5
124
|
## [0.9.38-alpha.9] - 2026-10-17
|
|
6
125
|
|
|
7
126
|
### Fixed
|
|
@@ -4,6 +4,22 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.39-alpha.1] - 2026-10-19
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- A workflow stage whose session was released from memory when its run ended stays in the session list under its previous name, as `closed · reply: post-mortem only`, while the session that ran the workflow is open. An ask to it reopens the stage's saved conversation, runs one turn with the question, and returns that turn's answer, or a failure if the conversation cannot be reopened; a plain send reaches the session that ran the workflow ([#3622](https://github.com/bastani-inc/atomic/issues/3622) by [@vishnu363728](https://github.com/vishnu363728)).
|
|
12
|
+
|
|
13
|
+
## [0.9.38] - 2026-10-18
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Fixed queued workflow instructions being blocked by broker warm-up during model fallback. Stored instructions are admitted before connecting, including sticky messages for replacement sessions ([#3628](https://github.com/bastani-inc/atomic/issues/3628)).
|
|
18
|
+
- Intercom tools now await session records before reporting success or clearing pending replies. Failed commits reach the existing error handling, including local subagent relay diagnostics.
|
|
19
|
+
- Session-list and compose overlays now close when reload or shutdown begins instead of keeping their commands pending.
|
|
20
|
+
- Compose sends already in progress now finish delivery and save exactly one sent-message record even when reload or shutdown dismisses the overlay.
|
|
21
|
+
- Fixed retries of answered Intercom asks reopening pending reply routes and allowing a second distinct reply ([#3666](https://github.com/bastani-inc/atomic/issues/3666)).
|
|
22
|
+
|
|
7
23
|
## [0.9.38-alpha.6] - 2026-10-16
|
|
8
24
|
|
|
9
25
|
### Fixed
|
|
@@ -6464,6 +6464,197 @@ function clearRuntimeIntercomGroup(sessionId) {
|
|
|
6464
6464
|
}
|
|
6465
6465
|
var init_runtime_group = () => {};
|
|
6466
6466
|
|
|
6467
|
+
// dist/builtin/intercom/released-stage-peers.ts
|
|
6468
|
+
function isReleasedStageAnnouncement(value) {
|
|
6469
|
+
const route = value;
|
|
6470
|
+
const live = route.liveRoute;
|
|
6471
|
+
return typeof route.runId === "string" && route.runId.length > 0 && typeof route.stageId === "string" && route.stageId.length > 0 && typeof route.stageName === "string" && typeof route.sessionId === "string" && route.sessionId.length > 0 && typeof route.group === "string" && (route.model === undefined || typeof route.model === "string") && typeof route.answer === "function" && (live === undefined || typeof live.capability === "string" && Array.isArray(live.stageKeys) && live.stageKeys.every((key) => typeof key === "string"));
|
|
6472
|
+
}
|
|
6473
|
+
function peerKey(route) {
|
|
6474
|
+
return `${route.runId}\x00${route.stageId}`;
|
|
6475
|
+
}
|
|
6476
|
+
function askPrompt(from, message) {
|
|
6477
|
+
const attachments = message.content.attachments?.length ? formatAttachments(message.content.attachments) : "";
|
|
6478
|
+
return [
|
|
6479
|
+
`**\uD83D\uDCE8 From ${from.name || from.id}** (${from.cwd})`,
|
|
6480
|
+
"",
|
|
6481
|
+
`${message.content.text}${attachments}`,
|
|
6482
|
+
"",
|
|
6483
|
+
"---",
|
|
6484
|
+
"This workflow stage finished earlier and was reopened from its saved conversation to answer this ask.",
|
|
6485
|
+
"Answer in your final message; Atomic delivers it to the asker. Do not call the intercom tool to reply."
|
|
6486
|
+
].join(`
|
|
6487
|
+
`);
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6490
|
+
class ReleasedStagePeers {
|
|
6491
|
+
deps;
|
|
6492
|
+
peers = new Map;
|
|
6493
|
+
constructor(deps) {
|
|
6494
|
+
this.deps = deps;
|
|
6495
|
+
}
|
|
6496
|
+
get size() {
|
|
6497
|
+
return this.peers.size;
|
|
6498
|
+
}
|
|
6499
|
+
async adopt(route) {
|
|
6500
|
+
const key = peerKey(route);
|
|
6501
|
+
const previous = this.peers.get(key);
|
|
6502
|
+
if (previous !== undefined)
|
|
6503
|
+
await this.close(previous);
|
|
6504
|
+
const peer = {
|
|
6505
|
+
route,
|
|
6506
|
+
returnAddress: `${route.sessionId}:released-stage`,
|
|
6507
|
+
client: null,
|
|
6508
|
+
connecting: null,
|
|
6509
|
+
reconnectTimer: null,
|
|
6510
|
+
reconnectAttempt: 0,
|
|
6511
|
+
closed: false,
|
|
6512
|
+
answering: new Set
|
|
6513
|
+
};
|
|
6514
|
+
this.peers.set(key, peer);
|
|
6515
|
+
await this.connect(peer);
|
|
6516
|
+
}
|
|
6517
|
+
async disconnectAll() {
|
|
6518
|
+
const peers = [...this.peers.values()];
|
|
6519
|
+
this.peers.clear();
|
|
6520
|
+
await Promise.all(peers.map((peer) => this.close(peer)));
|
|
6521
|
+
}
|
|
6522
|
+
connect(peer) {
|
|
6523
|
+
if (peer.connecting !== null)
|
|
6524
|
+
return peer.connecting;
|
|
6525
|
+
const attempt = this.connectOnce(peer).then(() => {
|
|
6526
|
+
peer.reconnectAttempt = 0;
|
|
6527
|
+
}, (error) => {
|
|
6528
|
+
if (peer.connecting === attempt)
|
|
6529
|
+
peer.connecting = null;
|
|
6530
|
+
this.scheduleReconnect(peer);
|
|
6531
|
+
throw toError3(error);
|
|
6532
|
+
});
|
|
6533
|
+
peer.connecting = attempt;
|
|
6534
|
+
const settled = () => {
|
|
6535
|
+
if (peer.connecting === attempt)
|
|
6536
|
+
peer.connecting = null;
|
|
6537
|
+
};
|
|
6538
|
+
attempt.then(settled, settled);
|
|
6539
|
+
return attempt;
|
|
6540
|
+
}
|
|
6541
|
+
async connectOnce(peer) {
|
|
6542
|
+
const { route } = peer;
|
|
6543
|
+
await this.deps.prepare();
|
|
6544
|
+
if (peer.closed)
|
|
6545
|
+
return;
|
|
6546
|
+
const group = normalizeGroup(route.group);
|
|
6547
|
+
const client = this.deps.createClient(peer.returnAddress);
|
|
6548
|
+
client.on("message", (from, message, channel) => {
|
|
6549
|
+
if (peer.client !== client)
|
|
6550
|
+
return;
|
|
6551
|
+
this.receive(peer, client, from, message, channel);
|
|
6552
|
+
});
|
|
6553
|
+
client.on("disconnected", () => {
|
|
6554
|
+
if (peer.client !== client)
|
|
6555
|
+
return;
|
|
6556
|
+
peer.client = null;
|
|
6557
|
+
this.scheduleReconnect(peer);
|
|
6558
|
+
});
|
|
6559
|
+
client.on("error", () => {});
|
|
6560
|
+
peer.client = client;
|
|
6561
|
+
try {
|
|
6562
|
+
const now = Date.now();
|
|
6563
|
+
await client.connect({
|
|
6564
|
+
name: resolveIntercomPresenceName(undefined, route.sessionId),
|
|
6565
|
+
cwd: this.deps.cwd(),
|
|
6566
|
+
model: route.model ?? "unknown",
|
|
6567
|
+
pid: process.pid,
|
|
6568
|
+
startedAt: now,
|
|
6569
|
+
lastActivity: now,
|
|
6570
|
+
status: RELEASED_STAGE_STATUS,
|
|
6571
|
+
replyCapability: "live",
|
|
6572
|
+
groups: [group],
|
|
6573
|
+
group
|
|
6574
|
+
}, undefined, undefined, undefined, group);
|
|
6575
|
+
if (route.liveRoute !== undefined && route.liveRoute.stageKeys.length > 0) {
|
|
6576
|
+
try {
|
|
6577
|
+
await client.registerLiveWorkflowStageRoute(route.runId, [...route.liveRoute.stageKeys], route.liveRoute.capability);
|
|
6578
|
+
} catch (error) {
|
|
6579
|
+
if (!(error instanceof IntercomLiveRouteRefusedError))
|
|
6580
|
+
throw error;
|
|
6581
|
+
}
|
|
6582
|
+
}
|
|
6583
|
+
if (peer.closed) {
|
|
6584
|
+
peer.client = null;
|
|
6585
|
+
await client.disconnect();
|
|
6586
|
+
}
|
|
6587
|
+
} catch (error) {
|
|
6588
|
+
if (peer.client === client)
|
|
6589
|
+
peer.client = null;
|
|
6590
|
+
try {
|
|
6591
|
+
await client.disconnect();
|
|
6592
|
+
} catch {}
|
|
6593
|
+
throw error;
|
|
6594
|
+
}
|
|
6595
|
+
}
|
|
6596
|
+
scheduleReconnect(peer) {
|
|
6597
|
+
if (peer.closed || peer.reconnectTimer !== null || peer.connecting !== null)
|
|
6598
|
+
return;
|
|
6599
|
+
peer.reconnectTimer = setTimeout(() => {
|
|
6600
|
+
peer.reconnectTimer = null;
|
|
6601
|
+
if (peer.closed)
|
|
6602
|
+
return;
|
|
6603
|
+
peer.reconnectAttempt += 1;
|
|
6604
|
+
this.connect(peer).catch(() => {});
|
|
6605
|
+
}, reconnectDelayMs(peer.reconnectAttempt));
|
|
6606
|
+
}
|
|
6607
|
+
receive(peer, client, from, message, channel) {
|
|
6608
|
+
if (message.expectsReply !== true || channel !== undefined) {
|
|
6609
|
+
this.deps.relay(from, message, channel);
|
|
6610
|
+
return;
|
|
6611
|
+
}
|
|
6612
|
+
if (peer.answering.has(message.id))
|
|
6613
|
+
return;
|
|
6614
|
+
peer.answering.add(message.id);
|
|
6615
|
+
this.answer(peer, client, from, message).finally(() => peer.answering.delete(message.id));
|
|
6616
|
+
}
|
|
6617
|
+
async answer(peer, client, from, message) {
|
|
6618
|
+
let reply;
|
|
6619
|
+
try {
|
|
6620
|
+
reply = { text: await peer.route.answer(askPrompt(from, message)) };
|
|
6621
|
+
} catch (error) {
|
|
6622
|
+
const failure = `Released workflow stage could not answer: ${toError3(error).message}`;
|
|
6623
|
+
reply = { text: failure, replyError: failure };
|
|
6624
|
+
}
|
|
6625
|
+
if (peer.closed || !client.isConnected())
|
|
6626
|
+
return;
|
|
6627
|
+
try {
|
|
6628
|
+
await client.send(from.id, { ...reply, replyTo: message.id, requirePendingReply: true });
|
|
6629
|
+
} catch {}
|
|
6630
|
+
}
|
|
6631
|
+
async close(peer) {
|
|
6632
|
+
peer.closed = true;
|
|
6633
|
+
if (peer.reconnectTimer !== null)
|
|
6634
|
+
clearTimeout(peer.reconnectTimer);
|
|
6635
|
+
peer.reconnectTimer = null;
|
|
6636
|
+
if (this.peers.get(peerKey(peer.route)) === peer)
|
|
6637
|
+
this.peers.delete(peerKey(peer.route));
|
|
6638
|
+
try {
|
|
6639
|
+
await peer.connecting;
|
|
6640
|
+
} catch {}
|
|
6641
|
+
const client = peer.client;
|
|
6642
|
+
peer.client = null;
|
|
6643
|
+
if (client === null)
|
|
6644
|
+
return;
|
|
6645
|
+
try {
|
|
6646
|
+
await client.disconnect();
|
|
6647
|
+
} catch {}
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6650
|
+
var RELEASED_STAGE_EVENT = "atomic:workflow-released-stage", RELEASED_STAGE_STATUS = "closed · reply: post-mortem only";
|
|
6651
|
+
var init_released_stage_peers = __esm(() => {
|
|
6652
|
+
init_group();
|
|
6653
|
+
init_intercom_utils();
|
|
6654
|
+
init_live_route_refusal();
|
|
6655
|
+
init_reconnect_backoff();
|
|
6656
|
+
});
|
|
6657
|
+
|
|
6467
6658
|
// dist/builtin/intercom/supervisor-authorization-registry.ts
|
|
6468
6659
|
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
6469
6660
|
|
|
@@ -6545,6 +6736,16 @@ function piIntercomExtension(pi, testOverrides = {}) {
|
|
|
6545
6736
|
const pendingStageRoutes = new Map;
|
|
6546
6737
|
const pendingStageRouteClients = new Map;
|
|
6547
6738
|
const supervisorAuthorizations = new SupervisorAuthorizationRegistry;
|
|
6739
|
+
const releasedStagePeers = new ReleasedStagePeers({
|
|
6740
|
+
prepare: () => spawnBrokerIfNeeded(config.brokerCommand, config.brokerArgs),
|
|
6741
|
+
createClient: (returnAddress) => new IntercomClient(returnAddress),
|
|
6742
|
+
cwd: () => getLiveContext()?.cwd ?? process.cwd(),
|
|
6743
|
+
relay: (from, message, channel) => {
|
|
6744
|
+
const liveContext = getLiveContext();
|
|
6745
|
+
if (liveContext)
|
|
6746
|
+
handleIncomingMessage(liveContext, from, message, channel);
|
|
6747
|
+
}
|
|
6748
|
+
});
|
|
6548
6749
|
let inboundFlushTimer = null;
|
|
6549
6750
|
function rejectReplyWaiter(error) {
|
|
6550
6751
|
replyWaiters.rejectAll(error);
|
|
@@ -7243,6 +7444,13 @@ function piIntercomExtension(pi, testOverrides = {}) {
|
|
|
7243
7444
|
payload.completion = completion;
|
|
7244
7445
|
completion.catch(() => {});
|
|
7245
7446
|
});
|
|
7447
|
+
pi.events.on(RELEASED_STAGE_EVENT, (payload) => {
|
|
7448
|
+
if (typeof payload !== "object" || payload === null || !isReleasedStageAnnouncement(payload))
|
|
7449
|
+
return;
|
|
7450
|
+
if (!getLiveContext())
|
|
7451
|
+
return;
|
|
7452
|
+
releasedStagePeers.adopt(payload).catch(() => {});
|
|
7453
|
+
});
|
|
7246
7454
|
async function pendingStageNotificationClient(runId) {
|
|
7247
7455
|
const route = pendingStageRoutes.get(runId);
|
|
7248
7456
|
if (route === undefined)
|
|
@@ -7307,7 +7515,10 @@ function piIntercomExtension(pi, testOverrides = {}) {
|
|
|
7307
7515
|
registerIntercomLifecycle(pi, {
|
|
7308
7516
|
config,
|
|
7309
7517
|
client: () => client,
|
|
7310
|
-
disconnectAuxiliaryClients:
|
|
7518
|
+
disconnectAuxiliaryClients: async () => {
|
|
7519
|
+
await disconnectPendingStageRouteClients();
|
|
7520
|
+
await releasedStagePeers.disconnectAll();
|
|
7521
|
+
},
|
|
7311
7522
|
setClient: (value) => {
|
|
7312
7523
|
client = value;
|
|
7313
7524
|
if (value === null)
|
|
@@ -7449,6 +7660,7 @@ var init_index_heavy = __esm(() => {
|
|
|
7449
7660
|
init_group();
|
|
7450
7661
|
init_runtime_group();
|
|
7451
7662
|
init_reconnect_backoff();
|
|
7663
|
+
init_released_stage_peers();
|
|
7452
7664
|
init_supervisor_authorization_registry();
|
|
7453
7665
|
if (process.env.ATOMIC_TEST_LAZY_IMPORT_SENTINEL === "1") {
|
|
7454
7666
|
process.env.ATOMIC_INTERCOM_HEAVY_IMPORTED = "1";
|
|
@@ -7710,6 +7922,7 @@ var SUBAGENT_SUPERVISOR_AUTHORIZATION_EVENT2 = "subagent:supervisor-authorizatio
|
|
|
7710
7922
|
var WORKFLOW_STAGE_LATE_MESSAGE_EVENT = "atomic:workflow-stage-late-message";
|
|
7711
7923
|
var PENDING_STAGE_ROUTE_EVENT2 = "atomic:workflow-pending-stage-route";
|
|
7712
7924
|
var PENDING_STAGE_UNDELIVERABLE_EVENT2 = "atomic:workflow-pending-stage-undeliverable";
|
|
7925
|
+
var RELEASED_STAGE_EVENT2 = "atomic:workflow-released-stage";
|
|
7713
7926
|
function isPendingStageUndeliverableRelay(value) {
|
|
7714
7927
|
if (typeof value !== "object" || value === null)
|
|
7715
7928
|
return false;
|
|
@@ -8211,7 +8424,8 @@ function intercom(pi, options = {}) {
|
|
|
8211
8424
|
for (const eventName of [
|
|
8212
8425
|
SUBAGENT_CONTROL_INTERCOM_EVENT2,
|
|
8213
8426
|
SUBAGENT_RESULT_INTERCOM_EVENT3,
|
|
8214
|
-
PENDING_STAGE_ROUTE_EVENT2
|
|
8427
|
+
PENDING_STAGE_ROUTE_EVENT2,
|
|
8428
|
+
RELEASED_STAGE_EVENT2
|
|
8215
8429
|
]) {
|
|
8216
8430
|
pi.events.on(eventName, (payload) => {
|
|
8217
8431
|
const ctx = latestLifecycleContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.39-alpha.1",
|
|
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": [
|
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.39-alpha.1] - 2026-10-19
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A finished in-process subagent child no longer keeps its disposed agent session reachable for as long as its task exists. The task keeps the child's transcript entries for inspection but releases the session itself, so a long-lived parent session that launches many children stops accumulating their memory ([#3622](https://github.com/bastani-inc/atomic/issues/3622) by [@vishnu363728](https://github.com/vishnu363728)).
|
|
10
|
+
|
|
11
|
+
## [0.9.38] - 2026-10-18
|
|
12
|
+
|
|
13
|
+
### Breaking Changes
|
|
14
|
+
|
|
15
|
+
- Forked context now uses the parent's session ID and selected session store, including stored empty IDs. Embedded runners pass a `sessionManager` instead of a `sessionFile` input. Token readers take a store and session ID and return a promise; filesystem paths no longer select a transcript.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Subagent parallel task limits can now be raised above 50 with `parallel.maxTasks`. Configure `parallel.concurrency` and the new `parallel.runningCapacity` together to run more than four child turns per parent; defaults remain 50 tasks, concurrency 3, and running capacity 4.
|
|
20
|
+
|
|
5
21
|
## [0.9.38-alpha.8] - 2026-10-17
|
|
6
22
|
|
|
7
23
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/subagents",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.39-alpha.1",
|
|
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": [
|
|
@@ -10746,6 +10746,11 @@ function createTestSession(sessionManager, spec) {
|
|
|
10746
10746
|
dispose: testOptions.dispose ?? (() => {})
|
|
10747
10747
|
};
|
|
10748
10748
|
}
|
|
10749
|
+
function settledTranscript(manager) {
|
|
10750
|
+
const sessionId = manager.getSessionId();
|
|
10751
|
+
const entries = manager.getEntries();
|
|
10752
|
+
return { getSessionId: () => sessionId, getEntries: () => [...entries] };
|
|
10753
|
+
}
|
|
10749
10754
|
function nativeStatus(value) {
|
|
10750
10755
|
return value === "killed" ? "interrupted" : value;
|
|
10751
10756
|
}
|
|
@@ -10960,6 +10965,7 @@ class SubagentControlRuntime {
|
|
|
10960
10965
|
const configuredThinking = candidate.thinkingLevel ?? admitted.policy.thinkingLevel;
|
|
10961
10966
|
let effectiveModelId = candidateModelId;
|
|
10962
10967
|
let effectiveThinking = initialThinkingForAttempt(candidateModelId, configuredThinking);
|
|
10968
|
+
let transcriptManager;
|
|
10963
10969
|
let attemptedModels = candidateModelId ? [candidateModelId] : [];
|
|
10964
10970
|
const selectedModel = candidate.model ?? admitted.policy.model;
|
|
10965
10971
|
if (selectedModel)
|
|
@@ -11066,6 +11072,7 @@ class SubagentControlRuntime {
|
|
|
11066
11072
|
try {
|
|
11067
11073
|
const workflow = workflowMetadataFromContext(admitted.spec.parent?.orchestrationContext);
|
|
11068
11074
|
const sessionManager = admitted.sessionManager ? await SessionManager.open(admitted.sessionManager.getSessionStore(), admitted.sessionManager.getSessionId(), admitted.policy.cwd) : await SessionManager.create(admitted.policy.cwd, admitted.sessionDir, workflow ? { internal: true, workflow } : { internal: true });
|
|
11075
|
+
transcriptManager = sessionManager;
|
|
11069
11076
|
taskHooks?.bindTranscript?.(sessionManager);
|
|
11070
11077
|
if (workflow)
|
|
11071
11078
|
await sessionManager.markSessionInternal(workflow);
|
|
@@ -11336,6 +11343,10 @@ class SubagentControlRuntime {
|
|
|
11336
11343
|
try {
|
|
11337
11344
|
unsubscribe?.();
|
|
11338
11345
|
} catch {}
|
|
11346
|
+
const settleTranscript = () => {
|
|
11347
|
+
if (transcriptManager !== undefined)
|
|
11348
|
+
taskHooks?.bindTranscript?.(settledTranscript(transcriptManager));
|
|
11349
|
+
};
|
|
11339
11350
|
if (onCleanup) {
|
|
11340
11351
|
onCleanup((async () => {
|
|
11341
11352
|
try {
|
|
@@ -11352,12 +11363,16 @@ class SubagentControlRuntime {
|
|
|
11352
11363
|
}
|
|
11353
11364
|
]
|
|
11354
11365
|
};
|
|
11366
|
+
} finally {
|
|
11367
|
+
settleTranscript();
|
|
11355
11368
|
}
|
|
11356
11369
|
})());
|
|
11357
11370
|
} else {
|
|
11358
11371
|
try {
|
|
11359
11372
|
await session?.dispose();
|
|
11360
|
-
} catch {}
|
|
11373
|
+
} catch {} finally {
|
|
11374
|
+
settleTranscript();
|
|
11375
|
+
}
|
|
11361
11376
|
}
|
|
11362
11377
|
if (this.attemptTokens.get(admitted.identity.path) === token)
|
|
11363
11378
|
this.attemptTokens.delete(admitted.identity.path);
|
|
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.38] - 2026-10-18
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Search and fetched-content results now wait for their session commits before becoming available or notifying the agent. Failed commits reach the existing error handling instead of reporting uncommitted results.
|
|
12
|
+
- An open `/websearch` curator now closes when reload or shutdown begins, without blocking teardown or abandoning an already-started session save.
|
|
13
|
+
|
|
7
14
|
## [0.9.38-alpha.6] - 2026-10-16
|
|
8
15
|
|
|
9
16
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.39-alpha.1",
|
|
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": [
|