@bastani/atomic 0.10.3-alpha.1 → 0.10.3

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 CHANGED
@@ -2,6 +2,82 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.3] - 2026-11-21
6
+
7
+ Queued messages are delivered exactly as listed, ← returns from a subagent's chat, the prompt cache survives wide turns and resumes near the context window, and closing the terminal lets extensions shut down.
8
+
9
+ **Queued messages and subagents**
10
+
11
+ - **Queued messages are sent exactly as listed.** A message the agent already took for its next turn shows as being delivered and can no longer be pulled back with Alt+Up and sent anyway. A run that fails after taking a message sends it once more instead of losing it, and the queue carries on. When the engine stops unexpectedly, a message it took but never saved is shown once, with its text, as possibly undelivered ([#6161](https://github.com/bastani-inc/atomic/pull/6161), [#6163](https://github.com/bastani-inc/atomic/pull/6163))
12
+ - **Woken subagents carry on without an extra turn.** A subagent woken while it waited no longer gets "You were released while you waited…" queued behind the turn it continues, makes one request instead of two, and keeps its own task as its label ([#6161](https://github.com/bastani-inc/atomic/pull/6161))
13
+ - **← returns to the main chat.** On an empty subagent prompt, ← shows the main chat and leaves the subagent running; Esc pauses it and no longer navigates ([#6135](https://github.com/bastani-inc/atomic/issues/6135), [#6144](https://github.com/bastani-inc/atomic/pull/6144))
14
+ - **One set of marks for task states.** Completion notices, launch cards, subagent results and the `wait` and `kill` lines use the agent panel's marks ([#6122](https://github.com/bastani-inc/atomic/issues/6122), [#6148](https://github.com/bastani-inc/atomic/pull/6148))
15
+ - **`skill-creator` runs Atomic.** Its description optimization starts `atomic -p` with your models and never `claude`, and stopping it ends every process it started ([#5625](https://github.com/bastani-inc/atomic/issues/5625), [#6146](https://github.com/bastani-inc/atomic/pull/6146), [#6166](https://github.com/bastani-inc/atomic/pull/6166))
16
+
17
+ **Prompt cache**
18
+
19
+ - **Wide turns keep the cache.** A turn that adds 20 or more content blocks, such as many parallel tool calls, no longer misses Claude's prompt cache on its next request ([#6103](https://github.com/bastani-inc/atomic/issues/6103), [#6147](https://github.com/bastani-inc/atomic/pull/6147))
20
+ - **Resuming near the context window keeps the thinking budget.** When what a resume adds would push the request over the window, Atomic compacts once instead of lowering the thinking budget and losing the cache ([#6117](https://github.com/bastani-inc/atomic/issues/6117), [#6147](https://github.com/bastani-inc/atomic/pull/6147))
21
+ - **Fewer needless cache misses.** Strict tools Claude rejected stay off after compactions, a schema that lists `required` names in another order no longer counts as a changed tool, and sessions in different projects share more of the cached system prompt ([#6119](https://github.com/bastani-inc/atomic/issues/6119), [#6130](https://github.com/bastani-inc/atomic/issues/6130), [#6121](https://github.com/bastani-inc/atomic/issues/6121), [#6153](https://github.com/bastani-inc/atomic/pull/6153))
22
+ - **MCP servers reconnecting after a resume.** The MCP section of the prompt stays the same while servers reconnect, and changing a token in a server's arguments no longer drops its tools; sessions no longer store a hash of those arguments ([#6108](https://github.com/bastani-inc/atomic/issues/6108), [#6109](https://github.com/bastani-inc/atomic/issues/6109), [#6139](https://github.com/bastani-inc/atomic/pull/6139))
23
+
24
+ **Quitting and the screen**
25
+
26
+ - **Closing the terminal lets extensions shut down.** Closing the terminal, or `SIGTERM` or `SIGHUP`, gives `session_shutdown` handlers the same few seconds as quitting, and a failed stop-file write no longer skips stopping the engine ([#6104](https://github.com/bastani-inc/atomic/issues/6104), [#6115](https://github.com/bastani-inc/atomic/issues/6115), [#6152](https://github.com/bastani-inc/atomic/pull/6152))
27
+ - **No blank or stale frames.** A slow extension command view no longer flashes an empty frame, the "Working…" row clears when the view closes, and opening a subagent from `/tasks` waits for the agent panel ([#6105](https://github.com/bastani-inc/atomic/issues/6105), [#6134](https://github.com/bastani-inc/atomic/issues/6134), [#6123](https://github.com/bastani-inc/atomic/issues/6123), [#6145](https://github.com/bastani-inc/atomic/pull/6145))
28
+ - **Errors in Atomic's own event handling are reported as such.** They show as one error with their cause instead of "malformed engine output", and no longer end Atomic during a tool update ([#6107](https://github.com/bastani-inc/atomic/issues/6107), [#6137](https://github.com/bastani-inc/atomic/pull/6137))
29
+ - **Project trust is decided before it is used.** In a folder with a saved "Trust" and an extension that can still decline it, the folder's resources, settings and session store wait for the decision ([#5693](https://github.com/bastani-inc/atomic/issues/5693), [#6158](https://github.com/bastani-inc/atomic/pull/6158))
30
+
31
+ **Print mode, networks and storage**
32
+
33
+ - **Print mode waits for an extension command's message.** `atomic -p "/curator off"` and similar commands print their own answer instead of the previous reply ([#6113](https://github.com/bastani-inc/atomic/issues/6113), [#6154](https://github.com/bastani-inc/atomic/pull/6154))
34
+ - **Refused TLS certificates fail at once.** A model request or PostgreSQL connection refused for its certificate fails immediately with the reason and how to trust a private CA (`NODE_EXTRA_CA_CERTS`), instead of retrying as a network error ([#6112](https://github.com/bastani-inc/atomic/issues/6112), [#6114](https://github.com/bastani-inc/atomic/issues/6114), [#6138](https://github.com/bastani-inc/atomic/pull/6138))
35
+ - **Intercom keeps IDs and messages.** A session returning on another broker after a stall keeps its ID and open asks, messages for a session that moved arrive at once, and a restarted broker on a busy machine keeps messages for ended subagents ([#5607](https://github.com/bastani-inc/atomic/issues/5607), [#6149](https://github.com/bastani-inc/atomic/pull/6149), [#6160](https://github.com/bastani-inc/atomic/pull/6160))
36
+ - **Node 22 and `NODE_OPTIONS`.** On Node 22 every `await` in an SDK host no longer gets slower with each session, and worker threads start when `NODE_OPTIONS` contains `--input-type=module` ([#6111](https://github.com/bastani-inc/atomic/issues/6111), [#6151](https://github.com/bastani-inc/atomic/pull/6151), [#6110](https://github.com/bastani-inc/atomic/issues/6110), [#6142](https://github.com/bastani-inc/atomic/pull/6142))
37
+ - **Smaller fixes.** History indexing on Node 22 no longer holds memory per page, blueprint steps on busy Windows machines retry a briefly refused start, `session.dispose()` waits for its notice lines, a source checkout no longer freezes after startup, Windows broker cleanup checks a process's identity before stopping it, and the web search activity widget opens again ([#6106](https://github.com/bastani-inc/atomic/issues/6106), [#6124](https://github.com/bastani-inc/atomic/issues/6124), [#6128](https://github.com/bastani-inc/atomic/issues/6128), [#6118](https://github.com/bastani-inc/atomic/issues/6118), [#6133](https://github.com/bastani-inc/atomic/issues/6133), [#6131](https://github.com/bastani-inc/atomic/issues/6131))
38
+
39
+ ### Added
40
+
41
+ - `ToolBlock` and `NoticeLine` take the states `agent-running`, `shell-running`, `input` and `task-stopped`, which draw a subagent's or background task's state with the marks of the agent panel and `/tasks`, and `TASK_MARKS` gives those marks for text an extension draws itself ([#6122](https://github.com/bastani-inc/atomic/issues/6122)).
42
+ - SDK: `AgentSession.prompt()` takes `startTurnOnly`, which starts a turn with the input only when none runs: it is never queued behind one.
43
+
44
+ ### Changed
45
+
46
+ - While you view a subagent, `←` on its empty prompt returns to the main chat and leaves the subagent running, with its queued messages and unsent draft kept. The hint by the prompt reads `← main chat`. `Esc` no longer switches back to the main chat; it only pauses a working subagent, so how you leave a subagent no longer depends on whether it is working ([#6135](https://github.com/bastani-inc/atomic/issues/6135))
47
+ - `NoticeLine` and `ToolBlock` draw three existing states with new marks. On a `NoticeLine`, `running` shows a grey `◯` instead of `∀` and `stopped` a red `◯` instead of a muted `◼`, as the agent panel marks a running and a stopped subagent; a `ToolBlock` keeps `∀` for a call in progress and the muted `◼` for an interrupted one. `paused` shows `‖` in the warning colour instead of a muted `⏸` on both. With `NO_COLOR` a running and a stopped notice both show `◯`, and only their words tell them apart ([#6122](https://github.com/bastani-inc/atomic/issues/6122)).
48
+ - Sessions in different projects share more of the cached system prompt. The Session memory guideline no longer names the project's session folder; a `session_folder` section near the end of the prompt does. Sessions started before keep the prompt they recorded ([#6121](https://github.com/bastani-inc/atomic/issues/6121)).
49
+
50
+ ### Fixed
51
+
52
+ - A model request refused because the endpoint's TLS certificate is not trusted, as behind a corporate TLS-inspecting proxy or with a self-signed endpoint, now fails at once instead of counting through every retry. The error names the host, the certificate problem (such as `SELF_SIGNED_CERT_IN_CHAIN`) and how to trust a private CA with `NODE_EXTRA_CA_CERTS`, which the docs now describe. Like a rejected credential, it still moves on to `fallbackModels`, trying each once. Failure classification reports it as the new `certificate_refused` kind ([#6114](https://github.com/bastani-inc/atomic/issues/6114))
53
+ - Fixed an error in Atomic's own handling of something the interactive engine sent being reported as malformed output from the engine, which restarted the engine, or ending Atomic when it happened while a tool's output updated, after a compaction or in an asynchronous step. Atomic now shows the error with its cause and carries on ([#6107](https://github.com/bastani-inc/atomic/issues/6107)).
54
+ - On Node 22, where `AsyncLocalStorage` runs on promise hooks, each scope Atomic used and each session it ran made every `await` in the process slower, in an SDK host's own code too. Atomic now keeps all of its async context in one store, so the cost no longer grows: after a 300-prompt SDK session, 3 million awaits take about half as long as before. Node 24 and Bun were not affected. See [Node 22 hosts](docs/sdk.md#node-22-hosts) for the Node flag that removes the remaining cost ([#6111](https://github.com/bastani-inc/atomic/issues/6111)).
55
+ - Fixed a turn that adds 20 or more content blocks, such as many parallel tool calls and their results, missing the prompt cache on its next request on Anthropic, Amazon Bedrock and OpenAI-compatible Claude routes. That request now also marks where the previous request ended, so Claude still finds the cached conversation ([#6103](https://github.com/bastani-inc/atomic/issues/6103))
56
+ - Fixed resuming a session near the context window lowering the thinking budget, and losing the prompt cache, because of what only the resume added, such as a longer `AGENTS.md`. On Claude models that think within a fixed budget, the first prompt after the resume now clears the earlier conversation first, as automatic compaction does, and keeps the budget; what the resume added stays in the context. With automatic compaction off the request still lowers the budget to fit ([#6117](https://github.com/bastani-inc/atomic/issues/6117))
57
+ - A message sent again while the chat had not yet shown the previous send's run is shown once. When that run stopped without a reply, for example because another process wrote to the session, a second copy of the message could stay in the chat ([#6126](https://github.com/bastani-inc/atomic/issues/6126))
58
+ - A folder's saved "Trust" no longer applies in an interactive session before the `project_trust` handlers of user or global extensions have answered, since a handler can still decline the folder. Until then the session uses only global settings and resources: the first screen, migrating the folder's settings, the session store that `--continue`, `--resume` and `--session` read, and the build of restored worktrees wait for the decision. Without such extensions, or with `--approve`, a saved "Trust" applies at once as before. When the folder's own settings choose another session store than the global ones, Atomic decides the folder's trust before it opens a session, and that session's interface runs in the same process as its extensions ([#5693](https://github.com/bastani-inc/atomic/issues/5693))
59
+ - A resume in such a folder restores its worktrees and opens at once, as with `resume.waitForBlueprint: "tools"`: their blueprints build once the folder is decided, and tools wait for the build. A worktree no decision covers stays unbuilt and is reported as not trusted ([#5693](https://github.com/bastani-inc/atomic/issues/5693))
60
+ - When a folder is approved while its session is already on screen, the resource list at the top of the chat lists the approved resources, keeping each section expanded or folded. It waits while text is selected, a click or drag is in progress, you search, or the chat is scrolled away from its start and end. Open completion menus, pickers and Settings pages keep their choices; the approved resources show the next time you open them ([#5693](https://github.com/bastani-inc/atomic/issues/5693))
61
+ - Fixed SQLite selectors in the `read` tool, the SQLite session store, diagnostic logs, settings locks, history search and the engine's child-process guardian failing in a Node process whose `NODE_OPTIONS` contains `--input-type=module`, for example an SDK script run with `NODE_OPTIONS=--input-type=module node --eval`. Their worker threads now start however Node evaluates their source, also in a process started with `--input-type=module` under Node's permission model, and keep the process's flags and `NODE_OPTIONS` as before ([#6110](https://github.com/bastani-inc/atomic/issues/6110))
62
+ - An extension command whose view takes longer than 250 ms to draw no longer shows an empty frame before it: the typed command stays until the view draws, for at most another 250 ms, also when another extension's change ends the wait early ([#6105](https://github.com/bastani-inc/atomic/issues/6105))
63
+ - The "Working…" row leaves the screen as soon as an extension command ends after its view, overlay or dialog closed, instead of at the next key press ([#6134](https://github.com/bastani-inc/atomic/issues/6134))
64
+ - Opening a subagent from `/tasks` no longer draws a frame without the agent panel and then moves the transcript up: the subagent is shown once the panel has drawn again ([#6123](https://github.com/bastani-inc/atomic/issues/6123))
65
+ - A resumed session no longer sends the `mcp_servers` part of the system prompt twice more while its MCP servers reconnect: a server without a configured `description` keeps the summary the session last showed for it until it connects, and the part changes only if the server's instructions did ([#6108](https://github.com/bastani-inc/atomic/issues/6108))
66
+ - Sessions no longer store a hash of an MCP stdio server's arguments, which can hold a token, and changing such an argument no longer drops the server's tools from the first requests after a resume ([#6109](https://github.com/bastani-inc/atomic/issues/6109))
67
+ - Running Atomic from a source checkout no longer freezes the interface for about a second shortly after startup. A bundled package's modules that load later, such as Intercom's when it joins, are compiled in a background thread, and `/reload` runs the current code of such a module after you edit it, also under Bun and on Windows ([#6118](https://github.com/bastani-inc/atomic/issues/6118))
68
+ - Every view of a subagent or background task uses the marks of the agent panel and `/tasks`: completion notices, launch cards, a chat's task rows and the `wait` and `kill` lines show a grey `◯` (a shell's `⧗`) while it runs, a green `●` once it is done and a red `◯` once it was stopped, also for a subagent paused or quit until it is resumed. A `wait` that returns before its shell finishes no longer shows the done mark `●`, a stopped task's notice no longer shows `◼`, which `/tasks` uses for a task that is stopping, and a command sent to the background shows `⧗` on its block instead of `●`. A task row shows a waiting question with `◆` and a stopping task with `◼`, and in `/tasks` a subagent paused with Esc reads in the warning colour and a queued one dim, as in the agent panel ([#6122](https://github.com/bastani-inc/atomic/issues/6122)).
69
+ - In print mode, `atomic -p "/curator off"`, `/google-account` and other extension commands that answer with a message they send now print that message, or the reply of the turn it starts, instead of the session's earlier reply, and that turn is no longer cut off and saved as aborted. A later `-p` message waits for the turn instead of being refused, and an earlier reply that reached the output limit no longer marks the command's answer as truncated. With text output, a command whose only answer could not be saved now prints nothing and exits 1 instead of printing an earlier reply ([#6113](https://github.com/bastani-inc/atomic/issues/6113)).
70
+ - A resumed Claude session no longer sends strict tools once more after compactions removed every reply that recorded their rejection: the compaction keeps the record ([#6119](https://github.com/bastani-inc/atomic/issues/6119)).
71
+ - A tool whose schema lists its `required` parameters in another order, as an MCP server may after reconnecting, no longer counts as a changed tool: its declaration and the cached prompt stay the same, and a resumed session runs a call to it instead of refusing it as changed ([#6130](https://github.com/bastani-inc/atomic/issues/6130)).
72
+ - Building the history search index on Node 22 no longer keeps a little memory for every page it writes until the build ends ([#6106](https://github.com/bastani-inc/atomic/issues/6106))
73
+ - Closing the terminal, or sending Atomic `SIGTERM` or `SIGHUP`, gives extensions' `session_shutdown` handlers the same few seconds to finish as quitting does, with `fromSignal: true`, also when the session runs in the interactive engine, and the engine writes its last diagnostics records. A second `SIGTERM` ends the session at once; the several `SIGHUP` signals a closing terminal sends do not. On Windows, closing the console window still ends Atomic at once ([#6104](https://github.com/bastani-inc/atomic/issues/6104)).
74
+ - Quitting no longer waits on writing the interactive engine's stop file, so a stalled temporary directory cannot hold it up, and a write that fails no longer leaves the engine running after Atomic has exited ([#6115](https://github.com/bastani-inc/atomic/issues/6115)).
75
+ - SDK: `session.dispose()` now waits for the notice lines the session is still saving, such as the "Retry failed" line that stopping a retry saves, when you passed your own `sessionManager`. Removing the session's folder right after `dispose()` resolves no longer fails with `ENOTEMPTY` ([#6128](https://github.com/bastani-inc/atomic/issues/6128), [#6150](https://github.com/bastani-inc/atomic/pull/6150))
76
+ - Blueprint steps on a busy Windows machine no longer fail when starting their program is briefly refused. A program refused for a moment (`EPERM` or `EBUSY` on Windows, `ETXTBSY` on Linux) is now tried again for up to two seconds instead of half a second, every 50 ms at first and then less often. A program that stays refused fails its step at most two seconds later ([#6124](https://github.com/bastani-inc/atomic/issues/6124), [#6150](https://github.com/bastani-inc/atomic/pull/6150))
77
+ - Queued messages are listed exactly as they will be sent. A steering or follow-up message the agent already took for its next turn is shown as being delivered, without the hint to edit it, and is sent once instead of also coming back to the editor when you press Alt+Up or Esc meanwhile. A message you send with the text of a queued one no longer removes the queued one from the list. A message the agent took is queued again, first, when its turn fails before sending it, and the queue goes on as before; only a message whose turn fails that way a second time is dropped, as it always was. A message an extension's queue listener refuses is no longer listed.
78
+ - When the engine stops unexpectedly after it took a queued message and before Atomic saw it saved (while delivering it, or after showing it), a notice lists the message in full and says its delivery is unconfirmed: it is not sent again and not put back in the editor. Messages still queued come back to the editor as before; a deliberate restart or quit changes nothing.
79
+ - In a subagent's chat, Alt+Up no longer clears a message queued after it from the list, and messages it takes back after you close the chat come back in that chat's prompt when you open it again.
80
+
5
81
  ## [0.10.3-alpha.1] - 2026-11-21
6
82
 
7
83
  ### Added
@@ -4,6 +4,17 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.10.3] - 2026-11-21
8
+
9
+ ### Fixed
10
+
11
+ - When the session that kept a released subagent lets it go, a session whose question to that subagent was still open is told `Session "<subagent>" ended before replying`. It used to get a malformed failure that closed its Intercom connection, or a notice that did not name the subagent ([#6131](https://github.com/bastani-inc/atomic/issues/6131)).
12
+ - Fixed the broker watchdog not starting in a broker whose `NODE_OPTIONS` contains `--input-type=module` ([#6110](https://github.com/bastani-inc/atomic/issues/6110))
13
+ - A broker restarted after a crash on a busy machine no longer drops the messages the earlier broker kept for subagents that ended when loading the store's code takes up the first session's short wait for the store: a broker that finds such a store loads that code as it starts ([#6126](https://github.com/bastani-inc/atomic/issues/6126)).
14
+ - Fixed closing a session on Windows while its Intercom broker was still starting ending an unrelated process: Windows can give the pid of a broker that has exited to another process within seconds, and the broker was stopped by its pid alone. The broker now records when it was created, and is stopped only through a handle to the process created then, with the processes it started; a pid that names another process counts as a broker that has already exited, so closing no longer waits for it either ([#6133](https://github.com/bastani-inc/atomic/issues/6133)).
15
+ - With multi-node routing, a session that comes back on another broker keeps its Intercom ID, and with it the asks it had open, when that broker stalls for a few seconds while the shared database confirms the ID. The broker still gives a fresh ID when the database has not written the ID for that session within the registration's usual time, or when a session on another broker presents the ID; registration keeps its existing time bound. A PostgreSQL runtime role without permission to change tables keeps the earlier behavior until `atomic storage migrate` is run as the owner role ([#5607](https://github.com/bastani-inc/atomic/issues/5607)).
16
+ - With multi-node routing, a message queued for a session that was offline, such as the failure of an ask whose recipient ended, now reaches that session at once when it registered on another broker just before the message was written, instead of after up to 30 seconds ([#5607](https://github.com/bastani-inc/atomic/issues/5607)).
17
+
7
18
  ## [0.10.3-alpha.1] - 2026-11-21
8
19
 
9
20
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/intercom",
3
- "version": "0.10.3-alpha.1",
3
+ "version": "0.10.3",
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": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.10.3-alpha.1",
3
+ "version": "0.10.3",
4
4
  "private": true,
5
5
  "description": "Atomic's pi-compatible MCP integration for server connections, OAuth, tools, resources, and terminal management.",
6
6
  "contributors": [
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.3] - 2026-11-21
6
+
7
+ ### Changed
8
+
9
+ - `skill-creator`'s description optimization runs Atomic: `run_eval.py`, `run_loop.py` and `improve_description.py` start `atomic -p` with your Atomic models and credentials, and never start `claude`. Each trigger query loads the candidate description as a temporary skill, with only the read tool and no extensions or MCP servers, so the model has no tool that runs commands or edits files, and nothing is written into your project. A query counts as triggered when the model's first tool call reads that skill's `SKILL.md`. `--model` takes an Atomic model pattern such as `provider/id` ([#5625](https://github.com/bastani-inc/atomic/issues/5625)).
10
+
11
+ ### Fixed
12
+
13
+ - Stopping `skill-creator`'s description scripts with Ctrl+C, `kill` or by closing the terminal (on Windows Ctrl+C, Ctrl+Break or closing the console) stops every evaluation process (each `atomic` they started and whatever that started), removes their temporary files and exits with that signal's status; the report left open in your browser is not touched. Ctrl+Z, `fg` and `bg` pause and continue the evaluation together with the script. Importing the scripts leaves your signal handlers alone, and `scripts.atomic_cli.cancel()` stops an evaluation in progress. Queries now run on Windows, and the review viewer picks a free port instead of stopping the program that listens on port 3117 ([#5625](https://github.com/bastani-inc/atomic/issues/5625)).
14
+ - Subagent result rows, status lists, launch cards and `pause`, `quit` and `resume` results use the agent panel's marks: a running subagent shows a still grey `◯` instead of `∀` or a pulsing dot, a finished one a green `●`, and an interrupted, killed, paused or quit one a red `◯`. A subagent waiting for an answer shows `◆` and one paused with Esc `‖`. A foreground subagent that continued on its own reads `Continued` with the running mark instead of `Stopped` ([#6122](https://github.com/bastani-inc/atomic/issues/6122)).
15
+ - A subagent woken while it waited no longer gets "You were released while you waited…" queued behind the turn it continues, nor a request just to read it: the results that wake it continue its turn, and messages sent to it arrive as their own. It is prompted with that text only when nothing else starts its turn.
16
+ - A subagent woken while it waited keeps its original task as its label in heartbeats, completion notices, `/tasks` and the agent panel, instead of showing the wake prompt. A subagent you resume with a message still shows that message.
17
+
5
18
  ## [0.10.3-alpha.1] - 2026-11-21
6
19
 
7
20
  ### Changed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.10.3-alpha.1",
3
+ "version": "0.10.3",
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": [
@@ -147,6 +147,28 @@ def _check_batch_arguments(command: Sequence[str], arguments: Sequence[str]) ->
147
147
  )
148
148
 
149
149
 
150
+ def remove_path(path: Path) -> None:
151
+ """Remove a temporary file or folder the scripts created, never raising.
152
+
153
+ On Windows a process that has not quite exited, or any other process, can hold one of its files
154
+ open; removal is retried for a bounded time and then left to the system's temporary folder, so
155
+ a query reports its own outcome rather than this cleanup.
156
+ """
157
+ for attempt in range(STOP_POLLS):
158
+ try:
159
+ if path.is_dir() and not path.is_symlink():
160
+ shutil.rmtree(path)
161
+ else:
162
+ path.unlink(missing_ok=True)
163
+ return
164
+ except FileNotFoundError:
165
+ return
166
+ except OSError:
167
+ if os.name != "nt" or attempt == STOP_POLLS - 1:
168
+ return
169
+ time.sleep(POLL_SECONDS)
170
+
171
+
150
172
  # ---------------------------------------------------------------------------
151
173
  # One Atomic process
152
174
  # ---------------------------------------------------------------------------
@@ -299,6 +321,9 @@ class AtomicProcess:
299
321
  if self._job is not None:
300
322
  self._job.terminate()
301
323
  self.process.wait()
324
+ # Every process in the job ends asynchronously and keeps its inherited handles,
325
+ # such as the query's error output file, until it has exited.
326
+ self._job.wait_until_empty()
302
327
  else:
303
328
  _stop(self.process)
304
329
  # A process it left behind can hold its output open, even after it exited by itself.
@@ -519,6 +544,27 @@ class _WindowsJob:
519
544
  kernel32.OpenProcess.argtypes = (wintypes.DWORD, wintypes.BOOL, wintypes.DWORD)
520
545
  kernel32.AssignProcessToJobObject.restype = wintypes.BOOL
521
546
  kernel32.AssignProcessToJobObject.argtypes = (wintypes.HANDLE, wintypes.HANDLE)
547
+ class Accounting(ctypes.Structure):
548
+ _fields_ = [
549
+ ("TotalUserTime", ctypes.c_int64),
550
+ ("TotalKernelTime", ctypes.c_int64),
551
+ ("ThisPeriodTotalUserTime", ctypes.c_int64),
552
+ ("ThisPeriodTotalKernelTime", ctypes.c_int64),
553
+ ("TotalPageFaultCount", wintypes.DWORD),
554
+ ("TotalProcesses", wintypes.DWORD),
555
+ ("ActiveProcesses", wintypes.DWORD),
556
+ ("TotalTerminatedProcesses", wintypes.DWORD),
557
+ ]
558
+
559
+ self._accounting = Accounting
560
+ kernel32.QueryInformationJobObject.restype = wintypes.BOOL
561
+ kernel32.QueryInformationJobObject.argtypes = (
562
+ wintypes.HANDLE,
563
+ ctypes.c_int,
564
+ ctypes.c_void_p,
565
+ wintypes.DWORD,
566
+ ctypes.c_void_p,
567
+ )
522
568
  kernel32.TerminateJobObject.restype = wintypes.BOOL
523
569
  kernel32.TerminateJobObject.argtypes = (wintypes.HANDLE, wintypes.UINT)
524
570
  kernel32.CloseHandle.restype = wintypes.BOOL
@@ -555,6 +601,23 @@ class _WindowsJob:
555
601
  if self._handle is not None:
556
602
  self._kernel32.TerminateJobObject(self._handle, 1)
557
603
 
604
+ def wait_until_empty(self) -> None:
605
+ """Wait, for a bounded time, until no process of the job is left."""
606
+ basic_accounting_information = 1
607
+ accounting = self._accounting()
608
+ for _ in range(STOP_POLLS):
609
+ if self._handle is None or not self._kernel32.QueryInformationJobObject(
610
+ self._handle,
611
+ basic_accounting_information,
612
+ self._ctypes.byref(accounting),
613
+ self._ctypes.sizeof(accounting),
614
+ None,
615
+ ):
616
+ return
617
+ if accounting.ActiveProcesses == 0:
618
+ return
619
+ time.sleep(POLL_SECONDS)
620
+
558
621
  def close(self) -> None:
559
622
  if self._handle is not None:
560
623
  self._kernel32.CloseHandle(self._handle)
@@ -9,13 +9,12 @@ Atomic sessions, no separate API key needed).
9
9
  import argparse
10
10
  import json
11
11
  import re
12
- import shutil
13
12
  import sys
14
13
  import tempfile
15
14
  import time
16
15
  from pathlib import Path
17
16
 
18
- from scripts.atomic_cli import ISOLATED_RUN, AtomicProcess, Cancellation, Owner, run_main
17
+ from scripts.atomic_cli import ISOLATED_RUN, AtomicProcess, Cancellation, Owner, remove_path, run_main
19
18
  from scripts.utils import parse_skill_md
20
19
 
21
20
 
@@ -47,7 +46,7 @@ def _call_atomic(prompt: str, model: str | None, timeout: int = 300, cancellatio
47
46
  raise RuntimeError(f"atomic -p exited {status}\nstderr: {atomic.stderr_tail()}")
48
47
  return output.decode("utf-8", errors="replace")
49
48
  finally:
50
- shutil.rmtree(folder, ignore_errors=True)
49
+ remove_path(folder)
51
50
 
52
51
 
53
52
  def improve_description(
@@ -10,7 +10,6 @@ import argparse
10
10
  import json
11
11
  import os
12
12
  import re
13
- import shutil
14
13
  import sys
15
14
  import tempfile
16
15
  import time
@@ -18,7 +17,16 @@ import uuid
18
17
  from concurrent.futures import ThreadPoolExecutor, as_completed
19
18
  from pathlib import Path
20
19
 
21
- from scripts.atomic_cli import ISOLATED_RUN, AtomicProcess, Cancellation, Cancelled, Owner, atomic_command, run_main
20
+ from scripts.atomic_cli import (
21
+ ISOLATED_RUN,
22
+ AtomicProcess,
23
+ Cancellation,
24
+ Cancelled,
25
+ Owner,
26
+ atomic_command,
27
+ remove_path,
28
+ run_main,
29
+ )
22
30
  from scripts.utils import parse_skill_md
23
31
 
24
32
  # A trailing read selector such as :raw, :conflicts, :12, :10-20, :5+3 or :1-5,9-12.
@@ -225,10 +233,10 @@ def _run_query(
225
233
  raise RuntimeError(f"atomic -p exited {status}: {atomic.stderr_tail()}")
226
234
  return False
227
235
  finally:
228
- stderr_path.unlink(missing_ok=True)
236
+ remove_path(stderr_path)
229
237
  finally:
230
238
  if own_folder is not None:
231
- shutil.rmtree(own_folder, ignore_errors=True)
239
+ remove_path(own_folder)
232
240
 
233
241
 
234
242
  def _run_queries(
@@ -289,7 +297,7 @@ def _run_queries(
289
297
  executor.shutdown(wait=True, cancel_futures=True)
290
298
  cancellation.check()
291
299
  finally:
292
- shutil.rmtree(folder, ignore_errors=True)
300
+ remove_path(folder)
293
301
  return query_triggers, query_items
294
302
 
295
303
 
@@ -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.10.3] - 2026-11-21
8
+
9
+ ### Fixed
10
+
11
+ - The web search activity shortcut (Ctrl+Shift+W by default) shows the activity widget and hides it again. It failed with "content is not a function" when Atomic runs extensions in the terminal process, and showed only a warning that the widget is unavailable otherwise ([#6131](https://github.com/bastani-inc/atomic/issues/6131)).
12
+ - Fixed reading Chromium cookies failing in a Node process whose `NODE_OPTIONS` contains `--input-type=module` ([#6110](https://github.com/bastani-inc/atomic/issues/6110))
13
+
7
14
  ## [0.10.3-alpha.1] - 2026-11-21
8
15
 
9
16
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/web-access",
3
- "version": "0.10.3-alpha.1",
3
+ "version": "0.10.3",
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": [
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.10.3-alpha.1",
3
+ "version": "0.10.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bastani/atomic",
9
- "version": "0.10.3-alpha.1",
9
+ "version": "0.10.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@bastani/atomic-natives": "0.10.3-alpha.1",
13
- "@bastani/atomic-ai": "0.10.3-alpha.1",
14
- "@bastani/atomic-agent-core": "0.10.3-alpha.1",
15
- "@bastani/atomic-codemode": "0.10.3-alpha.1",
16
- "@bastani/atomic-tui": "0.10.3-alpha.1",
12
+ "@bastani/atomic-natives": "0.10.3",
13
+ "@bastani/atomic-ai": "0.10.3",
14
+ "@bastani/atomic-agent-core": "0.10.3",
15
+ "@bastani/atomic-codemode": "0.10.3",
16
+ "@bastani/atomic-tui": "0.10.3",
17
17
  "@modelcontextprotocol/ext-apps": "^2.0.4",
18
18
  "@modelcontextprotocol/sdk": "1.32.2",
19
19
  "@mozilla/readability": "^0.6.0",
@@ -431,26 +431,26 @@
431
431
  }
432
432
  },
433
433
  "node_modules/@bastani/atomic-agent-core": {
434
- "version": "0.10.3-alpha.1",
435
- "resolved": "https://registry.npmjs.org/@bastani/atomic-agent-core/-/atomic-agent-core-0.10.3-alpha.1.tgz",
434
+ "version": "0.10.3",
435
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-agent-core/-/atomic-agent-core-0.10.3.tgz",
436
436
  "license": "MIT",
437
437
  "dependencies": {
438
- "@bastani/atomic-ai": "0.10.3-alpha.1",
439
- "@bastani/atomic-schema": "0.10.3-alpha.1"
438
+ "@bastani/atomic-ai": "0.10.3",
439
+ "@bastani/atomic-schema": "0.10.3"
440
440
  },
441
441
  "engines": {
442
442
  "node": ">=22.19.0"
443
443
  }
444
444
  },
445
445
  "node_modules/@bastani/atomic-ai": {
446
- "version": "0.10.3-alpha.1",
447
- "resolved": "https://registry.npmjs.org/@bastani/atomic-ai/-/atomic-ai-0.10.3-alpha.1.tgz",
446
+ "version": "0.10.3",
447
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-ai/-/atomic-ai-0.10.3.tgz",
448
448
  "license": "MIT",
449
449
  "dependencies": {
450
450
  "@anthropic-ai/sdk": "0.129.0",
451
451
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
452
- "@bastani/atomic-schema": "0.10.3-alpha.1",
453
- "@bastani/atomic-telemetry": "0.10.3-alpha.1",
452
+ "@bastani/atomic-schema": "0.10.3",
453
+ "@bastani/atomic-telemetry": "0.10.3",
454
454
  "@google/genai": "2.32.0",
455
455
  "@smithy/node-http-handler": "4.13.0",
456
456
  "http-proxy-agent": "9.1.0",
@@ -528,8 +528,8 @@
528
528
  }
529
529
  },
530
530
  "node_modules/@bastani/atomic-codemode": {
531
- "version": "0.10.3-alpha.1",
532
- "resolved": "https://registry.npmjs.org/@bastani/atomic-codemode/-/atomic-codemode-0.10.3-alpha.1.tgz",
531
+ "version": "0.10.3",
532
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-codemode/-/atomic-codemode-0.10.3.tgz",
533
533
  "license": "MIT",
534
534
  "dependencies": {
535
535
  "quickjs-wasi": "3.6.3"
@@ -539,18 +539,18 @@
539
539
  }
540
540
  },
541
541
  "node_modules/@bastani/atomic-natives": {
542
- "version": "0.10.3-alpha.1",
543
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.10.3-alpha.1.tgz",
542
+ "version": "0.10.3",
543
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.10.3.tgz",
544
544
  "license": "MIT",
545
545
  "optionalDependencies": {
546
- "@bastani/atomic-natives-darwin-arm64": "0.10.3-alpha.1",
547
- "@bastani/atomic-natives-darwin-x64": "0.10.3-alpha.1",
548
- "@bastani/atomic-natives-linux-arm64-gnu": "0.10.3-alpha.1",
549
- "@bastani/atomic-natives-linux-arm64-musl": "0.10.3-alpha.1",
550
- "@bastani/atomic-natives-linux-x64-gnu": "0.10.3-alpha.1",
551
- "@bastani/atomic-natives-linux-x64-musl": "0.10.3-alpha.1",
552
- "@bastani/atomic-natives-win32-arm64-msvc": "0.10.3-alpha.1",
553
- "@bastani/atomic-natives-win32-x64-msvc": "0.10.3-alpha.1"
546
+ "@bastani/atomic-natives-darwin-arm64": "0.10.3",
547
+ "@bastani/atomic-natives-darwin-x64": "0.10.3",
548
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.10.3",
549
+ "@bastani/atomic-natives-linux-arm64-musl": "0.10.3",
550
+ "@bastani/atomic-natives-linux-x64-gnu": "0.10.3",
551
+ "@bastani/atomic-natives-linux-x64-musl": "0.10.3",
552
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.10.3",
553
+ "@bastani/atomic-natives-win32-x64-msvc": "0.10.3"
554
554
  },
555
555
  "engines": {
556
556
  "bun": ">=1.4.2",
@@ -558,8 +558,8 @@
558
558
  }
559
559
  },
560
560
  "node_modules/@bastani/atomic-natives-darwin-arm64": {
561
- "version": "0.10.3-alpha.1",
562
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.10.3-alpha.1.tgz",
561
+ "version": "0.10.3",
562
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.10.3.tgz",
563
563
  "license": "MIT",
564
564
  "os": [
565
565
  "darwin"
@@ -570,8 +570,8 @@
570
570
  "optional": true
571
571
  },
572
572
  "node_modules/@bastani/atomic-natives-darwin-x64": {
573
- "version": "0.10.3-alpha.1",
574
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.10.3-alpha.1.tgz",
573
+ "version": "0.10.3",
574
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.10.3.tgz",
575
575
  "license": "MIT",
576
576
  "os": [
577
577
  "darwin"
@@ -582,8 +582,8 @@
582
582
  "optional": true
583
583
  },
584
584
  "node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
585
- "version": "0.10.3-alpha.1",
586
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.10.3-alpha.1.tgz",
585
+ "version": "0.10.3",
586
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.10.3.tgz",
587
587
  "license": "MIT",
588
588
  "os": [
589
589
  "linux"
@@ -597,8 +597,8 @@
597
597
  "optional": true
598
598
  },
599
599
  "node_modules/@bastani/atomic-natives-linux-arm64-musl": {
600
- "version": "0.10.3-alpha.1",
601
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.10.3-alpha.1.tgz",
600
+ "version": "0.10.3",
601
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.10.3.tgz",
602
602
  "license": "MIT",
603
603
  "os": [
604
604
  "linux"
@@ -612,8 +612,8 @@
612
612
  "optional": true
613
613
  },
614
614
  "node_modules/@bastani/atomic-natives-linux-x64-gnu": {
615
- "version": "0.10.3-alpha.1",
616
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.10.3-alpha.1.tgz",
615
+ "version": "0.10.3",
616
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.10.3.tgz",
617
617
  "license": "MIT",
618
618
  "os": [
619
619
  "linux"
@@ -627,8 +627,8 @@
627
627
  "optional": true
628
628
  },
629
629
  "node_modules/@bastani/atomic-natives-linux-x64-musl": {
630
- "version": "0.10.3-alpha.1",
631
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.10.3-alpha.1.tgz",
630
+ "version": "0.10.3",
631
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.10.3.tgz",
632
632
  "license": "MIT",
633
633
  "os": [
634
634
  "linux"
@@ -642,8 +642,8 @@
642
642
  "optional": true
643
643
  },
644
644
  "node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
645
- "version": "0.10.3-alpha.1",
646
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.10.3-alpha.1.tgz",
645
+ "version": "0.10.3",
646
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.10.3.tgz",
647
647
  "license": "MIT",
648
648
  "os": [
649
649
  "win32"
@@ -654,8 +654,8 @@
654
654
  "optional": true
655
655
  },
656
656
  "node_modules/@bastani/atomic-natives-win32-x64-msvc": {
657
- "version": "0.10.3-alpha.1",
658
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.10.3-alpha.1.tgz",
657
+ "version": "0.10.3",
658
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.10.3.tgz",
659
659
  "license": "MIT",
660
660
  "os": [
661
661
  "win32"
@@ -666,24 +666,24 @@
666
666
  "optional": true
667
667
  },
668
668
  "node_modules/@bastani/atomic-schema": {
669
- "version": "0.10.3-alpha.1",
670
- "resolved": "https://registry.npmjs.org/@bastani/atomic-schema/-/atomic-schema-0.10.3-alpha.1.tgz",
669
+ "version": "0.10.3",
670
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-schema/-/atomic-schema-0.10.3.tgz",
671
671
  "license": "MIT",
672
672
  "engines": {
673
673
  "node": ">=22.19.0"
674
674
  }
675
675
  },
676
676
  "node_modules/@bastani/atomic-telemetry": {
677
- "version": "0.10.3-alpha.1",
678
- "resolved": "https://registry.npmjs.org/@bastani/atomic-telemetry/-/atomic-telemetry-0.10.3-alpha.1.tgz",
677
+ "version": "0.10.3",
678
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-telemetry/-/atomic-telemetry-0.10.3.tgz",
679
679
  "license": "MIT",
680
680
  "engines": {
681
681
  "node": ">=22.19.0"
682
682
  }
683
683
  },
684
684
  "node_modules/@bastani/atomic-tui": {
685
- "version": "0.10.3-alpha.1",
686
- "resolved": "https://registry.npmjs.org/@bastani/atomic-tui/-/atomic-tui-0.10.3-alpha.1.tgz",
685
+ "version": "0.10.3",
686
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-tui/-/atomic-tui-0.10.3.tgz",
687
687
  "license": "MIT",
688
688
  "dependencies": {
689
689
  "get-east-asian-width": "1.7.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.10.3-alpha.1",
3
+ "version": "0.10.3",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -71,11 +71,11 @@
71
71
  "prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
72
72
  },
73
73
  "dependencies": {
74
- "@bastani/atomic-natives": "0.10.3-alpha.1",
75
- "@bastani/atomic-ai": "0.10.3-alpha.1",
76
- "@bastani/atomic-agent-core": "0.10.3-alpha.1",
77
- "@bastani/atomic-codemode": "0.10.3-alpha.1",
78
- "@bastani/atomic-tui": "0.10.3-alpha.1",
74
+ "@bastani/atomic-natives": "0.10.3",
75
+ "@bastani/atomic-ai": "0.10.3",
76
+ "@bastani/atomic-agent-core": "0.10.3",
77
+ "@bastani/atomic-codemode": "0.10.3",
78
+ "@bastani/atomic-tui": "0.10.3",
79
79
  "@modelcontextprotocol/ext-apps": "^2.0.4",
80
80
  "@modelcontextprotocol/sdk": "1.32.2",
81
81
  "@mozilla/readability": "^0.6.0",