Skip to content

v0.171.5

Choose a tag to compare

@davidfarah-dev davidfarah-dev released this 20 Nov 08:06
308af2c

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 PATH does not include sleep or rm.
  • cotal manager status now 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_disconnect no longer hangs while the mesh is unreachable.
  • Move the endpoint's anycast request rail out of endpoint.ts into its own internal component.
  • Move the endpoint's durable consumers out of endpoint.ts into 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.ts into its own internal component.
  • Move the endpoint's principal serve and prompts presence 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 pty runtime during guided setup.
  • Move the mesh agent's channel members (channel briefing, readable set, channel info, channel listing, join and leave) and isLocalServer out of agent.ts into an internal agent-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 closeChannelNames and presenceReadCondition out of agent.ts into an internal agent-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_MS out of agent.ts into an internal agent-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.ts into an internal agent-turns.ts.
  • A held cotal_connect no 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.ts into an internal service-host-caller.ts.
  • Move the service host's decisions (the shared proposal closes, decide and revoke) out of service-host-ops.ts into an internal service-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.ts into an internal service-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 --check now reports when an interrupted connector seed needs cotal 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.ts into an internal delivery-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.ts into an internal mesh-conclave.ts component that owns the open conclave plans and the registry handles.
  • Move the mesh handler's spawn action (cwd resolution, the worktree claim and release, the submission and its terminal await, and spawnArgs) out of mesh-handler.ts into an internal mesh-spawn.ts component 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 PATH does not include sleep or rm.
  • cotal manager status now 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_disconnect no 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 only ConnectionError. A Claude Code disconnect waits at most 3 seconds for the event plane before it stops the connection, so cotal_connect can connect the conversation again. A failed cotal_reconnect now 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.ts into its own internal component. The package's exports are unchanged.
  • Move the endpoint's durable consumers out of endpoint.ts into 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.ts into its own internal component. The package's exports are unchanged.
  • Move the endpoint's principal serve and prompts presence internals into an internal component. servePrincipal, setPromptsPresence, nextPromptsSeq and callPrincipal stay 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 pty runtime during guided setup.
  • Move the mesh agent's channel members (channel briefing, readable set, channel info, channel listing, join and leave) and isLocalServer out of agent.ts into an internal agent-channels.ts. MeshAgent keeps 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 closeChannelNames and presenceReadCondition out of agent.ts into an internal agent-messaging.ts. MeshAgent keeps 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_MS out of agent.ts into an internal agent-supervision.ts. MeshAgent keeps 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.ts into an internal agent-turns.ts. MeshAgent keeps 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_connect no 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.ts into an internal service-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.ts into an internal service-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.ts into an internal service-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 --check now reports when an interrupted connector seed needs cotal 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.ts into an internal delivery-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.ts into an internal mesh-conclave.ts component that owns the open conclave plans and the registry handles. The package surface is unchanged.
  • Move the mesh handler's spawn action (cwd resolution, the worktree claim and release, the submission and its terminal await, and spawnArgs) out of mesh-handler.ts into an internal mesh-spawn.ts component that reads the handler's members through its dependencies. The package surface is unchanged.

What's Changed

Full Changelog: v0.171.4...v0.171.5