Repository navigation
v0.171.5
Install or update: npm i -g cotal-ai@0.171.5
Restart running Cotal processes and agent sessions to use the new code.
What changed
- Repeating a loopback dashboard start refreshes the private single-use link even without a display or with
--no-open, while existing browser sessions stay signed in. - The shell installer keeps the previous Cotal release when a downgrade is incompatible with its connector state or fails during reconciliation.
- The launch watcher reclaims temporary files without spinning when the agent's
PATHdoes not includesleeporrm. cotal manager statusnow reports the running stack manager instead of a previously stopped manager service.- Wait a full hour before automatically installing a newly seen npm release, even if npm changes the latest version during another release's hold.
- Repair writable connector paths before self-update, identify missing or interrupted npm, and make interrupted connector seeds and updates safe to retry.
- Repair a verified Linux background service whose recorded program is missing, without starting it if it was disabled.
- Stop the shell installer before it changes anything if a directory occupies the launcher path, and explain how to choose another location.
- Restore reliable smoke coverage for foreground launches, authorization refusals, and roster diagnostics without changing CLI behavior.
- Self-update writes journals atomically and names damaged journals while cleaning abandoned staging without removing journals needed for recovery.
- Self-update checks extension peers against the selected Cotal release so a missing archive from a newer release cannot block the update.
- A session on a websocket mesh now reconnects after its connection dies without a reset, such as during a laptop sleep, and
cotal_disconnectno longer hangs while the mesh is unreachable. - Move the endpoint's anycast request rail out of
endpoint.tsinto its own internal component. - Move the endpoint's durable consumers out of
endpoint.tsinto their own internal component. - Drop the endpoint's private forwarders that only other internal components called; those components now reach the owning component directly.
- Move the endpoint's agent-side durable membership out of
endpoint.tsinto its own internal component. - Move the endpoint's principal serve and
promptspresence internals into an internal component. - Keep the previous CLI and its matching connectors usable when a self-update is interrupted during the final version check.
- Use the current CLI launcher in stopped-space restart hints and related space recovery commands.
- Explain how to keep only the built-in
ptyruntime during guided setup. - Move the mesh agent's channel members (channel briefing, readable set, channel info, channel listing, join and leave) and
isLocalServerout ofagent.tsinto an internalagent-channels.ts. - Move the mesh agent's outgoing messaging (channel send and its receipt, role anycast with its status and cancel, DM with peer resolution, and the reply correlation behind them) with
closeChannelNamesandpresenceReadConditionout ofagent.tsinto an internalagent-messaging.ts. - Move the mesh agent's manager-facing commands (spawn, model inspection, manager endpoint listing, despawn, run, persona define/list/show, history purge) and
SPAWN_TIMEOUT_MSout ofagent.tsinto an internalagent-supervision.ts. - Move the mesh agent's run turns (native participation lease, turn relay and pull, turn surfacing, once-task claims and reports, and the yield) with their module helpers out of
agent.tsinto an internalagent-turns.ts. - A held
cotal_connectno longer asks the host one extra time just after its hold ends. - Move the service host's caller policy (caller grants, caller revocation and the policy reads) out of
service-host-ops.tsinto an internalservice-host-caller.ts. - Move the service host's decisions (the shared proposal closes, decide and revoke) out of
service-host-ops.tsinto an internalservice-host-decisions.ts. - Move the service host's S2-A record kernel (record keys and ids, keyed reads and writes, capacity release, operation settlement and debt, and the result arms) out of
service-host-ops.tsinto an internalservice-host-kernel.ts. - Self-update names unreadable prepared space records, explains how to restore access, and reports that their continuity was not checked.
cotal update --checknow reports when an interrupted connector seed needscotal ext seed --repair.- Move the delivery daemon's credential source and root resolution (the store and key that hold its cred, the daemon root, the reload identity, the cred load and the pidfile record) out of
delivery.tsinto an internaldelivery-creds.ts. - Move the manager's boot sequence (execution admission, connect, registration, instance lease and the frozen-gate heal) into its own component without changing the manager API.
- Route the broker transport's own dials through the manager's dial again, so a test that replaces the manager's dial intercepts them as it did before the transport moved into its own component.
- Build each manager component's dependencies in a factory beside the component instead of inline in the manager, without changing what any dependency reads.
- Move resuming a preserved manager, with its commit and finalize doors, into its own component without changing the manager API.
- Credential renewal reads the delivery shard through its deps instead of importing the Manager class, so the manager module is no longer part of an import cycle.
- Move the mesh handler's conclaves (planning, executing and releasing a conclave, and the channel, members and ACL registry handles they share) out of
mesh-handler.tsinto an internalmesh-conclave.tscomponent that owns the open conclave plans and the registry handles. - Move the mesh handler's
spawnaction (cwd resolution, the worktree claim and release, the submission and its terminal await, andspawnArgs) out ofmesh-handler.tsinto an internalmesh-spawn.tscomponent that reads the handler's members through its dependencies.
Every change in full
- Repeating a loopback dashboard start refreshes the private single-use link even without a display or with
--no-open, while existing browser sessions stay signed in. - The shell installer keeps the previous Cotal release when a downgrade is incompatible with its connector state or fails during reconciliation.
- The launch watcher reclaims temporary files without spinning when the agent's
PATHdoes not includesleeporrm. cotal manager statusnow reports the running stack manager instead of a previously stopped manager service.- Wait a full hour before automatically installing a newly seen npm release, even if npm changes the latest version during another release's hold.
- Repair writable connector paths before self-update, identify missing or interrupted npm, and make interrupted connector seeds and updates safe to retry.
- Repair a verified Linux background service whose recorded program is missing, without starting it if it was disabled.
- Stop the shell installer before it changes anything if a directory occupies the launcher path, and explain how to choose another location.
- Restore reliable smoke coverage for foreground launches, authorization refusals, and roster diagnostics without changing CLI behavior.
- Self-update writes journals atomically and names damaged journals while cleaning abandoned staging without removing journals needed for recovery.
- Self-update checks extension peers against the selected Cotal release so a missing archive from a newer release cannot block the update.
- A session on a websocket mesh now reconnects after its connection dies without a reset, such as during a laptop sleep, and
cotal_disconnectno longer hangs while the mesh is unreachable. When the ping check finds such a connection stale, the client stops waiting for the unanswered closing handshake after 5 seconds and reconnects. A failed websocket dial now names the URL it dialed, whether the socket had opened, how long it had been trying or open, and any reason given, where it used to say onlyConnectionError. A Claude Code disconnect waits at most 3 seconds for the event plane before it stops the connection, socotal_connectcan connect the conversation again. A failedcotal_reconnectnow advises calling it again, where it used to name/reconnect, a command Claude Code does not have. - Move the endpoint's anycast request rail out of
endpoint.tsinto its own internal component. The package's exports are unchanged. - Move the endpoint's durable consumers out of
endpoint.tsinto their own internal component. The package's exports are unchanged. - Drop the endpoint's private forwarders that only other internal components called; those components now reach the owning component directly. The package's exports are unchanged.
- Move the endpoint's agent-side durable membership out of
endpoint.tsinto its own internal component. The package's exports are unchanged. - Move the endpoint's principal serve and
promptspresence internals into an internal component.servePrincipal,setPromptsPresence,nextPromptsSeqandcallPrincipalstay on the endpoint and behave as before. The package's exports are unchanged. - Keep the previous CLI and its matching connectors usable when a self-update is interrupted during the final version check.
- Use the current CLI launcher in stopped-space restart hints and related space recovery commands.
- Explain how to keep only the built-in
ptyruntime during guided setup. - Move the mesh agent's channel members (channel briefing, readable set, channel info, channel listing, join and leave) and
isLocalServerout ofagent.tsinto an internalagent-channels.ts.MeshAgentkeeps a forwarder for each public member. The package surface is unchanged. - Move the mesh agent's outgoing messaging (channel send and its receipt, role anycast with its status and cancel, DM with peer resolution, and the reply correlation behind them) with
closeChannelNamesandpresenceReadConditionout ofagent.tsinto an internalagent-messaging.ts.MeshAgentkeeps a forwarder for each public member. The package surface is unchanged. - Move the mesh agent's manager-facing commands (spawn, model inspection, manager endpoint listing, despawn, run, persona define/list/show, history purge) and
SPAWN_TIMEOUT_MSout ofagent.tsinto an internalagent-supervision.ts.MeshAgentkeeps a forwarder for each public command. The package surface is unchanged. - Move the mesh agent's run turns (native participation lease, turn relay and pull, turn surfacing, once-task claims and reports, and the yield) with their module helpers out of
agent.tsinto an internalagent-turns.ts.MeshAgentkeeps the turn state suites reach into and a forwarder for each member called from outside the family. The package surface is unchanged. - A held
cotal_connectno longer asks the host one extra time just after its hold ends. The pause that reaches the deadline is now the last one, so the hold ends with the open that follows it even when that pause's timer fires a little early. - Move the service host's caller policy (caller grants, caller revocation and the policy reads) out of
service-host-ops.tsinto an internalservice-host-caller.ts. The package surface is unchanged. - Move the service host's decisions (the shared proposal closes, decide and revoke) out of
service-host-ops.tsinto an internalservice-host-decisions.ts. The package surface is unchanged. - Move the service host's S2-A record kernel (record keys and ids, keyed reads and writes, capacity release, operation settlement and debt, and the result arms) out of
service-host-ops.tsinto an internalservice-host-kernel.ts. The package surface is unchanged. - Self-update names unreadable prepared space records, explains how to restore access, and reports that their continuity was not checked.
cotal update --checknow reports when an interrupted connector seed needscotal ext seed --repair.- Move the delivery daemon's credential source and root resolution (the store and key that hold its cred, the daemon root, the reload identity, the cred load and the pidfile record) out of
delivery.tsinto an internaldelivery-creds.ts. The package surface is unchanged. - Move the manager's boot sequence (execution admission, connect, registration, instance lease and the frozen-gate heal) into its own component without changing the manager API.
- Route the broker transport's own dials through the manager's dial again, so a test that replaces the manager's dial intercepts them as it did before the transport moved into its own component.
- Build each manager component's dependencies in a factory beside the component instead of inline in the manager, without changing what any dependency reads.
- Move resuming a preserved manager, with its commit and finalize doors, into its own component without changing the manager API.
- Credential renewal reads the delivery shard through its deps instead of importing the Manager class, so the manager module is no longer part of an import cycle.
- Move the mesh handler's conclaves (planning, executing and releasing a conclave, and the channel, members and ACL registry handles they share) out of
mesh-handler.tsinto an internalmesh-conclave.tscomponent that owns the open conclave plans and the registry handles. The package surface is unchanged. - Move the mesh handler's
spawnaction (cwd resolution, the worktree claim and release, the submission and its terminal await, andspawnArgs) out ofmesh-handler.tsinto an internalmesh-spawn.tscomponent that reads the handler's members through its dependencies. The package surface is unchanged.
What's Changed
- fix(manager): route BrokerTransport's own dials through Manager.dial by @davidfarah-dev in #8171
- refactor(delivery): move the daemon's credential resolution into its own module by @davidfarah-dev in #8176
- refactor(connector-core): move the agent's manager-facing commands into their own module by @davidfarah-dev in #8184
- refactor(manager): move preserved-manager resume into PreservedResume by @davidfarah-dev in #8169
- refactor(core): move the endpoint's durable membership into its own module by @davidfarah-dev in #8172
- refactor(core): move the endpoint's anycast requests and takes into their own module by @davidfarah-dev in #8179
- refactor(runtime): move the mesh handler's spawn action into its own module by @davidfarah-dev in #8174
- refactor(runtime): move the mesh handler's conclaves into their own module by @davidfarah-dev in #8175
- refactor(connector-core): move the agent's channel members into agent-channels.ts by @davidfarah-dev in #8187
- refactor(core): move the endpoint's JetStream consumers into their own module by @davidfarah-dev in #8181
- refactor(manager): build component deps in per-file factories by @davidfarah-dev in #8177
- refactor(manager): move the manager boot sequence into its own module by @davidfarah-dev in #8180
- fix: reconnect websocket meshes after a silent loss and bound disconnect by @davidfarah-dev in #8100
- refactor(manager): read the delivery shard through credential renewal's deps by @davidfarah-dev in #8182
- refactor(connector-core): move the agent's messaging into agent-messaging.ts by @davidfarah-dev in #8189
- docs(setup): clarify how to keep only pty by @davidfarah-dev in #8183
- test(workspace): re-anchor the presence-render census entry for agent.ts's return reply by @davidfarah-dev in #8193
- refactor(auth): move the service host record kernel into service-host-kernel.ts by @davidfarah-dev in #8190
- refactor(auth): move the service host decisions into service-host-decisions.ts by @davidfarah-dev in #8191
- refactor(auth): move the service host caller policy into service-host-caller.ts by @davidfarah-dev in #8192
- test(smoke): name shutdown-custody as spare-stop coverage in the spare guard by @davidfarah-dev in #8201
- refactor(core): drop endpoint forwarders that only component deps called by @davidfarah-dev in #8188
- refactor(core): move endpoint principal serve and prompts into a component by @davidfarah-dev in #8196
- test(core): settle the in-flight put before seat-idle-results counts it by @davidfarah-dev in #8202
- fix(update): recover interrupted npm and prepare connector paths by @davidfarah-dev in #8102
- fix(installer): refuse directories at the launcher path by @davidfarah-dev in #8178
- refactor(connector-core): move the agent's run turns into a component by @davidfarah-dev in #8198
- test(cli): restore smoke coverage on main by @davidfarah-dev in #8205
- test(workspace): classify two new presence-render census candidates by @davidfarah-dev in #8211
- test(connector-core): give the send-channel-receipt stub its messaging member by @davidfarah-dev in #8214
- test(cli): expect MODE_NOT_CHECKED from whoami on the forced sel07 registration by @davidfarah-dev in #8221
- fix(connector-core): end a held connect with the open after its last pause by @davidfarah-dev in #8222
- fix(cli): keep the launcher in stopped-space hints by @davidfarah-dev in #8195
- fix(cli): report unreadable prepared records during self-update by @davidfarah-dev in #8194
- fix(installer): preserve the working release on a refused downgrade by @davidfarah-dev in #8212
- fix(core): keep launch watchers off agent PATH by @davidfarah-dev in #8217
- fix(daemon): repair Linux services with missing programs by @davidfarah-dev in #8197
- fix(update): enforce the hold for each npm release by @davidfarah-dev in #8213
- fix(cli): report the live stack manager in status by @davidfarah-dev in #8220
- fix(update): pin first-party extension peers to the selected release by @davidfarah-dev in #8218
- fix(update): recover from torn execution journals by @davidfarah-dev in #8224
- fix(cli): report interrupted connector seeds in update checks by @davidfarah-dev in #8223
- fix(update): preserve connectors for self-update rollback by @davidfarah-dev in #8226
- fix(cli): refresh private dashboard links on repeat start by @davidfarah-dev in #8225
- chore(release): version packages by @davidfarah-dev in #8186
Full Changelog: v0.171.4...v0.171.5