Repository navigation
v0.151.0
Install or update: npm i -g cotal-ai@0.151.0
Restart running Cotal processes and agent sessions to use the new code.
What changed
@cotal-ai/coreno longer exports theterminalextension kind (TerminalLayout,TabandPane), and@cotal-ai/tmuxand@cotal-ai/cmuxno longer export or registertmuxTerminalProviderandcmuxTerminalProvider, along with the layout code only those providers used.cotal loginno longer warns that chat refuses when you have saved a chat name, and a refused chat name now names the remedy the surface you use offers.- A migration commit ends pending orphan pauses before recording the migration.
- Host permission-scoped endpoint discovery inside the auth service with explicit registry opt-in.
- A plain spawn of a Claude seat whose startup showed no development-channels prompt now says that mesh traffic does not wake the seat while idle: the spawn result carries
startupNotice,cotal spawnprints aSTARTUP_NOTICEwarning, thecotal_spawnresult ends with the notice, andcotal psmarks the seatno idle wake. - The multi-space delivery host (
cotal deliver --spaces) is now the one process on a broker that kicks a live connection. - A user-mode spawn or persona definition now refuses a name the bearer exchange cannot serve, before anything is enrolled.
- A scope reached inside
onceis now refused with L4028 by itsdispatchesscope trait, the same row that gives it a request id and the effect ceiling. - Adopting a seat whose custodian recorded its child's exit, or whose custodian process is gone, now throws instead of returning a handle that reports the seat running for ever; a seat client rejects a request whose write fails instead of throwing out of the process.
- A stop sent through
controlcan now name the run it means, so a run that replaced it under the same name is never stopped instead. - The tmux runtime creates a session only when tmux says none is reachable.
- A space created before live eviction gets its missing connection evictor the next time the delivery daemon starts, so a despawned seat's name is released without rotating the system account.
- Show a failed legacy manager launch's new error line in up, including delivery-version recovery guidance.
cotal updateno longer treats a supervisor from another install of the same space as custody for this install.- The reap census reads manager.ts with the type checker: any value whose type carries
reapis a runtime, so an alias, field, return value, awaited promise, conditional, rest copy or destructured binding needs no shape of its own, an untyped value fails closed, and a spread, rest copy orReflect.*/Object.*call that takes a runtime is a bypass. - A manager's default stop records each detachable seat it releases, so the next manager on that workspace adopts the seat or retires its lifecycle once the runtime proves it gone; a released seat that already exited is retired by the stop itself.
Every change in full
-
@cotal-ai/coreno longer exports theterminalextension kind (TerminalLayout,TabandPane), and@cotal-ai/tmuxand@cotal-ai/cmuxno longer export or registertmuxTerminalProviderandcmuxTerminalProvider, along with the layout code only those providers used. Nothing in Cotal has resolved the kind sincecotal setupbecame configure-only, while the contract and both providers still namedcotal setupas their consumer. Spawned tmux and cmux agents launch as before; the cmux pane launcher keeps itsenv -iisolation and drops the login-shell and inherited-environment modes that only layout panes used. The upgrading guide lists the imports to remove. -
cotal loginno longer warns that chat refuses when you have saved a chat name, and a refused chat name now names the remedy the surface you use offers. When no handle is recorded and no name is saved,cotal loginnames both--nameandcotal config set name; with a saved name it says chat sessions use it.resolveChatNamenow requires the caller's ownremedyoption, socotal chatstill offers--nameand the terminal app offers Change your name (ctrl+p). A sign-in with no handle on record now also lists that remedy. -
A migration commit ends pending orphan pauses before recording the migration.
MigrateOrphannow includes its journal state, and callers supplying acommitMigrationhandler must provideendPausebesidedischarge. Pass the run'sMeshHandlerand journal entries so removed pending steps can release their timers and wait consumers. Missing cleanup custody or a failed cleanup refuses the commit before it records success. Settled orphans are not ended again. -
Host permission-scoped endpoint discovery inside the auth service with explicit registry opt-in.
The builtin auth-service preset accepts
--registry; multi-space auth manifests enable it per entry. Embedders supplyregistryServicethrough the same auth lifecycle. Signing authority stays in auth, reader and serving credentials stay separate, serving renewal uses the native issuance fence, and restart recovery retains the original instance and native gate operation. The registry is disabled by default and stops with its auth plane. -
A plain spawn of a Claude seat whose startup showed no development-channels prompt now says that mesh traffic does not wake the seat while idle: the spawn result carries
startupNotice,cotal spawnprints aSTARTUP_NOTICEwarning, thecotal_spawnresult ends with the notice, andcotal psmarks the seatno idle wake. A connector declares this withidleWakeNeedsConfirmed. -
The multi-space delivery host (
cotal deliver --spaces) is now the one process on a broker that kicks a live connection. When a space on its root retained the system-account signing seed, every lane evicts through the host's kick authority: the lane scans its own account, the host checks each connection against its own complete census of that account, mints a kick-only user that lives five minutes, kicks, and keeps no$SYSconnection open between kicks. A lane opens noconnection-evictorcredential, so a space created before live eviction on a multi-space broker completes its eviction barrier without a system-account rotation, and no per-space process holds the broker-wide KICK. The host says which posture it runs at start. A single-space daemon is unchanged. Core exports the pieces the host uses:KickTarget,kickConnection,accountHoldsConnection, and akickfunction the eviction sweep can delegate to. -
A user-mode spawn or persona definition now refuses a name the bearer exchange cannot serve, before anything is enrolled. The name door applies the exchange's own 64-character actor bound, and auto-numbering stops at that bound instead of appending a suffix that would cross it.
-
A scope reached inside
onceis now refused with L4028 by itsdispatchesscope trait, the same row that gives it a request id and the effect ceiling. Before, the refusal namedconclaveby its literal kind, so a new scope kind that calls the handler would have compiled, run insideoncewith no refusal, and could have been dispatched again on resume. Shipped behaviour is unchanged:conclaveis still the one scope that dispatches. -
Adopting a seat whose custodian recorded its child's exit, or whose custodian process is gone, now throws instead of returning a handle that reports the seat running for ever; a seat client rejects a request whose write fails instead of throwing out of the process.
-
A stop sent through
controlcan now name the run it means, so a run that replaced it under the same name is never stopped instead.controltakes an optionalexpectedTarget(the row'sidandlifecycleUid) that it passes to the manager request, which sends nothing when the name now resolves to another run.ManagedRownow carries thelifecycleUidevery manager already reports, and the refusal no longer speaks only of attaching. -
The tmux runtime creates a session only when tmux says none is reachable.
ensureSessionused to read every failedhas-sessionas absence, so a query that failed for another reason, such as a moved socket, started a second server beside the one holding the seats. It now treats as absence only tmux's own reports: the session is not on the server, no server is running, or nothing is bound at the socket path tmux would use. A live server whose socket file was moved still shows in the kernel's bind table and makes the spawn refuse with tmux's diagnostic; a never-used path on a fresh host still gets its first server. -
A space created before live eviction gets its missing connection evictor the next time the delivery daemon starts, so a despawned seat's name is released without rotating the system account. The daemon mints it only on a root that hosts one space and retained its system-account signing seed, beside an observer that same system account signed; anywhere else, a root hosting several spaces included, the heal does nothing and the daemon starts as before. An evictor that is already present is left untouched.
-
Show a failed legacy manager launch's new error line in up, including delivery-version recovery guidance. Reuse the private-log reader with a launch offset and file identity, and exclude ordinary console credential lines. Document current-CLI recovery for legacy pidfile roots.
-
cotal updateno longer treats a supervisor from another install of the same space as custody for this install. A supervisor whose command names this install's CLI entry is still read, and a node binary or loader argument does not hide it. -
The reap census reads manager.ts with the type checker: any value whose type carries
reapis a runtime, so an alias, field, return value, awaited promise, conditional, rest copy or destructured binding needs no shape of its own, an untyped value fails closed, and a spread, rest copy orReflect.*/Object.*call that takes a runtime is a bypass. -
A manager's default stop records each detachable seat it releases, so the next manager on that workspace adopts the seat or retires its lifecycle once the runtime proves it gone; a released seat that already exited is retired by the stop itself.
What's Changed
- test(delivery): qualify two stock hosts as standby by @davidfarah2003 in #5941
- fix(cli): show legacy manager boot failures in up by @davidfarah2003 in #5942
- test(cli): include the web credential in preset defaults by @davidfarah2003 in #5944
- fix(tui): answer a direct message only when it went to a session the app opened by @Manas-Kenge in #5946
- fix(workspace,auth)!: name the remedies each chat surface offers by @Manas-Kenge in #5945
- fix(tui): stop only the run the human selected by @Manas-Kenge in #5948
- feat(tui): triage replies and mentions from the inspector by @Manas-Kenge in #5949
- fix(tmux): read a failed has-session as absence only when nothing listens by @davidfarah2003 in #5950
- fix(delivery): mint a missing connection evictor only where the rotation would run by @davidfarah2003 in #5952
- feat(auth): host opt-in endpoint discovery with native custody by @davidfarah2003 in #5951
- fix(manager): read the reap census from the type checker by @davidfarah2003 in #5953
- test(delivery): qualify standby renewal and manifest refusals by @davidfarah2003 in #5954
- fix(manager): record a released seat for the next manager and refuse to adopt a gone seat by @davidfarah2003 in #5955
- fix(cli): ignore another install's supervisor in the update continuity check by @davidfarah2003 in #5956
- docs: generate the built-in mesh command catalog by @davidfarah2003 in #5957
- fix(manager): say when a spawned Claude seat is not woken by mesh traffic by @davidfarah2003 in #5958
- fix(core): refuse a user-mode name the exchange cannot serve by @davidfarah2003 in #5959
- fix(lang): refuse a dispatching scope under once by its trait by @davidfarah2003 in #5960
- fix(runtime): end a dropped pending step's pause when a migration commits by @davidfarah2003 in #5961
- fix(cli): name the manager record awaitManagerUp read, resolved once by @davidfarah2003 in #5962
- fix(core)!: remove the terminal extension kind that nothing consumes by @davidfarah2003 in #5964
- test(runtime): cover migration pause cleanup on real planes by @davidfarah2003 in #5963
- fix(delivery): kick through the multi-space host's one kick authority by @davidfarah2003 in #5965
- chore(release): version packages by @davidfarah2003 in #5943
Full Changelog: v0.150.0...v0.151.0