Repository navigation
fix(ci): restore Doctor plugin repair lint budget - #160715
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 5:19 PM ET / 21:19 UTC. ClawSweeper reviewWhat this changesThe branch moves Doctor’s configured-plugin version and release-cohort selection into its existing target-selection module so the repair module fits the core lint limit. Merge readiness⛔ Blocked before merge - 3 items remain Current main still exceeds the enforced Doctor repair lint limit. The branch appears to address that failure, but its targeted validation and required update-path proof were pending in the captured PR body. Priority: P2 Review scores
Verification
How this fits togetherDoctor reads configuration, update markers, and installed-plugin records to decide which plugins to repair or defer. The plugin updater then applies selected repairs and publishes updated records and warnings. flowchart LR
A[Config and update markers] --> C[Doctor plugin context]
B[Installed plugin records] --> C
C --> D[Version and cohort selection]
D --> E{Repair or defer}
E --> F[Plugin updater]
E --> G[Warnings]
F --> H[Updated records]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +42. Total +42 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one Doctor target-selection owner within the lint limit while preserving repair, deferral, and installed-record behavior when a published updater drives the candidate. Do we have a high-confidence way to reproduce the issue? Yes. Current main has the same repair-file blob as the PR base, and a static count gives 746 lines against the configured 700-line limit; this read-only review did not execute lint. Is this the best way to solve the issue? Yes, provisionally. Moving the existing selection into its target-selection owner is a narrow repair, and the introduced hunk preserves the inputs and warning callback; the planned lint and update-path results are still needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ed5cddeae526. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Apply #160715 so the pinned runtime branch includes the canonical repair module split. Version and cohort planning use the existing targets owner; installation retirement and transaction ordering stay with repair.
#158916) * refactor(runtime): deslop tasks, daemon, node-host and tui second pass * test(update): mock canonical systemd activation admission Keep native-start and retained-restart fixtures on the lifecycle admission owner after consolidation. Preserve real executor revocation, native command ordering and every assertion. * test(runtime): track relocated decoder suppression * test(tui): synchronize terminal fixture readiness Inspect the current completed target screen instead of cumulative terminal output. Wait for startup readiness and command publication while isolating unrelated fd discovery in the exact-argument completion fixture. * test(tui): isolate fallback projection from vendor policy loading Use distinct synthetic provider/model identities while retaining foreign-run and malformed-event rejection, exact footer replacement, unchanged backend calls, and clean exit. Include captured terminal output when the exit assertion fails. * test(tui): group session mode proof with identity fixtures Move the self-contained mode-scoping case out of the general harness to retain the line cap. Preserve every assertion, the 20-second operation budget, the 25-second test budget, and owned fixture cleanup. * refactor(runtime): reuse projection and worker dispatch values Inline the one-use row identity before keyed refresh and integrate the deferred plugin-migration write-options cleanup from main (ad31034, #159426). Preserve worker admission, transaction ownership, options, and refresh order. Also use the synchronized current screen for the sibling stale-display-name assertion without changing its timeout or cleanup. * test(tui): fence reused-session fixture transitions * refactor(ui): colocate omitted media status rendering (#159938) * fix(tui): preserve CLI lifecycle context for terminal events Bind input and resize callbacks at terminal startup so later stdin events retain the existing CLI resource host and scheduler. Keep ingress authority and shutdown ownership unchanged. Add a focused callback-context regression; the real built CLI reproduces the original MCP scheduler error and passes with the adapter. * fix(ci): keep chat attachment controls within lint limit (#160159) Move the unchanged image data-URL decoder into the existing image helper to restore the 700-line lint limit. Validated on Blacksmith Testbox: 34 attachment tests, all core lint stripes, targeted changed checks, and the UI build. Independent review found no actionable issues. * test(daemon): assert incompatible custody release diagnostics Align the four retained historical custody cases with b107d4a. Release now validates the stored generation directly rather than using the mutation-authority predicate, allowing paired cancellation settlement without hiding incompatible-row diagnostics. Require the full incompatibility error while preserving service callback refusal and exact sidecar identity, bytes, and stored-row assertions. Production behavior is unchanged. Blacksmith Testbox tbx_01m3kf15jgcthvq4f69nxn8t28: pristine main ff8c752 fails 3/3 runs with the same four failures; the fix passes 24/24 tests in each of three runs through ci-run-node-test-shard with the daemon config, agentic-command-support shard, CI=1, and two workers. Three sibling files pass 32/32 tests. The single-worker pnpm test cost is 28.05s wall including cold compiler preparation. Targeted lint, formatting, and git diff --check pass. check-changed runs but stops at pre-existing services graph TS2459 errors: package-update-activation-journal.test.ts:7 and package-update-activation-lifetime.test.ts:11 import assertReliabilityForcedExit, made private by 9491d5a. A clean baseline checkout with independent dependencies reproduces both exact errors. No unrelated fix, local validation, autoreview, or push is included; review and publication remain with the lead. * fix(node-host): retain container timeout diagnostics Restore the configured deadline and safe engine operation when runExec reports a sanitized timeout. Keep arguments and executable paths out of the diagnostic, preserve the original cause, and leave deadlines, daemon pinning, and cleanup unchanged. Reproduced the container supervisor failure on main at 8b549de. The focused file now passes all 22 cases; the full supervisor, container, and process families pass 1193 tests with 49 skips across 110 files. Core typecheck, targeted lint/format, docs syntax, and independent P2 review pass. The new four-case deterministic file takes 1.82s Vitest wall; the existing integration file takes 41.03s, with no added processes or waits. * fix(scripts): export assertReliabilityForcedExit for package update tests #158491 imports it from two infra tests after #159362 made it module-local, so the core test-types infra stripe failed on main with TS2459. * fix(ci): keep test planning within its existing budgets Apply the canonical planner repairs from #160408, #160458, #160531, and #160517 to the runtime cleanup branch. Preserve complete source facts, canonical command ownership, and the existing PR-exempt test inventory. The merged cohort passed its old-reader regression control, owner suites, scoped changed checks, and 20 full original-group repetitions on two CPUs. * test(daemon): retain canonical stale-lease release expectation Preserve #160288 when integrating main: a stale stored generation is rejected before its replacement payload is decoded, so release returns false. Keep the callback refusal and exact sidecar and database-row preservation assertions. * fix(ci): adopt canonical Doctor repair lint fix Apply #160715 so the pinned runtime branch includes the canonical repair module split. Version and cohort planning use the existing targets owner; installation retirement and transaction ordering stay with repair. * ci: refresh runtime checks after canonical contract repairs Refresh the PR merge ref after main fixed the unused 1Password dependency in 4ed0cb3 and the retired runtime API inventory in 5b76930. The runtime source tree remains cd5b525, matching the reviewed and completed Testbox proof. * ci: refresh runtime validation after main CI fixes * ci: refresh runtime checks after duplicate route repair
openclaw#158916) * refactor(runtime): deslop tasks, daemon, node-host and tui second pass * test(update): mock canonical systemd activation admission Keep native-start and retained-restart fixtures on the lifecycle admission owner after consolidation. Preserve real executor revocation, native command ordering and every assertion. * test(runtime): track relocated decoder suppression * test(tui): synchronize terminal fixture readiness Inspect the current completed target screen instead of cumulative terminal output. Wait for startup readiness and command publication while isolating unrelated fd discovery in the exact-argument completion fixture. * test(tui): isolate fallback projection from vendor policy loading Use distinct synthetic provider/model identities while retaining foreign-run and malformed-event rejection, exact footer replacement, unchanged backend calls, and clean exit. Include captured terminal output when the exit assertion fails. * test(tui): group session mode proof with identity fixtures Move the self-contained mode-scoping case out of the general harness to retain the line cap. Preserve every assertion, the 20-second operation budget, the 25-second test budget, and owned fixture cleanup. * refactor(runtime): reuse projection and worker dispatch values Inline the one-use row identity before keyed refresh and integrate the deferred plugin-migration write-options cleanup from main (13f2174, openclaw#159426). Preserve worker admission, transaction ownership, options, and refresh order. Also use the synchronized current screen for the sibling stale-display-name assertion without changing its timeout or cleanup. * test(tui): fence reused-session fixture transitions * refactor(ui): colocate omitted media status rendering (openclaw#159938) * fix(tui): preserve CLI lifecycle context for terminal events Bind input and resize callbacks at terminal startup so later stdin events retain the existing CLI resource host and scheduler. Keep ingress authority and shutdown ownership unchanged. Add a focused callback-context regression; the real built CLI reproduces the original MCP scheduler error and passes with the adapter. * fix(ci): keep chat attachment controls within lint limit (openclaw#160159) Move the unchanged image data-URL decoder into the existing image helper to restore the 700-line lint limit. Validated on Blacksmith Testbox: 34 attachment tests, all core lint stripes, targeted changed checks, and the UI build. Independent review found no actionable issues. * test(daemon): assert incompatible custody release diagnostics Align the four retained historical custody cases with 82ab893. Release now validates the stored generation directly rather than using the mutation-authority predicate, allowing paired cancellation settlement without hiding incompatible-row diagnostics. Require the full incompatibility error while preserving service callback refusal and exact sidecar identity, bytes, and stored-row assertions. Production behavior is unchanged. Blacksmith Testbox tbx_01m3kf15jgcthvq4f69nxn8t28: pristine main 5f12b85 fails 3/3 runs with the same four failures; the fix passes 24/24 tests in each of three runs through ci-run-node-test-shard with the daemon config, agentic-command-support shard, CI=1, and two workers. Three sibling files pass 32/32 tests. The single-worker pnpm test cost is 28.05s wall including cold compiler preparation. Targeted lint, formatting, and git diff --check pass. check-changed runs but stops at pre-existing services graph TS2459 errors: package-update-activation-journal.test.ts:7 and package-update-activation-lifetime.test.ts:11 import assertReliabilityForcedExit, made private by 90bddde. A clean baseline checkout with independent dependencies reproduces both exact errors. No unrelated fix, local validation, autoreview, or push is included; review and publication remain with the lead. * fix(node-host): retain container timeout diagnostics Restore the configured deadline and safe engine operation when runExec reports a sanitized timeout. Keep arguments and executable paths out of the diagnostic, preserve the original cause, and leave deadlines, daemon pinning, and cleanup unchanged. Reproduced the container supervisor failure on main at 2d04b95. The focused file now passes all 22 cases; the full supervisor, container, and process families pass 1193 tests with 49 skips across 110 files. Core typecheck, targeted lint/format, docs syntax, and independent P2 review pass. The new four-case deterministic file takes 1.82s Vitest wall; the existing integration file takes 41.03s, with no added processes or waits. * fix(scripts): export assertReliabilityForcedExit for package update tests openclaw#158491 imports it from two infra tests after openclaw#159362 made it module-local, so the core test-types infra stripe failed on main with TS2459. * fix(ci): keep test planning within its existing budgets Apply the canonical planner repairs from openclaw#160408, openclaw#160458, openclaw#160531, and openclaw#160517 to the runtime cleanup branch. Preserve complete source facts, canonical command ownership, and the existing PR-exempt test inventory. The merged cohort passed its old-reader regression control, owner suites, scoped changed checks, and 20 full original-group repetitions on two CPUs. * test(daemon): retain canonical stale-lease release expectation Preserve openclaw#160288 when integrating main: a stale stored generation is rejected before its replacement payload is decoded, so release returns false. Keep the callback refusal and exact sidecar and database-row preservation assertions. * fix(ci): adopt canonical Doctor repair lint fix Apply openclaw#160715 so the pinned runtime branch includes the canonical repair module split. Version and cohort planning use the existing targets owner; installation retirement and transaction ordering stay with repair. * ci: refresh runtime checks after canonical contract repairs Refresh the PR merge ref after main fixed the unused 1Password dependency in 3b5b7e1 and the retired runtime API inventory in 1ed57fc. The runtime source tree remains cd5b525, matching the reviewed and completed Testbox proof. * ci: refresh runtime validation after main CI fixes * ci: refresh runtime checks after duplicate route repair
Co-authored-by: VACInc <[email protected]>
* fix(gateway): pass admitted run instance to loopback-mediated exec * test(gateway): cover egress-enabled MCP exec grants Prove the real MCP HTTP grant, cached tool construction, egress-enabled process launch, retired-grant rejection, and a later run in the same session. Route the fixture through the existing native database-worker test group. Co-authored-by: VACInc <[email protected]> * test(ui): wait for transcript resize before measuring centering The real layout owner publishes viewport width asynchronously after resize. Wait for rendered width readiness, then sample all centers atomically while retaining visible-box and one-pixel assertions. The focused catalog E2E now passes in secretless AWS; the real-browser mechanism reproduces the prior 160px phase and still rejects a 2px displacement. Co-authored-by: VACInc <[email protected]> * fix(ci): restore Doctor plugin repair lint budget (#160715) Co-authored-by: VACInc <[email protected]> * fix(ci): restore config and node adapter lint budgets (#160843) * fix(ci): keep config env and worker tests within lint budgets * test(gateway): share node capacity and rejection fixtures Co-authored-by: VACInc <[email protected]> * refactor(talk): combine transcript early-return guards Preserve echo-first short-circuit evaluation while restoring the existing relay file-length budget. No runtime behavior or lint limit changes. Co-authored-by: VACInc <[email protected]> * refactor(ui): share model setup activation payloads Reuse the same discovery-to-activation projection for prepared and directly selected candidates, retaining optional-field omission and excluding discovery metadata. Restore the existing model setup page line budget without changing UI behavior or lint limits. Co-authored-by: VACInc <[email protected]> * test(gateway): join chat execution before metadata assertions The operator.write verbose-level fixture asserted agent.wait success after a one-second observation window without joining its detached run. Reuse the existing execution observer before the same scoped RPC, preserving the timeout and every metadata/permission assertion. Verified the complete chat file on CI's Node 24.19.0 in network-isolated execution: 41 tests passed. Independent P0-P3 review and targeted lint passed. Co-authored-by: VACInc <[email protected]> * test(gateway): join recap producer lifecycle events Wait for actual model entry before inherited connection drain and for the relocated recap post-commit publication before inspecting persisted state. Preserve model cancellation, old-owner fencing, exact target/store checks and existing persistence assertions. New waits follow test cancellation rather than timing a cold worker through an observation poll. Verified both edited files (25 tests), the original receiving-merge peer groups (377 and 164 tests), focused lint, both owning type graphs and independent P0-P3 review. Co-authored-by: VACInc <[email protected]> * fix(infra): retain explicit SQLite launch paths when cwd is unavailable Keep supplied launch and transport facts, resolve relative arguments only against a genuine captured cwd, and anchor native inspections to selected absolute operation paths when ambient cwd is gone. Refuse unresolved cwd-dependent inputs rather than redirecting them. Prove both native transports after real directory removal; cold Node Worker bootstrap remains a separate lifecycle limitation. Co-authored-by: VACInc <[email protected]> * test(gateway): coordinate monitor fault injection with worker admission Use the existing managed state write transaction for persistent trigger creation and removal. Controlled scheduleUnowned interleaving reproduces both raw-DDL lock failures and passes both managed-DDL variants without changing reload assertions or timeouts. Ensure final trigger cleanup cannot skip service cleanup. Co-authored-by: VACInc <[email protected]> * test(gateway): keep monitor fault injection in fixture support Preserve the exact managed DDL statements and cleanup lifecycle while shrinking the over-cap reload test. Line-cap, suppression, assertion and import-cycle guards pass; the 115-case file, focused lint, owning types and independent P0-P3 review pass. Co-authored-by: VACInc <[email protected]> * test(update): select host runtime for Homebrew guidance Keep the Homebrew-specific guidance fixture independent of the container used for isolated proof. Container cases and all guidance assertions remain unchanged. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…law#160760) * fix(gateway): pass admitted run instance to loopback-mediated exec * test(gateway): cover egress-enabled MCP exec grants Prove the real MCP HTTP grant, cached tool construction, egress-enabled process launch, retired-grant rejection, and a later run in the same session. Route the fixture through the existing native database-worker test group. Co-authored-by: VACInc <[email protected]> * test(ui): wait for transcript resize before measuring centering The real layout owner publishes viewport width asynchronously after resize. Wait for rendered width readiness, then sample all centers atomically while retaining visible-box and one-pixel assertions. The focused catalog E2E now passes in secretless AWS; the real-browser mechanism reproduces the prior 160px phase and still rejects a 2px displacement. Co-authored-by: VACInc <[email protected]> * fix(ci): restore Doctor plugin repair lint budget (openclaw#160715) Co-authored-by: VACInc <[email protected]> * fix(ci): restore config and node adapter lint budgets (openclaw#160843) * fix(ci): keep config env and worker tests within lint budgets * test(gateway): share node capacity and rejection fixtures Co-authored-by: VACInc <[email protected]> * refactor(talk): combine transcript early-return guards Preserve echo-first short-circuit evaluation while restoring the existing relay file-length budget. No runtime behavior or lint limit changes. Co-authored-by: VACInc <[email protected]> * refactor(ui): share model setup activation payloads Reuse the same discovery-to-activation projection for prepared and directly selected candidates, retaining optional-field omission and excluding discovery metadata. Restore the existing model setup page line budget without changing UI behavior or lint limits. Co-authored-by: VACInc <[email protected]> * test(gateway): join chat execution before metadata assertions The operator.write verbose-level fixture asserted agent.wait success after a one-second observation window without joining its detached run. Reuse the existing execution observer before the same scoped RPC, preserving the timeout and every metadata/permission assertion. Verified the complete chat file on CI's Node 24.19.0 in network-isolated execution: 41 tests passed. Independent P0-P3 review and targeted lint passed. Co-authored-by: VACInc <[email protected]> * test(gateway): join recap producer lifecycle events Wait for actual model entry before inherited connection drain and for the relocated recap post-commit publication before inspecting persisted state. Preserve model cancellation, old-owner fencing, exact target/store checks and existing persistence assertions. New waits follow test cancellation rather than timing a cold worker through an observation poll. Verified both edited files (25 tests), the original receiving-merge peer groups (377 and 164 tests), focused lint, both owning type graphs and independent P0-P3 review. Co-authored-by: VACInc <[email protected]> * fix(infra): retain explicit SQLite launch paths when cwd is unavailable Keep supplied launch and transport facts, resolve relative arguments only against a genuine captured cwd, and anchor native inspections to selected absolute operation paths when ambient cwd is gone. Refuse unresolved cwd-dependent inputs rather than redirecting them. Prove both native transports after real directory removal; cold Node Worker bootstrap remains a separate lifecycle limitation. Co-authored-by: VACInc <[email protected]> * test(gateway): coordinate monitor fault injection with worker admission Use the existing managed state write transaction for persistent trigger creation and removal. Controlled scheduleUnowned interleaving reproduces both raw-DDL lock failures and passes both managed-DDL variants without changing reload assertions or timeouts. Ensure final trigger cleanup cannot skip service cleanup. Co-authored-by: VACInc <[email protected]> * test(gateway): keep monitor fault injection in fixture support Preserve the exact managed DDL statements and cleanup lifecycle while shrinking the over-cap reload test. Line-cap, suppression, assertion and import-cycle guards pass; the 115-case file, focused lint, owning types and independent P0-P3 review pass. Co-authored-by: VACInc <[email protected]> * test(update): select host runtime for Homebrew guidance Keep the Homebrew-specific guidance fixture independent of the container used for isolated proof. Container cases and all guidance assertions remain unchanged. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
* fix: preserve plugin settings through update recovery (#160344) Keep incompatible local plugin configuration intact and complete deferred migration confirmation after unchanged package convergence. Use completion receipts to clear obsolete retry warnings without rewriting update history. Fixes #159477. Thanks @EndeavorPioneer for the recovery report. (cherry picked from commit 8e66b0b6c8d1e8022f3f1ebaee532f405897549d) * fix: prevent duplicate Gateways during container onboarding (#160193) * fix: prevent duplicate Gateways during container onboarding * fix: keep QA cron controls scoped to the child Drop inherited parent cron suppression while preserving explicit child runtime settings. Cover the failing inheritance contract at the environment owner. Await node-list RPC responses after acknowledged rename and reconnect events without racing the existing RPC deadline against a separate polling timeout. (cherry picked from commit 54b1b1b63e2149074cd5e0a965834afd31d172df) * fix: deeply nested MCP tool results crash result projection (#160825) Handle deeply nested MCP structuredContent as an actionable tool error instead of letting a serialization RangeError escape result projection. Preserve server content and report the same failure to Code Mode guest callers, without retaining the unprojectable value for downstream serialization. Preserves ordinary shallow results and adds focused regression coverage. Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> Co-authored-by: Takhoffman <[email protected]> (cherry picked from commit 452c808d5b1bab8bfb2f929035db422e6f71acf3) * feat(openai): support GPT-6.1 Sol (#161400) * feat(openai): support GPT-6.1 Sol Co-authored-by: steipete <[email protected]> * feat(openai): support GPT-6.1 Sol Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 970e2aab-1efa-4534-be78-7b6ec08717b5 * fix(openai): preserve GPT-6.1 Sol request capabilities Preserve mandatory reasoning through subscription discovery and configured Responses requests. Extract existing catalog readers and discovery coverage to respect file-size ratchets. Co-authored-by: steipete <[email protected]> * test(openai): narrow discovered model request fixture Require the discovered row before converting catalog modalities and optional context metadata to the typed chat runtime model. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]> (cherry picked from commit 858993c1a41c180da5743c110b5d8cc38bc74007) * fix(logging): redaction stalls for seconds on long plus-joined text (#161089) * fix(logging): stop redaction stalling on long plus-joined text The seven vendor-token patterns built on BASE64_SAFE_TOKEN_BOUNDARY ran their data-URL negative lookbehind at every `+`, `/`, or `=` boundary of a base64-class run, rescanning the whole run each time. On two-byte subjects (any character above U+00FF) V8 no longer rejects those boundaries early, so 100 KB of `+`-joined text took seconds; JSC shows it on more shapes. Check the token with a lookahead first so the lookbehind runs only where a complete token starts. The matched language and capture groups are unchanged. * refactor(logging): inline single-use redaction helpers Compact the base64-safe token helper (identical pattern strings) and fold the naming-only readEnvAssignmentKey wrapper into its only caller, keeping the fix production-LOC negative. (cherry picked from commit ff21cc82ce5ffe7a1587b96a1636488956b26b9c) * fix(gmail): recover watcher after transient restart bind conflicts (#161503) The Gmail watcher stayed down for good when a Gateway restart briefly found its port still in use (EADDRINUSE). It now retries the bind a few times with bounded backoff and recovers once the port frees. If the port stays taken, it reports a clear error and stops retrying. Fixes #161467. Reported by @kazuyuki-eguchi. Proof: a real isolated Gateway, with the Gmail watcher on local fakes. - Before the fix, the watcher stayed down after a transient port conflict. After it, the watcher recovered and answered. - With the port held for the whole run, the watcher stopped after the initial attempt plus three retries, with a clear error. - The regression test fails before the fix and passes after, and 31 focused tests pass. - Updating from the published 2026.9.6 build to this build succeeded in two fresh runs (102 s and 97 s), and the installed build passed both the transient and the persistent control. The first updater run failed at service activation and didn't recur. The watcher can't reach that step: rehearsal disables hooks, and this diff doesn't touch activation or lease code. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 8095304914588d01c552977744595ceed8da985f) * fix(sessions): reject missing and malformed session targets (#161533) * fix(sessions): reject compaction of missing sessions Return an actionable INVALID_REQUEST instead of a successful no-op for missing targets in both compaction modes. Preserve explicit no-op outcomes for existing empty sessions. * fix(sessions): reject malformed reset agent selectors Use strict session agent input validation before lifecycle cleanup so an invalid explicit selector cannot reset the default agent. Extract reset-target resolution from the oversized lifecycle service while retaining selected-global targeting. Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 670c2d0d6a0566e8e29191d70540f4aab8ff48a9) * fix(agents): honor captured subagent announce skips (#161542) Authoritative terminal snapshots bypassed ANNOUNCE_SKIP filtering and woke the requester unnecessarily. Apply the existing completion selector before expanding retained history, then suppress the successful announce while preserving child cleanup. Keep global terminal snapshots, legacy fallback behavior, and failed or timed-out child outcomes unchanged. The real Gateway reproduction made three parent model requests instead of two; five fixed repetitions avoid the extra turn. Three pre-fix regression failures now pass. Blacksmith Testbox proof: 634 related unit cases, 87 announce E2E cases, 15 stub-provider operator scenarios repeated five times, and the full changed-code gate. Streaming/reconnect/timeout-compaction baseline flows passed once; their five-repeat rerun and process-restart proof were not completed within the campaign time box. No live credentials. Changed-test wall costs (pnpm test <file> --maxWorkers=1): T2 COST FILE src/agents/subagents/announce/subagent-announce.test.ts T2 TEST WALL 47.63 seconds T2 COST FILE src/agents/subagents/announce/subagent-announce-output.test.ts T2 TEST WALL 43.91 seconds T2 COST FILE src/agents/subagents/announce/subagent-announce-result.test.ts T2 TEST WALL 29.28 seconds T2 COST FILE src/agents/subagents/completion/subagent-completion-result.test.ts T2 TEST WALL 1.33 seconds Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 806f961301f9b0f4bc12fd6991cac6fac29597c5) * fix(auto-reply): release canceled thinking-catalog waits (#161319) * fix(auto-reply): release canceled thinking-catalog waits Race the canceled reply's model-level and status waits against its own AbortSignal without canceling shared catalog discovery. Refs #161310 * fix(ci): keep database-worker test routes unique The duplicate pdf-tool.resources.test.ts entry introduced in #161270 causes preflight to fail while splitting core-runtime-infra-storage-state. Retain its original route once so PR test plans can be built. * fix(auto-reply): keep abort assertion outside preprocessing import cycle Move the existing AbortError assertion into a small reply leaf module so model-level resolution can use it without importing the preprocessing graph. The reply assertion behavior remains unchanged. * test(ui): wait for shell viewport sync before splash geometry check * fix(auto-reply): cancel earlier directive catalog waits * chore: keep catalog cancellation PR scoped to reply handling * test(auto-reply): avoid returning timer handle from executor --------- Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit f18202c76b68a01841466c6dc94cc65d21fbf023) * fix(tts): pass the responding agent to summary model acquisition (#161454) * fix(tts): pass the responding agent to summary model acquisition summarizeText acquired its model without an agent id, so it fell back to the default agent and threw the no-explicit-owner error in multi-agent configs. Forward the reply's agent id from maybeApplyTtsToPayloadCore. The injected-deps path is unchanged. Fixes #161431 * test(tts): cover multi-agent summary through real model selection Drives summarizeText for agent 'work' in a two-agent config through the real acquisition and selection path, stubbing only the completion call. Asserts the ownership error is gone and the summary keeps using the documented agents.defaults.model.primary fallback. * test(tts): retain behavioral owner regression and document auth scope --------- Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 5073ee41abfbe2cab02c0e58a12d4dcc27bcba18) * fix(imap): bound backlog message retention during sweeps (#160413) The IMAP watcher collected every unseen message into memory before processing any of them, so a large backlog held every message body at once. Sweeps now fetch and process unseen messages in bounded batches, in UID order, with the existing cursor, retry and sender-gate behavior unchanged. Fixes #160353. Thanks @Ayushdevo for the fix and @addyCooks for the report. Proof: a real ImapFlow TCP connection to an in-process IMAP server holding 2,000 messages, run in a container. - On main, the sweep held all 2,000 bodies at once. With this change it held at most 20, and every message was admitted exactly once in UID order. - A rejection injected at UID 25 resumed from cursor 24. - A sender-gated message (UID 30) was skipped once. - The regression test fails before the fix and passes after, and the watcher suite passes 21/21. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit ecbe1861efd51fd1987315baf7b4cff797181a7c) * fix(cron): isolated setup times out while the thinking catalog hydrates (#161132) Isolated cron turns spent their whole 60-second setup budget waiting for the native thinking catalog to load, so the setup watchdog killed runs whose catalog was slow (measured at 13–65 s on 2026.9.6). The cron path now bounds that wait the same way `loadFullModelCatalog` already does and falls back to the published catalog facts. The shared `loadNativeModelCatalog` stays unbounded for the other callers that depend on it returning the complete catalog. Fixes #161112. Thanks @jayzhou2309 for the fix and @Flakedict for the report and the measurements. Proof: a real isolated Gateway in a container, with the mock provider's native catalog publication held open. - On main, cron setup hit the watchdog at 60,012 ms. With this change, the cron turn replied in 11,756 ms while the publication was still held. - When the catalog is fast, the turn replied in 1,683 ms using the full catalog. - The regression test fails before the fix and passes after, and the scoped tests pass 7/7. Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 786ed6b566080f48f57410a3c7334406db8e2da2) * fix(matrix): preserve direct mappings when account-data reads fail (#161727) Preserve existing Matrix peer mappings when an account-data read fails. Keep best-effort fallback on read-only inspection and propagate read errors before writes. The regression failed on the original code and passes after the fix. Direct-room, sibling sender/FIFO, changed-file and zero-cycle checks passed; repair documentation explains the failure behavior. (cherry picked from commit 78d75e9350c2b19cbec5c783d2b2a4d78932bad3) * fix(agents): detached runs keep their transcript when a settled turn is finalized (#161091) * fix(agents): preserve detached finalization history without internal prompts Keep the host-owned session manager and persistence mode during settled-turn finalization. Refresh one-shot user persistence suppression when reusing the guard so empty-answer retries do not retain internal recovery prompts. Preserve completed tool receipts and subsequent genuine user turns. Regression fails before the guard repair with two retained internal prompts and passes afterward. Focused proof: 126 tests, core tsgo, scoped lint, formatting, and whitespace checks pass. Independent Codex review found no actionable P0-P2 findings. Both native-live cases remain enabled on main. * test(agents): reuse a caller-owned admission without growing the attempt runner * test(agents): pass the caller-owned admission from the typed override (cherry picked from commit 8f924bff5d680ef80e96ae960245847c782f2ff4) * fix(worker): stop durable session retries from freezing node hosts (#160812) * fix(worker): stop durable session retries from freezing node hosts * test(worker): name closing window harness as repro * test(worker): fix loopback harness checks * test(worker): adapt closing-window regression to Gateway tools --------- Co-authored-by: Altay <[email protected]> (cherry picked from commit 1de9a42f114e4bdbb8c8be3331b02a9a807efb5f) * fix: preserve plugin install records during legacy updates (#161485) The v13 wide-row state migration conflated a missing installed_plugin_index row with a row whose JSON was unparseable or shape-drifted, and dropped the table in both cases. An invalid row is now preserved in full in the existing diagnostic_events quarantine with repair guidance recorded, valid install records are retained independently of damaged metadata, and a preservation failure rolls the step back to v12. No schema change. Closes #161329. Landed under the pre-existing-red rule: the remaining CI failures were current main reds at this base (Codex app-server settlement fixture drift, fixed on main by 52e60fb42bc3; the subagent kill-tombstone / descendant-cancellation intermittent first seen on main hourly 36619831492). (cherry picked from commit e1ea50caf762bf5b09d2016fcdcf6e126f0c29e5) * fix(gateway): restore CLI-backed exec with secret egress proxy (#160760) * fix(gateway): pass admitted run instance to loopback-mediated exec * test(gateway): cover egress-enabled MCP exec grants Prove the real MCP HTTP grant, cached tool construction, egress-enabled process launch, retired-grant rejection, and a later run in the same session. Route the fixture through the existing native database-worker test group. Co-authored-by: VACInc <[email protected]> * test(ui): wait for transcript resize before measuring centering The real layout owner publishes viewport width asynchronously after resize. Wait for rendered width readiness, then sample all centers atomically while retaining visible-box and one-pixel assertions. The focused catalog E2E now passes in secretless AWS; the real-browser mechanism reproduces the prior 160px phase and still rejects a 2px displacement. Co-authored-by: VACInc <[email protected]> * fix(ci): restore Doctor plugin repair lint budget (#160715) Co-authored-by: VACInc <[email protected]> * fix(ci): restore config and node adapter lint budgets (#160843) * fix(ci): keep config env and worker tests within lint budgets * test(gateway): share node capacity and rejection fixtures Co-authored-by: VACInc <[email protected]> * refactor(talk): combine transcript early-return guards Preserve echo-first short-circuit evaluation while restoring the existing relay file-length budget. No runtime behavior or lint limit changes. Co-authored-by: VACInc <[email protected]> * refactor(ui): share model setup activation payloads Reuse the same discovery-to-activation projection for prepared and directly selected candidates, retaining optional-field omission and excluding discovery metadata. Restore the existing model setup page line budget without changing UI behavior or lint limits. Co-authored-by: VACInc <[email protected]> * test(gateway): join chat execution before metadata assertions The operator.write verbose-level fixture asserted agent.wait success after a one-second observation window without joining its detached run. Reuse the existing execution observer before the same scoped RPC, preserving the timeout and every metadata/permission assertion. Verified the complete chat file on CI's Node 24.19.0 in network-isolated execution: 41 tests passed. Independent P0-P3 review and targeted lint passed. Co-authored-by: VACInc <[email protected]> * test(gateway): join recap producer lifecycle events Wait for actual model entry before inherited connection drain and for the relocated recap post-commit publication before inspecting persisted state. Preserve model cancellation, old-owner fencing, exact target/store checks and existing persistence assertions. New waits follow test cancellation rather than timing a cold worker through an observation poll. Verified both edited files (25 tests), the original receiving-merge peer groups (377 and 164 tests), focused lint, both owning type graphs and independent P0-P3 review. Co-authored-by: VACInc <[email protected]> * fix(infra): retain explicit SQLite launch paths when cwd is unavailable Keep supplied launch and transport facts, resolve relative arguments only against a genuine captured cwd, and anchor native inspections to selected absolute operation paths when ambient cwd is gone. Refuse unresolved cwd-dependent inputs rather than redirecting them. Prove both native transports after real directory removal; cold Node Worker bootstrap remains a separate lifecycle limitation. Co-authored-by: VACInc <[email protected]> * test(gateway): coordinate monitor fault injection with worker admission Use the existing managed state write transaction for persistent trigger creation and removal. Controlled scheduleUnowned interleaving reproduces both raw-DDL lock failures and passes both managed-DDL variants without changing reload assertions or timeouts. Ensure final trigger cleanup cannot skip service cleanup. Co-authored-by: VACInc <[email protected]> * test(gateway): keep monitor fault injection in fixture support Preserve the exact managed DDL statements and cleanup lifecycle while shrinking the over-cap reload test. Line-cap, suppression, assertion and import-cycle guards pass; the 115-case file, focused lint, owning types and independent P0-P3 review pass. Co-authored-by: VACInc <[email protected]> * test(update): select host runtime for Homebrew guidance Keep the Homebrew-specific guidance fixture independent of the container used for isolated proof. Container cases and all guidance assertions remain unchanged. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 6daee6e4bd58a525ac6c958ad885d1431bda26e3) * fix(sandbox): sessions fail with EACCES after skills refresh on read-only installs (#162304) * fix(sandbox): keep synced skill copies removable on read-only installs Sandbox skill sync copied bundled skills with fs.cp, which keeps source modes. From a read-only install every copied directory became 0555, so the next full re-sync (skills version bump or Gateway restart) failed with EACCES unlinking skills/<skill>/SKILL.md, and library-pinned sessions failed every turn. Copied directories are now made owner-writable (file modes unchanged), and removal repairs legacy read-only trees inside the synced child before one retry. The repair stays inside the skills root and never follows symlinks. The Claude CLI skills-plugin copy fallback uses the same helper. * fix(sandbox): classify skill removal errors without a type assertion (cherry picked from commit be93e8595555889d6ddc895989da9971d76de462) * fix(agents): cron fallback delivers a truncated reply when history caps a long message (#160520) When a run's final message was longer than the chat history display cap, the run-wait reply reader fell back to the capped history copy and delivered it with an internal `...(truncated)...` marker, cutting off the user's reply. The reader now recovers the full message instead of the display-capped projection. The capped display history keeps its provenance, and text the model writes itself, including a literal marker, is left alone. Also addresses #82121 at the producer, without global stripping in the sanitizer. Thanks @jayzhou2309. Proof: real isolated Gateways in a secretless container, with a scripted mock model, over the Gateway WebSocket and the actual run-wait reply reader. - On main (`f57a952ab0aa`), a 14,329-character report came back as an 8,018-character copy ending in the truncation marker. With this change, it comes back complete and exact. - Display-cap provenance is kept in history on both builds. - Normal prose and an intentional standalone marker are unchanged. - Three recovery cases fail on main and pass here, and the regression suite passes 63 tests. Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit ebf4bd70ca7ae5c9db4858424e0b9f124114ef85) * fix(update): avoid terminal errors during pnpm updates (#161920) The updater spawned the package-manager install with inherited terminal stdin but captured stdout/stderr; pnpm 12.1.0's global build-approval prompt then failed with "IO error: not a terminal" and aborted the install. The pnpm package-install step now receives EOF on stdin (pnpm skips the prompt when stdin is not a terminal; no --yes, so consent is unchanged); npm and Bun installs and every other bounded command keep their stdin behavior. docs/install/updating.md gains the first-hop recovery for already-installed updaters. Closes #161866 Thanks @alkor2000 for the diagnosis and fix. Co-authored-by: alkor2000 <[email protected]> (cherry picked from commit bbe0d114e4e06678a65a49479c6e9c8e920b500f) * fix(agents): preserve spawned session cwd at ingress (#162308) Visible child sessions persist lineage and a managed cwd without an inherited workspace. Keep that cwd for subsequent runs while preserving explicit inherited workspace precedence and sandbox ownership checks. Existing session rows require no migration. (cherry picked from commit 43d29bbdb1198dcaa277bf020101d54aef349f32) * fix: finished subagents keep child slots occupied after delivery expires (#162368) * fix: release child slots when descendant delivery is suspended * test: wait for collector completion publication * ci: install ripgrep for baseline ratchets * Revert "ci: install ripgrep for baseline ratchets" This reverts commit 616d5cc3e04e77cf97c5cc6b7a201fb02e966a84. * Revert "test: wait for collector completion publication" This reverts commit a9902f4633b12fddccfe4780b3f08ed5ca52cda7. --------- Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit c03ee95e109d671ed7f4d918346a7cdc0f419d69) * fix(skills): sandboxed turns fail with EACCES when refreshing read-only skill copies (#162295) * fix(skills): refresh read-only sandbox skill copies Repair owner access through confined directory descriptors before removing stale materialized skill trees. Preserve read-only sandbox mounts and source permissions. Cover prior read-only copies, nested cleanup, symlink confinement, and mount identity. * fix(skills): unlink stale top-level skill symlinks (cherry picked from commit 81d89fb43bbcb82f03b622dd994ac7e11228e5b5) * fix: steered message no longer replaces a question whose model request failed (#162439) Fixes: with the default `steer` queue mode, a message sent while the first message's model request is failing replaces the first message. The chat shows `⚠️ <model> request failed.` and then only the answer to the second message. The first question is never retried or answered. When a model request fails while a newer message is waiting to steer into that turn, OpenClaw retries or falls back for the first message as usual. The newer message then runs as its own turn. Both questions get answered in order. The failure notice only appears if the first message's retries and fallbacks are all exhausted, the same as when nothing was steered. Root cause: after a model request failed, `AgentSession.handlePostAgentRun` still continued the session with the queued steer. The embedded runner owns retries for a failed request (`agent-project-settings.ts` turns session auto-retry off, #73781), so the failed message was never retried. The steered message ran in its place, against a transcript where the failed message looked handled. Per-input answer segments (#149925) then correctly reported the first segment's failure, so the user got `⚠️ request failed` plus the second answer. Provenance: - `steer` became the default in `4a6e10ece842` ("feat: default queueing to steer") and #77023, to keep the active turn responsive without starting a second run. - The post-run `hasQueuedMessages() ? "continue"` came from #109709 so that messages queued by `agent_end` handlers are not stranded. That reason still holds after successful turns. This PR only excludes failed requests, where continuing skips the run owner's retry and fallback. - Steered channel input already waits for its transcript commit (`agent-runner-steer-adoption.ts`, `waitForTranscriptCommit: true`). When the session settles without committing it, the steer is withdrawn from the runtime queue and the parked reservation falls back to the ordinary follow-up queue. That path runs after the reply operation clears. No new queue or retry logic is added. Fix: one condition. After a failed request, queued input no longer continues the session (`agent-session-prompting.ts`). Docs: `docs/concepts/queue-steering.md`. Hermes comparison: Hermes injects a steer only at a role-safe boundary after a tool result. With no tool row yet, or when the request fails, it requeues the steer as the next turn's user message, and each queued message gets its own turn. This change gives OpenClaw the same outcome by reusing its existing follow-up fallback. Relation to #161069 (stalled-turn recovery): that PR covers turns aborted by stuck-session recovery. This one covers a provider failure while a steer is pending. The two don't overlap. - Fewer model calls: before, a pending steer triggered one extra model call inside the failed run. Now it doesn't. - The first message keeps its existing retry budget (`MAX_EMPTY_ERROR_RETRIES = 3`, plus the configured fallback chain). Nothing new is retried. - A handed-back steer is queued at most once. The fallback drops its `steerPending` marker, so it drains as an ordinary follow-up turn and is never steered again. If that turn also fails, it ends with the normal failure notice and is not requeued. The worst case is one follow-up turn per inbound message. - Tested: the session regression test asserts exactly one model request after the failure, with no continuation. The requeue-once path is existing behavior covered by `src/auto-reply/reply/queue/enqueue.steering.test.ts` (6/6 on this head). **Telegram Test Server** (`telegram-e2e-userbot`, Convex-leased credential, real QA user in a DM, default queue mode). A deterministic mock provider fails agent-turn requests whose newest question is `17*23` three times (`response.failed` after 8 s). Like the live model in our earlier proof, it answers only the newest user question. The QA user sends `What is 17*23?` at +0.2 s and `Also, what is 19*21?` at +8.2 s, so the second message arrives during the first failing request. - Before (built head with only this line reverted): the SUT sends `⚠️ openai/gpt-5.5 request failed.` at +13.1 s, then `399` at +14.1 s. The request after the failure carries both questions (`developer,user,user,user`). The first request is never retried, and `391` is never sent. - After: three failing first-question requests (`[empty-error-retry]` attempts 1/3 to 3/3), none carrying the second question. The fourth request answers `391` at +30.5 s. The second message then runs as its own turn (`developer,user,user,assistant,user,user`) and answers `399` at +31.5 s. No failure notice is sent. **Unit test:** `agent-session-loop-next-turn.test.ts` "does not answer a steer in place of a failed request". On `main` the steer is committed into the failed turn (`promise resolved instead of rejecting`). With this change there is one request, the steer's commit wait rejects so its caller requeues it, and nothing is left queued. File: 24/24 pass. Related suites pass: `sdk`, `agent-session-loop-correctness`, `attempt-prompt-submit` (+ steering, retention), `attempt-stream-prepare`, `attempt-session-replay` and `provider-review-continuation`, 231 tests. **Telegram with a live OpenAI model** (same Telegram Test Server DM; a small local proxy in front of the real OpenAI API fails only the first two agent requests that carry 17*23 without 19*21, and forwards everything else to the live model): - Before (this line reverted in the build): one failing request, then the next request carries both questions and goes to the live model, which answers `399`. The bot sends `⚠️ openai/gpt-6-astra request failed.` (+20.4 s), then `399` (+21.0 s). 17*23 is never answered. - After: two failing requests for the first question alone, then the live model answers the retry with `391` (+24.1 s). The second message's own turn gets `399` (+26.0 s). No notice. - Both runs used the fix build, before the branch was rebased onto newer main; the production change is the same. For the before run, only the fix line was reverted. **Telegram, when the first question fails on every retry and fallback** (same harness; the mock fails every agent request whose newest question is 17*23, and the agent has a fallback model configured): 8 requests for the first question, 4 on `gpt-5.5` and 4 on `gpt-5.5-fallback`. None of them carries the second question. The model-fallback log shows `gpt-5.5` failing over to `gpt-5.5-fallback`, then nothing left to try. The SUT sends exactly two messages: one `⚠️ openai/gpt-5.5-fallback request failed.` at +70.9 s, then `399` at +71.9 s from the second message's own turn. No other notices. **Web UI `chat.send` (real Gateway, operator WebSocket client of the kind the TUI uses, same mock):** the client sends `What is 17*23?`, then `Also, what is 19*21?` 8 s later, during the first failing request. - Before (this line reverted in the build): the client's only answer is `399`. The request after the failure carries both questions (`developer,user,user,user`). `chat.history` ends `user 17*23, user 19*21, assistant 399`, so the first question is unanswered. - After: the steer is withdrawn when the failed attempt settles. Its `chat.send` run closes with an empty final (+17.1 s), and `chat-send-agent-dispatch.ts` dispatches it again; it runs as a follow-up and is not steered into the retry. The first run retries three times, with no retried request carrying the second question, and answers `391` (+33.7 s). The second message's own run answers `399` (+34.0 s). `chat.history`: `user 17*23, assistant 391, user 19*21, assistant 399`. Why a withdrawn Web UI steer can't be re-steered into the retry: with explicit `queueMode: "steer"`, chat.send's fallback dispatch passes `messageInjectionDisposition: "rejected"` (`src/gateway/server-methods/chat-send-agent-dispatch.ts:388-390`). `runReplyAgent` steers only when the disposition is `"none"` (`src/auto-reply/reply/agent-runner-run.ts:341-346`), so the message is queued as a follow-up instead (`:389`). With the default mode, chat.send makes no injection attempt of its own (`chat-send-admission.ts:272-275`) and the message takes the channel path: its parked reservation falls back with its steer marker removed (`queue/enqueue.ts:307-318`), and the queue drains only after the reply operation clears (`agent-runner-steer-adoption.ts:110-122`). **Wall times** (`pnpm test <file>`, shared, heavily loaded host): - `agent-session-loop-next-turn.test.ts`: 24/24, 121 s wall (vitest 106 s). The new test signals request start and steer acceptance with deferreds; it no longer polls. - `enqueue.steering`: 6/6, 78 s. - `attempt.queue-message`: 16/16, 98 s. - `agent-session-handoff-adoption.integration`: 1/1, 63 s. - `agent-runner-steer-adoption.question-recovery`: 25/25, 97 s. - `chat-send-steering-custody`: 17/17, 90 s. - `agent-runner.runreplyagent.e2e`: 223/224 under load. The one failure, "keeps the replacement source when retired admission completes", passes alone (60 s wall). That file mocks the embedded agent, so it never reaches the changed session code. qa-lab note: the qa-channel serializes inbound per account, so the same-sender steer couldn't be reproduced there. The proof uses the Telegram Test Server instead. LOC vs `origin/main`: production +3/−1, test +46, docs +1 (changed line). Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 4d755295bc37cf910e168578697528af1753b98b) * fix(telegram): restore progress when reply hooks suppress previews (#161546) * fix(telegram): deliver progress when reply hooks suppress previews Co-authored-by: VACInc <[email protected]> * fix(telegram): honor global block-streaming opt-out Preserve the explicit global off preference when reply hooks suppress previews, and cover both hook contracts through Telegram HTTP delivery. Co-authored-by: VACInc <[email protected]> * docs(telegram): clarify hooked fallback for multi-agent turns Clarify that configured GroupThread turns retain their existing block policy: their previews are disabled independently of reply-modifying hooks. The new forced fallback applies to ordinary single-agent turns. No delivery-policy or test changes. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]> (cherry picked from commit 54a614954928e718f97c5aade26a7a94fdc4f45f) * fix(webchat): keep saved replies visible during history refresh (#162763) * fix(webchat): keep saved replies visible during history refresh Fence pre-commit history snapshots at transcript publication before run settlement. Reuse the existing queued refresh so both active and late background replies survive history races. Co-authored-by: VACInc <[email protected]> * fix(webchat): keep saved replies visible during history refresh Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 18964aa1-fac1-42b9-8777-682b1d10ef09 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]> (cherry picked from commit e42c52b7d83ede656c778337b46c0a25cb279625) * fix(cron): stale automatic tool lists block scheduled jobs from tools their owner has (#162432) Related: #130753, #137832, #147969 Fixes: some scheduled jobs created by an agent fail for months because a tool list saved by an older OpenClaw build is missing tools the creator actually had, such as the native shell. In our setup, a monthly group job that runs `node <script>` delivered nothing in August, delivered nothing in September (the run still reported `ok`), and posted a blocker in October. Its saved list had 31 tools and no `exec`. User impact: an agent-created agent-turn job that does not name specific tools now gets the same tools as its owner conversation at run time, like a job an operator creates without `--tools`. Existing jobs with an automatically saved creator snapshot behave the same way from their next run. Nothing stored is rewritten: no migration and no backups. Explicit tool lists, script payloads, condition triggers, and jobs bound to captured Codex app authority keep their stored list. Tradeoff, approved by the maintainer (Ayaan): a per-sender tool policy on the creating owner, or a plugin hook that narrowed the creating turn, no longer limits these default jobs. Only owners can create automations from chat, and subagents cannot create them. **History of the saved list.** - #91499 introduced it so a delayed run cannot do more than its creator could. - #112483 made every agent-created job store one, because runs have no sender. - #112661 made scheduled runs re-apply the owner session's group policy and every non-sender limit, keeping the stored list as the upper bound. - #137832 fixed native tool capture for new jobs only, and deliberately did not widen stored lists. - #147969 added a Doctor advisory. It only fires for claude-cli, so it never covered Codex-harness or built-in OpenAI jobs like ours. **Root cause.** When no tool list was given, OpenClaw saved a frozen copy of the creating turn's tools instead of treating the job like an operator `*` job. Every capture bug (missing native tools, late configured MCP, renamed tools) then stayed in the job permanently. **Fix.** This follows Hermes, which keeps no creator snapshot: `cron/scheduler.py` `_resolve_cron_enabled_toolsets` reads toolsets from config at run time. - **New jobs.** An agent-turn create or update with no list, or `*`, stores `["*"]`. That is the same value operator jobs store, so the job's tools match a normal turn in its owner conversation. Script payloads and condition triggers still store the creator's concrete tools, because a script reaches MCP only through servers its list names. Jobs whose creator captured Codex app authority also keep the concrete list, because that authority is bound to it. - **Existing jobs.** One helper, `resolveCronRunToolsAllow` in `src/cron/tools-allow.ts`: a stored automatic snapshot (`toolsAllowIsDefault`) runs as `*` when it has a valid scheduled owner policy, no condition trigger, and no Codex app authority. Otherwise it keeps its stored list. Every execution consumer of the stored list uses it: the run payload, the command-prompt preflight, and the scheduled message authority. - **Script transitions.** A `*` job that becomes a script, or gains a condition trigger, captures the creator's concrete tools. - **Exec pin.** A `*` list keeps the creator's exec host pin. - **No new noise:** automatic snapshots stay excluded from the `web_search` provider warning, as on main. - **Deleted, now pointless:** both Doctor advisories about incomplete automatic snapshots, the run warning about pre-MCP snapshots, and two exports nothing uses anymore. Review note: on claude-cli, a `*` job runs without a CLI tool cap, so Claude's native tools behave exactly as in a normal chat turn in that conversation. This PR introduces no new path around `tools.deny` that a chat turn doesn't already have. Live-model Telegram proof (Telegram Test Server DM, leased team credential, live `openai/gpt-6-astra` reached through a forwarding proxy that stands in for the runner's mock provider; the runner harness itself is unchanged). This reproduces the shape of the original incident: - The tester DMs the bot, which creates the owner conversation. - A job owned by that conversation is added. Its stored list is an old-style automatic snapshot `["automations","message","read"]` plus `toolsAllowIsDefault: true`, with no `exec`. - The payload is `Run: node scripts/split-report.mjs and post its output line verbatim`. The workspace script prints a random nonce. - The job is run once (`cron run --wait`), with announce delivery to the DM. | Build | `exec` offered | Model action | What arrived in the DM | Run | |---|---|---|---|---| | base 94f5a8d (main before this PR) | no | `tool_search` ×2, then gave up | "Could not run node scripts/split-report.mjs: no command-execution tool is available…" | error | | **this PR, head 5b78cb7** | **yes** | `exec {"command":"node scripts/split-report.mjs"}` | "**SPLIT-REPORT 93C53909**: general 41, design 17, ops 9" (the exact script output, with this run's random nonce) | ok, delivered | | head 5b78cb7 with `tools.deny: ["exec"]` | no | `tool_search`, `read`, then gave up | "Could not run node scripts/split-report.mjs: no command-execution tool or paired node is available…" | error | In every run, the stored job kept `["automations","message","read"]` plus the marker. Before and after use the same scenario and driver; only the checkout differs. Update and live proof: published `[email protected]`, then this branch at the exact head (2f5099d), on the same state directory. Mock provider. Every process ran under a temporary `HOME` and state directory. Each job's message makes the model call `exec` with `touch <effects>/<job>`. 1. 2026.9.7 created both jobs through `cron.add` (scheduled policy `trusted`). With the Gateway stopped, the "stale" job was given the old automatic-snapshot shape `["automations","message","read"]` plus `toolsAllowIsDefault: true`. sha256 of both stored rows: `609358837…`. 2. Runs: | Build / config | Job | `exec` offered | Side effect | Run | |---|---|---|---|---| | 2026.9.7 | stale automatic snapshot | no | absent | error | | 2026.9.7 | explicit `["read","message"]` | no | absent | error | | this branch | stale automatic snapshot | **yes** | **created** | ok | | this branch | explicit `["read","message"]` | no | absent | error | | this branch, owner policy narrowed to `tools.deny: ["exec"]` | stale automatic snapshot | no | **absent** | error | | this branch, `tools.deny: ["exec"]` | explicit `["read","message"]` | no | absent | error | 3. After the branch runs, the stored rows were byte-identical (same sha256 `609358837…`), and job ids and lists were unchanged. Nothing was migrated. An earlier run at e151ea3, with the same harness, also covered a snapshot bound to Codex app authority: `exec` was not offered, the file stayed absent, and the stored row was unchanged. Tests: - `run.tools-allow.test.ts`: a stored automatic snapshot `["message","read"]` reaches the embedded run as `["*"]`, with the owner's scheduled policy intact. It fails on main with `["message","read"]`. - `cron-tool-creator-cap.test.ts`: a default agent turn stores `["*"]`, while a trigger script and a Codex-app creator keep the concrete snapshot. - `run.tools-allow.test.ts`: snapshots without a valid owner policy, or behind a condition trigger, keep their list. Both cases fail on the previous head. - `run.tools-allow.test.ts`: no `web_search` warning for an automatic snapshot that kept its list. This fails without the exclusion. - `run.message-tool-policy.test.ts`: a self-edited automatic snapshot runs on CLI with no cap. - `run.tools-allow.test.ts`: a legacy `Command to run:` prompt from an automatic snapshot without shell tools now runs instead of being rejected. - `jobs-tool-policy.test.ts`: scheduled message authority is admitted for an automatic snapshot that lacked `message`. - `cron-tool-creator-cap.test.ts`: a `*` agent turn converted to a script captures the creator's concrete tools. - These three regressions fail on the previous head. `node scripts/check-changed.mjs` passes. - Explicit-list, exec-pin and gateway creator-transport suites pass. `pnpm tsgo:core` passes. No new path triggers a model call or a job run. The change only selects which tool list an already scheduled run uses. LOC vs main: production +98/-250 (net -152), tests +140/-373, docs +19/-11. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 08498ec40de5803d77eafb728ef675d0034c13c1) * fix(cron): deliver manual runs started from an agent turn after that turn ends (#162780) Fixes: when an agent turn starts an automation with `automations` `run` (for example the owner says "run my report now"), the run fails with `attempt disposed before transcript write` once that turn ends. For a `sessionTarget: "current"` job the report is never delivered. For other jobs the report is still sent, but its copy in the conversation transcript is lost (a WARN). User impact: "Run it now" from a chat delivers the report, the same as a scheduled run. No new settings, messages or warnings. Root cause: the `automations` tool calls `cron.run` through the in-process gateway, so `enqueueRun` runs inside the calling turn's AsyncLocalStorage, including its owned transcript-write context (`withOwnedSessionTranscriptWrites`). The queued run inherits that context. When the run writes into the caller's session (the current-session report or the delivery mirror), `runWithOwnedSessionTranscriptWrite` matches the session and routes the write through the caller's attempt lifecycle. By then that turn has ended and its lifecycle is disposed, so the write is rejected. Provenance: - #104595 (`b6e95201f8b`, "retain detached manual run admission") made the queued manual run its own gateway root (`runWithGatewayIndependentRootWorkContinuation(..., "cron:manual-run")`), so it no longer depends on the caller's request. That helper resets only gateway work admission, not other per-turn context. - Later, #115404 (`d16e33e08e4`) and #121113 (`ce53f7e82e2`) carried the turn's transcript lifecycle and writer fence in an AsyncLocalStorage, so nested writes stay serialized and fenced to the running attempt. #115404 also added `runWithoutOwnedSessionTranscriptWrites` for work that outlives its turn. Subagent completion (`b3d3f860e4a`), `sessions_send` follow-ups, media-generation completions, and session event wakes all use it. The manual-run detach point from #104595 never got it. Fix: `enqueueRun` starts the queued run outside the caller's owned transcript context (`runWithoutOwnedSessionTranscriptWrites` around the existing independent root continuation). It reuses the helper the sibling detached paths use; no new mechanism. The invariants of those PRs still hold: the run is still a tracked independent gateway root (#104595); the caller's activation and commit guards still run before acceptance, and they don't touch transcripts; writes made during the turn are still fenced to its attempt (#115404/#121113). The queued run gets its own lifecycle when its attempt starts, the same as a scheduled run. Hermes: `trigger_job` doesn't run the job inside the caller. It marks the job for the scheduler's next tick, so a manual run always starts from scheduler-owned context. This change does the same for OpenClaw's queued manual run, at the point where it detaches. - **Live, Telegram Test Server DM, live OpenAI model** (`telegram-e2e-userbot`, Convex-leased credential, fresh isolated gateway built from each ref, ports 19951/19952, provider slot = pass-through proxy to the OpenAI API; the tester is the configured owner, `session.dmScope: "main"`). The owner creates `current-check` (`sessionTarget: "current"`, `payload: agentTurn "Reply with exactly CURRENT-REPORT"`, `delivery: announce`, disabled), then sends: "Use the automations tool to run the automation named current-check now (action run, runMode force …). When the run call returns, reply with exactly RUN-DONE". - Command (secrets omitted): `E2E_MOCK_SERVER_PATH=<live proxy> node .agents/skills/telegram-e2e-userbot/scripts/run-mock-sut-user-e2e.mjs --gateway-port 19951 --mock-port 19952 --dm --timeout-ms 420000 --scenario <scenario> --record events.ndjson --output summary.json` → exit 0 on both refs. The scenario waits 90 s after the last reply. - **Before, `origin/main` `26bcc94353c`:** DM shows `SETUP-DONE` (20.8 s) and `RUN-DONE` (87.7 s), then nothing more. The run receipt is `error: attempt disposed before transcript write`. The gateway logs it at the cron run session (`outcome=error`). - **After, this branch:** DM shows `SETUP-DONE` (24.2 s), `RUN-DONE` (94.4 s), **`CURRENT-REPORT` (96.4 s)**. The run receipt is `ok`, and the gateway log has no `attempt disposed` lines. The WARN/ERROR lines are the same harness startup lines as in the before run. - **Regression test** (`src/cron/service/ops.regression.test.ts`, "runs a manual run queued from an agent turn outside that turn's transcript lifecycle"): `enqueueRun` is called inside a real attempt transcript lifecycle (`createEmbeddedAttemptTranscriptLifecycle` + `withOwnedSessionTranscriptWrites`). The calling turn disposes, then the run writes into the caller session through the real `runWithOwnedSessionTranscriptWrite`. On `origin/main` the run finishes `error`; with this change it finishes `ok` and the write lands. - `pnpm exec vitest run src/cron/service/ops.regression.test.ts src/cron/service/ops.run-admission-cleanup.test.ts src/cron/service/ops.run-admission.test.ts src/cron/service/manual-ack-durability.test.ts` → 4 files, 46 tests passed. - `node scripts/check-changed.mjs` on `997394f3a3a` → exit 0 (format, lint, core and test typecheck, line-cap and dead-export ratchets). - Test cost: `pnpm test src/cron/service/ops.regression.test.ts --maxWorkers=1` → 15 tests passed, 33.9 s wall (vitest 30.7 s, mostly transform; the new test itself takes about 40 ms). - Size vs `origin/main`: production +6/−2 ignoring whitespace (+75/−71 raw, because the existing callback is re-indented one level); test +58. Not changed here: in both runs the `current` run waits behind the caller turn, and the tool's run wait returns "Not finished yet" after about 60 s before the turn replies. That wait is a separate issue. One AsyncLocalStorage `exit` per queued manual run. No new state, timers, retries or queues. The run's own transcript writes go through its own attempt lifecycle, as for any scheduled run. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 510beb8d52bd6be9fea27513b9008a50c92a1d2d) * fix(codex): prevent Gateway heap exhaustion with large agent fleets (#162912) Closes #162802 Fixes Gateway heap exhaustion during Codex session discovery on large agent fleets. Thanks to @609NFT for the report and allocation profiles. Large fleets can finish startup and retain their native Codex session catalog without retaining a whole fleet configuration for every agent/home pair. No schema, stored-data, configuration, or catalog-output changes are required. The existing config-identity cache now owns one captured configuration per generation. Agent/home entries keep their separate directories and cloned connection options, but share that captured configuration. Config reload isolation and source-specific backoff remain unchanged. No overlap with Pash/Sarah changes. Codex source inspection: `codex-rs/app-server/src/request_processors/thread_processor.rs:2524–2608` in the sibling Codex checkout confirms that `thread/list` consumes pagination and filter parameters; the fleet configuration capture being repaired belongs to OpenClaw, not the native listing protocol. Compared baseline `7ef388bac8f607eb03510189922d1c6a4d786b52` with candidate `f0ae922f60922f2b357bc3d5af22a2142799fbe0` in isolated Linux arm64 Docker containers, Node 24.21.0. The synthetic profile contained 739 agents, eight explicit Codex homes, and three native sessions (380,439 bytes of configuration). | Check | Baseline | Candidate | | --- | --- | --- | | Real Gateway, 2,560 MiB heap | Heap OOM at 100.3 s | Survived the six-minute window; clean shutdown | | Sampled catalog allocations under `resolveRequestOptions` → `structuredClone` | 2.248 GB | 5.48 MB | | Post-startup heap, 150–360 s | Process already terminated | Bounded at 377–566 MiB | | Complete startup, separate 6,144 MiB control without profiling | 98.34 s | 93.83 s | | HTTP listening, same startup control | 50.52 s | 49.56 s | The larger-heap startup control lets the baseline complete startup rather than comparing a successful candidate against an OOM. - Real `sessions.catalog.list` Gateway RPCs returned exactly the three expected native session IDs for agents `agent000`, `agent001`, and `agent738`. - Exact-head live gate: a real OpenAI `gpt-5.4-mini` turn through the candidate Gateway's Codex harness returned `CATALOG_LIVE_OK` on the 739-agent profile (5.449 s). Its temporary read-only credential file and container were removed. - Regression failed on baseline: four fleet config clones instead of one across multiple agents/homes. It passes on the candidate and also checks reload allocation isolation; the regression itself took 5 ms. - All 38 focused tests passed across `session-catalog-listing-cache.test.ts`, `session-catalog-request-lifetime.test.ts`, `session-catalog-homes.test.ts`, and `session-catalog-backoff.test.ts` (38.67 s wall). - Standalone `pnpm test extensions/codex/src/session-catalog-listing-cache.test.ts --maxWorkers=1` passed (32.61 s wall, including runner preparation). - Built and exercised the real candidate runtime with `pnpm build`. Broader static and project-wide validation is left to CI. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit fd0124688db63ef6801ed5008551cf7db9e1a433) * fix(agents): preserve complete CLI subagent answers (#162843) Fixes #162777. The claude-cli transcript writer now records `__openclaw.runId` on the terminal assistant row, matching the field other writers set and the completion reader expects. CLI-backed subagents now deliver their complete final answer instead of the truncated-by-retention fallback. Proof: real isolated Gateway with a fake claude-cli backend. main delivered the fallback and dropped the tail of a 14,025-character child answer; with this change the parent received all 400 lines including the tail marker. A failed CLI child still reports its error with no fabricated final. Live control: one real OpenAI embedded subagent turn delivered its exact answer. Regression tests fail before and pass after. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit d7cea26df24dac303a77f0e6149654a685e55323) * fix(reef): admit gpt-6.1-sol as a documented immutable guard model (#162955) OpenAI's gpt-6.1 generation publishes no dated snapshots either, so the Reef guard rejected the Team configuration that pinned gpt-6.1-sol and the channel could not start. Admit the exact id beside the gpt-5.6 ids, with the same documented residual risk; bare family aliases stay rejected. (cherry picked from commit d77cdd2af6bbcc238b38c99a0b0d54fe35b3359e) * fix: remote MCP plugins fail to start in native agent sessions (#162376) * fix: remote MCP plugins fail to start in native agent sessions * test: align remote MCP assertions with normalized transports (cherry picked from commit 4587ef903ca6afa6ca58b4c02a656e59a6ca0656) * fix(llama-cpp): managed server fails on clean Windows installs (#163093) * fix(llama-cpp): ship Windows VC runtime app-local * fix(llama-cpp): make Windows runtime staging fallback-only (cherry picked from commit 45762faaa842ffc797086417ad7b75c1ff588799) * fix(secrets): keep store entry kind when rotating a value (#158968) (#160926) * fix(secrets): keep store entry kind when rotating a value `secrets store set <NAME> --value-file <path>` resolved the entry kind from the name heuristic whenever no host-policy flag was passed, so rotating the value of an entry created with `--kind secret` under a name the heuristic does not classify as sensitive silently converted it into a readable `env` entry and deleted its `--allow-host` allowlist. `import` classified every entry from its name for the same reason. Both paths now inherit the stored kind, and that inheritance is resolved inside the authoritative store write transaction rather than captured before the CLI awaits its value or its confirmation. A protection change committed while one of those waits is pending is therefore no longer overwritten by the pending write, and the value it carries lands under the newer policy instead of reaching agent subprocesses as plaintext. Because a kind resolved at write time can invalidate a value the CLI already accepted, `import` now hands its whole batch to a single store-owned write. `writeSecretStoreEntries` resolves every live kind and validates every resulting entry inside one transaction before it writes any of them, so an entry that a concurrent protection change turns into an empty secret still fails the command with nothing committed, matching the existing no-write-on-validation-failure contract. An explicit `--kind` still overrides both the stored kind and the name heuristic in either direction. (cherry picked from commit 66a8c01c8db76bf63ab79c506880f462856b2d1e) * fix(secrets): satisfy CI pools, formatters, and assertion ratchet - Run the kind-inheritance purge through the expiry kernel directly so it does not require the host-broker state worker (the CLI project executes test files off the main thread). - Replace uncommented kind casts with runtime narrowing for the assertion SAFETY ratchet; reformat to oxfmt. Co-authored-by: yetval <[email protected]> * chore(ci): rerun checks * ci: retrigger checks for flaky shard reruns * ci: retrigger checks (flaky infra shards) * test(ci): dedupe pdf-tool.resources in database worker core paths 670e3fb4ea2 (#161270) re-added src/agents/tools/pdf-tool.resources.test.ts to databaseWorkerCoreTestFiles, which already listed it (16b17b22ebc). The changed-node shard planner now rejects repeated files in a split timing generation, so preflight threw 'split timing generation repeats files for core-runtime-infra-storage-state' for every PR touching any non-README path. * fix(secrets): enforce literal input safety at commit Carry argv provenance to the store transaction and refuse literal values when kind inheritance resolves to a secret. Preserve explicit env reclassification, cover concurrent protection, and clarify the set/import kind rules. Strengthen rotation-value, committed-kind output, and redacted batch no-write regressions. Existing Gateway writer paths remain unchanged. Co-authored-by: zachisfine <[email protected]> Co-authored-by: yetval <[email protected]> --------- Co-authored-by: yetval <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: zachisfine <[email protected]> (cherry picked from commit 0ae13a56209a1e4eea646e1869bd81367b38d3c0) * chore(release): prepare 2026.8.35 * fix(release): adapt backports for 2026.8 * docs(changelog): refresh 2026.8.35 ledger * fix: repair extended-stable backport integration * fix: preserve cleanup failures on 2026.8 * test: complete worker cleanup before gateway close --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: wangmiao0668000666 <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> Co-authored-by: RoboClaw <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Baumus <[email protected]> Co-authored-by: Y.B. <[email protected]> Co-authored-by: Ayush Tiwari <[email protected]> Co-authored-by: Jay Zhou <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: RileyJJY <[email protected]> Co-authored-by: Altay <[email protected]> Co-authored-by: Vito Cappello <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: alkor2000 <[email protected]> Co-authored-by: alkor2000 <[email protected]> Co-authored-by: Sam Armstrong <[email protected]> Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Jony <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: zachisfine <[email protected]> Co-authored-by: yetval <[email protected]>
* refactor(channels): deslop small channel plugins (#160639) Reuse SDK parsing, normalization, timeout, status, and context contracts; remove private forwarding layers and redundant result/type projections across the ten small channel plugins. Preserve provider wire formats, authorization, rate limits, chunking, and state contracts. Keep meaningful owner-command and registration coverage at real channel boundaries, and shrink only the affected assertion-baseline entries. * fix(talk): speaking over the assistant does not interrupt it during forced consults (#153727) Restore speech interruption during forced agent consults by resolving the existing provider preference independently of automatic audio responses. Preserve explicit interruption opt-out on both routing paths. Closes #139278 Co-authored-by: JIE <[email protected]> Co-authored-by: IWhatsskill <[email protected]> * fix(ui): keep history rail wave while hovering its preview (#160722) Co-authored-by: vyctorbrzezowski <[email protected]> * fix(qa): unblock isolated harness tool and evidence checks (#160527) * fix(qa): recognize settled subagent batches Share requester-settle wake recognition between mock input classification and completion handling. Accept the current batch wording while retaining installed-candidate session wording and the existing provenance check. The real catalog-only handoff spawned and completed a child on the baseline, but QA ignored its completion and timed out. Two focused regressions failed before this fix. The real handoff now passes, all 70 owner/sibling tests pass, and check-changed passes. Standalone changed-test wall times: input 3.21s; handoff 33.76s. * fix(qa): admit canonical repository checkpoint commands * fix(ui): stabilize Run Inspector evidence collection Bind rendered evidence to the public run, execution, and selected decision receipt identities. Add a shared collector that uses the component-owned route model and a separate page, preserving the caller's Chat surface and unsent draft through collection and later reload. Cover exact run/execution selection, receipt cursor reload, back navigation, wrong requested identity, missing receipt, and page cleanup in the existing mock-Gateway Chromium harness. Document the collector and per-tab auth setup. The regression failed on baseline before product edits because the rendered run identity attribute was absent. Terminal R's optional assistant transcript idempotency key is a distinct producer gap; this does not manufacture that key, relabel historical cells, or change product appearance. * fix(telegram): confine QA runtime and preserve readiness evidence Run standard-library drivers through existing Python without UV inline-script virtual environments. Confine private runtime state, drain readiness pipes, retain structural diagnostics, and require verified teardown receipts before releasing recovery state. Preserve doctor, recovery, group, and published-upgrade callers. Validation: native sandbox regression failed before the fix; 140 harness tests pass, and 72 final focused owner/sibling tests pass in 5.73s. Build exits 0. Broad changed checks stop on two unchanged TS2459 package-update test errors. Focused lint matches all 135 baseline findings with zero additions. No live credentials or Telegram sends. * fix(telegram): avoid native scenario barrier watchers * fix(qa): share production publication guard contract * fix(qa): require named message availability in mock provider A catalog dispatcher does not advertise every delivery tool. Require the exact message declaration and a usable invocation surface, including trusted system/developer instruction carriers. Finish with the recovered child result when message is absent. Prove the absent-message regression through the mock HTTP provider and retain catalog delivery, namespace, text-only fanout, and subagent handoff coverage. * fix(qa): pass checkout roots to script scenarios Expand the selected repoRoot separately from each scenario outputDir in the maintained test-file runner. Prove the argument and CWD contract through a real subprocess with external artifacts and fresh passing producer evidence. * fix(qa): distinguish tool declarations from instruction prose * fix(qa): bind forked-context evidence to native receipts * fix(qa): bind repeated-ingress MCP scheduler * fix(qa): add owned provider continuation checkpoints Let maintained mock scenarios hold one session continuation before response bytes and observe its request cursor and tool-call identity. Reuse the provider request log and scenario signal/shutdown lifecycle; replacement requests proceed normally without touching Gateway decision state. * fix(qa): keep harness proofs within their owners * test(qa): exclude all registered runtime consumers * fix(qa): preserve runtime inputs and enforce checkpoint launches * test(qa): skip runtime proofs when tools are absent * fix(qa): complete checkpoint launcher test admission * test(qa): compile repeated ingress child before execution * refactor(test): share caller-mode migration fixtures (#160714) Co-authored-by: Vincent Koc <[email protected]> * fix(ui): keep acknowledged session renames visible during reconciliation (#160579) A label-only sessions.patch never resolved a pending row target or published a field receipt, so the acknowledged rename was ignored until a sessions.changed event or a post-commit sessions.list arrived. Closing the title editor therefore showed the old name again after the Gateway had committed the new one. With a slow roster read in flight and the change event delayed, a real Gateway showed the old title for about one second after the ack. Route labels through the existing patch receipt owner: resolve the pending conversation for label patches, project entry.label from the committed receipt, and type it in the UI patch result. The receipt carries the existing connection, agent, session-generation, updatedAt and read-cutoff fences, so a roster read started before the rename cannot replace it while newer Gateway snapshots still win. The earlier permanent revert seen in the rename-composition probe was a mock artifact: it answered a post-commit list with pre-commit rows and no snapshotAt. On a real Gateway the event and post-commit list carry newer snapshotAt clocks and eventually restore the name; the defect was the visible revert window, not a lasting loss. * fix(scripts): accept the CI workflow's fail-fast expression in admin landing (#160721) * fix(ui): restore the alternating Talk, Send, and Stop button (#160725) Worked on by: - @vyctorbrzezowski OpenClaw-Publication: 9ef95dec-f3a2-4939-9bee-d50cc60bc93d Co-authored-by: vyctorbrzezowski <[email protected]> * fix(cron): named-session jobs run in the wrong workspace (#159444) * fix(cron): named-session jobs run in the wrong workspace Use saved session workspace and cwd bindings for explicit named-session jobs, retain their managed worktree lease, and preserve workspace context and restrictions across persistent rollover without changing detached runs. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(cron): named-session jobs run in the wrong workspace Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 85b73558-d465-449a-8257-0d87d3c1ccf8 * fix(cron): prevent cross-session scheduled file access Bind requester-scheduled saved-workspace access to the authenticated owning conversation while preserving trusted operator targeting. Prove the path from creator tool grants through stored jobs and scheduling to real file I/O, including foreign and archived-session rejection. Correct mismatched session-key fixtures and make the outbound retry fixture use the runner session reader and canonical delivery-plan owner. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(cron): reject mismatched worktree owners Apply the existing session-worktree owner invariant to the already-read registry record, before and after lease acquisition. Prove valid leases and rejected foreign-session or manual-owner bindings through real registry rows, Git worktrees, and final coding-tool file reads. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): show the exact command to approve an admin access request (#160685) * fix(ui): show exact scope approval command Include the pending request ID in the Limited access approval instructions. The former openclaw devices command only printed help; render openclaw devices approve with the current request ID and align the connection documentation without changing scope or pairing policy. Proof: real read-only browser requested admin, rendered the actual pending ID, and reconnected with admin scopes 981ms after CLI approval. Denial, expiry, and retry were also exercised. The new regression fails before the fix; sidebar tests pass (9 tests, 3.74s wall). Combined changed checks and UI build pass remotely. Local formatting hooks are replaced by completed remote gates; both private staged-content scans pass. * test(ui): assert the exact scope approval command in the live e2e Co-authored-by: Peter Steinberger <[email protected]> * fix: worker turns fail on older session-host nodes after the Gateway adds a worker tool (#160147) * fix(gateway): keep worker turns working on session hosts that predate new worker tools A Gateway built from main added the `presence` worker session tool, and every worker-turn launch to a published [email protected] session-host node failed with `INVALID_REQUEST: invalid worker launch descriptor` followed by `node worker cancellation timed out`. The installed node supervisor validates `toolAuthority.allowedToolNames` against a closed vocabulary, and bundle refresh does not replace the supervisor. The Gateway now negotiates the launch vocabulary per node, following the existing capability pattern: it advertises `node-worker-launch-tool-names-v1`, updated nodes declare `workerHost.launchToolNames` only to Gateways that advertise it, and the Gateway treats an absent declaration as the frozen 2026.9.6 vocabulary. Tool authority filters the projected tool set by the destination vocabulary, so turn authorization and the launch descriptor stay identical. Unknown declared names are ignored, so future worker tools need no further capability. Update behavior: Gateway-first updates keep older nodes hosting turns without newer tools (one info log names them); node-first updates keep the declaration unchanged for older Gateways; updated pairs get presence. * fix(scripts): add worker tool authority to the PR wrapper inventory src/infra/node-runner-inventory.ts is in the trusted-anchor PR wrapper's runtime import closure and now imports src/worker/tool-authority.ts for launch tool-name negotiation; the extracted wrapper could not resolve it. * test(gateway): await the shared async node tunnel manager fixture Main moved createManager into node-worker-tunnel.test-support.ts as an async helper (#160415); the launch-vocabulary lifecycle test still called it synchronously. * fix(node-host): updates never install on Bun-only macOS and Linux hosts (#160575) * fix(node-host): prepare updates on Bun-only POSIX hosts Read exact registry manifests and stream SHA-512-verified archives in process, then use shared Bun staging inside the private node runtime generation. Preserve npm preparation on Node and Windows, including existing schema and candidate checks. Cover Bun preparation, private bins, retained generations, invalid registry archives, loopback discovery, and Windows npm selection. Remove the Linux smoke blocker and document the remaining Windows limitation. * refactor(update): share registry package document reads Consolidate registry URL construction, HTTP fetching, JSON consumption, deadlines, and response cleanup for update discovery and node runtime preparation. Preserve caller metadata mapping, HTTP error strings, diagnostic labels, and body timeout policies. Remove the redundant registry status wrapper and share the existing discovery error return. This removes 25 production lines without changing preparation or its regression tests. * fix(node-host): skip npm freshness probing for Bun preparation * fix(node-host): create the private Bun node_modules root before staging * fix(node-host): seed the private Bun global project manifest * fix(node-host): skip Node engine checks for candidates run on Bun * docs(bun): link node update preparation history row * refactor(node-host): move registry archive reads out of install-source-utils install-source-utils sits under plugin install owners; importing the shared registry document reader from it closed an import cycle through the provider and plugin metadata graph. The in-process manifest and archive reads now live in a leaf module that only the node host imports. * test(telegram): join webhook drain before near-limit assertions (#160588) The near-limit webhook tests polled handleUpdate for vi.waitFor's default 1 s after the 200. That response only proves durable admission; dispatch still reads the ~1 MB row back through the SQLite worker, decodes and inspects it, so a loaded 2-core shard can deliver after the budget and fail with an empty update list. Join the ingress monitor's idle settlement instead, like the sibling spool tests. * fix(cloud-workers): retain bundles through provisioning (#160730) Defer node bundle pruning while provisioning has not published its durable bootstrap receipt. Coalesced maintenance snapshots must not acknowledge and remove a newly installed bundle before readiness records ownership. Add an install, Gateway retention, and worker entry resolution regression that reproduces ENOENT on the previous code. Workspace retention and existing bundle protocol contracts remain unchanged. * fix(ci): pack hybrid hourly tooling within the row cap Use the existing hosted retry file packing for hybrid tooling so an indivisible file can share its spare worker without increasing its price. The exact hourly hybrid plan drops from 80 total rows to 78, within the unchanged 77 Node plus two dist limit. GitHub remains at 76 total rows. Add the hybrid hourly cap regression and retain the GitHub ownership and cap assertions. Preserve the complete file/config/environment inventory, release descriptors, timing weights, runner policy, and worker limits. Validation: 26,658 tooling tests and all test types passed on Linux Testbox; script types and lint passed there. The connection ended after those gates, so final root-test lint and format checks passed locally. The integration file passed all 10 cases locally. P2 autoreview is clean. * test(gateway): keep d080 scoped to six gateway shards (#160115) Replay t0001, t0010, t0005, t0009, t0008, and t0007 on current main; preserve Gateway review repairs. Sessions, agents, infra, and cron shards moved to d088. Retain accepted-input ownership and hook session/account idempotency coverage. Preserve newer worker-placement reconciliation expectations. No production behavior changes. * fix: streamed replies split Markdown tables that fit one message (#160701) Related: #160668 (fixes the fitting-table case; renderer-valid continuations for tables longer than `maxChars` are out of scope here, so the issue stays open for that part) ## What Problem This Solves Fixes: with block streaming on (Discord defaults: 800/1200, paragraph), a reply containing a Markdown table that fits in one chunk gets split mid-table, so the channel renders the first part as a code table and posts the remaining rows as raw `| ... |` Markdown. ## User Impact Streamed replies with a table that fits the chunk limit now arrive with the whole table rendered consistently. Tables larger than `maxChars` still split at row boundaries. ## Why This Change Was Made The block chunker already refuses to break inside fenced code, but it had no idea about tables: once the buffer passed `minChars`, the last newline inside a still-streaming table was a valid break. The chunker now treats a table that fits in `maxChars` the way it treats a fence when choosing a break: - Table ranges come from the same markdown-it table grammar the renderers use (`findMarkdownTableRanges` in markdown-core), so single-dash delimiters, single-column tables, rows without edge pipes, quoted tables and tables inside code fences behave like they render. - While streaming, a table stays open until a full line follows it, so the unfinished line after it (even a bare `> `) may still become a row. Whether a table fits is decided by its parsed rows only, so an unfinished heading after it can't cost it that protection. A trailing header line waiting for its delimiter row is kept whole too. Other lines with pipes aren't protected, so prose containing `|` still streams at its normal newline breaks. - If the buffer reaches `maxChars` inside a table that fits, the chunker breaks before the table (below `minChars` if it has to), not inside it. - A table longer than `maxChars` isn't protected, so it still splits at row boundaries as before. Its headerless continuation still renders raw, as on main. - If a streaming table that starts the chunk exactly fills `maxChars`, the chunker waits only until the next line starts; the final flush also ends the wait. Once the next line starts, the table is emitted whole at the cap, or split at row boundaries if it has grown. The size check counts row trailing spaces, so no chunk can exceed `maxChars`. Fences, paragraph and newline breaks outside tables, source-range accounting and the forced final flush are unchanged. `src/auto-reply/chunk.ts` now names `FenceSpan` directly because `findFenceSpanAt` is generic over start/end spans. Earlier attempts (#66344, #66568, #66557, #73981) were closed unmerged. This one is different: - It uses the renderer's own parser, not a new regex table detector. That covers the repeated review notes about `-{3,}` delimiters, single-column tables, rows without edge pipes and pipes inside code. - It keeps a streaming table open until a blank line arrives, not until the current buffer tail, which was the P1 in #66344 and #66568. - Breaks at the table's own edges stay allowed. Only breaks inside a table that fits are refused. - There's no import cycle through `chunk.ts`, it targets the current `embedded-agent-block-chunker.ts`, and it doesn't add a second limit model: `maxChars` stays the only cap. Thanks @giodl73-repo for the fresh reproduction. ## Evidence **Real Gateway, Discord plugin against a Crabline mock of the Discord API, frozen base `3775359a` vs this branch.** The mock model streamed the issue's reply over OpenAI Responses: intro, a 28-row table (983 chars in total), and a closing line, in 17-char deltas. Discord used its native chunking with `streaming.block.enabled: true`. The captured payloads are the `POST /channels/<dm>/messages` bodies: - Base, Discord default coalescing: message 0 is the intro plus a code table R01–R11. Message 1 is a code table R12–R24 followed by a raw `| R25 | North | 1124 | 2224 |`. Message 2 is raw rows R26–R28 plus the outro. - Base, coalescing off: block 1 is a code table R01–R24; block 2, 1.2 s later, is raw R25–R28 plus the outro. - This branch, both coalescing settings: every row R01–R28 is inside code tables. The table only splits at Discord's own 17-line message cap, which reopens the fence. The outro is a separate block, and there are no raw rows. - Rerun on head `2b3ec27a` with default coalescing: 3 messages, every row inside code tables, no raw rows. - Oversized control (60 rows, 1943 chars; also rerun on `2b3ec27a`): both base and this branch split cleanly at a row boundary. The headerless continuation still renders raw on both, which is existing behaviour for tables longer than `maxChars`. **Focused tests** - The new `EmbeddedBlockChunker > Markdown tables` cases cover a short intro, a blockquote table, a break before the table when the intro leaves no room, and a table exactly `maxChars` long, each at 1/17/43-char deltas. All four fail on base (they get `822,160`-style splits) and pass here. The oversized-table controls (60 rows, and a table whose trailing spaces push it past the cap, streamed and flushed at once) check that every chunk stays within `maxChars` and splits only at row boundaries. They pass on both base and here. The trailing-space control fails if the size check ignores trailing spaces. Two more cases cover the provisional-span edges. Prose lines containing `|` chunk exactly like the same text without pipes, and a table exactly `maxChars` long is emitted as soon as the next line starts even while whitespace keeps streaming. Both fail on the previous revision of this branch. A further case sends an intro, a table exactly `maxChars` long and a directly following `# heading` in one delta as well as streamed. It yields intro, table, heading, and it failed on the revision before this one. The nine new cases take about 2.3 s in total locally; each 1-char cap-edge case takes about 0.45–0.5 s. - `embedded-agent-block-chunker`, `block-reply-flushing`, `chunking-fences`, `final-answer-delivery`, `text-end-reconciliation`, `btw`, `auto-reply/chunk`, `markdown-core` `tables` and `fences` all pass. - A chunker probe over 13 table shapes × 5 delta sizes (no-edge-pipe rows, single column, quoted, fenced, newline/sentence preference, `flushOnParagraph`, `minChars: 1`, two tables, prose with pipes) found no split fitting table, no chunk over `maxChars`, and unchanged source coverage. Pash/Sarah check: #150407 touched `docs/concepts/streaming.md`, but only the Slack progress section. There's no other overlap, and Slack compact progress is unaffected. Co-authored-by: Ayaan Zaidi <[email protected]> * improve(ui): compact Online people activity rows (#160140) * improve(ui): compact Online people activity rows Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 0fdf9bc8-f33a-4798-ab8a-92330e30bae2 * improve(ui): clarify Online presence and workload text Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: a45e213a-610b-4632-9cb7-58e9586b75f1 * test(ui): wait for roster hydration before sidebar assertions Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: e35d4d74-12f7-4b00-9fa9-17a2fd9355c0 * test(ui): await split startup request before counting Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c33e14bd-a4ce-4715-98cd-922eace93d41 * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @VACInc - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b5a493a6-aefd-468b-9f44-a48b89ebff00 * improve(ui): list people with running sessions first in each presence group * improve(ui): align the Online open-sessions icon with the running spinner --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * chore(ui): refresh control ui locales (#160753) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: dashboards require approval after native app authentication (#159860) * fix: dashboards require approval after native app authentication * fix: register native auth test entries and remove the client type cycle * fix: recover native dashboard auth on older WebViews and reconnects * fix: preserve native dashboard auth across current app paths * fix(ci): use idle hosted tooling workers during overflow * fix(ci): preserve oversized tooling refusal * test: load first-hop helpers in the survivor fixture * test(macos): wire conversation auth fixture and tokenless route --------- Co-authored-by: Peter Steinberger <[email protected]> * fix(onboarding): stop claiming inference is ready after Skip for now (#160713) * fix(onboarding): distinguish local setup from verified inference Use a provisioning-specific summary title so Skip for now does not claim that inference is ready. Preserve the separate successful verification message and existing skip behavior. * fix(onboarding): translate the local setup summary title Co-authored-by: Peter Steinberger <[email protected]> * feat(plugins): show installed accounts and credential status (#160092) * prototype(plugins): show per-plugin auth alerts from live MCP checks Place the shared alert beneath the individual plugin hero on main 018639af3b54. Read a real Notion HTTP OAuth challenge and use a Notion-specific read-only account probe for the local stdio server. Keep the app inventory isolated and the prototype out of production imports. * prototype(plugins): simplify auth alerts to one line * feat(plugins): connect detail auth alerts to MCP OAuth * fix(plugins): align auth alert with the main content column * feat(plugins): show installed accounts and credential sections * fix(plugins): use the supported credential projection copy * feat(plugins): simplify setup states and retain edit actions * fix(plugins): reuse MCP ownership across inspections * fix(plugins): keep MCP cache types in the metadata owner * test(plugins): preserve real install failure classification in fixtures * fix(ui): let channel setups run back to back (#160705) * fix(ui): release channel setup sessions before retrying Close wizard input without aborting committed work, and wait for same-client cancellation settlement before starting a replacement wizard. Two regressions fail before their respective fixes. Real Gateway and Chromium proof on an isolated Blacksmith Testbox passes 50 cancel/restart cases across Telegram, Discord, Slack, and WhatsApp. Focused controller tests and the campaign-base changed-file gate pass. No local builds or tests; no autoreview per task instructions. * fix(ui): bound channel wizard cancellation before replacement starts A replacement wizard start waits for the previous wizard.cancel to settle. Route that cancel through the same request ceiling as wizard.start so a stalled Gateway response cannot block later setups indefinitely. Split the cancellation cases into their own suite with shared fixtures to stay under the test line cap. The stalled-cancellation regression times out before the fix and passes after on a Blacksmith Testbox; the controller suites pass 19/19. * test(ui): keep channel label fixtures in the controller suite Co-authored-by: Peter Steinberger <[email protected]> * perf(cron): narrow delivery-target session reads (#160216) * perf(cron): narrow delivery-target session reads * fix(ci): keep plugin retention proof on Node * fix(slack): progress card links open the visible work session instead of the main session (#160088) * fix(slack): link finished progress cards to the visible work session Slack progress cards linked "Open in OpenClaw" to the conversation's main session even when the turn spawned a visible work session, so operators on groupScope "main" landed on /chat/<agent> instead of the child doing the work. Carry the child's canonical URL from its producer: accepted visible spawn receipts keep sessionUrl and label across the embedded, Codex app-server, and CLI runners; the settled run reports them once through a new optional GetReplyOptions.onVisibleWorkSessions before final delivery; Slack's native task card and Block Kit card render "Open work session" for one child, labeled links in acceptance order (max five) for several, and keep the conversation link when none was spawned. No request-time session discovery. To satisfy the line-cap ratchet, the visible-spawn TypeBox schema moves to sessions-spawn-visible.schema.ts and the new cases live in sibling test files with shared test-support fixtures. * fix(slack): match only generated session-link action IDs The link-only acknowledgement matched any action_id starting with openclaw:session_link, so an unrelated button such as openclaw:session_linked was acknowledged and dropped instead of reaching plugin or agent dispatch. Accept only the bare ID or a numeric suffix, as the renderer emits. * test(ci): accept measured command ceilings beside startup health The PR's 771st database-worker file changes compact placement and exposes a contradiction: capacity checks accept measured command groups' two-worker ceiling, but the startup-health sibling check expected no ceiling. Share the complete measured-generation lookup between both assertions and recognize the existing command policy without changing planner, packing, worker, or job-level policies. Move the unchanged tooling placement helpers to the sibling support module, reducing the test's counted lines from 7536 to 7524. * fix(ui): keep Inbox empty-state heading larger than description (#160724) * fix(ui): keep Inbox empty-state heading larger than description Set both empty-state text sizes explicitly with the existing text-scale tokens. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): keep Inbox empty-state heading larger than description Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 69c70083-4f66-4e3b-a051-5642b6ead90e * fix(ui): separate Inbox empty-state icon from its text Use 16px between the icon and heading, and 4px between the heading and description. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]> * feat: speak with Gemini 3.8 Flash TTS (#157331) Add opt-in Gemini 3.8 Flash and Flash-Lite TTS in the existing Google speech plugin. Keep the implicit Gemini 3.1 default and older GenerateContent path unchanged. Send Gemini 3.8 transcript text separately from delivery style and structured speaker metadata through stateless Interactions requests, then reuse the existing PCM, WAV, and voice-note outputs. Preserve the shared Google auth and response helpers, document the model-specific prompting behavior, and cover speaker/no-speaker requests, transcript handling, model selection, and audio output. Co-authored-by: IWhatsskill <[email protected]> * fix(gateway): size bootstrap artifact transfer lifetime from its operation window (#160687) Bootstrap artifact capabilities used a fixed ten-minute backstop while the owning operation could remain authorized for 45-95 minutes. Slow tunnel downloads were cut off mid-body at 600,000 ms, and every retry received an opaque 404. Derive the transfer lifetime from the existing size-based bootstrap operation owner. Preserve live enrollment and operation revocation, three serial serves, busy exclusivity, and opaque rejection. Cover the streaming deadlines and revocation with fake time, and update the troubleshooting lifetime clause. * fix(ui): preserve focus when onboarding suggestions arrive (#160677) Do not move keyboard focus from the composer or another control when an asynchronous recommended option arrives. Preserve initial autofocus and selection within the option card. Regression cases fail before the fix for focused textareas and buttons. Real isolated Gateway proof retains the full draft and avoids an unintended Talk to my agent handoff. Option-card and custodian-page tests pass, with final option-card checks at 3.01 seconds. Remote changed checks pass against c377d7ca822. Co-authored-by: Peter Steinberger <[email protected]> * fix(browser): Windows version probe pushes the env-var count over budget (#160756) #160432 passed the Windows browser path to its leaf PowerShell child under a new OPENCLAW_BROWSER_VERSION_PROBE_PATH name the env-var budget never recorded, so check:env-var-count (and every local check:changed run touching src, packages, or extensions) fails on main at 477/476. Reuse the documented OPENCLAW_BROWSER_EXECUTABLE_PATH for that child-only channel: it holds exactly the browser executable path, the override lives only in the spawned powershell.exe environment, and the path still reaches PowerShell as $env: data, never script text. * fix(e2e): stage candidate providers for legacy-operator survivor lanes Legacy published baselines (2026.7.35, 2026.6.34) author plugins.allow from their bundled provider inventory. The candidate's doctor restores those now-external providers at the exact candidate version, which does not exist on npm or ClawHub before publication, so the prepublish registry must carry them. Stage every official provider from the selected candidate's external provider catalog for legacy-operator-state lanes, loaded once per plan. * fix(ci): planner ownership census times out on loaded runners (#160586) * perf(ci): scan wide import-graph frontiers in one pass The PR-exempt ownership census plans a PR that edits all 906 PR-exempt test files. Its consumer check sends ~2,700 terms through the wide native reader path over ~42.5k tracked files. #160531 and #160517 each added a match-before-parse filter, so that path spawned one reader child to match every file and a second to re-read and parse the 2,136 matches. readImportGraphEdges already requests matchingOnly, so drop the extra pass: one child matches, parses only uncached matches, and still leaves nonmatches uncached. Build the Aho-Corasick automaton as a dense Int32Array over the UTF-16 code units the terms use, completing failure rows breadth-first, so the scan takes one table load per code unit instead of Map lookups and failure walks. Files with no match skip projecting every requested term. Matching semantics, reference checks, and ordering are unchanged. For the real 906-file request, reader output is byte-identical. Reader CPU fell from ~12.1s over two passes to ~5.9s. Inside the Vitest worker the census case's reader cost fell from 16.5s to 8.8s, and the case from 39.1s to 30.4s on a comparably loaded host. Timeout, assertions, and file coverage are unchanged. * perf(ci): bound term-matcher rows to the ASCII alphabet Search terms come from tracked paths, which have no character-diversity bound. One dense column per distinct UTF-16 unit could therefore grow the transition table by nodes x alphabet on Unicode-heavy frontiers. Keep dense Int32Array rows only for the ASCII units the terms use, at most 129 columns per node, and route other term units through sparse per-node edges with the classic failure walk. Size the table once to its node upper bound so it never reallocates; only rows of real nodes are written. Fold isReferenceCharacter into an equivalent character-class test, which is exhaustively equal for every UTF-16 unit and NaN. The matcher contract fixture gains terms whose failure links cross dense and sparse edges. A 24,000-case randomized differential against main's matcher and a String.includes oracle shows no differences, and reader output for the 906-file census request stays byte-identical. * fix: disable plugin Connect when gateway OAuth is unavailable (#160761) * fix(e2e): size upgrade-survivor Gateway readiness for saturated runners Release Checks 36479006821 saw both the published 2026.9.6 baseline and the 2026.9.7 candidate bind HTTP after 56-58 s and miss the fixed 90 s readiness window on saturated runners, while the same phases pass in 36-41 s on idle ones. Raise the default startup budget to 300 s and make the readiness wait honor the configured budget instead of a hardcoded 360 polls, so the OPENCLAW_UPGRADE_SURVIVOR_START_BUDGET_SECONDS override actually extends it. * fix(agents): reuse admitted plugin registry (#160658) Reuse the plugin registry already admitted for unchanged agent turns instead of acquiring another captured registry. Keep selected-owner coverage, model-catalog scoping, cleanup and retirement with their existing lifecycle owners. Add real-loader regression coverage for synchronous and inspection reuse, missing owners, catalog isolation and shutdown cleanup. Production LOC remains net zero. Exact-head CI passed (run 36474645681); fresh autoreview is clean. Installed Linux parent/head evidence removes duplicate registration; full Windows reporter confirmation remains outstanding. Fixes #160572. Thanks to @ekinnee for the focused repair, @oxen-horse for the report, and @steipete, @RomneyDa and @vincentkoc for the earlier work and evidence in #158369 and #150915. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> * fix: SQLite workers fail when running OpenClaw from source under Bun on Windows (#160310) * fix(infra): keep Node's tsx loader away from Bun SQLite workers Running OpenClaw from source under Bun, the SQLite worker broker started every .ts worker with `--import <tsx/esm file: URL>` and asked it to register tsx's loader API, regardless of runtime. Bun runs TypeScript natively and resolves a file: preload by stripping "file://", so on Windows `file:///C:/.../tsx/dist/esm/index.mjs` became `/C:/...` and the worker failed with "preload not found" (device-token persistence broke). runtime-worker-url already owns this decision for other workers. Extract runtimeNeedsTypeScriptLoader from it, route the broker's worker execArgv through resolveRuntimeWorkerThreadExecArgv, and only send the source loader URL when the runtime needs it. Node keeps tsx for source workers. * test(infra): keep Node's loader for simulated-Bun SQLite workers bun-sqlite-library.worker.test.ts overrides process.versions.bun to exercise Bun SQLite library selection, but its SQLite workers are real Node worker_threads. Now that the broker omits tsx on Bun, those workers could not load their TypeScript carrier. Mock the runtime-worker-url loader decisions in this test to answer for a Node executable, which restores its previous broker behavior. * fix(http): adapt rejection transport to Bun's Node-compatible closure (#160329) Detect Bun's native HTTP destroySoon override introduced by upstream #43557 and use the shared ordered half-close path while retaining native response completion for older Bun transports. Version labels cannot distinguish the pre-sync and post-sync canaries. Wait for queued HEAD socket assignment on Bun without finish diagnostics, then flush through the response callback to avoid Bun's dispatcher socket cork. Preserve Node's existing ordering and transport operations. Update SDK rejection documentation; retain all existing wire-level regression cases. Validation: 31/31 lifecycle tests on Node 24.21.0, stock Bun 1.4.2, pre-sync and post-sync Bun forks, and the finish-diagnostics build. Core and infra test typechecks, scoped oxlint, oxfmt, assertion-safety ratchet, and diff whitespace checks pass. No tests or dependencies added. * chore(ui): refresh control ui locales (#160771) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(ui): open voice setup before history admission (#160686) * fix(ui): open voice setup before history admission The microphone remains enabled for dictation during initial history, but its short-tap handler returned at the history submission fence before opening unavailable capability settings. Catalog admission populated a closed picker: two unavailable DOM rows existed, while accessible Configure menuitems were zero. Open capability guidance before that fence. Actual Talk creation still waits for accepted history. Keep the existing unavailable-settings unit case and all E2E assertions; hold startup and catalog across the target's early click. Synchronize the four other proven desktop Talk-start races with the existing waitForTalkReady helper. Leave direct/hold dictation, explicit picker triggers, mobile Talk and already-synchronized Talk cases unchanged. Document the behavior. Introducing ordering: 0b52dc467b3e added the history submission fence before picker opening; d769e31af2b9 now awaits foreground stream admission before history/startup, exposing that window more often. Read the parent-relative patches and the 94cbd1335df, 6b9da9dc028, f03d64f6a56 and e256cbef8ae repairs. Probe evidence on original production 49351700f3f6: - Hold chat.startup and talk.catalog, click Start voice input, release both, and await visible history: unavailable=2, Configure visible=0, Configure including hidden=2, picker open=null. The original toBe(2) assertion fails with expected +0 to be 2; 24.333s case, 197.12s wall. - The pending-history unit variant fails with dropdown.open=false; the ready-history variant passes. Extend the existing unit rather than adding a duplicate case. - Holding startup across the initial click also leaves talk.client.create absent in transcript ordering, composer voice selection and both SDP cases; all four controlled probes fail, while the settings-only sibling passes. Validation: - Four changed E2E files: three consecutive passes, 16/16 each; 313.04s, 293.49s and 340.02s command wall including isolated UI builds. - One-worker dictation before/after: 11/11 each; 234.65s -> 181.54s wall, file time 63.604s -> 48.819s, changed case 4.663s -> 3.583s. - One-worker siblings before/after: 5/5 each; 210.09s -> 162.56s wall. File times: ordering 13.101s -> 7.517s, voice selection 20.346s -> 13.522s, SDP 13.446s -> 8.394s. These are cost samples, not a speedup claim. - Existing full browser files exceed 30s because they exercise multiple real composer/media flows and screenshots; no E2E cases or timers were added. - Composer microphone, action and catalog owners: 80/80; 85.96s wall. - Independent Codex autoreview: scoped-clean through P2. - pnpm tsgo:ui passed in 85.05s; ui-e2e and ui-chat test graphs passed in 106.07s. Targeted oxlint, oxfmt and git diff --check passed. - Local check-changed --base origin/main passed its guards, formatting, graph boundary and i18n, then stopped at inherited TS2741 in src/gateway/session-row-projection.config-commits.test.ts:76: the fixture omits the required scheduler. That untouched file is already repaired by 4bd105408cc on main. The same gateway-root typecheck passes in 69.67s on untouched origin/main snapshot 28340c41f8b8, materialized under this task's artifacts with physically cloned, identical dependencies. No unrelated source was changed. The full changed pipeline is not claimed green. Release-note context: Control UI opens unavailable voice setup when the microphone is clicked during chat startup, while preserving Talk admission. * test(ui): rely on Talk readiness without a no-op startup hold The sibling Talk cases held chat.startup only to release it immediately, which exercises no ordering. waitForTalkReady with the ready-history message is the synchronization, matching the landed e256cbef8ae shape. * test(agents,channels,cli): remove low-value tests (batch d091) (#160766) * test(heartbeat): deslop t0067 tests * test(agents): deslop t0119 tests * test(telegram): deslop t0118 tests * test(discord): deslop t0121 tests * test(agents): deslop t0120 tests * test(state): deslop t0129 tests * test(browser): deslop t0128 tests * test(status): deslop t0112 tests * test(matrix): deslop t0125 tests * test(cli): deslop t0082 tests * test(agents): remove unused compaction fixture exports * improve: keep Gateway responsive while compaction loads history (#160314) * perf(agents): hydrate compaction transcripts off thread * test: prepare managed handoff runtime before case deadline * test: speed up database preflight lifecycle tests (#160728) Co-authored-by: Peter Steinberger <[email protected]> * improve: speed up child-session lists on large rosters (#160404) * perf(gateway): select child sessions through the parent index * test: prepare managed handoff runtime before case deadline * perf(nodes): reuse warm workers so node session turns start as fast as local ones (#160265) * perf(nodes): reuse warm workers so node turns start as fast as local ones Retain settled workers for two minutes with at most two idle children per node. Negotiate node-worker-idle-retention-v1 across Gateway, node, and bundle; fresh turn admission and credentials remain mandatory. Protect background work and preserve durable process cleanup and reconciliation. Expose reclaimable idle capacity to placement admission and the session picker. Consolidate lifecycle helpers under the supervisor and use the shared capacity parser. Document the bounded process-count and memory tradeoff; include lifecycle, negotiation, and picker regression coverage. fix(nodes): retry failed idle worker cleanup Rearm the supervisor idle timer after a transient physical cleanup failure while retaining the durable slot and retirement fence. Cover automatic expiry and idle-limit eviction alongside explicit cleanup with a fake clock. Fold the cancellation forwarding wrapper into its owner and remove the immediately repeated admission abort check. Preserve the existing authority, settlement, and shutdown guards. fix(nodes): synchronize idle capacity protocol models Regenerate the Swift worker-slot model for the optional reclaimableIdle field. The schema and named capability contract remain unchanged. Inline the single-caller prepared workspace custody wrapper in the supervisor and move its four cases to the public launch entry point. Preserve exact acquisition, abort, shutdown, and release ordering while keeping the complete branch production delta negative. chore(nodes): prune stale worker assertion allowance Remove the exact one-entry assertion baseline for worker-command.runtime.ts after the unsafe assertion was eliminated. Keep the scanner and all unrelated allowances unchanged. fix(nodes): keep supervisor dependencies on protocol owners Import protocol parsers and types directly from their canonical leaf, including the QA fixture, and remove the redundant supervisor-control re-exports. This breaks the dependency cycle without duplicating the wire contract. Keep the runner cancellation mock and shutdown callback asynchronous with the real Promise<void> contract, including teardown restoration. fix(nodes): complete asynchronous cleanup contracts Join cancellation cleanup in callers and tests while preserving parallel shutdown settlement and expected failure identity. Exclude absent cleanup owners before aggregation and keep stale-connection rejection unchanged. Use immutable worker input, type-only journal imports, stable sorted idle projections, and receiver-bound fault injection. Remove redundant descriptor bookkeeping and finish the test lint cleanup without changing limits or suppressions. * test(nodes): disambiguate inventory fixtures * fix(google): keep streaming silence to Gemini 3.8 Live instead of ending the audio stream (#152844) Keep streaming supplied silent audio frames for Gemini 3.8 Live so server-side VAD can finish the user turn. Retain existing audioStreamEnd behavior for other Google Live models. The policy remains in the Google plugin model contract and shared production bridge. Closes #152830 Co-authored-by: IWhatsskill <[email protected]> * fix(agentmail): allow official ClawHub channel to load (#155097) * fix(agentmail): allow official ClawHub channel to load * docs(agentmail): keep setup guide vendor-owned * fix(agentmail): require API key for configured state * fix(plugin): verify pinned digest before legacy trust * fix(doctor): update refuses when lint warns about an unusable agent database (#160184) Fixes `openclaw update` refusing with candidate-doctor-lint / doctor-failed when candidate Doctor lint warns about an unusable agent database, and plain `openclaw doctor --lint --json` printing a Clack warning box before its JSON report. Doctor notes rendered to process.stdout even when machine-output mode reserved stdout, so runDoctorAgentDatabaseOperation's nonfatal "Doctor warnings" note preceded the lint JSON; in an update rehearsal the private lint worker's first stdout line failed the strict JSON parse and became a core/doctor/lint-inspection error. Notes now follow loggingState.forceConsoleToStderr: terminal-core gains a dependency-free, callback-scoped note output resolver (note-output.ts), and withConsoleLogsRoutedToStderrForJson installs one that reads the live flag at write time. Warnings stay visible on stderr. Candidate-side only; released updaters (verified against the 2026.9.6 driver) accept the clean JSON unchanged. Proof: json-output-mode regression fails on main and passes; published [email protected] driver x candidate upgrade-survivor cell with an ownership-mismatched secondary agent DB refused before (doctor-failed) and succeeded after with the warning on stderr and the bootstrap import guard passing. * refactor(gateway): remove duplicate artifact API scenario (#160779) Co-authored-by: Vincent Koc <[email protected]> * test(release): repair release-check lanes after settle, Responses body, and scheduler changes Release-check lanes that were also red on main asserted pre-change contracts: - subagent settle wording now says "in this batch" (#158642) - Responses request bodies are pre-encoded bytes (#159574); decode them without consuming init instead of requiring string bodies - direct experience-review calls must bind the session MCP scheduler that Gateway startup binds in production (#159481) - Docker lanes pin the plain PATH `codex` CLI for the Codex harness probe - Telegram group-policy hot reload must name every array it replaces Landed directly from #160746 (the native publisher needs a signed merge to bring that branch current). Focused proof: four QA suites 200/200 in 81 s on the merged tree; the two E2E files and credentialed live paths were not run. * fix(active-memory): recalls on claude-cli never reuse the prompt cache (#160768) Closes #160672 ## What Problem This Solves Fixes: every Active Memory recall on the `claude-cli` runtime writes the whole OpenClaw system prompt into Claude's prompt cache again, even for two recalls of the same agent seconds apart. ## User Impact User impact: repeated Active Memory recalls of the same agent on `claude-cli` now send a byte-identical system prompt, so the recall's first API call can read it from Claude's cache instead of paying for a 10k+ token cache write each time. Normal `claude-cli` turns are unchanged. ## Why This Change Was Made Each recall gets a new session key (`<parent>:active-memory:<per-run hash>`) so its session entry stays unique. The Runtime line rendered that key into the system prompt, and Claude CLI receives the whole system prompt as one `appendSystemPrompt`, so the per-run key forced a full cache rewrite. The recall's session key is the only value that differed between two recalls. One-shot CLI dispatch runs (today only Active Memory recall) now carry the Runtime facts line in their only user turn, through the same `UserPromptSubmit` context Claude CLI already uses for other per-turn facts. This reuses the existing relocatable Runtime region that Chat Completions routes already move into the first user message. The recall model still sees its agent, session, model and channel. Recall session keys, storage and cleanup are unchanged. Normal resumable CLI turns keep the Runtime line in the system prompt. Thanks @ndakota79 for the detailed cache-counter report and cause analysis. No overlap with Pash/Sarah changes. ## Evidence Isolated Gateway (task-owned home, state, config, port) with agents `alpha` and `beta` on `agentRuntime: claude-cli`, Active Memory `mode: always`, and a fake `claude` executable that records the `initialize.appendSystemPrompt` and the `UserPromptSubmit` context it receives. Two `chat.send` turns on `agent:alpha:main` about 60 s apart, then one on `agent:beta:main`. - Base (`7f0781faa67`): the two alpha recalls' system prompts differ in exactly one line: ``` -Runtime: agent=alpha | session=agent:alpha:main:active-memory:e10ad4c9dc5e | ... +Runtime: agent=alpha | session=agent:alpha:main:active-memory:9945b3fb179b | ... ``` - Candidate: both alpha recalls send the same system prompt (14,210 bytes, sha256 `f7a45b89f4e84e5f…`). Each recall's user turn carries its own `Runtime: agent=alpha | session=agent:alpha:main:active-memory:<hash> | ... | channel=webchat | ...`. The candidate recall prompt equals the base recall prompt minus the Runtime line. - Controls: the beta recall still gets its own prompt (its working directory differs) and its own `agent=beta` Runtime facts in the turn. The alpha and beta main (non-recall) turns send the same system prompt and user turn as on base, with the Runtime line still in the system prompt. - Regression: `src/agents/cli-runner/prepare.test.ts` "keeps per-run helper session identities out of the reusable system prompt" fails on base (system prompts differ) and passes with the fix. `prepare.test.ts` (194), `cli-backend-dispatch.test.ts` (40) and `helpers.system-prompt.test.ts` (15) pass. - Test cost: the new test runs in 136 ms. `pnpm test src/agents/cli-runner/prepare.test.ts --maxWorkers=1`: 194 passed, 83.3 s wall (Vitest 65.9 s); the same command filtered to the new test: 23.1 s wall (Vitest 5.8 s). Not verified: a real Claude Code run. The proof checks the bytes OpenClaw sends to the CLI (the `initialize` system prompt and the `UserPromptSubmit` response); it does not show Claude Code's cache counters. The Runtime facts use the same `UserPromptSubmit` additional-context path that already carries `before_prompt_build` hook context (including Active Memory's own recalled context) on `claude-cli` turns. Co-authored-by: Ayaan Zaidi <[email protected]> * fix(release): retry the shipped 2026.9.6 Windows updater after its exit-13 liveness defect Windows packaged upgrade from [email protected] to the 2026.9.7 candidate failed on Node 24 and 26.1.0 because the shipped 9.6 updater exits 13 (unsettled top-level await) before switching the install: it awaits an unreferenced 300 ms cleanup timer after cancelling the retained-runtime progress probe. 02720df7e6c5 fixes it for 2026.9.7+, but cannot repair the executing 9.6 parent, and it is intermittent on native Windows. Classify exactly that signature (win32, exit 13, the warning, empty stdout, install still on a baseline older than 2026.9.7), retry the same update once as a user would, and only if the retry fails the same way use the existing verified direct candidate install. Both outcomes are recorded as updater fallback evidence; any other failure still fails the lane. * perf(gateway): reuse pending narration deadlines (#160769) Keep the existing two-second deadline while replacing pending narration text. Preserve immediate final flush, retractions, and retirement cancellation. * refactor: remove redundant final-delivery reconciliation (#160764) * test(e2e): align survivor startup budget expectations The upgrade-survivor readiness default moved from 90 to 300 seconds, but three existing helper assertions still expected 90. Keep them aligned with the runner; forwarding, overrides, and explicit timeout behavior stay covered. Reproduced the original failing case on main. Validation: 350 tests across the helper and startup-budget suites passed in 59.06 seconds, plus scoped lint, formatting, and independent review. * docs(ios): qualify SimSlim scope in setup guide (#160784) SimSlim also prepares the compare-mode arms of native release qualification, not only the ios-build iPhone test simulator. Follow-up to the ClawSweeper finding on #160607. * fix(ci): scope untouched line-limit diagnostics in changed checks (#158995) * test(channels): track the inlined Synology context builder call #160639 (5ddcce60fabb) inlined resolveSynologyChatInboundRoute, so the Synology inbound event now calls rt.channel.inbound.buildContext on the same getSynologyRuntime() handle instead of resolved.rt. The caller inventory still expected the old text and failed build-artifacts on main and in 2026.9.7 Full Release Validation (CI 36496123315). Update only the expected call text; the runtime provenance is unchanged. Proof: context-builder-callers.test.ts fails 1/6 on main before, passes 6/6 after (3 s, one worker). * fix(ci): restore Doctor plugin repair lint budget (#160715) * docs(ci): explain why the plugin retention proof stays on Node #160216 routed src/plugins/runtime.retention.test.ts to the unit-fast Node partition after reproducing Bun failures. Record why in the runtime-selection docs, beside the other GC-sensitive proofs. Root cause, measured on Blacksmith Testbox tbx_01m3n11pjbtgfgcqv8t1jjbh4n with pinned Bun 1.4.3-canary.1+6b9148b17 on 300ef3991158: the registry-instances case kept a released successor registry past eight forced collections in 3/350 and 6/900 runs. In every retained case, a GCDebugging heap snapshot one task later still held the oldest-registry control marker but no successor, and each WeakRef then read empty. No retaining path exists, so this is collector nondeterminism, not a product leak. Node ran 0/600. The registry-case failure seen on openclaw/openclaw#160136 (CI run 36380533796) is a separate, already-fixed fixture defect. That run merged onto 56376753f832, before c136ec631464 (#160200) moved gc() out of promise continuations. On Bun, that base fails the registry case 339/350 and 300ef3991158 fails it 0/550. Routing proof on the same lease: replaying the failing core-unit-fast-2 group (186 files, bun-compatible policy) exits 0, with all 10 retention cases in the Node subset. The runtime-inventory guard fails without the routing entry. * fix(ci): restore frozen planner dependency closure Include the provider catalog and record helper added by ac59199 in frozen tooling admission and all affected copied harnesses. Verify their bytes through the existing closure owner. Keep child evidence isolation covered with the child-only Codex install helper now that record-shared is common. The original package failure reproduces locally: 93 failed and 462 passed. Both added integrity cases fail before the closure repair. Afterward, all 555 package tests and 445 closure sibling tests pass. Independent review is clean through P2; the full selected static check passes in 1448.701s. Measured one-worker wall times: package 218.673s and closure siblings 267.426s. The two added integrity cases take 208ms and 202ms. No timeout, retry, baseline, or integrity check is relaxed. Related CI: 36494713554 and 36494667447. Separate startup assertion and Synology caller fixes landed in 8799587 and c4845a6 and are not duplicated. The separate macOS native reconnect failure in main CI 36492763105 remains causally unproven and is not claimed fixed here. * fix(security): parse gpt generation numbers in the audit tier check (#140012) Fix security audit warnings that incorrectly classify numbered GPT-6 models as below GPT-5. Compare numeric generations in the shared model-hygiene classifier while preserving older-model warnings and Azure's legacy gpt-35-turbo naming contract. The repair covers primary models, fallbacks, image models, and agent overrides without changing provider routing, authorization, or unknown-name advisory policy. Broader unknown-name behavior remains separate in #160580. Fixes #139751 Thanks @holny for the fix, regression coverage, and isolated CLI evidence. Co-authored-by: holny <[email protected]> Co-authored-by: IWhatsskill <[email protected]> * refactor(daemon): prune redundant Scheduler test fixtures (#160794) Co-authored-by: Vincent Koc <[email protected]> * fix(release): admit the provider catalog read by legacy-operator survivor planning ac59199ad3fd made docker-e2e-plan.mts import scripts/lib/official-external-provider-catalog.json and scripts/lib/record-shared.mjs and read the candidate's provider catalog through the frozen target reader for legacy-operator-state lanes. Frozen admission hydrates only declared source paths in a no-lazy-fetch checkout, so targeted survivor dispatches failed with 'unable to read selected source (cat-file)', and the admission fixture lacked both tooling imports. Declare both files in the tooling closure and hydrate the candidate catalog for survivor lanes. * refactor(plugins): deslop plugin runtime fifth pass (#159945) * refactor(plugins): deslop plugin runtime fifth pass Consolidate repeated provider, manifest, install, catalog, hook and registration projections under their existing owners. Preserve plugin loading, SDK, caching and source-security contracts. Preserve provider wizard modelSelection preferences through registration so configured onboarding choices retain their documented model-picker behavior. * fix(plugins): preserve build and type cleanup contracts * fix(plugins): retain distinct public credential source types * fix(plugins): preserve sparse catalog matching and cleanup contracts * fix(plugins): preserve include ownership during uninstall * fix(plugins): include request policy in PR wrapper inventory * chore(ios): simplify store release workflow (#160791) * perf(subagents): avoid sibling scans for registry patches (#160800) * fix(channels): isolate Mattermost sends and retain capture owner proof (#150915) Keep Mattermost inbound monitoring behind account startup rather than the outbound runtime. Bind the Discord E2E fixture to its selected runtime artifact and assert exact provider/instance identity through model selection and rerouting, preserving late-STT, history, and cleanup fences. The prepared-registry handoff is already on main via #160658; do not duplicate it or retain the obsolete release-preparation ancestry. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * perf(ui): stop forbidden canvas lease refresh loops (#160808) Use granted hello scopes to admit canvas lease renewal and stop automatic retries after FORBIDDEN. Preserve read access implied by write/admin scopes and re-evaluate access on reconnect. * fix(ui): multi-file chat sends fail late when attachments together exceed the frame limit (#160071) * fix(ui): admit chat attachments against the chat.send frame budget One chat.send carries every composer attachment base64-encoded in a single WebSocket frame, but the Control UI only checked each file against the per-attachment hello-ok.policy.attachments ceilings. Files that fit one at a time could together exceed the frame, and the send failed late: after the composer cleared and the whole batch was encoded, with a generic payload error from the browser transport. The per-send decoded budget is floor((policy.maxPayload - 256 KiB) * 3/4), the formula the Gateway already used to clamp its advertised ceiling, now owned by src/shared/chat-attachment-frame-budget.ts for both sides. Every composer intake path counts staged attachments plus in-flight reads and rejects the file that would overflow with the existing "Too large to send" toast. handleSendChat, outbox delivery, and new-session submission …
* refactor(channels): deslop small channel plugins (#160639) Reuse SDK parsing, normalization, timeout, status, and context contracts; remove private forwarding layers and redundant result/type projections across the ten small channel plugins. Preserve provider wire formats, authorization, rate limits, chunking, and state contracts. Keep meaningful owner-command and registration coverage at real channel boundaries, and shrink only the affected assertion-baseline entries. * fix(talk): speaking over the assistant does not interrupt it during forced consults (#153727) Restore speech interruption during forced agent consults by resolving the existing provider preference independently of automatic audio responses. Preserve explicit interruption opt-out on both routing paths. Closes #139278 Co-authored-by: JIE <[email protected]> Co-authored-by: IWhatsskill <[email protected]> * fix(ui): keep history rail wave while hovering its preview (#160722) Co-authored-by: vyctorbrzezowski <[email protected]> * fix(qa): unblock isolated harness tool and evidence checks (#160527) * fix(qa): recognize settled subagent batches Share requester-settle wake recognition between mock input classification and completion handling. Accept the current batch wording while retaining installed-candidate session wording and the existing provenance check. The real catalog-only handoff spawned and completed a child on the baseline, but QA ignored its completion and timed out. Two focused regressions failed before this fix. The real handoff now passes, all 70 owner/sibling tests pass, and check-changed passes. Standalone changed-test wall times: input 3.21s; handoff 33.76s. * fix(qa): admit canonical repository checkpoint commands * fix(ui): stabilize Run Inspector evidence collection Bind rendered evidence to the public run, execution, and selected decision receipt identities. Add a shared collector that uses the component-owned route model and a separate page, preserving the caller's Chat surface and unsent draft through collection and later reload. Cover exact run/execution selection, receipt cursor reload, back navigation, wrong requested identity, missing receipt, and page cleanup in the existing mock-Gateway Chromium harness. Document the collector and per-tab auth setup. The regression failed on baseline before product edits because the rendered run identity attribute was absent. Terminal R's optional assistant transcript idempotency key is a distinct producer gap; this does not manufacture that key, relabel historical cells, or change product appearance. * fix(telegram): confine QA runtime and preserve readiness evidence Run standard-library drivers through existing Python without UV inline-script virtual environments. Confine private runtime state, drain readiness pipes, retain structural diagnostics, and require verified teardown receipts before releasing recovery state. Preserve doctor, recovery, group, and published-upgrade callers. Validation: native sandbox regression failed before the fix; 140 harness tests pass, and 72 final focused owner/sibling tests pass in 5.73s. Build exits 0. Broad changed checks stop on two unchanged TS2459 package-update test errors. Focused lint matches all 135 baseline findings with zero additions. No live credentials or Telegram sends. * fix(telegram): avoid native scenario barrier watchers * fix(qa): share production publication guard contract * fix(qa): require named message availability in mock provider A catalog dispatcher does not advertise every delivery tool. Require the exact message declaration and a usable invocation surface, including trusted system/developer instruction carriers. Finish with the recovered child result when message is absent. Prove the absent-message regression through the mock HTTP provider and retain catalog delivery, namespace, text-only fanout, and subagent handoff coverage. * fix(qa): pass checkout roots to script scenarios Expand the selected repoRoot separately from each scenario outputDir in the maintained test-file runner. Prove the argument and CWD contract through a real subprocess with external artifacts and fresh passing producer evidence. * fix(qa): distinguish tool declarations from instruction prose * fix(qa): bind forked-context evidence to native receipts * fix(qa): bind repeated-ingress MCP scheduler * fix(qa): add owned provider continuation checkpoints Let maintained mock scenarios hold one session continuation before response bytes and observe its request cursor and tool-call identity. Reuse the provider request log and scenario signal/shutdown lifecycle; replacement requests proceed normally without touching Gateway decision state. * fix(qa): keep harness proofs within their owners * test(qa): exclude all registered runtime consumers * fix(qa): preserve runtime inputs and enforce checkpoint launches * test(qa): skip runtime proofs when tools are absent * fix(qa): complete checkpoint launcher test admission * test(qa): compile repeated ingress child before execution * refactor(test): share caller-mode migration fixtures (#160714) Co-authored-by: Vincent Koc <[email protected]> * fix(ui): keep acknowledged session renames visible during reconciliation (#160579) A label-only sessions.patch never resolved a pending row target or published a field receipt, so the acknowledged rename was ignored until a sessions.changed event or a post-commit sessions.list arrived. Closing the title editor therefore showed the old name again after the Gateway had committed the new one. With a slow roster read in flight and the change event delayed, a real Gateway showed the old title for about one second after the ack. Route labels through the existing patch receipt owner: resolve the pending conversation for label patches, project entry.label from the committed receipt, and type it in the UI patch result. The receipt carries the existing connection, agent, session-generation, updatedAt and read-cutoff fences, so a roster read started before the rename cannot replace it while newer Gateway snapshots still win. The earlier permanent revert seen in the rename-composition probe was a mock artifact: it answered a post-commit list with pre-commit rows and no snapshotAt. On a real Gateway the event and post-commit list carry newer snapshotAt clocks and eventually restore the name; the defect was the visible revert window, not a lasting loss. * fix(scripts): accept the CI workflow's fail-fast expression in admin landing (#160721) * fix(ui): restore the alternating Talk, Send, and Stop button (#160725) Worked on by: - @vyctorbrzezowski OpenClaw-Publication: 9ef95dec-f3a2-4939-9bee-d50cc60bc93d Co-authored-by: vyctorbrzezowski <[email protected]> * fix(cron): named-session jobs run in the wrong workspace (#159444) * fix(cron): named-session jobs run in the wrong workspace Use saved session workspace and cwd bindings for explicit named-session jobs, retain their managed worktree lease, and preserve workspace context and restrictions across persistent rollover without changing detached runs. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(cron): named-session jobs run in the wrong workspace Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 85b73558-d465-449a-8257-0d87d3c1ccf8 * fix(cron): prevent cross-session scheduled file access Bind requester-scheduled saved-workspace access to the authenticated owning conversation while preserving trusted operator targeting. Prove the path from creator tool grants through stored jobs and scheduling to real file I/O, including foreign and archived-session rejection. Correct mismatched session-key fixtures and make the outbound retry fixture use the runner session reader and canonical delivery-plan owner. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(cron): reject mismatched worktree owners Apply the existing session-worktree owner invariant to the already-read registry record, before and after lease acquisition. Prove valid leases and rejected foreign-session or manual-owner bindings through real registry rows, Git worktrees, and final coding-tool file reads. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): show the exact command to approve an admin access request (#160685) * fix(ui): show exact scope approval command Include the pending request ID in the Limited access approval instructions. The former openclaw devices command only printed help; render openclaw devices approve with the current request ID and align the connection documentation without changing scope or pairing policy. Proof: real read-only browser requested admin, rendered the actual pending ID, and reconnected with admin scopes 981ms after CLI approval. Denial, expiry, and retry were also exercised. The new regression fails before the fix; sidebar tests pass (9 tests, 3.74s wall). Combined changed checks and UI build pass remotely. Local formatting hooks are replaced by completed remote gates; both private staged-content scans pass. * test(ui): assert the exact scope approval command in the live e2e Co-authored-by: Peter Steinberger <[email protected]> * fix: worker turns fail on older session-host nodes after the Gateway adds a worker tool (#160147) * fix(gateway): keep worker turns working on session hosts that predate new worker tools A Gateway built from main added the `presence` worker session tool, and every worker-turn launch to a published [email protected] session-host node failed with `INVALID_REQUEST: invalid worker launch descriptor` followed by `node worker cancellation timed out`. The installed node supervisor validates `toolAuthority.allowedToolNames` against a closed vocabulary, and bundle refresh does not replace the supervisor. The Gateway now negotiates the launch vocabulary per node, following the existing capability pattern: it advertises `node-worker-launch-tool-names-v1`, updated nodes declare `workerHost.launchToolNames` only to Gateways that advertise it, and the Gateway treats an absent declaration as the frozen 2026.9.6 vocabulary. Tool authority filters the projected tool set by the destination vocabulary, so turn authorization and the launch descriptor stay identical. Unknown declared names are ignored, so future worker tools need no further capability. Update behavior: Gateway-first updates keep older nodes hosting turns without newer tools (one info log names them); node-first updates keep the declaration unchanged for older Gateways; updated pairs get presence. * fix(scripts): add worker tool authority to the PR wrapper inventory src/infra/node-runner-inventory.ts is in the trusted-anchor PR wrapper's runtime import closure and now imports src/worker/tool-authority.ts for launch tool-name negotiation; the extracted wrapper could not resolve it. * test(gateway): await the shared async node tunnel manager fixture Main moved createManager into node-worker-tunnel.test-support.ts as an async helper (#160415); the launch-vocabulary lifecycle test still called it synchronously. * fix(node-host): updates never install on Bun-only macOS and Linux hosts (#160575) * fix(node-host): prepare updates on Bun-only POSIX hosts Read exact registry manifests and stream SHA-512-verified archives in process, then use shared Bun staging inside the private node runtime generation. Preserve npm preparation on Node and Windows, including existing schema and candidate checks. Cover Bun preparation, private bins, retained generations, invalid registry archives, loopback discovery, and Windows npm selection. Remove the Linux smoke blocker and document the remaining Windows limitation. * refactor(update): share registry package document reads Consolidate registry URL construction, HTTP fetching, JSON consumption, deadlines, and response cleanup for update discovery and node runtime preparation. Preserve caller metadata mapping, HTTP error strings, diagnostic labels, and body timeout policies. Remove the redundant registry status wrapper and share the existing discovery error return. This removes 25 production lines without changing preparation or its regression tests. * fix(node-host): skip npm freshness probing for Bun preparation * fix(node-host): create the private Bun node_modules root before staging * fix(node-host): seed the private Bun global project manifest * fix(node-host): skip Node engine checks for candidates run on Bun * docs(bun): link node update preparation history row * refactor(node-host): move registry archive reads out of install-source-utils install-source-utils sits under plugin install owners; importing the shared registry document reader from it closed an import cycle through the provider and plugin metadata graph. The in-process manifest and archive reads now live in a leaf module that only the node host imports. * test(telegram): join webhook drain before near-limit assertions (#160588) The near-limit webhook tests polled handleUpdate for vi.waitFor's default 1 s after the 200. That response only proves durable admission; dispatch still reads the ~1 MB row back through the SQLite worker, decodes and inspects it, so a loaded 2-core shard can deliver after the budget and fail with an empty update list. Join the ingress monitor's idle settlement instead, like the sibling spool tests. * fix(cloud-workers): retain bundles through provisioning (#160730) Defer node bundle pruning while provisioning has not published its durable bootstrap receipt. Coalesced maintenance snapshots must not acknowledge and remove a newly installed bundle before readiness records ownership. Add an install, Gateway retention, and worker entry resolution regression that reproduces ENOENT on the previous code. Workspace retention and existing bundle protocol contracts remain unchanged. * fix(ci): pack hybrid hourly tooling within the row cap Use the existing hosted retry file packing for hybrid tooling so an indivisible file can share its spare worker without increasing its price. The exact hourly hybrid plan drops from 80 total rows to 78, within the unchanged 77 Node plus two dist limit. GitHub remains at 76 total rows. Add the hybrid hourly cap regression and retain the GitHub ownership and cap assertions. Preserve the complete file/config/environment inventory, release descriptors, timing weights, runner policy, and worker limits. Validation: 26,658 tooling tests and all test types passed on Linux Testbox; script types and lint passed there. The connection ended after those gates, so final root-test lint and format checks passed locally. The integration file passed all 10 cases locally. P2 autoreview is clean. * test(gateway): keep d080 scoped to six gateway shards (#160115) Replay t0001, t0010, t0005, t0009, t0008, and t0007 on current main; preserve Gateway review repairs. Sessions, agents, infra, and cron shards moved to d088. Retain accepted-input ownership and hook session/account idempotency coverage. Preserve newer worker-placement reconciliation expectations. No production behavior changes. * fix: streamed replies split Markdown tables that fit one message (#160701) Related: #160668 (fixes the fitting-table case; renderer-valid continuations for tables longer than `maxChars` are out of scope here, so the issue stays open for that part) ## What Problem This Solves Fixes: with block streaming on (Discord defaults: 800/1200, paragraph), a reply containing a Markdown table that fits in one chunk gets split mid-table, so the channel renders the first part as a code table and posts the remaining rows as raw `| ... |` Markdown. ## User Impact Streamed replies with a table that fits the chunk limit now arrive with the whole table rendered consistently. Tables larger than `maxChars` still split at row boundaries. ## Why This Change Was Made The block chunker already refuses to break inside fenced code, but it had no idea about tables: once the buffer passed `minChars`, the last newline inside a still-streaming table was a valid break. The chunker now treats a table that fits in `maxChars` the way it treats a fence when choosing a break: - Table ranges come from the same markdown-it table grammar the renderers use (`findMarkdownTableRanges` in markdown-core), so single-dash delimiters, single-column tables, rows without edge pipes, quoted tables and tables inside code fences behave like they render. - While streaming, a table stays open until a full line follows it, so the unfinished line after it (even a bare `> `) may still become a row. Whether a table fits is decided by its parsed rows only, so an unfinished heading after it can't cost it that protection. A trailing header line waiting for its delimiter row is kept whole too. Other lines with pipes aren't protected, so prose containing `|` still streams at its normal newline breaks. - If the buffer reaches `maxChars` inside a table that fits, the chunker breaks before the table (below `minChars` if it has to), not inside it. - A table longer than `maxChars` isn't protected, so it still splits at row boundaries as before. Its headerless continuation still renders raw, as on main. - If a streaming table that starts the chunk exactly fills `maxChars`, the chunker waits only until the next line starts; the final flush also ends the wait. Once the next line starts, the table is emitted whole at the cap, or split at row boundaries if it has grown. The size check counts row trailing spaces, so no chunk can exceed `maxChars`. Fences, paragraph and newline breaks outside tables, source-range accounting and the forced final flush are unchanged. `src/auto-reply/chunk.ts` now names `FenceSpan` directly because `findFenceSpanAt` is generic over start/end spans. Earlier attempts (#66344, #66568, #66557, #73981) were closed unmerged. This one is different: - It uses the renderer's own parser, not a new regex table detector. That covers the repeated review notes about `-{3,}` delimiters, single-column tables, rows without edge pipes and pipes inside code. - It keeps a streaming table open until a blank line arrives, not until the current buffer tail, which was the P1 in #66344 and #66568. - Breaks at the table's own edges stay allowed. Only breaks inside a table that fits are refused. - There's no import cycle through `chunk.ts`, it targets the current `embedded-agent-block-chunker.ts`, and it doesn't add a second limit model: `maxChars` stays the only cap. Thanks @giodl73-repo for the fresh reproduction. ## Evidence **Real Gateway, Discord plugin against a Crabline mock of the Discord API, frozen base `3775359a` vs this branch.** The mock model streamed the issue's reply over OpenAI Responses: intro, a 28-row table (983 chars in total), and a closing line, in 17-char deltas. Discord used its native chunking with `streaming.block.enabled: true`. The captured payloads are the `POST /channels/<dm>/messages` bodies: - Base, Discord default coalescing: message 0 is the intro plus a code table R01–R11. Message 1 is a code table R12–R24 followed by a raw `| R25 | North | 1124 | 2224 |`. Message 2 is raw rows R26–R28 plus the outro. - Base, coalescing off: block 1 is a code table R01–R24; block 2, 1.2 s later, is raw R25–R28 plus the outro. - This branch, both coalescing settings: every row R01–R28 is inside code tables. The table only splits at Discord's own 17-line message cap, which reopens the fence. The outro is a separate block, and there are no raw rows. - Rerun on head `2b3ec27a` with default coalescing: 3 messages, every row inside code tables, no raw rows. - Oversized control (60 rows, 1943 chars; also rerun on `2b3ec27a`): both base and this branch split cleanly at a row boundary. The headerless continuation still renders raw on both, which is existing behaviour for tables longer than `maxChars`. **Focused tests** - The new `EmbeddedBlockChunker > Markdown tables` cases cover a short intro, a blockquote table, a break before the table when the intro leaves no room, and a table exactly `maxChars` long, each at 1/17/43-char deltas. All four fail on base (they get `822,160`-style splits) and pass here. The oversized-table controls (60 rows, and a table whose trailing spaces push it past the cap, streamed and flushed at once) check that every chunk stays within `maxChars` and splits only at row boundaries. They pass on both base and here. The trailing-space control fails if the size check ignores trailing spaces. Two more cases cover the provisional-span edges. Prose lines containing `|` chunk exactly like the same text without pipes, and a table exactly `maxChars` long is emitted as soon as the next line starts even while whitespace keeps streaming. Both fail on the previous revision of this branch. A further case sends an intro, a table exactly `maxChars` long and a directly following `# heading` in one delta as well as streamed. It yields intro, table, heading, and it failed on the revision before this one. The nine new cases take about 2.3 s in total locally; each 1-char cap-edge case takes about 0.45–0.5 s. - `embedded-agent-block-chunker`, `block-reply-flushing`, `chunking-fences`, `final-answer-delivery`, `text-end-reconciliation`, `btw`, `auto-reply/chunk`, `markdown-core` `tables` and `fences` all pass. - A chunker probe over 13 table shapes × 5 delta sizes (no-edge-pipe rows, single column, quoted, fenced, newline/sentence preference, `flushOnParagraph`, `minChars: 1`, two tables, prose with pipes) found no split fitting table, no chunk over `maxChars`, and unchanged source coverage. Pash/Sarah check: #150407 touched `docs/concepts/streaming.md`, but only the Slack progress section. There's no other overlap, and Slack compact progress is unaffected. Co-authored-by: Ayaan Zaidi <[email protected]> * improve(ui): compact Online people activity rows (#160140) * improve(ui): compact Online people activity rows Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 0fdf9bc8-f33a-4798-ab8a-92330e30bae2 * improve(ui): clarify Online presence and workload text Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: a45e213a-610b-4632-9cb7-58e9586b75f1 * test(ui): wait for roster hydration before sidebar assertions Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: e35d4d74-12f7-4b00-9fa9-17a2fd9355c0 * test(ui): await split startup request before counting Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c33e14bd-a4ce-4715-98cd-922eace93d41 * improve(ui): compact Online people activity rows Worked on by: - @vyctorbrzezowski - @VACInc - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b5a493a6-aefd-468b-9f44-a48b89ebff00 * improve(ui): list people with running sessions first in each presence group * improve(ui): align the Online open-sessions icon with the running spinner --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * chore(ui): refresh control ui locales (#160753) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: dashboards require approval after native app authentication (#159860) * fix: dashboards require approval after native app authentication * fix: register native auth test entries and remove the client type cycle * fix: recover native dashboard auth on older WebViews and reconnects * fix: preserve native dashboard auth across current app paths * fix(ci): use idle hosted tooling workers during overflow * fix(ci): preserve oversized tooling refusal * test: load first-hop helpers in the survivor fixture * test(macos): wire conversation auth fixture and tokenless route --------- Co-authored-by: Peter Steinberger <[email protected]> * fix(onboarding): stop claiming inference is ready after Skip for now (#160713) * fix(onboarding): distinguish local setup from verified inference Use a provisioning-specific summary title so Skip for now does not claim that inference is ready. Preserve the separate successful verification message and existing skip behavior. * fix(onboarding): translate the local setup summary title Co-authored-by: Peter Steinberger <[email protected]> * feat(plugins): show installed accounts and credential status (#160092) * prototype(plugins): show per-plugin auth alerts from live MCP checks Place the shared alert beneath the individual plugin hero on main 018639af3b54. Read a real Notion HTTP OAuth challenge and use a Notion-specific read-only account probe for the local stdio server. Keep the app inventory isolated and the prototype out of production imports. * prototype(plugins): simplify auth alerts to one line * feat(plugins): connect detail auth alerts to MCP OAuth * fix(plugins): align auth alert with the main content column * feat(plugins): show installed accounts and credential sections * fix(plugins): use the supported credential projection copy * feat(plugins): simplify setup states and retain edit actions * fix(plugins): reuse MCP ownership across inspections * fix(plugins): keep MCP cache types in the metadata owner * test(plugins): preserve real install failure classification in fixtures * fix(ui): let channel setups run back to back (#160705) * fix(ui): release channel setup sessions before retrying Close wizard input without aborting committed work, and wait for same-client cancellation settlement before starting a replacement wizard. Two regressions fail before their respective fixes. Real Gateway and Chromium proof on an isolated Blacksmith Testbox passes 50 cancel/restart cases across Telegram, Discord, Slack, and WhatsApp. Focused controller tests and the campaign-base changed-file gate pass. No local builds or tests; no autoreview per task instructions. * fix(ui): bound channel wizard cancellation before replacement starts A replacement wizard start waits for the previous wizard.cancel to settle. Route that cancel through the same request ceiling as wizard.start so a stalled Gateway response cannot block later setups indefinitely. Split the cancellation cases into their own suite with shared fixtures to stay under the test line cap. The stalled-cancellation regression times out before the fix and passes after on a Blacksmith Testbox; the controller suites pass 19/19. * test(ui): keep channel label fixtures in the controller suite Co-authored-by: Peter Steinberger <[email protected]> * perf(cron): narrow delivery-target session reads (#160216) * perf(cron): narrow delivery-target session reads * fix(ci): keep plugin retention proof on Node * fix(slack): progress card links open the visible work session instead of the main session (#160088) * fix(slack): link finished progress cards to the visible work session Slack progress cards linked "Open in OpenClaw" to the conversation's main session even when the turn spawned a visible work session, so operators on groupScope "main" landed on /chat/<agent> instead of the child doing the work. Carry the child's canonical URL from its producer: accepted visible spawn receipts keep sessionUrl and label across the embedded, Codex app-server, and CLI runners; the settled run reports them once through a new optional GetReplyOptions.onVisibleWorkSessions before final delivery; Slack's native task card and Block Kit card render "Open work session" for one child, labeled links in acceptance order (max five) for several, and keep the conversation link when none was spawned. No request-time session discovery. To satisfy the line-cap ratchet, the visible-spawn TypeBox schema moves to sessions-spawn-visible.schema.ts and the new cases live in sibling test files with shared test-support fixtures. * fix(slack): match only generated session-link action IDs The link-only acknowledgement matched any action_id starting with openclaw:session_link, so an unrelated button such as openclaw:session_linked was acknowledged and dropped instead of reaching plugin or agent dispatch. Accept only the bare ID or a numeric suffix, as the renderer emits. * test(ci): accept measured command ceilings beside startup health The PR's 771st database-worker file changes compact placement and exposes a contradiction: capacity checks accept measured command groups' two-worker ceiling, but the startup-health sibling check expected no ceiling. Share the complete measured-generation lookup between both assertions and recognize the existing command policy without changing planner, packing, worker, or job-level policies. Move the unchanged tooling placement helpers to the sibling support module, reducing the test's counted lines from 7536 to 7524. * fix(ui): keep Inbox empty-state heading larger than description (#160724) * fix(ui): keep Inbox empty-state heading larger than description Set both empty-state text sizes explicitly with the existing text-scale tokens. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): keep Inbox empty-state heading larger than description Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 69c70083-4f66-4e3b-a051-5642b6ead90e * fix(ui): separate Inbox empty-state icon from its text Use 16px between the icon and heading, and 4px between the heading and description. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]> * feat: speak with Gemini 3.8 Flash TTS (#157331) Add opt-in Gemini 3.8 Flash and Flash-Lite TTS in the existing Google speech plugin. Keep the implicit Gemini 3.1 default and older GenerateContent path unchanged. Send Gemini 3.8 transcript text separately from delivery style and structured speaker metadata through stateless Interactions requests, then reuse the existing PCM, WAV, and voice-note outputs. Preserve the shared Google auth and response helpers, document the model-specific prompting behavior, and cover speaker/no-speaker requests, transcript handling, model selection, and audio output. Co-authored-by: IWhatsskill <[email protected]> * fix(gateway): size bootstrap artifact transfer lifetime from its operation window (#160687) Bootstrap artifact capabilities used a fixed ten-minute backstop while the owning operation could remain authorized for 45-95 minutes. Slow tunnel downloads were cut off mid-body at 600,000 ms, and every retry received an opaque 404. Derive the transfer lifetime from the existing size-based bootstrap operation owner. Preserve live enrollment and operation revocation, three serial serves, busy exclusivity, and opaque rejection. Cover the streaming deadlines and revocation with fake time, and update the troubleshooting lifetime clause. * fix(ui): preserve focus when onboarding suggestions arrive (#160677) Do not move keyboard focus from the composer or another control when an asynchronous recommended option arrives. Preserve initial autofocus and selection within the option card. Regression cases fail before the fix for focused textareas and buttons. Real isolated Gateway proof retains the full draft and avoids an unintended Talk to my agent handoff. Option-card and custodian-page tests pass, with final option-card checks at 3.01 seconds. Remote changed checks pass against c377d7ca822. Co-authored-by: Peter Steinberger <[email protected]> * fix(browser): Windows version probe pushes the env-var count over budget (#160756) #160432 passed the Windows browser path to its leaf PowerShell child under a new OPENCLAW_BROWSER_VERSION_PROBE_PATH name the env-var budget never recorded, so check:env-var-count (and every local check:changed run touching src, packages, or extensions) fails on main at 477/476. Reuse the documented OPENCLAW_BROWSER_EXECUTABLE_PATH for that child-only channel: it holds exactly the browser executable path, the override lives only in the spawned powershell.exe environment, and the path still reaches PowerShell as $env: data, never script text. * fix(e2e): stage candidate providers for legacy-operator survivor lanes Legacy published baselines (2026.7.35, 2026.6.34) author plugins.allow from their bundled provider inventory. The candidate's doctor restores those now-external providers at the exact candidate version, which does not exist on npm or ClawHub before publication, so the prepublish registry must carry them. Stage every official provider from the selected candidate's external provider catalog for legacy-operator-state lanes, loaded once per plan. * fix(ci): planner ownership census times out on loaded runners (#160586) * perf(ci): scan wide import-graph frontiers in one pass The PR-exempt ownership census plans a PR that edits all 906 PR-exempt test files. Its consumer check sends ~2,700 terms through the wide native reader path over ~42.5k tracked files. #160531 and #160517 each added a match-before-parse filter, so that path spawned one reader child to match every file and a second to re-read and parse the 2,136 matches. readImportGraphEdges already requests matchingOnly, so drop the extra pass: one child matches, parses only uncached matches, and still leaves nonmatches uncached. Build the Aho-Corasick automaton as a dense Int32Array over the UTF-16 code units the terms use, completing failure rows breadth-first, so the scan takes one table load per code unit instead of Map lookups and failure walks. Files with no match skip projecting every requested term. Matching semantics, reference checks, and ordering are unchanged. For the real 906-file request, reader output is byte-identical. Reader CPU fell from ~12.1s over two passes to ~5.9s. Inside the Vitest worker the census case's reader cost fell from 16.5s to 8.8s, and the case from 39.1s to 30.4s on a comparably loaded host. Timeout, assertions, and file coverage are unchanged. * perf(ci): bound term-matcher rows to the ASCII alphabet Search terms come from tracked paths, which have no character-diversity bound. One dense column per distinct UTF-16 unit could therefore grow the transition table by nodes x alphabet on Unicode-heavy frontiers. Keep dense Int32Array rows only for the ASCII units the terms use, at most 129 columns per node, and route other term units through sparse per-node edges with the classic failure walk. Size the table once to its node upper bound so it never reallocates; only rows of real nodes are written. Fold isReferenceCharacter into an equivalent character-class test, which is exhaustively equal for every UTF-16 unit and NaN. The matcher contract fixture gains terms whose failure links cross dense and sparse edges. A 24,000-case randomized differential against main's matcher and a String.includes oracle shows no differences, and reader output for the 906-file census request stays byte-identical. * fix: disable plugin Connect when gateway OAuth is unavailable (#160761) * fix(e2e): size upgrade-survivor Gateway readiness for saturated runners Release Checks 36479006821 saw both the published 2026.9.6 baseline and the 2026.9.7 candidate bind HTTP after 56-58 s and miss the fixed 90 s readiness window on saturated runners, while the same phases pass in 36-41 s on idle ones. Raise the default startup budget to 300 s and make the readiness wait honor the configured budget instead of a hardcoded 360 polls, so the OPENCLAW_UPGRADE_SURVIVOR_START_BUDGET_SECONDS override actually extends it. * fix(agents): reuse admitted plugin registry (#160658) Reuse the plugin registry already admitted for unchanged agent turns instead of acquiring another captured registry. Keep selected-owner coverage, model-catalog scoping, cleanup and retirement with their existing lifecycle owners. Add real-loader regression coverage for synchronous and inspection reuse, missing owners, catalog isolation and shutdown cleanup. Production LOC remains net zero. Exact-head CI passed (run 36474645681); fresh autoreview is clean. Installed Linux parent/head evidence removes duplicate registration; full Windows reporter confirmation remains outstanding. Fixes #160572. Thanks to @ekinnee for the focused repair, @oxen-horse for the report, and @steipete, @RomneyDa and @vincentkoc for the earlier work and evidence in #158369 and #150915. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> * fix: SQLite workers fail when running OpenClaw from source under Bun on Windows (#160310) * fix(infra): keep Node's tsx loader away from Bun SQLite workers Running OpenClaw from source under Bun, the SQLite worker broker started every .ts worker with `--import <tsx/esm file: URL>` and asked it to register tsx's loader API, regardless of runtime. Bun runs TypeScript natively and resolves a file: preload by stripping "file://", so on Windows `file:///C:/.../tsx/dist/esm/index.mjs` became `/C:/...` and the worker failed with "preload not found" (device-token persistence broke). runtime-worker-url already owns this decision for other workers. Extract runtimeNeedsTypeScriptLoader from it, route the broker's worker execArgv through resolveRuntimeWorkerThreadExecArgv, and only send the source loader URL when the runtime needs it. Node keeps tsx for source workers. * test(infra): keep Node's loader for simulated-Bun SQLite workers bun-sqlite-library.worker.test.ts overrides process.versions.bun to exercise Bun SQLite library selection, but its SQLite workers are real Node worker_threads. Now that the broker omits tsx on Bun, those workers could not load their TypeScript carrier. Mock the runtime-worker-url loader decisions in this test to answer for a Node executable, which restores its previous broker behavior. * fix(http): adapt rejection transport to Bun's Node-compatible closure (#160329) Detect Bun's native HTTP destroySoon override introduced by upstream #43557 and use the shared ordered half-close path while retaining native response completion for older Bun transports. Version labels cannot distinguish the pre-sync and post-sync canaries. Wait for queued HEAD socket assignment on Bun without finish diagnostics, then flush through the response callback to avoid Bun's dispatcher socket cork. Preserve Node's existing ordering and transport operations. Update SDK rejection documentation; retain all existing wire-level regression cases. Validation: 31/31 lifecycle tests on Node 24.21.0, stock Bun 1.4.2, pre-sync and post-sync Bun forks, and the finish-diagnostics build. Core and infra test typechecks, scoped oxlint, oxfmt, assertion-safety ratchet, and diff whitespace checks pass. No tests or dependencies added. * chore(ui): refresh control ui locales (#160771) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(ui): open voice setup before history admission (#160686) * fix(ui): open voice setup before history admission The microphone remains enabled for dictation during initial history, but its short-tap handler returned at the history submission fence before opening unavailable capability settings. Catalog admission populated a closed picker: two unavailable DOM rows existed, while accessible Configure menuitems were zero. Open capability guidance before that fence. Actual Talk creation still waits for accepted history. Keep the existing unavailable-settings unit case and all E2E assertions; hold startup and catalog across the target's early click. Synchronize the four other proven desktop Talk-start races with the existing waitForTalkReady helper. Leave direct/hold dictation, explicit picker triggers, mobile Talk and already-synchronized Talk cases unchanged. Document the behavior. Introducing ordering: 0b52dc467b3e added the history submission fence before picker opening; d769e31af2b9 now awaits foreground stream admission before history/startup, exposing that window more often. Read the parent-relative patches and the 94cbd1335df, 6b9da9dc028, f03d64f6a56 and e256cbef8ae repairs. Probe evidence on original production 49351700f3f6: - Hold chat.startup and talk.catalog, click Start voice input, release both, and await visible history: unavailable=2, Configure visible=0, Configure including hidden=2, picker open=null. The original toBe(2) assertion fails with expected +0 to be 2; 24.333s case, 197.12s wall. - The pending-history unit variant fails with dropdown.open=false; the ready-history variant passes. Extend the existing unit rather than adding a duplicate case. - Holding startup across the initial click also leaves talk.client.create absent in transcript ordering, composer voice selection and both SDP cases; all four controlled probes fail, while the settings-only sibling passes. Validation: - Four changed E2E files: three consecutive passes, 16/16 each; 313.04s, 293.49s and 340.02s command wall including isolated UI builds. - One-worker dictation before/after: 11/11 each; 234.65s -> 181.54s wall, file time 63.604s -> 48.819s, changed case 4.663s -> 3.583s. - One-worker siblings before/after: 5/5 each; 210.09s -> 162.56s wall. File times: ordering 13.101s -> 7.517s, voice selection 20.346s -> 13.522s, SDP 13.446s -> 8.394s. These are cost samples, not a speedup claim. - Existing full browser files exceed 30s because they exercise multiple real composer/media flows and screenshots; no E2E cases or timers were added. - Composer microphone, action and catalog owners: 80/80; 85.96s wall. - Independent Codex autoreview: scoped-clean through P2. - pnpm tsgo:ui passed in 85.05s; ui-e2e and ui-chat test graphs passed in 106.07s. Targeted oxlint, oxfmt and git diff --check passed. - Local check-changed --base origin/main passed its guards, formatting, graph boundary and i18n, then stopped at inherited TS2741 in src/gateway/session-row-projection.config-commits.test.ts:76: the fixture omits the required scheduler. That untouched file is already repaired by 4bd105408cc on main. The same gateway-root typecheck passes in 69.67s on untouched origin/main snapshot 28340c41f8b8, materialized under this task's artifacts with physically cloned, identical dependencies. No unrelated source was changed. The full changed pipeline is not claimed green. Release-note context: Control UI opens unavailable voice setup when the microphone is clicked during chat startup, while preserving Talk admission. * test(ui): rely on Talk readiness without a no-op startup hold The sibling Talk cases held chat.startup only to release it immediately, which exercises no ordering. waitForTalkReady with the ready-history message is the synchronization, matching the landed e256cbef8ae shape. * test(agents,channels,cli): remove low-value tests (batch d091) (#160766) * test(heartbeat): deslop t0067 tests * test(agents): deslop t0119 tests * test(telegram): deslop t0118 tests * test(discord): deslop t0121 tests * test(agents): deslop t0120 tests * test(state): deslop t0129 tests * test(browser): deslop t0128 tests * test(status): deslop t0112 tests * test(matrix): deslop t0125 tests * test(cli): deslop t0082 tests * test(agents): remove unused compaction fixture exports * improve: keep Gateway responsive while compaction loads history (#160314) * perf(agents): hydrate compaction transcripts off thread * test: prepare managed handoff runtime before case deadline * test: speed up database preflight lifecycle tests (#160728) Co-authored-by: Peter Steinberger <[email protected]> * improve: speed up child-session lists on large rosters (#160404) * perf(gateway): select child sessions through the parent index * test: prepare managed handoff runtime before case deadline * perf(nodes): reuse warm workers so node session turns start as fast as local ones (#160265) * perf(nodes): reuse warm workers so node turns start as fast as local ones Retain settled workers for two minutes with at most two idle children per node. Negotiate node-worker-idle-retention-v1 across Gateway, node, and bundle; fresh turn admission and credentials remain mandatory. Protect background work and preserve durable process cleanup and reconciliation. Expose reclaimable idle capacity to placement admission and the session picker. Consolidate lifecycle helpers under the supervisor and use the shared capacity parser. Document the bounded process-count and memory tradeoff; include lifecycle, negotiation, and picker regression coverage. fix(nodes): retry failed idle worker cleanup Rearm the supervisor idle timer after a transient physical cleanup failure while retaining the durable slot and retirement fence. Cover automatic expiry and idle-limit eviction alongside explicit cleanup with a fake clock. Fold the cancellation forwarding wrapper into its owner and remove the immediately repeated admission abort check. Preserve the existing authority, settlement, and shutdown guards. fix(nodes): synchronize idle capacity protocol models Regenerate the Swift worker-slot model for the optional reclaimableIdle field. The schema and named capability contract remain unchanged. Inline the single-caller prepared workspace custody wrapper in the supervisor and move its four cases to the public launch entry point. Preserve exact acquisition, abort, shutdown, and release ordering while keeping the complete branch production delta negative. chore(nodes): prune stale worker assertion allowance Remove the exact one-entry assertion baseline for worker-command.runtime.ts after the unsafe assertion was eliminated. Keep the scanner and all unrelated allowances unchanged. fix(nodes): keep supervisor dependencies on protocol owners Import protocol parsers and types directly from their canonical leaf, including the QA fixture, and remove the redundant supervisor-control re-exports. This breaks the dependency cycle without duplicating the wire contract. Keep the runner cancellation mock and shutdown callback asynchronous with the real Promise<void> contract, including teardown restoration. fix(nodes): complete asynchronous cleanup contracts Join cancellation cleanup in callers and tests while preserving parallel shutdown settlement and expected failure identity. Exclude absent cleanup owners before aggregation and keep stale-connection rejection unchanged. Use immutable worker input, type-only journal imports, stable sorted idle projections, and receiver-bound fault injection. Remove redundant descriptor bookkeeping and finish the test lint cleanup without changing limits or suppressions. * test(nodes): disambiguate inventory fixtures * fix(google): keep streaming silence to Gemini 3.8 Live instead of ending the audio stream (#152844) Keep streaming supplied silent audio frames for Gemini 3.8 Live so server-side VAD can finish the user turn. Retain existing audioStreamEnd behavior for other Google Live models. The policy remains in the Google plugin model contract and shared production bridge. Closes #152830 Co-authored-by: IWhatsskill <[email protected]> * fix(agentmail): allow official ClawHub channel to load (#155097) * fix(agentmail): allow official ClawHub channel to load * docs(agentmail): keep setup guide vendor-owned * fix(agentmail): require API key for configured state * fix(plugin): verify pinned digest before legacy trust * fix(doctor): update refuses when lint warns about an unusable agent database (#160184) Fixes `openclaw update` refusing with candidate-doctor-lint / doctor-failed when candidate Doctor lint warns about an unusable agent database, and plain `openclaw doctor --lint --json` printing a Clack warning box before its JSON report. Doctor notes rendered to process.stdout even when machine-output mode reserved stdout, so runDoctorAgentDatabaseOperation's nonfatal "Doctor warnings" note preceded the lint JSON; in an update rehearsal the private lint worker's first stdout line failed the strict JSON parse and became a core/doctor/lint-inspection error. Notes now follow loggingState.forceConsoleToStderr: terminal-core gains a dependency-free, callback-scoped note output resolver (note-output.ts), and withConsoleLogsRoutedToStderrForJson installs one that reads the live flag at write time. Warnings stay visible on stderr. Candidate-side only; released updaters (verified against the 2026.9.6 driver) accept the clean JSON unchanged. Proof: json-output-mode regression fails on main and passes; published [email protected] driver x candidate upgrade-survivor cell with an ownership-mismatched secondary agent DB refused before (doctor-failed) and succeeded after with the warning on stderr and the bootstrap import guard passing. * refactor(gateway): remove duplicate artifact API scenario (#160779) Co-authored-by: Vincent Koc <[email protected]> * test(release): repair release-check lanes after settle, Responses body, and scheduler changes Release-check lanes that were also red on main asserted pre-change contracts: - subagent settle wording now says "in this batch" (#158642) - Responses request bodies are pre-encoded bytes (#159574); decode them without consuming init instead of requiring string bodies - direct experience-review calls must bind the session MCP scheduler that Gateway startup binds in production (#159481) - Docker lanes pin the plain PATH `codex` CLI for the Codex harness probe - Telegram group-policy hot reload must name every array it replaces Landed directly from #160746 (the native publisher needs a signed merge to bring that branch current). Focused proof: four QA suites 200/200 in 81 s on the merged tree; the two E2E files and credentialed live paths were not run. * fix(active-memory): recalls on claude-cli never reuse the prompt cache (#160768) Closes #160672 ## What Problem This Solves Fixes: every Active Memory recall on the `claude-cli` runtime writes the whole OpenClaw system prompt into Claude's prompt cache again, even for two recalls of the same agent seconds apart. ## User Impact User impact: repeated Active Memory recalls of the same agent on `claude-cli` now send a byte-identical system prompt, so the recall's first API call can read it from Claude's cache instead of paying for a 10k+ token cache write each time. Normal `claude-cli` turns are unchanged. ## Why This Change Was Made Each recall gets a new session key (`<parent>:active-memory:<per-run hash>`) so its session entry stays unique. The Runtime line rendered that key into the system prompt, and Claude CLI receives the whole system prompt as one `appendSystemPrompt`, so the per-run key forced a full cache rewrite. The recall's session key is the only value that differed between two recalls. One-shot CLI dispatch runs (today only Active Memory recall) now carry the Runtime facts line in their only user turn, through the same `UserPromptSubmit` context Claude CLI already uses for other per-turn facts. This reuses the existing relocatable Runtime region that Chat Completions routes already move into the first user message. The recall model still sees its agent, session, model and channel. Recall session keys, storage and cleanup are unchanged. Normal resumable CLI turns keep the Runtime line in the system prompt. Thanks @ndakota79 for the detailed cache-counter report and cause analysis. No overlap with Pash/Sarah changes. ## Evidence Isolated Gateway (task-owned home, state, config, port) with agents `alpha` and `beta` on `agentRuntime: claude-cli`, Active Memory `mode: always`, and a fake `claude` executable that records the `initialize.appendSystemPrompt` and the `UserPromptSubmit` context it receives. Two `chat.send` turns on `agent:alpha:main` about 60 s apart, then one on `agent:beta:main`. - Base (`7f0781faa67`): the two alpha recalls' system prompts differ in exactly one line: ``` -Runtime: agent=alpha | session=agent:alpha:main:active-memory:e10ad4c9dc5e | ... +Runtime: agent=alpha | session=agent:alpha:main:active-memory:9945b3fb179b | ... ``` - Candidate: both alpha recalls send the same system prompt (14,210 bytes, sha256 `f7a45b89f4e84e5f…`). Each recall's user turn carries its own `Runtime: agent=alpha | session=agent:alpha:main:active-memory:<hash> | ... | channel=webchat | ...`. The candidate recall prompt equals the base recall prompt minus the Runtime line. - Controls: the beta recall still gets its own prompt (its working directory differs) and its own `agent=beta` Runtime facts in the turn. The alpha and beta main (non-recall) turns send the same system prompt and user turn as on base, with the Runtime line still in the system prompt. - Regression: `src/agents/cli-runner/prepare.test.ts` "keeps per-run helper session identities out of the reusable system prompt" fails on base (system prompts differ) and passes with the fix. `prepare.test.ts` (194), `cli-backend-dispatch.test.ts` (40) and `helpers.system-prompt.test.ts` (15) pass. - Test cost: the new test runs in 136 ms. `pnpm test src/agents/cli-runner/prepare.test.ts --maxWorkers=1`: 194 passed, 83.3 s wall (Vitest 65.9 s); the same command filtered to the new test: 23.1 s wall (Vitest 5.8 s). Not verified: a real Claude Code run. The proof checks the bytes OpenClaw sends to the CLI (the `initialize` system prompt and the `UserPromptSubmit` response); it does not show Claude Code's cache counters. The Runtime facts use the same `UserPromptSubmit` additional-context path that already carries `before_prompt_build` hook context (including Active Memory's own recalled context) on `claude-cli` turns. Co-authored-by: Ayaan Zaidi <[email protected]> * fix(release): retry the shipped 2026.9.6 Windows updater after its exit-13 liveness defect Windows packaged upgrade from [email protected] to the 2026.9.7 candidate failed on Node 24 and 26.1.0 because the shipped 9.6 updater exits 13 (unsettled top-level await) before switching the install: it awaits an unreferenced 300 ms cleanup timer after cancelling the retained-runtime progress probe. 02720df7e6c5 fixes it for 2026.9.7+, but cannot repair the executing 9.6 parent, and it is intermittent on native Windows. Classify exactly that signature (win32, exit 13, the warning, empty stdout, install still on a baseline older than 2026.9.7), retry the same update once as a user would, and only if the retry fails the same way use the existing verified direct candidate install. Both outcomes are recorded as updater fallback evidence; any other failure still fails the lane. * perf(gateway): reuse pending narration deadlines (#160769) Keep the existing two-second deadline while replacing pending narration text. Preserve immediate final flush, retractions, and retirement cancellation. * refactor: remove redundant final-delivery reconciliation (#160764) * test(e2e): align survivor startup budget expectations The upgrade-survivor readiness default moved from 90 to 300 seconds, but three existing helper assertions still expected 90. Keep them aligned with the runner; forwarding, overrides, and explicit timeout behavior stay covered. Reproduced the original failing case on main. Validation: 350 tests across the helper and startup-budget suites passed in 59.06 seconds, plus scoped lint, formatting, and independent review. * docs(ios): qualify SimSlim scope in setup guide (#160784) SimSlim also prepares the compare-mode arms of native release qualification, not only the ios-build iPhone test simulator. Follow-up to the ClawSweeper finding on #160607. * fix(ci): scope untouched line-limit diagnostics in changed checks (#158995) * test(channels): track the inlined Synology context builder call #160639 (5ddcce60fabb) inlined resolveSynologyChatInboundRoute, so the Synology inbound event now calls rt.channel.inbound.buildContext on the same getSynologyRuntime() handle instead of resolved.rt. The caller inventory still expected the old text and failed build-artifacts on main and in 2026.9.7 Full Release Validation (CI 36496123315). Update only the expected call text; the runtime provenance is unchanged. Proof: context-builder-callers.test.ts fails 1/6 on main before, passes 6/6 after (3 s, one worker). * fix(ci): restore Doctor plugin repair lint budget (#160715) * docs(ci): explain why the plugin retention proof stays on Node #160216 routed src/plugins/runtime.retention.test.ts to the unit-fast Node partition after reproducing Bun failures. Record why in the runtime-selection docs, beside the other GC-sensitive proofs. Root cause, measured on Blacksmith Testbox tbx_01m3n11pjbtgfgcqv8t1jjbh4n with pinned Bun 1.4.3-canary.1+6b9148b17 on 300ef3991158: the registry-instances case kept a released successor registry past eight forced collections in 3/350 and 6/900 runs. In every retained case, a GCDebugging heap snapshot one task later still held the oldest-registry control marker but no successor, and each WeakRef then read empty. No retaining path exists, so this is collector nondeterminism, not a product leak. Node ran 0/600. The registry-case failure seen on openclaw/openclaw#160136 (CI run 36380533796) is a separate, already-fixed fixture defect. That run merged onto 56376753f832, before c136ec631464 (#160200) moved gc() out of promise continuations. On Bun, that base fails the registry case 339/350 and 300ef3991158 fails it 0/550. Routing proof on the same lease: replaying the failing core-unit-fast-2 group (186 files, bun-compatible policy) exits 0, with all 10 retention cases in the Node subset. The runtime-inventory guard fails without the routing entry. * fix(ci): restore frozen planner dependency closure Include the provider catalog and record helper added by ac59199 in frozen tooling admission and all affected copied harnesses. Verify their bytes through the existing closure owner. Keep child evidence isolation covered with the child-only Codex install helper now that record-shared is common. The original package failure reproduces locally: 93 failed and 462 passed. Both added integrity cases fail before the closure repair. Afterward, all 555 package tests and 445 closure sibling tests pass. Independent review is clean through P2; the full selected static check passes in 1448.701s. Measured one-worker wall times: package 218.673s and closure siblings 267.426s. The two added integrity cases take 208ms and 202ms. No timeout, retry, baseline, or integrity check is relaxed. Related CI: 36494713554 and 36494667447. Separate startup assertion and Synology caller fixes landed in 8799587 and c4845a6 and are not duplicated. The separate macOS native reconnect failure in main CI 36492763105 remains causally unproven and is not claimed fixed here. * fix(security): parse gpt generation numbers in the audit tier check (#140012) Fix security audit warnings that incorrectly classify numbered GPT-6 models as below GPT-5. Compare numeric generations in the shared model-hygiene classifier while preserving older-model warnings and Azure's legacy gpt-35-turbo naming contract. The repair covers primary models, fallbacks, image models, and agent overrides without changing provider routing, authorization, or unknown-name advisory policy. Broader unknown-name behavior remains separate in #160580. Fixes #139751 Thanks @holny for the fix, regression coverage, and isolated CLI evidence. Co-authored-by: holny <[email protected]> Co-authored-by: IWhatsskill <[email protected]> * refactor(daemon): prune redundant Scheduler test fixtures (#160794) Co-authored-by: Vincent Koc <[email protected]> * fix(release): admit the provider catalog read by legacy-operator survivor planning ac59199ad3fd made docker-e2e-plan.mts import scripts/lib/official-external-provider-catalog.json and scripts/lib/record-shared.mjs and read the candidate's provider catalog through the frozen target reader for legacy-operator-state lanes. Frozen admission hydrates only declared source paths in a no-lazy-fetch checkout, so targeted survivor dispatches failed with 'unable to read selected source (cat-file)', and the admission fixture lacked both tooling imports. Declare both files in the tooling closure and hydrate the candidate catalog for survivor lanes. * refactor(plugins): deslop plugin runtime fifth pass (#159945) * refactor(plugins): deslop plugin runtime fifth pass Consolidate repeated provider, manifest, install, catalog, hook and registration projections under their existing owners. Preserve plugin loading, SDK, caching and source-security contracts. Preserve provider wizard modelSelection preferences through registration so configured onboarding choices retain their documented model-picker behavior. * fix(plugins): preserve build and type cleanup contracts * fix(plugins): retain distinct public credential source types * fix(plugins): preserve sparse catalog matching and cleanup contracts * fix(plugins): preserve include ownership during uninstall * fix(plugins): include request policy in PR wrapper inventory * chore(ios): simplify store release workflow (#160791) * perf(subagents): avoid sibling scans for registry patches (#160800) * fix(channels): isolate Mattermost sends and retain capture owner proof (#150915) Keep Mattermost inbound monitoring behind account startup rather than the outbound runtime. Bind the Discord E2E fixture to its selected runtime artifact and assert exact provider/instance identity through model selection and rerouting, preserving late-STT, history, and cleanup fences. The prepared-registry handoff is already on main via #160658; do not duplicate it or retain the obsolete release-preparation ancestry. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * perf(ui): stop forbidden canvas lease refresh loops (#160808) Use granted hello scopes to admit canvas lease renewal and stop automatic retries after FORBIDDEN. Preserve read access implied by write/admin scopes and re-evaluate access on reconnect. * fix(ui): multi-file chat sends fail late when attachments together exceed the frame limit (#160071) * fix(ui): admit chat attachments against the chat.send frame budget One chat.send carries every composer attachment base64-encoded in a single WebSocket frame, but the Control UI only checked each file against the per-attachment hello-ok.policy.attachments ceilings. Files that fit one at a time could together exceed the frame, and the send failed late: after the composer cleared and the whole batch was encoded, with a generic payload error from the browser transport. The per-send decoded budget is floor((policy.maxPayload - 256 KiB) * 3/4), the formula the Gateway already used to clamp its advertised ceiling, now owned by src/shared/chat-attachment-frame-budget.ts for both sides. Every composer intake path counts staged attachments plus in-flight reads and rejects the file that would overflow with the existing "Too large to send" toast. handleSendChat, outbox delivery, and new-session submission …
What Problem This Solves
Full core lint fails on main because Doctor's configured-plugin repair module has 746 counted lines against the unchanged 700-line cap.
User Impact
No user-visible behavior change. This restores validation without changing plugin selectors, warnings, consent, transaction ownership, or payload retirement.
Why This Change Was Made
Move the existing synchronous release-cohort and version-repair selection into the existing target-selection owner. The caller supplies the same prepared context and warning callback at the same point in the flow; the generic version/cohort helpers remain authoritative.
Update behavior is unchanged: published updater entrypoints, environment markers, repair options, installed records, and persistence paths are retained. No configuration or data migration is introduced.
Evidence
aab144a1f18ecbfc66b6ce846174aee3c19bde5c; source treecbf7b3fbce7d64cddd82cde38e4a17256e661233.tbx_01m3mxtsy8adkam0n8hmddn238: targeted typed lint passed (2 files, 0 warnings/errors, 8.30s); existing repair/version-drift suites passed (172 tests, 55.69s); import boundaries passed (6 files / 54 tests, 16.04s); fullcheck-changedpassed (1667.47s), including all 26 test-type projects, production types, guards, Knip and full core lint.[email protected]→ candidate cell (base, manual restart, no live model calls). The lane took 406s; the complete package/image/Docker command took 895.71s. Packaging used a detached checkout at the exact candidate commit, independently of the wrapper's transport commit.This is a separate CI-only prerequisite for #159527. Production +113/−71; no test changes or additional recurring test cases.