Repository navigation
Releases
v2.7.3 — session pins survive concurrent turns, dev-tree dependency advisory
[2.7.3] - 2026-11-15
Patch on 2.7.2: improve session-affinity pin handling under concurrent turns
and update a development-tree dependency for a security advisory.
Fixed
-
A session pin could be silently dropped under concurrent turns. With
sessionAffinityon, a shim that waited the full 1 s for the pin store's
lock gave up without writing and exited normally, so the session's next turn
was routed by the pool pick, or by an older pin, instead of the account that
had just served it. Such a writer now parks its pin in a
pool-<id>.sessions.json.pending-*file: readers combine parked pins with
the store (the pin served latest wins) and the next writer to take the lock
folds them in and removes them. A read opens every parked file of its own
session and no other session's, so no number of parked sessions hides a pin.
Parked files stay bounded while a live holder keeps the lock: a session
normally keeps one, holding its latest pin; files past the TTL are removed;
and the limits are 32 per session and 1032 in total, with the exceptions
detailed below. The store also takes the same lock as shim state, so a live
holder's lock is no longer removed by age and a dead holder's is recovered
at once. The wait stays bounded at 1 s.
(#178) -
A read could miss a session's pin while newer pins for it were being
parked. A parked pin replaces the session's older parked file. A read that
listed the older file and found it gone listed again, at most four times; if
each new listing was replaced in turn, the read returned an older stored pin
or none, although a valid pin was on disk throughout. A read now returns a
pin at least as recent as the session's latest valid pin when the read
began, whatever another process holds or however long it stops, for every
read during which fewer than 32 pins of its session are parked (see the
limits below). The read never waits. How:- A parker removes a parked file, for any reason (superseded, past the TTL,
during trimming past 1000 files), only under a short lock for that file's
session (pool-<id>.sessions.json.parked-<session key>.lock), tried once without
waiting. When the lock is busy the file stays for the next parker. - A read that finds a listed file gone, with nothing it read at least as
recent, announces itself with a marker
(pool-<id>.sessions.json.parked-<session key>.reader-<pid>-<random>.lock)
and lists again. A parker holding the session's lock removes nothing of
that session while a live reader's marker is there. Only the one parker
that already held the lock when the marker appeared can still remove
files, from one listing, oldest first; three more listings always include
one that settles the read under these removal rules. The marker goes when
the read returns; one left by a reader that died is removed by the next
parker. A read that loses no file writes nothing and takes no lock, as
before. - A read counts a pin served after its caller's clock reading: up to 60 s
ahead of that reading or of the clock when the read lists its files,
whichever is later (exactly 60 000 ms ahead counts, 60 001 ms does not).
Before, a read treated any pin ahead of its own reading as no pin, which
discarded the pin a concurrent turn had just parked.
Limits, stated plainly. Parked files are bounded whatever another process
holds and however long it is stopped: one session has at most 32
(MAX_SESSION_PARKED), and there are at most 1032 in all
(MAX_PARKED_FILES: the store's 1000-session bound plus one session's
worth). A writer counts the files before it parks. What gives way at a
bound:- While a session is being read or trimmed its superseded files are not
removed, so it can hold more than one, and the total can pass 1000 by
such files. A reader that stopped keeps its marker, and that protection
lasts until the session has 32 files. The next write of that session then
removes the superseded ones under the session's lock, marker or not,
keeps the file with the latest pin, and parks its own. So the read
guarantee above holds for every read during which fewer than 32 pins of
its session are parked; a read raced by 32 or more may end with the
latest pin it saw. - If that session's lock is itself held by a process that does not let go,
nothing of the session can be removed, and the write is refused: no file
is written, the session's latest parked pin stays readable, and the shim
says so on stderr ([multi-clawd shim] session pin not recorded: ...,
naming no session, account or path). The turn is not affected. The
session's next turn is routed by the pin that is still parked. - If the total is at 1032 after the usual trim (several sessions' surplus
is behind locks or markers that are not released), the write is refused
in the same way. A reader's protection never gives way for the total, and
no session loses its only parked pin to another session's surplus. - The count and the write are two steps, because a park below the bound
takes no lock. A turn stopped between them still writes its one file when
it resumes, so each bound can be passed by one file for each turn stopped
at exactly that point. The surplus stays without growing until that
session's lock is free; the next park then trims it.
Parked pins reach the store only when a writer takes the store lock: while
a process keeps that lock, nothing is folded, and the bounds above are what
limits the files. No live holder's lock is removed, by age or otherwise;
parkers remove files only under their session's lock; a store-lock holder
removes only files folded into a committed store; no writer overwrites
another's file. A pin that passes the TTL, falls outside the 1000 most
recently served sessions, or is more than 60 s ahead of the clock of the
writer that rewrites the store ends there, as before; a read running across
that moment may return without it. A read ends after four listings with the
latest pin it saw only if the state directory refuses the marker file,
parked files are deleted by something other than multi-clawd, or its
session reaches the 32-file bound while it runs. Nothing is signalled or
killed, and nothing waits longer than before. (#183, #186) - A parker removes a parked file, for any reason (superseded, past the TTL,
-
A session pin served earlier could replace one served later. A writer
delayed past a newer write for the same session overwrote the newer pin with
its own. The pin served latest now wins whichever writer arrives last. (#178) -
A session whose id is a name every object inherits lost its pin. With
sessionAffinityon, a session id such asconstructor,toString,
hasOwnPropertyorvalueOf(all accepted as--session-idand--resume
values) was looked up in a plain object, where it found an inherited
function instead of "no pin". A successful turn then stored nothing and
returned normally, and a read returned that function instead of a pin or
nothing. v2.7.2 stored and read these ids; the fault came in with the
ordering fix above and was never released. Pin dictionaries now have no
prototype and every lookup is an own-property check: the write, the fold of
parked pins, the read, and the trim of parked files. Session ids that are
UUIDs, which is what Claude Code issues, were never affected. (#186)
Repository
- Updated the development-tree-only
@hono/node-serverlockfile record from
2.1.5 to 2.1.6 for GHSA-jpvv-r467-5p4w / CVE-2026-126210, and raised the
committed-lockfile guard floor.package.jsonand runtime dependencies are
unchanged; this does not establish exposure in an installed plugin. (#182)
v2.7.2 — docs clarifications, dev-tree hono floor
[2.7.2] - 2026-11-13
Changed
- Added a bounded-hold design note (#170); it recommends against a
plugin-side wait and ships no runtime behavior change. - Clarified CLI help and README wording (#172):
doctor --probespends one
live turn per account plus one for the pool, while--rawreveals unmasked
login emails and session ids that should not be pasted into issues. - Documented the OpenClaw 2026.11.2 isolated agent-turn automation
account-binding caveat (#173); no plugin-only workaround is established.
Repository
- Raised the development-tree-only
honolockfile floor to 4.13.16 for an
advisory patch (#176). The runtime dependency set is unchanged; this does
not establish exposure in an installed plugin.
v2.7.1 — live state-lock holders
Fixed
- A shim paused beyond the state-lock lease no longer reclaims a lock held by a live process, preventing a resumed holder from overwriting newer health or history writes. Dead holders and malformed locks remain recoverable. (#151)
- Linux state locks record the holder's process start time, so a reused PID cannot keep a dead holder's lock indefinitely. Exited zombie holders are recoverable. (#151)
See CHANGELOG.md for the full release notes.
v2.7.0 — manual compact, safer history and side questions
[2.7.0] - 2026-11-11
Added
- Manual
/compacton single-account backends (#159). Aclaw<N>/*
backend on the verified launch now declares OpenClaw's public
manualCompactioncontract, a port of the bundledclaude-clibackend's:
the same/compact [instructions]prompt, passed as an argument, accepted
only when the output carries acompact_boundarysystem event or
compact_result: "success". OpenClaw runs the request asclaudeitself on
that account's login; the shim is not involved, so multi-clawd records no
served launch and writes none of its own state. From OpenClaw 2026.11.2 the
request no longer carries the--permission-mode bypassPermissionsthat
full exec mode adds, as on the bundled backend. Covered by a fixture
claudedriven by the host's launch rules; a live/compactagainst a
running gateway has not been exercised.
Known limitations
- Manual
/compactstays refused on the pooled backend (#159).clawd/*
still answersCLI backend "clawd" owns compaction but does not support manual compaction.OpenClaw runs a manual compaction outside the plugin's
launch path and without naming the session, so the pool cannot make sure it
lands on the account holding the newest copy of the conversation; after a
rotation it could compact an older copy and replace the newer turns. The
refusal starts nothing and changes nothing. Automatic compaction inside a
turn is unaffected. A legacy-launch single-account backend is refused as
well. See README, "Manual/compactcompatibility".
Fixed
-
Account history could silently lose an event when two launches wrote at
once. A shim that could not take thehistory.jsonllock within its
150 ms wait returned without recording, soexplain --historyand the
spreadstrategy's served-launch count could be one short while every
process exited 0. Such a writer now parks its event in a0600
history.jsonl.pending-*file, and a later writer that takes the lock folds
parked events into the journal (up to 100 files per write, oldest first)
and removes the files it folded. The journal replace carries a receipt of
the files it folded, so a writer that stops before removing them, at any
point, does not cause an event to be counted twice or brought back after
the cap has trimmed it. Readers include parked events, with one exception:
if the journal is replaced during all three of a reader's attempts, it returns
the last journal alone, which can omit events that are still parked.
Readers order what they return by event timestamp and stay inside the
journal's 500-event / 64 KiB bound however many are parked. A journal that
cannot be read is never replaced,
and a pending file that cannot be read is not folded; a pending file is
removed only by a writer that took the lock and found it still its own
after its write, and only once a committed write names the file as folded:
the writer that first named it had read it, and a later writer removes such
a leftover without reading it again. A writer that finds its lock was taken
over while it was paused backs off: before its write it parks its event
instead, and after it, it leaves the removals to a later writer (this
narrows the lock's lease window, tracked in #151; it does not close it: a
pause between the check and the write, or between the check and a removal,
is not caught). Pending files are not bounded on their own:
they accumulate until a writer takes the lock. History still never fails a
launch; the wait for the lock is still at most 150 ms, and the file work
after it is synchronous. (#145) -
History validation no longer coerces values. An event whose
kindor
reasonis not exactly one of the allowed strings is rejected, and the
timestamp is stored in canonical ISO form, so a value that merely prints
as an allowed one, or a date string carrying free text, cannot reach
history.jsonl. (#145) -
Side questions on the pool kept Claude Code's native tools. The pool
declaressideQuestionToolMode: "disabled", which core trusts (no empty
tool cap is injected for side questions), but its argv resolver ignored the
execution mode, so/btwand setup probes ran with native Bash/Edit/Write
selectable — underbypassPermissionswhentools.exec.modeisfull.
resolveExecutionArgsnow ports the bundled side-question projection:
session/resume/fork/effort/tool/MCP-config flags are dropped and
--safe-mode --tools "" --disallowedTools mcp__* --strict-mcp-config --no-session-persistence --max-turns 1 --permission-mode defaultis
appended, in the bundled order (host-owned denial, side-question
projection, exact cap). Non-side-question runs are unchanged. Verified
against the 2026.8.1 and 2026.11.1 sources and through the shim on a
fixture; not observed live. Published v2.6.6 did not include this
projection. (#142) -
The history bound now keeps the newest events of the merged history. Readers
and writers apply the 500-event / 64 KiB bound to journal, parked and new
events merged in event-time order (ties keep journal, then park order,
then the new event), not to the journal followed by parked events. A
backlog of older parked events could otherwise hide a just-recorded launch
fromexplain --historyand thespreadcount, and draining it could
permanently trim newer launches in favour of older parked ones. The
journal file is now kept in event order. (#145)
Repository
- Dev-tree dependency floors only. The development install resolves
undici 8.12.2,@modelcontextprotocol/sdk1.32.0 and fast-uri 3.1.9.
The published package still has nodependenciesand does not install
those copies, so this is not a consumer-runtime CVE fix. minimatch stays
10.2.6. #157 stays open. (#158)
v2.6.6 — host-owned exec parity, catalog mirror, shim stdin
[2.6.6] - 2026-11-10
Fixed
- Fable 5.2 listed with source-derived limits.
claude-fable-5-2(released 9 Nov 2026) was not in the known-model table, so the pool exposed it with the conservative unknown-id default (200k context, 64k output) and OpenClaw compacted far too early. The known-spec table now carries 1,000,000 context and 128,000 output for that id. Those values are the table entries in source; they are not fixture-proven (the committed manifests do not contain this id) and were not checked by a live model call. - OpenClaw >= 2026.10.10 (incl. 2026.11.1): shell commands on the pool
bypassed OpenClaw's exec approval policy. The bundledclaude-clibackend
declareshostOwnedTools: ["exec", "process"], so core routes a normal
chat turn's shell commands through OpenClaw's ownexectool (approvals,
allowlist) and the bundled argv resolver addsBashto--disallowedTools.
The pool declared no such set, so the same turn onclawd/*orclaw<N>/*
kept Claude Code's nativeBashunder the permission mode alone — a silent
policy divergence from the bundled backend it mirrors. The pool now declares
the same set and itsresolveExecutionArgsports the bundled step
byte-for-byte: when the gateway marksexechost-owned for the run, every
operator denial is kept in order andBashis appended once; nothing else
in the argv moves. Exact-cap runs and side questions without the field,
and 2026.8.x gateways (which never pass it), are unchanged. A side
question carrying host-ownedexecalso gains the nativeBashdenial;
the separate tool-free side-question projection is tracked in #142. Verified
against the 2026.10.10 and 2026.11.1 sources; not observed live. (#136) - OpenClaw >= 2026.9 (incl. 2026.10.10 and 2026.11.1): the bundled Claude
catalog mirror silently used the static list. Those releases removed
dist/extensions/anthropic/cli-catalog.js, the module the mirror imported,
soloadBundledCatalogIds()returned null and the catalog rows, the
"models" output and the new-model courtesy notice all ran on the built-in
fallback, which lackedclaude-haiku-5-5. The mirror now reads the bundled
Anthropic extension manifest (openclaw.plugin.json,modelCatalog: the
claude-clilist when non-empty, else theanthropiclist) when the legacy
builder is absent, and still prefers the builder where it ships (OpenClaw
2026.8.x), so earlier hosts are unchanged. Nothing new is executed: the
manifest is JSON, the Claude CLI is never spawned and no credential is
read. The built-in fallback gainsclaude-haiku-5-5andclaude-mythos-5
(and thehaiku-5.5alias) so it covers every id the bundled manifests
declare; a test holds that superset against the 2026.8.1, 2026.10.10 and
2026.11.1 manifests. (#134) - A Claude child that stops reading stdin no longer kills the shim.
Forwarding the prompt into a CLI that had already closed its read end (a
refusal, a failed--resume, a startup crash) raisedEPIPEas an
unhandlederrorevent, so the shim exited beforeonChildClosecould hop
an armed turn to a sibling or hand the child's exit code downstream. Every
spawned child, the first launch and a retry, now has a stdinerror
listener.EPIPE,ERR_STREAM_DESTROYEDandERR_STREAM_WRITE_AFTER_END
are ordinary lifecycle and are not fatal; any other stdin error is written
to stderr once and is still not fatal. Writes and ends into the current
child's stdin skip a sink that is already destroyed or ended, so an armed
retry can still replay the saved prompt. The unarmed path still pipes
stdin; the listener makes a broken child pipe end the pump rather than the
shim. The child's own close still owns the exit code. No routing,
selection, history or lock change. Covered by a synthetic child that closes
stdin before the prompt; not a live provider run, and not an exhaustive
error-code matrix. (#147)
v2.6.5 — billing refusal becomes an account-level cooldown (#126)
Added
- A billing refusal is now an account-level cooldown with the same in-turn hop
a model limit gets (#126). When the Claude CLI reports its typed
billing_errorkind (the API's "credit balance is too low" refusal; public
CLI builds 2.1.316–2.1.318), the shim records abillingrecord against
that account only, retries the turn once on a healthy sibling at the child's
natural close exactly as it does for a limit — never killing the running
process, never forwarding a partial turn — and the pool skips the account
for fifteen minutes (billing_refused: never chosen; as a last resort it
ranks behind an exhausted member and ahead of a dead login). The cooldown
expires on its own or ends early on a successful turn — a real non-error
result, not merely a clean exit, so a refusal the CLI exits 0 on keeps the
cooldown.explainsays "BILLING REFUSED" with the CLI's reason, a
billing:<pool>:<account>alert is re-derived from the live verdict on
every heartbeat (it ends with the cooldown or on recovery even when no
pooled launch happens in between), andexplain --historyrecords the
retry with reasonbilling. Only the typed kind is matched: the same wording
without it, a 402, and every other error are forwarded unchanged, as
before. Measured and deliberately left alone:account_on_hold(emitted
only behind a remote feature flag), a past-due subscription (reported under
oauth_org_not_allowed, which the CLI shares with an organisation that
disabled OAuth) andmodel_requires_usage_credits(model-scoped, a limit).
v2.6.4
Fixed
- Every CLI command now rejects a flag its
--helpdoes not list, the way
explainalready did (#121). One shared check in the CLI runs before
anything is dispatched: it prints one line naming the flag plus the
command's usage line, exits 1, and does nothing else — no config read, no
sibling script spawned.setup --dryrun(a typo for--dry-run) used to
run the wizard in write mode and rewriteopenclaw.jsonwith a backup
beside it;chain --json,usage --bogusanddoctor --bogusused to run
normally and exit 0. Only exact spellings pass (--dry-run=yesis
unknown), a flag's value such as--since 24his not treated as a flag,
andhermeskeeps handling its own flags.doctor --helpnow lists
--preflight, which the health check already accepted. - The unknown-flag check treats positional ids as operands, not flags (#109).
account <enable|disable> <id>andlogin [<id>]accept any non-empty id,
so an id such as-1reaches the command exactly as it did before #121; for
login, a leading-hyphen argument is rejected as an unknown flag only when
it matches no configured account id (login --bogusstays rejected). The
version aliases--version,-vand-Vare checked as theversion
command, so--version --bogusis rejected like the other commands. login <unknown-id>now names the id it could not find, with the config
path read (login: no account named '<id>' in <config path>), before the
existing list of configured accounts, and adds adid you mean '<id>'?hint
for a case or punctuation near-miss such asclaw-2forclaw2(#122).
The exit code and the bareloginoutput are unchanged, and no
authentication behaviour changes.
Repository
- Added the 2026-11-04 class-radar research report under
reports/multi-clawd-class-radar/(#127). Repository-only: it is not part
of the published package and changes no runtime behaviour.
v2.6.3
Fixed: the CLI, setup, doctor, eviction watchdog and gateway plugin now honour OPENCLAW_CONFIG_PATH, OPENCLAW_STATE_DIR and OPENCLAW_HOME (#116).
See CHANGELOG.md for details.
v2.6.2
Fixed
doctorno longer prints rawsystemctlerrors in the watchdog section. If the scheduler cannot be queried, it reports “watchdog state unknown” rather than incorrectly saying no watchdog was found. A confirmed-absent watchdog still warns. (#107)
See CHANGELOG.md for details.
v2.6.1
[2.6.1] - 2026-10-31
Fixed
- An unknown top-level command (
multi-clawd bogus) now says so on stderr
(multi-clawd: unknown command 'bogus', with a pointer to--help) before
the usage list, and exits 1 (#105). Top-level-hbehaves like--help:
usage on stdout, exit 0.-Vis accepted as an alias of-v/--version. - A missing, unreadable or malformed OpenClaw config now produces one shared
diagnostic fromusage,chain,explain,direct,account,login
andhermes sync|doctor(#106): the resolved path (no literal~), what is
wrong, and the next step —multi-clawd setup, or install OpenClaw first
when~/.openclawdoes not exist — on stderr with exit 1.accountno
longer surfaces a rawENOENT. Missing, permission-denied and malformed
JSON are told apart; malformed JSON never echoes file content. Diagnosing
reads only: nothing creates or repairs the file. A directory, symlink loop
or file-as-parent at the path is named as "not a regular file" with the
cause, fromhermestoo (its size-capped reader used to answer "unavailable
or too large" first).hermes --config <path>points at the flag or the
named path instead ofsetup, which writes only the default path.