@bastani/atomic 0.9.88-alpha.1 → 0.9.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +287 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +57 -0
  3. package/dist/builtin/intercom/index.bundle.mjs +62 -38
  4. package/dist/builtin/intercom/package.json +1 -1
  5. package/dist/builtin/intercom/session-target.ts +15 -3
  6. package/dist/builtin/mcp/package.json +1 -1
  7. package/dist/builtin/subagents/CHANGELOG.md +50 -0
  8. package/dist/builtin/subagents/package.json +1 -1
  9. package/dist/builtin/web-access/CHANGELOG.md +10 -0
  10. package/dist/builtin/web-access/package.json +1 -1
  11. package/dist/builtin/workflows/CHANGELOG.md +117 -0
  12. package/dist/builtin/workflows/README.md +2 -2
  13. package/dist/builtin/workflows/builtin/{chunk-r9xfx5d0.js → chunk-4h4nh4f1.js} +1 -1
  14. package/dist/builtin/workflows/builtin/{chunk-cryf7s3r.js → chunk-jm7redy5.js} +648 -91
  15. package/dist/builtin/workflows/builtin/{chunk-c7bc4ppx.js → chunk-t661k7hd.js} +1 -1
  16. package/dist/builtin/workflows/builtin/goal.js +2 -2
  17. package/dist/builtin/workflows/builtin/index.js +3 -3
  18. package/dist/builtin/workflows/builtin/ralph.js +2 -2
  19. package/dist/builtin/workflows/package.json +1 -1
  20. package/dist/builtin/workflows/src/durable/fork-errors.d.ts +0 -1
  21. package/dist/builtin/workflows/src/durable/journal/internal.d.ts +1 -0
  22. package/dist/builtin/workflows/src/extension/index.bundle.mjs +2515 -1091
  23. package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +1092 -98
  24. package/dist/builtin/workflows/src/index.js +1077 -91
  25. package/dist/builtin/workflows/src/local-worker-entry.mjs +1092 -98
  26. package/dist/core/storage/session/session-resume.d.ts +8 -1
  27. package/dist/core/storage/session/session-resume.d.ts.map +1 -1
  28. package/dist/core/storage/session/session-resume.js +22 -3
  29. package/dist/core/storage/session/session-resume.js.map +1 -1
  30. package/dist/core/worktree-snapshot/restore.d.ts +2 -0
  31. package/dist/core/worktree-snapshot/restore.d.ts.map +1 -1
  32. package/dist/core/worktree-snapshot/restore.js +41 -5
  33. package/dist/core/worktree-snapshot/restore.js.map +1 -1
  34. package/dist/modes/interactive/components/jump-to-latest.d.ts +0 -5
  35. package/dist/modes/interactive/components/jump-to-latest.d.ts.map +1 -1
  36. package/dist/modes/interactive/components/jump-to-latest.js +0 -5
  37. package/dist/modes/interactive/components/jump-to-latest.js.map +1 -1
  38. package/dist/modes/interactive/interactive-mode-base.d.ts +1 -0
  39. package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
  40. package/dist/modes/interactive/interactive-mode-base.js +13 -2
  41. package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
  42. package/dist/modes/interactive/interactive-render-chat.d.ts +0 -4
  43. package/dist/modes/interactive/interactive-render-chat.d.ts.map +1 -1
  44. package/dist/modes/interactive/interactive-render-chat.js +19 -45
  45. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  46. package/dist/modes/interactive/interactive-startup-chat-container.d.ts +9 -1
  47. package/dist/modes/interactive/interactive-startup-chat-container.d.ts.map +1 -1
  48. package/dist/modes/interactive/interactive-startup-chat-container.js +38 -0
  49. package/dist/modes/interactive/interactive-startup-chat-container.js.map +1 -1
  50. package/docs/keybindings.md +1 -1
  51. package/docs/storage.md +1 -1
  52. package/docs/workflows/api-reference.md +3 -2
  53. package/docs/workflows/operations.md +11 -9
  54. package/npm-shrinkwrap.json +49 -49
  55. package/package.json +6 -6
@@ -4,6 +4,63 @@ All notable changes to the `pi-intercom` extension will be documented in this fi
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.88] - 2026-11-16
8
+
9
+ ### Added
10
+
11
+ - Codemode scripts can call `intercom` with `list`, `status`, `pending`, and `send`. `list` and `status` resolve to session entries (`sessionId`, `name`, `cwd`, `state`, `groups`, `replyCapability`), and each `send` to its delivery outcome. Scripts may send only to exact targets: globs, `*`, `subagents:` targets and workflow path patterns are refused, and `ask`, `reply`, `join`, `leave` and the other actions fail with a pointer to the direct tool ([#5087](https://github.com/bastani-inc/atomic/issues/5087))
12
+ - On PostgreSQL, a broker learns at once that a message or an outcome is waiting for it, through `LISTEN`/`NOTIFY`, instead of at its next half-second check, which stays as the fallback ([#5103](https://github.com/bastani-inc/atomic/issues/5103))
13
+
14
+ ### Changed
15
+
16
+ - An Intercom `send` to a session-name glob that matches more than one session, `*` alone included, now needs `broadcast: true`. Without it nothing is sent, and the error lists every match so you can send to one by its exact name. A glob that matches exactly one session still sends, and `subagents:*`, `subagents:<runId>/*` and `workflow:` paths still reach every match without the flag. Migration: add `broadcast: true` to sends meant for every match ([#5202](https://github.com/bastani-inc/atomic/issues/5202))
17
+
18
+ ### Fixed
19
+
20
+ - Fixed concurrent Intercom startups starting duplicate brokers while recovering stale locks. Spawn lock replacement, renewal, handoff and release now share an operating-system advisory mutex and recheck ownership. Lock records are published whole through hard links where supported; otherwise writer markers protect incomplete records without mistaking reused file identities or process IDs for ownership. A resumed spawner refreshes an aged lease before relying on it, and transient lock-read failures are retried so a new lock is not left blocking startup. Broker socket replacement uses generation directories, checks ownership before socket operations, and waits for older brokers' takeover tokens without blocking the event loop. Locks whose holder cannot be checked, including unreadable locks and generation-owner records, are left untouched. When the filesystem can identify the file, they are refused after 30 seconds with recovery advice naming the relevant lock, token, marker files or generation directory. Failures to inspect a file's identity do not accrue a refusal deadline or inherit an earlier one. An idle broker may leave one harmless `broker.sock.replace.lock.gen<N>` directory containing a released marker ([#5220](https://github.com/bastani-inc/atomic/issues/5220))
21
+ - Fixed one Intercom broadcast reaching a session many times when the session hosts finished workflow stages. A `send` to a name glob with `broadcast: true` gives each match its own copy. A finished stage, listed as `closed · reply: post-mortem only`, passes its copy on to the session hosting it. So a broadcast that matched that session and 99 of its finished stages was shown to it 100 times. Every copy of one pattern send now carries the same broadcast id, and a session shows each broadcast once. A finished stage does not pass on a copy its host already has, including a stage that has finished but is not yet released, which passes on a message that arrives after it finished by a different route than a released stage uses. Messages from older versions carry no broadcast id and are delivered as before ([#5291](https://github.com/bastani-inc/atomic/pull/5291), [#5297](https://github.com/bastani-inc/atomic/pull/5297))
22
+ - Fixed a broker restarted on a loaded host sometimes not superseding the instance it replaced ([#5252](https://github.com/bastani-inc/atomic/issues/5252)). Sends to that instance's sessions came back uncertain after the receipt wait for up to 30 s, and asks to a recipient that ended with it were never failed as unavailable. There were three causes:
23
+ - A broker reads its host's identity when it starts. On Windows that runs PowerShell, which a loaded host can keep from answering within 10 s. A broker that missed the identity got a different instance key than the one before it. Host commands that fail to answer are now run up to three times.
24
+ - The killed instance looked alive when the host had given its process id to another process, which Windows does within seconds when many processes start. On Windows a broker now reads when that process started. An earlier instance whose id now belongs to a process that started after it is retired. So is one whose start cannot be read, as when a short-lived process held the id.
25
+ - A broker restarted more than 30 s after its earlier instance last renewed its leases, as a loaded host can delay it, never retired that instance, because its leases had gone stale. Its recipients were then not failed as lost for an hour. Stale leases of an earlier instance are now retired too.
26
+ - Fixed a reply to an ask sometimes being refused with `Pending question route does not authorize this public reply` when the recipient answered at once, for example a released workflow stage answering an ask ([#5252](https://github.com/bastani-inc/atomic/issues/5252)). The broker opens an ask's reply route once its write to the recipient is confirmed, and on a loaded host it could read the reply before that. A reply to an ask whose write is not confirmed yet now waits for the confirmation.
27
+ - Intercom's broker stores run no DDL when their schema is current on PostgreSQL, so a broker connects with a runtime role that has only DML privileges ([#5218](https://github.com/bastani-inc/atomic/issues/5218))
28
+ - Fixed a subagent whose `contact_supervisor` question failed, for example with `Session "<name>" ended before replying` after its supervisor ended, being shown the failure as its supervisor's reply. The call now fails with `Failed: <reason>` instead, whether the subagent was waiting or was released and woken by the failure, and an `interview_request` no longer tries to read the failure as the supervisor's answers ([#5188](https://github.com/bastani-inc/atomic/issues/5188))
29
+ - Fixed an Intercom ask that waited forever, with multi-node routing, when its recipient ended while its broker was killed before recording the departure: no broker learned that the recipient ended, so it looked like a session that might come back. A broker that restarts now marks the sessions its stopped instance hosted as lost until they register again, and an ask to a recipient still lost after 5 minutes (or whose presence went stale with no broker restarting, after an hour, since its host may only be asleep) fails once, for its asker on any broker, with `Session "<name>" is unavailable: its broker stopped and it has not come back within <N> minutes`. The failure carries `retryLater: true`, as asking again later may reach it. A recipient that comes back within that time answers as before, released subagents and sessions that left resumably keep their hold, and a session that comes back after its ask failed cannot answer it a second time ([#5154](https://github.com/bastani-inc/atomic/issues/5154))
30
+ - Fixed an Intercom asker that was told twice that its ask failed, with multi-node routing, when the broker of its ended recipient crashed after queueing the asker's failure but before marking the ask as failed. The asker's own broker then failed the ask again, besides delivering the queued failure. A broker now leaves a failure that is already queued for an ask to that queued copy, and a session ignores a second copy of a reply or failure it already received, confirming it again if it saved it ([#5145](https://github.com/bastani-inc/atomic/issues/5145))
31
+ - Fixed a released subagent's asks that, with multi-node routing, stayed bound to its old session when a shared-storage error interrupted its registration as it woke: their askers never got `peer_rebound`, and the subagent's replies under its new session were refused until it left again. The broker now records the registration's storage steps (ending the subagent's reservations and moving its parked asks) before it runs them, reports a failed step and retries it at each renewal, about every 10 seconds, until it succeeds, giving up after 30 attempts. Moving the asks no longer waits for the reservations to end. When the reservations' order could not be read as the registration began, only the subagent's own capability reservation ends, so a release made meanwhile is never lost. The same holds for a session that turns terminal: when a storage error interrupted failing the asks delivered to it from other nodes, their askers were never told; the broker now retries that the same way ([#5138](https://github.com/bastani-inc/atomic/issues/5138))
32
+ - Fixed Intercom sends answered `queued` or failed with `delivery_failed` although their recipient was connected, in workflows with many stage sessions. The broker sent every presence change to every session of the group at once, so traffic grew with the square of the session count (268,200 frames and 103 MB for one burst of 150 sessions), and receipts and route acknowledgements waited behind it. The broker now gathers presence changes for each recipient for 50 ms and sends one update per changed session with its latest state, holds presence behind a socket's backlog of receipts, acknowledgements and messages for up to a second, and sends nothing for an update that changes nothing a peer sees, such as the identity sync of every Intercom tool call: the same burst now takes 22,350 frames and 8.9 MB. `list` still answers with the latest presence, and the frames keep their shape, so older clients converge on it too ([#5146](https://github.com/bastani-inc/atomic/issues/5146))
33
+ - Fixed an Intercom ask that showed both its reply and "Your ask <id> to <name> failed … ended before replying" when its recipient replied and ended at once. The broker now counts an ask as answered as soon as it sends the reply on, so the recipient ending while the asker is still saving the reply no longer fails it, and a session no longer shows a failure for an ask it already got the reply to. An ask whose recipient ends without replying still fails once ([#5095](https://github.com/bastani-inc/atomic/issues/5095))
34
+ - Fixed sends to a session that is away getting slower the more messages already waited for it, with multi-node routing: to tell the sender its message's place in the queue, the broker read and parsed every message still queued for that session, up to the 64 MiB queue limit, for each send. It now counts the place without reading any queued message, and a send that wakes a released subagent reads only its oldest waiting message ([#4896](https://github.com/bastani-inc/atomic/issues/4896))
35
+ - Fixed two sessions that could both start an Intercom broker when they found the broker gone and its spawn lock left behind at the same moment, for example when every session reconnected after the broker crashed: each could remove the lock the other had just taken. A stale spawn lock is now replaced by one session only, and only while it is still the lock that session found stale, so exactly one broker is started and a broker upgrade still replaces the broker once across sessions. The broker's socket replacement lock now follows the same rule ([#5132](https://github.com/bastani-inc/atomic/issues/5132))
36
+ - Fixed an Intercom ask that, with multi-node routing, could no longer be answered after its asker or its recipient resumed on the other broker. The recipient's reply was refused with "Pending question route does not authorize this public reply", and for an ask between two sessions that had shared a broker, a recipient that then ended failed nothing, so the asker waited forever. A reply is now authorized by the ask's route wherever it is recorded, an away session's asks are kept where either broker answers them, and each ask still gets exactly one outcome: the reply, or one failure when the recipient ends. This also holds for an ask between two connected sessions whose broker crashed, when one of them then comes back on the other broker, and for an ask answered on one broker while another broker that still kept a copy of it was down: the shared state remembers answered and failed asks for 8 days, so that copy is dropped instead of failing the ask again. A reply sent while the broker that keeps its ask's route is down is no longer refused for good: it fails with "Try again shortly" (`route_unavailable`), and is delivered once that broker is back ([#4997](https://github.com/bastani-inc/atomic/issues/4997))
37
+ - Fixed an Intercom reply refused with "Pending question route does not authorize this public reply" although its ask was still pending, when it reached a broker with multi-node routing right after its asker came back, for example after a broker restart: the broker could route to the asker before it had restored the asker's asks, which happens only once the asker's registration is saved to the shared storage. Such a reply now waits for that, and is delivered once the ask is restored. A reply still waiting after 5 seconds is refused with "Try again shortly" and `reasonCode: "route_unavailable"`, and the `intercom` tool marks it `retryLater`, so the reply can be sent again; a reply that no ask authorizes is still refused for good ([#5101](https://github.com/bastani-inc/atomic/issues/5101))
38
+ - Fixed the Intercom broker exiting, disconnecting every session, when it could not remove a delivered-message record because another process held its database write lock (for example an old and a new broker during an upgrade) or the disk failed. The broker now logs the failure and removes the record later, and the delete waits at most 50 ms for the lock instead of stalling every session on the broker for 5 seconds. The sender of a refused or undelivered message still gets its failure at once instead of waiting out its own timeout, and the sender's retry is not refused as uncertain. Fixed a workflow stage that could wait forever for its queued messages when a replaced session's failed Intercom warm-up took the retry slot first: the current session now always keeps its own warm-up retry ([#5096](https://github.com/bastani-inc/atomic/issues/5096))
39
+ - Fixed sends from other brokers that stalled for about 30 seconds, and reported their delivery as uncertain, after a broker was killed and restarted, with multi-node routing. A restarted broker now retires the leases and message claims its killed instance left behind as it starts, once that instance's process has exited on the same host, so a session that registers on it again receives sends from other brokers at once, a message that was in flight when the broker was killed is delivered again once, and a send to a session that has not come back yet is queued for it, as for any session that is away. A live broker on another machine with the same host name and home directory is never affected: machines are told apart by the Linux boot id, or on macOS and Windows by the OS machine id (or one Atomic saves once) with the boot (macOS's boot session id, Windows' exact boot time), so even clones of one image started together differ. Where none of these can be read, including other platforms, a restarted broker waits for the old leases to go stale as before, and without a reliable machine id nothing is retired early ([#5038](https://github.com/bastani-inc/atomic/issues/5038))
40
+ - Intercom messages and session details no longer pass 8-bit control sequences or bidirectional overrides to the terminal
41
+ - Fixed an Intercom ask to a released subagent that never failed when the subagent's owner left. With multi-node routing, an asker connected to another broker was never told; on one broker, an asker that was away, or any asker after a broker restart or crash, was never told either. When the owner ends, goes away or drops the subagent, every asker of an ask the subagent had not answered now gets one "Your ask <id> to <name> failed" message, on whichever broker it is connected to, and an away asker gets it once it is back. Also fixed with multi-node routing: a broker that stopped right after removing an ended recipient's ask route lost the asker's failure; a failure owed for an open ask was dropped when the asker's queue was at its limit; an asker whose replier ended right after replying got both the reply and "ended before replying"; and after a broker restart, a reply held for a released subagent did not wake it. ([#4992](https://github.com/bastani-inc/atomic/issues/4992))
42
+ - Fixed the Intercom broker exiting at startup, so no session could reach Intercom, when its agent directory put `intercom/broker.sock` past the Unix socket path limit (107 bytes on Linux, 103 on macOS), for example under a deep `ATOMIC_CODING_AGENT_DIR`. Node 22 silently bound a truncated path and the broker then failed with `ENOENT` on its own socket; Node 24 refused the path. Such a socket now lives in a private per-user directory, `atomic-intercom-<uid>` under the starting broker's `$XDG_RUNTIME_DIR` or temp directory, created owner-only and refused with an error naming it if another user owns it, others can enter it, or it is a symbolic link. The broker records the path it chose in `broker.sock.path` in the agent directory's `intercom` directory, so sessions with a different runtime or temp directory, such as a terminal and a service, reach the same broker; a recorded path that is not this user's socket for that agent directory is ignored; Windows pipe names past 256 characters are shortened the same way. A broker whose socket vanishes right after it binds now binds again instead of exiting, and a retiring broker removes its socket only under the socket lock, after checking the pid file and socket are still its own ([#5040](https://github.com/bastani-inc/atomic/issues/5040))
43
+ - Fixed multi-node Intercom routing that never started on PostgreSQL storage: the broker created its wake-up table with SQLite syntax, which Postgres rejects, so it reported "Intercom multi-node routing is unavailable" every time ([#5054](https://github.com/bastani-inc/atomic/issues/5054))
44
+ - Fixed Intercom brokers that open multi-node routing state on a new database prefix at the same time failing to start routing: the brokers now take turns creating the tables, indexes and added columns, so each one starts on SQLite, libSQL and PostgreSQL instead of running single-node until a retry succeeds ([#5054](https://github.com/bastani-inc/atomic/issues/5054))
45
+ - In multi-node mode, a session id is now granted and delivered to only the session that registered it
46
+ - Fixed an Intercom ask that was lost when the broker crashed while it handled its asker's departure, for example a released subagent's between turns, or its recipient's: the broker removed the ask's saved record before it saved the ask again for the asker's return. After the restart the recipient's reply was refused with "Session not found", and if the recipient ended, the subagent never learned of it. The same applied to an ask whose recipient closed to be resumed: its asker was neither answered nor told the ask failed. The broker now removes the old record only after the new one is saved, so the asker gets its reply, or one failure, when both are back ([#4829](https://github.com/bastani-inc/atomic/issues/4829))
47
+ - Fixed a failed ask that was lost for good when the asking session crashed after the failure arrived but before it saved it. A failure the broker sends for an ask (its recipient ended or can no longer answer, or the owner of the released subagent it asked left) is now delivered like a reply: it is kept until the asking session confirms it saved it, and sent again, once, when that session comes back. The same holds for a failed ask a woken released subagent is handed. Sessions from before the receipt protocol get the notice they always got ([#5004](https://github.com/bastani-inc/atomic/issues/5004))
48
+ - Fixed a failed-ask message that was lost when the Intercom broker crashed after an ask's recipient went away but before the broker handled the asker's own departure, for example a released subagent. When the recipient came back and ended after the restart, the asker never learned of it. The broker now saves the asker's return address with the ask as soon as the recipient goes away, so the asker gets exactly one "ended before replying" failure when it is back. An asker that is still connected when the recipient ends is told at once, as before, and an ask the broker can neither deliver nor hold is kept rather than dropped ([#4950](https://github.com/bastani-inc/atomic/issues/4950))
49
+ - Fixed an Intercom ask that never failed when, with multi-node routing, its recipient on another broker ended without replying. The asker now gets one "Your ask <id> to <name> failed" message, as on a single broker, also when it was away and comes back, and `pending` no longer lists the ask. A recipient whose owner released it keeps its asks open as before ([#4842](https://github.com/bastani-inc/atomic/issues/4842))
50
+ - Fixed a released subagent's ask that, with multi-node routing, could no longer be answered or failed 10 minutes after the release. Its question is now kept as long as other asks of an away session, so a late reply still reaches the subagent through its owner, and a recipient that ends fails the ask once, through the owner ([#4852](https://github.com/bastani-inc/atomic/issues/4852))
51
+ - Fixed sends to a session that reconnected to the same broker before its old connection was noticed gone being queued for up to 20 seconds instead of delivered, with multi-node routing: the old connection leaving no longer ends the live session's presence ([#4842](https://github.com/bastani-inc/atomic/issues/4842))
52
+ - Fixed a `workflow:` target with many `**` segments stalling the shared Intercom broker for every session on the machine: stage patterns now match in time proportional to pattern length times stage depth, and a `workflow:` target longer than 1024 characters or with more than 64 segments is refused with an error that states the limit ([#4843](https://github.com/bastani-inc/atomic/issues/4843))
53
+ - Fixed Intercom messages and queues that could grow without bound: a message's text is limited to 1 MiB and its text plus attachments to 8 MiB, refused by both the `intercom` tool and the broker; with multi-node routing, one session can have at most 1,000 queued messages or 64 MiB waiting for it, and messages queued for a session that does not return within the 7-day known-session retention expire undelivered. A send past a limit is refused with an error that states it, and messages already queued are kept ([#4896](https://github.com/bastani-inc/atomic/issues/4896))
54
+ - Fixed an Intercom ask between two connected sessions that could no longer be answered or failed after the broker restarted, whether through `atomic intercom restart`, a lost socket path, SIGTERM or a crash. The recipient's reply was refused with "Pending question route does not authorize this public reply", and if the recipient ended, the asker waited forever. The broker now writes each live ask to its durable away-ask file when the ask is recorded, including asks parked for a released subagent and failed-ask messages held for one, and removes it once the ask is answered, failed or taken up. The next broker keeps these asks as it keeps away asks. The reply is accepted, or the asker gets exactly one failure when the recipient ends. After a restart, only the session that proves it is the asker or the recipient by its return address takes the ask up, answers it or fails it. A released subagent's unanswered asks are kept the same way, so after a restart the subagent gets its reply, or one failure, when it is back ([#4829](https://github.com/bastani-inc/atomic/issues/4829), [#4852](https://github.com/bastani-inc/atomic/issues/4852))
55
+ - Fixed Intercom asks and held replies that the broker silently dropped once 10,000 were waiting for away sessions on the machine: the asker waited forever, and the recipient's later reply was refused. Nothing waiting for an away session is dropped to make room any more. Instead, at most 1,000 asks wait for one away recipient; an ask past that is not kept, and its asker gets one "Your ask <id> to <name> failed" message at once saying the recipient's queue is full. A reply held for an away asker always takes the place of the ask it answers, so it is never refused or dropped. A released subagent's ask refused because the broker's 10,000 released-subagent reply routes are full now fails to the subagent the same way, through its owner, which wakes it, instead of leaving it waiting. A session that ends or leaves with many asks waiting on it no longer stalls the broker for other sessions (on Windows, long enough for them to time out): the broker now saves those asks and their failures in one write instead of one per ask ([#4996](https://github.com/bastani-inc/atomic/issues/4996))
56
+ - Security: Intercom messages from other sessions can no longer control your terminal. Message text, headings, sender names and paths, attachments, session lists and tool results are shown without their terminal control sequences, and the broker closes a connection that declares a frame larger than 64 MiB instead of buffering it ([#4889](https://github.com/bastani-inc/atomic/issues/4889))
57
+ - Fixed held sends to departed children and sends waiting on a recipient's save being held longer, or released early, after a wall-clock step: their waits now use the monotonic clock ([#5058](https://github.com/bastani-inc/atomic/issues/5058))
58
+ - Fixed a received Intercom message being added whole to the recipient's context and saved session: a message whose text and attachments total more than 50 KB, such as one from an older Atomic version without the send limits, is now saved to a file in the session's directory, and the recipient sees a short preview with the file's path, like an oversized tool result. Live, held, and resumed messages are all bounded ([#4907](https://github.com/bastani-inc/atomic/issues/4907))
59
+ - Fixed Intercom message previews, pending-ask lists, recovered message bodies and restoring-recipient reasons cutting an emoji in half at the length limit, which showed up as `�` or a raw `\ud83d` escape. The broker log excerpt shown when the broker fails to start no longer opens with `�` ([#5097](https://github.com/bastani-inc/atomic/issues/5097))
60
+ - Fixed replies held for an Intercom session from before the receipt protocol being dropped when its connection closed while it registered: they are now kept and delivered when it connects again ([#5149](https://github.com/bastani-inc/atomic/issues/5149))
61
+ - Fixed sends to a session that is away slowing down, with multi-node routing, as larger messages queued for it: to check the recipient's queue limit of 1,000 messages or 64 MiB, the broker read every message already queued for it, up to the whole 64 MiB, on each send. It now checks the limit without reading any queued message. Each queued send also takes one database commit instead of two, which halves its disk syncs, and a send refused at the limit writes nothing ([#4896](https://github.com/bastani-inc/atomic/issues/4896))
62
+ - Fixed an Intercom broadcast to many sessions missing most of them. A `send` to a name glob with `broadcast: true` looked up the session list again for each recipient, so one broadcast that matched 232 sessions made 232 lookups at once, and 132 of its sends failed with `List sessions timeout`. A pattern send now looks up the session list once, finds every recipient in it, and sends to at most 16 recipients at a time. The result still lists each recipient's outcome ([#5297](https://github.com/bastani-inc/atomic/pull/5297))
63
+
7
64
  ## [0.9.88-alpha.1] - 2026-11-16
8
65
 
9
66
  ### Added
@@ -9047,9 +9047,12 @@ function sessionTargetFailureReason(target, resolution) {
9047
9047
  return "Session not found";
9048
9048
  }
9049
9049
  async function resolveSessionTargetId(client, nameOrId) {
9050
- const sessions = [...await client.listSessions()];
9051
- if (client.supervisorSessionId && !sessions.some((session) => session.id === client.supervisorSessionId)) {
9052
- sessions.push({ id: client.supervisorSessionId });
9050
+ return resolveSessionTargetIdIn(await client.listSessions(), client.supervisorSessionId, nameOrId);
9051
+ }
9052
+ function resolveSessionTargetIdIn(listed, supervisorSessionId, nameOrId) {
9053
+ const sessions = [...listed];
9054
+ if (supervisorSessionId && !sessions.some((session) => session.id === supervisorSessionId)) {
9055
+ sessions.push({ id: supervisorSessionId });
9053
9056
  }
9054
9057
  const resolution = resolveSessionTarget(sessions, nameOrId);
9055
9058
  if (resolution.kind === "resolved")
@@ -9800,6 +9803,33 @@ var init_peer_disconnect_routing = __esm(() => {
9800
9803
  };
9801
9804
  });
9802
9805
 
9806
+ // dist/builtin/intercom/route-connect-gate.ts
9807
+ function createConcurrencyGate(limit) {
9808
+ let active = 0;
9809
+ const waiting = [];
9810
+ const release = () => {
9811
+ const next = waiting.shift();
9812
+ if (next === undefined)
9813
+ active -= 1;
9814
+ else
9815
+ next();
9816
+ };
9817
+ return {
9818
+ async run(operation) {
9819
+ if (active < limit)
9820
+ active += 1;
9821
+ else
9822
+ await new Promise((resolve) => waiting.push(resolve));
9823
+ try {
9824
+ return await operation();
9825
+ } finally {
9826
+ release();
9827
+ }
9828
+ }
9829
+ };
9830
+ }
9831
+ var ROUTE_CLIENT_CONNECT_CONCURRENCY = 4;
9832
+
9803
9833
  // dist/builtin/intercom/project-group.ts
9804
9834
  import { spawnSync } from "node:child_process";
9805
9835
  import { existsSync as existsSync4 } from "node:fs";
@@ -10592,7 +10622,8 @@ function registerIntercomTool(pi, deps) {
10592
10622
  }
10593
10623
  recipients = matches.map((session) => ({
10594
10624
  target: session.id,
10595
- label: session.name ? `${session.name} (${session.id})` : session.id
10625
+ label: session.name ? `${session.name} (${session.id})` : session.id,
10626
+ sendTo: session.id
10596
10627
  }));
10597
10628
  if (recipients.length > 1 && !request.broadcast) {
10598
10629
  return patternError(multipleMatchesRefusal(pattern.pattern, recipients));
@@ -10602,7 +10633,17 @@ function registerIntercomTool(pi, deps) {
10602
10633
  if (children.length === 0) {
10603
10634
  return patternError(`This session has no running, released or paused subagents${pattern.runId === undefined ? "" : ` in run ${pattern.runId}`} to send to.`);
10604
10635
  }
10605
- recipients = children.map((child) => ({ target: child.childName, label: `${child.childName} (${child.childId})` }));
10636
+ const sessions = await client.listSessions();
10637
+ recipients = children.map((child) => {
10638
+ const base = { target: child.childName, label: `${child.childName} (${child.childId})` };
10639
+ if (parseWorkflowStageTarget(child.childName) !== undefined)
10640
+ return { ...base, sendTo: child.childName };
10641
+ try {
10642
+ return { ...base, sendTo: resolveSessionTargetIdIn(sessions, client.supervisorSessionId, child.childName) ?? child.childName };
10643
+ } catch (error) {
10644
+ return { ...base, refusal: getErrorMessage(error) };
10645
+ }
10646
+ });
10606
10647
  }
10607
10648
  return { content: [], isError: false, details: {} };
10608
10649
  } catch (error) {
@@ -10632,8 +10673,13 @@ ${request.message}${attachmentText}`);
10632
10673
  return { content: [{ type: "text", text: "Message cancelled by user" }], isError: false, details: {} };
10633
10674
  }
10634
10675
  const broadcastId = randomUUID8();
10676
+ const sends = createConcurrencyGate(PATTERN_SEND_CONCURRENCY);
10635
10677
  const outcomes = await Promise.all(recipients.map(async (recipient) => {
10636
- const result = await request.sendOne(recipient.target, broadcastId);
10678
+ if (recipient.sendTo === undefined) {
10679
+ return { target: recipient.target, label: recipient.label, outcome: "refused", reason: recipient.refusal ?? "Session not found" };
10680
+ }
10681
+ const sendTo = recipient.sendTo;
10682
+ const result = await sends.run(() => request.sendOne(recipient.target, sendTo, broadcastId));
10637
10683
  const messageId = typeof result.details.messageId === "string" ? result.details.messageId : undefined;
10638
10684
  const base = { target: recipient.target, label: recipient.label, ...messageId === undefined ? {} : { messageId } };
10639
10685
  if (!result.isError)
@@ -10751,7 +10797,9 @@ one shared membership; contact_supervisor remains the only cross-group path.`,
10751
10797
  return { content: [{ type: "text", text: sizeError }], isError: true, details: { error: true } };
10752
10798
  }
10753
10799
  }
10754
- const executeAttempt = async (retryToken, _signal, retries = 0, fanOutRecipient, broadcastId) => {
10800
+ const executeAttempt = async (retryToken, _signal, retries = 0, fanOut) => {
10801
+ const fanOutRecipient = fanOut?.recipient;
10802
+ const broadcastId = fanOut?.broadcastId;
10755
10803
  const to = fanOutRecipient ?? params.to;
10756
10804
  if (retryToken !== undefined) {
10757
10805
  if (action !== "send" && action !== "ask" && action !== "reply") {
@@ -11054,7 +11102,7 @@ ${message}${attachmentText}`);
11054
11102
  details: { error: true, delivered: false, reason: goneChild }
11055
11103
  };
11056
11104
  }
11057
- const sendTo = await resolveRecipient(connectedClient, to);
11105
+ const sendTo = fanOut?.sendTo ?? await resolveRecipient(connectedClient, to);
11058
11106
  if (_signal?.aborted) {
11059
11107
  const retained = retainInconclusiveRetry(retryIdentities, retryIdentity);
11060
11108
  retryIdentity = undefined;
@@ -11796,7 +11844,7 @@ Your asks awaiting a reply: ${outboundAsks().pending().length}`
11796
11844
  broadcast: params.broadcast === true,
11797
11845
  signal,
11798
11846
  ctx,
11799
- sendOne: (recipient, broadcastId) => runIntercomOperation((token, attemptSignal, retries) => executeAttempt(token, attemptSignal, retries, recipient, broadcastId), (token) => retryIdentities.discard(token), signal)
11847
+ sendOne: (recipient, sendTo, broadcastId) => runIntercomOperation((token, attemptSignal, retries) => executeAttempt(token, attemptSignal, retries, { recipient, sendTo, broadcastId }), (token) => retryIdentities.discard(token), signal)
11800
11848
  });
11801
11849
  }
11802
11850
  if (action !== "send" && action !== "ask" && action !== "reply")
@@ -11826,6 +11874,7 @@ Your asks awaiting a reply: ${outboundAsks().pending().length}`
11826
11874
  renderResult: renderIntercomResult
11827
11875
  });
11828
11876
  }
11877
+ var PATTERN_SEND_CONCURRENCY = 16;
11829
11878
  var init_intercom_tool = __esm(() => {
11830
11879
  init_dist2();
11831
11880
  init_outbound_asks();
@@ -13804,7 +13853,7 @@ var REMEMBERED_BROADCASTS = 1024;
13804
13853
  function isSubagentRelayHandoff(entry) {
13805
13854
  return entry.from.id === "subagent-control" || entry.from.id === "subagent-result";
13806
13855
  }
13807
- function registerLateStageMessageRouter(pi, admission, getReplyTracker, getOwnerGroup = () => DEFAULT_GROUP) {
13856
+ function registerLateStageMessageRouter(pi, admission, getReplyTracker, getOwnerGroup = () => DEFAULT_GROUP, broadcastCopies = new BroadcastCopies) {
13808
13857
  pi.events.on(LATE_STAGE_MESSAGE_EVENT, (data) => {
13809
13858
  if (!data || typeof data !== "object")
13810
13859
  return;
@@ -13832,6 +13881,8 @@ function registerLateStageMessageRouter(pi, admission, getReplyTracker, getOwner
13832
13881
  }
13833
13882
  if (entry.channel !== "supervisor" && !isSubagentRelayHandoff(entry) && normalizeGroup(entry.from.group) !== normalizeGroup(getOwnerGroup()))
13834
13883
  continue;
13884
+ if (!broadcastCopies.claim(entry.from, entry.message))
13885
+ continue;
13835
13886
  const result = admission.admit(entry.from, entry.message);
13836
13887
  if (result.kind === "pending") {
13837
13888
  joined.push(result.completion);
@@ -14230,33 +14281,6 @@ var init_route_retry_waiters = __esm(() => {
14230
14281
  init_recoverable_disconnect();
14231
14282
  });
14232
14283
 
14233
- // dist/builtin/intercom/route-connect-gate.ts
14234
- function createConcurrencyGate(limit) {
14235
- let active = 0;
14236
- const waiting = [];
14237
- const release = () => {
14238
- const next = waiting.shift();
14239
- if (next === undefined)
14240
- active -= 1;
14241
- else
14242
- next();
14243
- };
14244
- return {
14245
- async run(operation) {
14246
- if (active < limit)
14247
- active += 1;
14248
- else
14249
- await new Promise((resolve) => waiting.push(resolve));
14250
- try {
14251
- return await operation();
14252
- } finally {
14253
- release();
14254
- }
14255
- }
14256
- };
14257
- }
14258
- var ROUTE_CLIENT_CONNECT_CONCURRENCY = 4;
14259
-
14260
14284
  // dist/builtin/intercom/released-stage-peers.ts
14261
14285
  import { randomUUID as randomUUID10 } from "node:crypto";
14262
14286
  function isReleasedStageAnnouncement(value) {
@@ -15004,7 +15028,7 @@ function piIntercomExtension(pi, testOverrides = {}) {
15004
15028
  addTarget(buildPresenceIdentity(pi, currentSessionId).name);
15005
15029
  return Boolean(resolvedTo && activeClient?.sessionId && resolvedTo === activeClient.sessionId) || targets.has(to.trim().toLowerCase());
15006
15030
  }
15007
- registerLateStageMessageRouter(pi, inboundDeliveries, () => replyTracker, currentIntercomGroup);
15031
+ registerLateStageMessageRouter(pi, inboundDeliveries, () => replyTracker, currentIntercomGroup, broadcastCopies);
15008
15032
  const sendIncomingMessage = createIncomingMessageSender({
15009
15033
  pi,
15010
15034
  currentGeneration: () => runtimeGeneration,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/intercom",
3
- "version": "0.9.88-alpha.1",
3
+ "version": "0.9.88",
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": [
@@ -91,10 +91,22 @@ export async function resolveSessionTargetId(
91
91
  client: SessionListingClient,
92
92
  nameOrId: string,
93
93
  ): Promise<string | null> {
94
- const sessions: Pick<SessionInfo, "id" | "name">[] = [...await client.listSessions()];
94
+ return resolveSessionTargetIdIn(await client.listSessions(), client.supervisorSessionId, nameOrId);
95
+ }
96
+
97
+ /**
98
+ * Resolve a target through a session list already fetched, as `resolveSessionTargetId` does through a fresh one. A
99
+ * pattern send resolves all its recipients from one list rather than fetching one per recipient.
100
+ */
101
+ export function resolveSessionTargetIdIn(
102
+ listed: readonly Pick<SessionInfo, "id" | "name">[],
103
+ supervisorSessionId: string | null | undefined,
104
+ nameOrId: string,
105
+ ): string | null {
106
+ const sessions: Pick<SessionInfo, "id" | "name">[] = [...listed];
95
107
  // #2603: isolated children still know their broker-authorized supervisor ID.
96
- if (client.supervisorSessionId && !sessions.some((session) => session.id === client.supervisorSessionId)) {
97
- sessions.push({ id: client.supervisorSessionId });
108
+ if (supervisorSessionId && !sessions.some((session) => session.id === supervisorSessionId)) {
109
+ sessions.push({ id: supervisorSessionId });
98
110
  }
99
111
  const resolution = resolveSessionTarget(sessions, nameOrId);
100
112
  if (resolution.kind === "resolved") return resolution.session.id;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.9.88-alpha.1",
3
+ "version": "0.9.88",
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,56 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.88] - 2026-11-16
6
+
7
+ ### Added
8
+
9
+ - Single and parallel `subagent` calls, and each parallel task, accept `worktree: { branch, base?, path? }`: before the child starts, the branch is checked out in a worktree at `path` (default `.atomic/worktrees/<branch>`), created from `base` (default the upstream, or `HEAD`) or reused when that branch is already checked out there. The call is refused before launch when the branch is checked out elsewhere or the path holds something else. Unlike `worktree: true`, a named worktree and its branch are never removed; it is recorded with the child, so the restore notice names it and resume continues in it ([#5202](https://github.com/bastani-inc/atomic/issues/5202))
10
+
11
+ ### Changed
12
+
13
+ - Resuming a subagent whose session was compacted reads its session from the latest compaction instead of its whole history; its task transcript reads the earlier entries when opened ([#5249](https://github.com/bastani-inc/atomic/issues/5249))
14
+ - A subagent's call heading is one line, `Agent(<name> · <first line of its task>)`, and its block in the chat is shorter. While it runs: its last three tool calls, with older ones folded into `… +N tool uses`, and `Running · <time> · ↓ <tokens>`. Once settled: one line with its outcome and time, the result's first line, and the expand key for the prompt, tool calls and full result ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
15
+ - The bundled `worker`, `debugger` and `code-simplifier` agents no longer stop partway through a task because their conversation grew long, reporting it as completed and suggesting a fresh run. Atomic compacts long conversations automatically, so they keep working until the task is done, and `worker` and `debugger` ask their supervisor when only its decision blocks them.
16
+ - A launch whose `cwd` does not exist is refused before any child starts, and the error says the directory may still be being created by a parallel tool call in the same turn: launch after that call returns, or use `worktree: { branch, base?, path? }` ([#5202](https://github.com/bastani-inc/atomic/issues/5202))
17
+ - Interrupting a background subagent's turn from its chat (Esc) leaves it running in the same session, waiting for your next message, instead of ending it ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
18
+
19
+ ### Fixed
20
+
21
+ - Fixed concurrent launches of one named worktree failing with a raw git error on Windows, refusing a worktree another launch is still creating, or deleting its checkout directory ([#5202](https://github.com/bastani-inc/atomic/issues/5202)). Creation locks apply per target path and branch, so slow checkouts do not block launches on other branches or paths, and reusing an existing or user-locked worktree does not wait on unrelated checkouts. Concurrent launches for the same target wait for the checkout to finish and reuse it without blocking the session's event loop. Waiting launches show progress and can be cancelled, cancellation or host exit stops the active checkout and its attached hooks, and incomplete checkouts or pending reference updates left by an interrupted add are refused immediately with unlock, removal, prune and stale-lock recovery guidance instead of being reused empty. Recovery never attributes an external checkout to Atomic's failed add, and external adds are waited for across Git's translated initialization markers. A checkout hook that synchronously creates another named worktree for the same branch or path is refused immediately with `WorktreeReentryError` while unrelated targets in the same repository succeed, and permanent Git and filesystem errors fail promptly across locales while preserving the caller's `LANG` and `LC_ALL` for hooks and filters. A background hook can launch the same target once the original checkout releases its locks. New branch start points, including `HEAD` and `:/message` searches, resolve in the caller's worktree, and checkout locks follow Git-created directory sharing permissions.
22
+ - Fixed a resumed subagent dropping its task without answering it when a turn ended before the task was sent, such as one an extension's interrupting message started while the resume was delivering held messages, or a chat message after Esc during its replay of an interrupted delivery. The child keeps accepting messages until it has its task, answers it, and completes once every message it accepted is answered. A finished subagent's chat that already resumed its child once also stays writable after a reload, and resumes the child again ([#5224](https://github.com/bastani-inc/atomic/issues/5224)).
23
+ - Fixed an interrupted subagent staying running after its own background work wakes it and it replies, including a wake that finishes before the interrupted turn returns. Pressing Esc as a turn starts, including while a message is preparing it, also leaves the child waiting for its next message. The task waits for any messages accepted while a later turn settles to be answered, then completes and delivers its result. Finished subagent chats can also resume their child with the default isolated engine, and keep reaching it across later resumes and workflow-stage extension reloads ([#5224](https://github.com/bastani-inc/atomic/issues/5224)).
24
+ - Fixed an interrupted subagent becoming unreachable, or aborting an unrelated later turn, when a message could not be saved before its turn started. Fixing the storage problem and sending another message now lets it continue, and a newer interrupting message is no longer aborted in place of the interrupted turn. Interrupting a resumed child's replay of an interrupted delivery also leaves it available for the next message. A failed JSONL artifact write no longer prevents the child from completing ([#5224](https://github.com/bastani-inc/atomic/issues/5224)).
25
+ - Fixed an interrupted subagent ignoring Intercom interrupt messages and batches of messages from extensions. An extension's interrupting message now completes the task when answered, or leaves the child waiting if that turn is interrupted again ([#5224](https://github.com/bastani-inc/atomic/issues/5224)).
26
+ - Fixed restoring a stage's background subagent after its workflow run resumed sometimes failing with `child-record-unreadable` ("which is not open in this process"), though the resumed stage had the subagent's session open ([#5252](https://github.com/bastani-inc/atomic/issues/5252)). The record was read only through the copy of the session that saved it. Once that copy was garbage-collected, a copy opened later was never used. Every open copy of the session can now read it.
27
+ - Fixed a subagent whose final answer its session could not save, for example on a full disk, being reported as completed with no result ([#5210](https://github.com/bastani-inc/atomic/issues/5210)). It now fails with a cause that names the storage error. Its completion card, `/tasks` output and transcript, and its parent's result still show the answer it gave. Resuming it continues after that answer, which its session then holds once.
28
+ - Fixed a long supervising session slowing down until new subagents failed to start with `session-start-timeout` in phase `setup` ([#5186](https://github.com/bastani-inc/atomic/issues/5186)). The cost of a session now follows the subagents running in it, not every one it ever launched:
29
+ - A finished subagent no longer keeps its whole history in memory, or the text of every skill file it loaded. `/tasks`, its transcript, its completion card and `resume` read its history back from its session file when they need it. Reading it never writes: if the file was moved or deleted, `/tasks` and the completion card still show its prompt and answer, its transcript says the history is unavailable, and `resume` reports the missing file.
30
+ - A finished subagent no longer leaves a 10-minute timer behind. The startup cleanup scans now run once per Atomic process, not once per subagent.
31
+ - A finished subagent's output is no longer kept by its run after it has been delivered. Its result stays on disk with the run's artifacts.
32
+ - Looking up a subagent by id no longer lists every run's children, and reading a task's record no longer copies the record of every task the session keeps.
33
+ With 500 subagents launched in batches of 12 (a scripted model, each subagent reading a 64 KiB file twice), the session's heap grew 59 MB between 48 and 500 finished subagents before the fix and 9 MB after it. A new subagent took 2.6 s to start with 500 finished, against 0.44 s with 48, before the fix, and 0.62 s against 0.32 s after it.
34
+ - Subagent artifacts written outside a session now use a directory only the current user owns
35
+ - Fixed tool results a wake or a resume brings a released subagent being lost or delivered twice ([#5012](https://github.com/bastani-inc/atomic/issues/5012)). Pausing or quitting it before it saved them no longer deletes them: only the results it saved are cleared, and the rest are handed over once when it resumes, also when they came batched with a `resume`. Results it saved before Atomic closed, or before its run failed, are reported as saved as soon as they are written and are no longer given to it again, as "late" results, when it is restored or woken.
36
+ - Fixed a detached call that a wake answered "still running" being forgotten across an Atomic restart ([#5014](https://github.com/bastani-inc/atomic/issues/5014)). The subagent's record now keeps such calls, across later runs and releases, until the result arrives; after a restart the subagent is told once that the call was interrupted, whether the restart came before or after it saved the wake's results, and a subagent that had already finished is woken to hear it.
37
+ - Fixed a parallel `worktree: true` task whose change was larger than 1 MiB being reported as having no changes and its worktree, with all its work, being deleted. Git now writes each task's patch straight to its file, so a change of any size is saved in full and the summary lists every task. When a diff cannot be captured, the worktree is kept and the summary names it, and it is removed only once a later capture succeeds. A `.worktreeinclude` file such as `.env` is also copied into a new worktree again in a repository with an installed `node_modules`, where it was silently skipped; when git cannot list those files, the worktree is still created and the summary warns, naming the worktree and git's reason ([#4876](https://github.com/bastani-inc/atomic/issues/4876))
38
+ - Fixed pausing or quitting a released subagent racing with its wake: a wake that has not started the subagent again yet now keeps its results for resume instead of running it, and pause or quit stops a run the wake already started. Before, pause or quit reported success while the subagent ran again ([#4845](https://github.com/bastani-inc/atomic/issues/4845))
39
+ - Fixed `pause` and `quit` with `all: true` overwriting a subagent's record with an old copy, which showed a running subagent as paused or lost a tool result held for its resume ([#4845](https://github.com/bastani-inc/atomic/issues/4845))
40
+ - Fixed a subagent that was released, woken, and then paused while waiting on nothing still showing the calls it waited on before it was woken. Sends to it were held with no answer instead of being told it is stopped and how to resume it ([#4845](https://github.com/bastani-inc/atomic/issues/4845))
41
+ - Fixed worktree cleanup leaving a setup hook's synthetic link whose name starts with two dots (for example `..cache`) in place before removing the worktree. On older Git for Windows, removal could then delete the main checkout's copy through the link ([#4836](https://github.com/bastani-inc/atomic/issues/4836))
42
+ - Fixed a released subagent being told a detached tool call (such as a long `bash`) was "still running" after Atomic restarted, though the call died with the old process and its result never arrived: when a reply, deadline or resume wakes the subagent, that call is now reported interrupted so it can re-run it. An extension `/reload` in the same process is not a restart: a call still running then is neither reported interrupted nor started again ([#4848](https://github.com/bastani-inc/atomic/issues/4848))
43
+ - Fixed a subagent launched with `heartbeatMs` (including `0`, which disables heartbeats) falling back to the 15-minute default after a wake, resume or restore: the cadence is now recorded with the subagent and applied on every relaunch ([#4856](https://github.com/bastani-inc/atomic/issues/4856))
44
+ - Fixed truncated subagent output, partial findings after a cancellation, and the inline output preview splitting an emoji or other multibyte character at the cut, which showed up as `�` or a raw `\ud83d` escape; truncation now always ends on a whole character. The truncation note also reports the true number of lines shown instead of "1" when none are ([#4938](https://github.com/bastani-inc/atomic/issues/4938))
45
+ - Fixed a woken or resumed released subagent ignoring its run's concurrency limit: it now waits for a slot in its run, through a sibling's scheduler when one still runs or a limiter rebuilt from the run's recorded limit when none does, without keeping a scheduler per released subagent. While it waits for its run, it does not hold one of the `parallel.runningCapacity` wake slots, so released subagents of other runs still wake at once ([#4856](https://github.com/bastani-inc/atomic/issues/4856))
46
+ - Fixed parallel subagent tasks with `progress` enabled writing `progress.md` into the project directory, which overwrote a project's own `progress.md`: the run's shared progress file now lives in run-scoped artifact storage, like single-agent progress ([#4976](https://github.com/bastani-inc/atomic/issues/4976))
47
+ - Fixed a foreground subagent's result sometimes reaching the orchestrator twice, once as the tool result and again as an Intercom message, when Intercom took longer than 500 ms to deliver it or could not confirm delivery. Each result now arrives exactly once: if Intercom has not started delivering it in time, the tool result carries it and the Intercom delivery is cancelled; once Intercom is delivering it, the tool result is a short receipt, which says so when delivery could not be confirmed and points to the output artifacts and sessions ([#5018](https://github.com/bastani-inc/atomic/issues/5018))
48
+ - Fixed a background subagent released while it waited on a long tool call, such as a `bash` wait without `budgetMs`, being reported to its parent as paused and awaiting resume. Its notice now says it was released while waiting on that call and wakes by itself when the call finishes, with no resume instruction; `/tasks` and the subagent tool show it as released. A subagent you pause or quit is still reported as paused ([#5031](https://github.com/bastani-inc/atomic/issues/5031))
49
+ - Fixed a message addressed to a restored subagent by its Intercom id from before the restart going out unchecked when another subagent was still being restored: the id is now recognized as soon as that subagent's own session reopens, so the sender is told it is still being restored, has not reconnected, or is gone ([#5097](https://github.com/bastani-inc/atomic/issues/5097))
50
+ - Fixed subagent task summaries, tool-call and argument previews, error details and run history cutting an emoji or other character outside the Basic Multilingual Plane in half, which showed up as `�` or a raw `\ud83d` escape ([#5097](https://github.com/bastani-inc/atomic/issues/5097))
51
+ - Fixed a builtin agent with a `thinking` override (for example `agentOverrides.worker.thinking`) ignoring a call's `modelConstraints.allowedProviders` or `excludedProviders` in favour of your `modelRouting` provider settings. The launch could fail with "Auto routing has no eligible model/effort pairs", or model fallback could pick from the settings' providers instead of the call's. The call's provider lists now apply to builtin agents just as they do to your own agents ([#5046](https://github.com/bastani-inc/atomic/issues/5046))
52
+ - Fixed a subagent launch failing when it named its model in a different letter case, such as `Anthropic/claude-opus-4-8`, even though the same name works in `fallbackModels` and `--model`. Subagent model names now resolve the same way as those ([#5046](https://github.com/bastani-inc/atomic/issues/5046))
53
+ - Fixed pausing or quitting a `worktree: true` subagent at the moment it finished on its own leaving its worktree on disk as if it were paused. Its edits are now saved as a patch and its worktree removed, as for any finished subagent ([#5172](https://github.com/bastani-inc/atomic/issues/5172))
54
+
5
55
  ## [0.9.88-alpha.1] - 2026-11-16
6
56
 
7
57
  ### Added
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.9.88-alpha.1",
3
+ "version": "0.9.88",
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": [
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.88] - 2026-11-16
8
+
9
+ ### Fixed
10
+
11
+ - Temporary extension installs and the GitHub clone cache now use directories only the current user owns
12
+ - GitHub URLs are now validated, clones are confined to the clone directory, and files read from a cloned GitHub repository are confined to the clone.
13
+ - Fetching a PDF no longer overwrites existing files in `~/Downloads`. Each extraction is saved to a new file named after the document title, with `-2`, `-3`, and so on added when that name is taken, so PDFs fetched together never share a file. Titles in any script are kept in the file name instead of becoming `document`; only characters that are unsafe in file names are removed. The 5 MB page and 20 MB PDF size limits now apply while the response is downloaded, so a large response sent without a `Content-Length` header fails with `Response too large` instead of being read in full. When fetching a local, private, or intranet address (for example `localhost`, `127.0.0.1`, `10.x.x.x`, `*.local`, or a host name without a dot) or a URL with embedded credentials fails, the URL is no longer sent to the r.jina.ai or Gemini fallbacks; the original error is returned instead ([#4898](https://github.com/bastani-inc/atomic/issues/4898)).
14
+ - Analysing a local video now reports why it failed. A Gemini API error, such as a 429 quota error, a rejected key or upload, or a file that failed or timed out in processing, is shown with its status and message (with the API key removed) instead of a request to set `GEMINI_API_KEY`. A video larger than `video.maxSizeMB` (50 MB by default) reports that limit, and a video path with `video.enabled` set to `false` says video extraction is disabled, instead of both failing with `Invalid URL` ([#4898](https://github.com/bastani-inc/atomic/issues/4898)).
15
+ - Private URLs are no longer sent to the r.jina.ai or Gemini fallbacks in any notation. Host names are matched case-insensitively, decimal, octal, hexadecimal, and shortened IPv4 addresses and IPv6 forms that embed a private IPv4 address are recognized, carrier-grade NAT (`100.64.0.0/10`) and IPv6 site-local (`fec0::/10`) addresses count as private, and `*.lan`, `*.home.arpa`, and `*.localdomain` hosts count as intranet hosts. A URL whose redirects lead to a private address is also kept away from the fallbacks. URLs that are not `http` or `https` are refused with `Unsupported URL scheme` instead of being fetched or sent to a fallback ([#5127](https://github.com/bastani-inc/atomic/issues/5127)).
16
+
7
17
  ## [0.9.88-alpha.1] - 2026-11-16
8
18
 
9
19
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/web-access",
3
- "version": "0.9.88-alpha.1",
3
+ "version": "0.9.88",
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": [