Repository navigation
Conversation
* fix: stop unavailable tool loops during finalization * fix: recover unfinished tool work after empty length responses * fix: preserve reply segment evidence through attempt normalization * test: preserve recovery scenario literal types * test(agents): share output-limit recovery scenarios --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 95af1b8) Co-authored-by: RomneyDa <[email protected]>
* fix: macOS Talk loses replies from slow agent runs * fix(macos): recover collected Talk replies through history receipts * fix(macos): preserve Talk replies on older gateways * fix(macos): retain Talk replies from older Gateways --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 291e690) Co-authored-by: RomneyDa <[email protected]>
* fix(plugins): speed up external TypeScript plugin capture * fix(plugins): include capture resolver in trusted wrapper (cherry picked from commit f022ca5) Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 626eeac) Co-authored-by: RomneyDa <[email protected]>
…68764) * fix(agents): treat a Stop-hook bounce as a hard CLI stream segment boundary A Claude Code Stop-hook rejection replays the refused draft as a top-level user feedback record (and a stop-hook-keyed notification) between the rejected message and the rewrite. The parser treated that draft as ordinary pre-tool text, so when the rewrite routed through a tool the tool-split boundary kept the draft connected to the correction and both were delivered; with a silent rewrite the refused draft went out alone. Classify those records and reset the streamed-text candidate span there so only the rewrite can outrank the result envelope. Subagent echoes and non-stop-hook notifications are not boundaries. * fix(agents): narrow stop-hook notification key to string oxlint no-base-to-string rejects String() on an unknown-typed key; a typeof check is both lint-clean and a stricter guard. * fix(agents): consolidate Stop-hook reply boundaries Keep rejected Claude CLI drafts out of final delivery when a tool precedes the rewrite. Share the existing interim-result reset and condense the regression fixtures while preserving ordinary tool-split replies. Original fix by @ruel225 for #168676. PR CI owns test and typecheck proof; changed-file lint/format passed and Codex autoreview found no P0-P2 issues. Co-authored-by: ruel225 <[email protected]> * fix(agents): preserve replies across replayed Claude user input Only the observed parent stop-hook-error notification resets a reply segment. Replayed steering and unmarked user text must preserve earlier assistant text, even when the text resembles hook feedback. Co-authored-by: ruel225 <[email protected]> --------- Co-authored-by: ruel225 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit fa48c5f) Co-authored-by: RomneyDa <[email protected]>
Closes #158126 Related: #160521 ## What Problem This Solves A retired worker inventory could make an otherwise completed Gateway shutdown fail. A reconciliation waiting on inventory readiness could also reject after shutdown had begun. ## User Impact Shutdown drains retained worker tunnels and workspace transfers even when the inventory has already retired. Other inventory and teardown failures remain visible. A running Gateway with a retired inventory still requires separate recovery; this change handles the shutdown boundary. ## Why This Change Was Made The inventory now exposes a typed retirement error. The tunnel shutdown owner handles that error only around its fallback inventory lookup; it still awaits and reports remote cleanup failures. Reconciliation treats retirement as expected only after its existing stop flag is set. No lifecycle state, database schema, memory limit, or configuration is added. Thanks @Captain69G for the shutdown report. Production LOC: **+26** across five files; nine changed files total. The bug-fix exception covers the typed error and the two narrow shutdown boundaries. The nearby tunnel status/live-owner code was simplified without changing behavior to retain the existing line cap. ## Evidence - Before the handling fix, the two retirement regressions failed and their ordinary-error counterparts passed (46.51 s command wall time). - Isolated AWS proof on `cce7888a7c73e3b5aa26f4470ec81649e23d8327` plus this patch: `pnpm test src/gateway/worker-environments/node-worker-tunnel.test.ts --maxWorkers=1` — 26 passed, 35.22 s wall; `pnpm test src/gateway/worker-environments/service-lifetime.test.ts --maxWorkers=1` — 27 passed, 55.39 s wall. These existing files exercise real worker/store lifecycle boundaries; the two new service cases add about 2.6 s of test execution on the proof host. - The existing readiness-failure fixture was adjusted to inject its error after provisioning starts, preserving its failure assertion and releasing the fixture gate in `finally`. - Type-aware oxlint: 0 warnings/errors. Export-name collisions, line-cap ratchet, formatting, core typecheck and all core test type graphs passed. - Knip's production/full-tree scans report the same six pre-existing exports on an untouched checkout of the exact base and on the candidate: two in `src/infra/approval-handler-runtime.ts`, three in `ui/src/features/github-connections/*`, and one in `ui/src/pages/skill-workshop/skill-workshop-page.test-support.ts`. The script scan passed. No changed file adds a finding; no export budget or ignore was changed. - Codex autoreview: scoped-clean at P0/P1. The integration of current main preserves the reviewed worker-file bytes. CI found the shared retirement-error module missing from the PR wrapper source inventory. The inventory now includes it; both runtime-closure regressions pass on AWS (2 passed, 11.24 s wall). No worker implementation changed in this follow-up. After integrating the landed byte-reader repair and resolving the shared tunnel-cleanup/import conflicts, the owner tests pass again (tunnel 32.52 s; service 39.74 s). Type-aware lint, export collisions, and all three Knip scans pass on that integrated source. The refreshed P0/P1 review is clean. No shutdown behavior was relaxed beyond the typed retirement case. (cherry picked from commit bdcbb2d) Co-authored-by: RomneyDa <[email protected]>
* fix: restore computer control after native session expiry * fix(cua): recheck execution authority before renewal and input * fix(cua): prevent recording cleanup from restoring interrupted authority * fix(cua): recover expired sessions without retaining disposed runtimes Keep native renewal within the live execution's authority, retire terminal runtimes even when cleanup reports a failure, and recheck ownership after SDK loading. Exercise recovery and genuine refusals through the provider action boundary and consolidate lifecycle interruption coverage. Original fix by @stackingrockss; maintainer cleanup preserves the fixed native authorization ceilings and never replays input. PR CI owns execution proof. Co-authored-by: stackingrockss <[email protected]> --------- Co-authored-by: stackingrockss <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit da6adcc) Co-authored-by: RomneyDa <[email protected]>
…taches after connect (#169400) * fix(gateway): GitHub PR publishing rejects operators whose profile attaches after connect Connect admission defers the user profile when no roles or access policies are configured, and the GitHub identity sync attaches it after the hello. The late attach never prepared operator access, so the connection kept operatorAccessAuthority undefined. Runs started from it then captured no gateway access grant, and GitHub publication rejected the requester with "The original GitHub publication requester is no longer authorized." Prepare and bind operator access in the profile lifecycle attach when the connection has none yet. Closes #169377 * test(gateway): prove deferred-profile publication through the authority chain Replace the connect-user-profile unit test with a publication-level test that attaches a deferred profile through the real connect lifecycle, then publishes through sessions.github.publish against a real worktree. It covers the own session (published), another person's session (denied before any write), and a queued request that is kept (published) or revoked after roles are added (failed with identity_changed and no push or GitHub writes). Co-authored-by: Gigaxel <[email protected]> * test(gateway): keep deferred-profile publication coverage current Use the worker-owned session reader and capture the handshake auth policy in the deferred-profile publication fixture. Keep own-session publication, foreign-session denial, and queued-request revocation coverage while removing redundant internal assertions. Preserve the contributor's access-owner fix: prepare only missing operator authority after a verified profile attaches, without replacing an existing grant or weakening current requester checks before publication effects. Original fix by @Gigaxel for #169377. PR CI owns runtime proof; local validation is scoped static lint and formatting under maintainer policy. --------- Co-authored-by: Gigaxel <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit bb0cafd) Co-authored-by: RomneyDa <[email protected]>
* fix: resume interrupted R2 backup downloads * fix: type the resumed R2 download response (cherry picked from commit 197c764) Co-authored-by: RomneyDa <[email protected]>
…1372) * fix(state): isolate retained and incompatible secondary agent stores * fix(state): preserve standalone startup error aggregation * fix(state): exclude unconfigured fixed-store sibling candidates * fix(agents): preserve broad deletion-safety candidate scans (cherry picked from commit cd42a91) Co-authored-by: RomneyDa <[email protected]>
…text (#172068) * fix(agents): bound large subagent completion findings Share a 160,000-character findings target across settled child answers while preserving small results, stable ordering, and per-child history pointers. Keep mandatory child identity and result heads if an extreme roster exceeds the target. * fix(agents): type findings index and clarify bounded history * fix(agents): strictly cap completion findings across large cohorts Reserve result heads and bounded overflow metadata before sharing the remaining batch budget. Keep a stable prefix of child blocks, count the omitted tail, and state the sessions_history text-field limit explicitly. * fix(agents): type bounded completion tail iteration * fix(agents): respect available tools in completion overflow guidance (cherry picked from commit a092be7) Co-authored-by: RomneyDa <[email protected]>
…d wake (#164511) A synchronous `exec host=node` command no longer produces a second "Exec finished" wake turn after the exec tool already returned its output. The Gateway node registry holds the `exec.finished` notice on the pending invocation: a delivered result drops it; a timeout, cancellation or disconnect queues it, so a late result still reaches the agent. Proof: isolated Gateway plus a real `openclaw node run` host in secretless Docker. On main 0a80f9e a synchronous exec makes 3 model requests including the duplicate wake; the candidate makes 2. With the node result held past the invoke deadline, both main and the candidate deliver the late output as a wake turn. Live gate passed with openai/gpt-5-mini. Thanks @holgergruenhagen. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 8a98a26) (cherry picked from commit c39bc7c) Co-authored-by: RomneyDa <[email protected]>
Adapted from 3bbc89c for the 2026.10.7 SQLite admission owner. Co-authored-by: RomneyDa <[email protected]>
…2769) Adapt the relevant behavior from 3ea4657 and 26e124d to the current 2026.10.7 plugin capture owner. Co-authored-by: RomneyDa <[email protected]>
…173862) openclaw update could hang indefinitely in the post-activation Doctor step with the Gateway down: when the fresh Doctor ran without an explicit --timeout, it discarded the step's supplied time allowance (since 52bf22b), so a stalled worker was never stopped. Doctor now honors the supplied allowance; at the deadline the worker tree is killed (exit 124) and the update takes its existing recovery path. Live: main ignored a 1 s allowance until external cancellation at 3.18 s; with the fix the step exits 124 at 1.07 s with worker and child stopped. Production net -2 LOC. The trigger of the reported worker stall after a plugin load error is still being investigated. Refs #173764 (cherry picked from commit 8713e5e) (cherry picked from commit 223fd1c) Co-authored-by: RomneyDa <[email protected]>
* fix(cron): bind a wake into a chat session with the session's stable reply mode * fix(cron): preserve native chat continuity across announce wakes Share the session-stable CLI binding policy between cron preparation and execution while keeping announce targeting on the current turn. Use the admitted runtime metadata and exercise real CLI preparation/reuse through the cron policy path. Document persistent versus isolated behavior. Fixes #176208 Original fix by @eliavb43; maintainer cleanup and continuity regression. Co-authored-by: eliavb43 <[email protected]> --------- Co-authored-by: eliavb43 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 6453bce) Co-authored-by: RomneyDa <[email protected]>
* fix(codex): previews block replies after context refresh * fix(codex): preserve persistent policy checks during context refresh * test(codex): narrow active binding before checking successor Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
) Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
…181166) Adapt the verified-target finalization behavior to the 2026.10.7 recovery model while keeping unsafe recovery and authority refusals blocking.\n\nCo-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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. |
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
|
Codex review: needs real behavior proof before merge. What this changesThis PR backports selected updater, agent, database, plugin, Gateway, and native-client repairs to the 2026.10.7 stable branch. Example: An interrupted package publication has installed its verified candidate but its journal remains in publishing.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 7 items remain Keep this maintainer-authored release PR open: the stable backports remain useful, but the updater adaptation incorrectly turns ownership refusals into successful completion. Priority: P1 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe stable release combines CLI update and recovery owners, Gateway authorization and delivery, plugin loading, agent execution, and native clients; it consumes existing installations and requests and produces activated packages, persisted outcomes, replies, and native actions. flowchart TD
A[Existing installation and user requests] --> B[Stable CLI and Gateway]
B --> C[Update and recovery owners]
B --> D[Agent and plugin runtime]
B --> E[Native clients]
C --> F[Packages and persisted outcomes]
D --> G[Replies and tool effects]
E --> G
Technical reviewBest possible solution: Preserve the upstream recognized-error classification in the stable finalizer and qualify recovery through the existing publication and executor owners. Do we have a high-confidence way to reproduce the issue? The introduced failure is traceable without execution: verified activation followed by SystemPackageOwnershipError from wrapper retirement reaches the broad Error-to-success branch. Is this the best way to solve the issue? Semantic backports are appropriate, but the stable adaptation must retain the source fix's restriction to recognized maintenance failures rather than treating every post-activation exception as optional. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e4db384743d1. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: Automatic publication settlement still needs evidence that live or revoked executor authority prevents custody-changing effects. EvidenceSecurity concerns:
What I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 23, 2026, 9:44 AM ET / 13:44 UTC. |
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
|
Field report: the endless candidate-validation stall from #176813 still reproduces on 2026.10.5 → 2026.10.6 when the update is started from chat ( The ledger stayed at That is about one full copy of #176968 ( |
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Completes the 2026.10.7 stable remediation set after auditing beta-only P0/P1 and stable-maturity fixes. This adds 20 selected semantic backports on top of #181465, including the explicitly required #181166 and #181307, while adapting each fix to the stable branch architecture.
User Impact
Why
The beta branch contained materially more fixes than stable. A semantic audit found a bounded set that applies safely to 2026.10.7; raw branch-divergence cherry-picking was rejected because stable contains composite fixes and branch-specific architecture.
Evidence
pnpm check --base origin/release/2026.10.7 --timed: passed all ratchets, production/script/test typechecks, lint, formatting, policy guards, and import-cycle checkspnpm changelog:checkandgit diff --check: passedHosted/platform qualification remains responsible for macOS Swift, Windows-native, and CUA-native execution before publication.