Skip to content

perf(cron): read history identities before maintenance payloads - #174530

Merged
RomneyDa merged 2 commits into
openclaw:mainfrom
wangmiao0668000666:fix/cron-maintenance-payload-omission-v2
Oct 16, 2026
Merged

RomneyDa merged 2 commits into
openclaw:mainfrom
wangmiao0668000666:fix/cron-maintenance-payload-omission-v2

Conversation

@wangmiao0668000666

@wangmiao0668000666 wangmiao0668000666 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Cron history maintenance planned retention and reconciliation from a scan that also materialized terminal_summary and detail_json for every Cron run. src/cron/store/runtime-maintenance.worker.ts:31 reads the whole table with no job or run filter, and src/cron/store/run-history.kernel.ts:66 selects both payload columns with no LIMIT, so a large history is materialized by the native statement before retention is even planned (the per-job 2000 / 7-day bounds are downstream and cannot help).

Measured on this repository's own state database, seeded with 30 Cron runs and 648,001,356 bytes of payload, through the production entry maintainCronRunHistoryInWorker:

maintenance heap growth peak RSS exit outcome
before +886.9 MB 1477 MB 0 reconciled 2, pruned 5
after +87.7 MB 635 MB 0 reconciled 2, pruned 5
before, 256 MB heap — — 134 FATAL ERROR: Reached heap limit … JavaScript heap out of memory —
after, 256 MB heap +48.2 MB 549 MB 0 reconciled 2, pruned 5

A state worker with the reported maxOldGenerationSizeMb: 512 therefore aborts mid-sweep, and other requests sharing that broker fail with it. Fixes #174078.

Why This Change Was Made

Classification: performance with an unchanged contract.

The sweep now reads what it decides on, then loads what it writes. Two audits shaped the read:

  • The planner does read payload — collectExpiredCronRunIds partitions per-job retention on detail.kind === "cron-run" (run-history.kernel.ts:311) and both it and firstByRun group on cronRunRecordStoreKey(row) → detail.storeKey (run-history-detail.ts:268-272). Dropping detail_json outright changes pruning and grouping, so this reads those two members instead (jsonValid + jsonPickObject, the same projection run-history-read.worker.ts uses since fix(cron): avoid loading off-page history payloads #174175).
  • terminal_summary is never a decision input: it is only copied into rows the sweep reconciles (run-history.kernel.ts:398), so it is read in the second phase, not the first.

Phase two loads the full payloads only for the runs the sweep will reconcile — rows sharing the reconciled row's job and run (which is a superset of the recovery candidate the planner reads) and, for an active row with no run identity, by task id. The write transaction and applyCronRunHistoryMaintenanceInDatabase are unchanged.

Production LOC: +90/-5 across two files. The existing mock/statement-count contract is unchanged: runtime-maintenance.worker.test.ts still observes one history read when nothing is reconciled.

User Impact

A large Cron history no longer aborts the state worker during maintenance, and scheduled Git/state work behind that broker keeps running. Retention and reconciliation results are unchanged: the same runs are reconciled, the same rows are pruned, and reconciled rows keep or adopt exactly the summaries and details they did before.

Evidence

Head f5f323af347; base 1e3e24fa1909f733a8e14df30b8bd55078841ff7 (current main).

Behaviour equivalence (the legal control). One seeded template database is copied byte-for-byte per phase, so both sides see identical input:

large fixture (2033 runs / 648,067,526 bytes, including same-job detail.kind mixes
and same (jobId, runId) rows with different detail.storeKey):
  COMPARE result_equal=true rows_equal=true rows=2028/2028
small fixture (2012 runs):
  COMPARE result_equal=true rows_equal=true rows=2007/2007

Equality covers every row's status, error, run_id, source_id, cleanup_after, ended_at, summary_len, summary_head, summary_tail, detail_len and detail_head — i.e. both the rows that were pruned and the payloads that were kept or adopted. On the seeded small fixture the projected read and the full read also produce an identical plan (pruneCandidates 2010, reconciliations 2, nextSweepAtMs 950400000) and an identical expired set (5 ids, only_in_full=0).

# one container; production entry, then a SQL-side projection of the same database
node --import ./scripts/tsx.mjs src/entry.ts doctor --fix --yes           # state
node ./seed-cron-payload.mjs <db> 24 12000000                             # 648 MB payload
node --import ./scripts/tsx.mjs src/cron/store/run-cron-maintenance.proof.ts
node ./compare-dumps.mjs <base-dump.json> <candidate-dump.json>

Focused tests: 35 passed (4 files) — runtime-maintenance.worker, run-history, run-receipt-retention, scheduler-actor.worker. Types: tsgo -p tsconfig.core.json reports the same four repository errors before and after this diff (two scripts/lib TS-API errors, src/infra/sqlite-schema-dynamic.ts, src/tui/tui-session-actions-test-support.ts); no error is in a file this change touches.

Falsification: a bounded audit of the decision path reported CONCLUSION: EQUIVALENT — no other payload member is read while deciding, the second pass's reconciliation set equals the draft's by construction (every draft reconciliation row is re-read either by job/run or by task id), and every other caller keeps the previous behaviour because the read selects the full columns unless planningOnly is set. It noted one pre-existing window: an outside writer adding a newly active row between the two reads would not be filled by the merge — the sweep is a one-shot synchronous read, so this is the same window the single full read had.

Not tested: Windows; a history in which every row needs reconciliation (the second phase then reads as much payload as before — never more).

Maintainer follow-up (603120ffd0e)

  • Kysely guard (ClawSweeper P2): both raw projections now carry local kysely-allow-raw justifications, matching run-history-read.worker.ts; pnpm lint:kysely passes. The reader option is now one planningOnly flag with the storeKey/kind member list private to the kernel, and the format failure in check-lint is fixed.
  • Exact payload load: phase two no longer re-queries by trimmed (jobId, runId), which could miss rows whose stored ids carry whitespace and write a projected {storeKey, kind} detail back over the real payload. It now loads full payloads by exact task_id (batches of 500) for every reconciled row plus every row sharing its raw (jobId, runId), a superset of the planner's recovery candidate.
  • Regression test: runtime-maintenance.worker.test.ts seeds a 2 MB retained row, a recovery (stale marker + finished outcome), a stale keyed row and a stale unkeyed row. It asserts the history reads stay under 200 KB of text (fails on main, which reads the whole payload), that the marker adopts the outcome's exact summary/detail, and that lost rows keep their own payloads.

Shipped worker-dispatch proof (ClawSweeper "Before merge" item). A throwaway harness seeds a state DB with 24 Cron rows of 12M-char Unicode summaries + details (~1.15 GB on disk; 16 expired, 8 retained) plus one stale running row, then calls maintainCronRunHistory(context, assertCurrent), which dispatches cron.maintainHistory to the real SQLite state worker (resourceLimits.maxOldGenerationSizeMb: 512):

main (origin/main code):
  outcome: SqliteWorkerError: SQLite worker stopped before its result was received:
           Worker terminated due to reaching memory limit: JS heap out of memory
  after:   running=1, succeeded=24 (nothing pruned or reconciled)
this PR (603120ffd0e):
  outcome: { nextSweepAtMs: <now+6d> }   2.6 s, host RSS 631 MB
  after:   lost=1 (own 1000-char payload kept), succeeded=8 (16 expired rows pruned)

Focused tests at 603120ffd0e: runtime-maintenance.worker, run-history, maintenance, maintenance-lifecycle, cron.history — 42 passed. pnpm check:changed green except the dead-export scan, which flags only untouched files (src/config/sessions/types.ts, two *.test-support.ts) inherited from the base.

Impact surface
Surface Location Risk
History read src/cron/store/run-history.kernel.ts:66-125 New optional planningOnly, taskIds; defaults keep the whole row for every existing caller
Maintenance sweep src/cron/store/runtime-maintenance.worker.ts:33-130 Identities first, payloads for reconciled runs only; plan, transaction and apply unchanged
Maintainer edits

This branch is in a fork with Allow edits by maintainers enabled; push directly if that is faster.

Maintainer options

Land-ready rationale: the read is the single owner of this decision surface, and it now matches what the planner actually needs; the equivalence is measured row-by-row against the unchanged code on two seeded fixtures, and the reported crash mechanism is reproduced (exit 134) and removed (exit 0) at the same entry point with a 256 MB heap.

Alternatives considered:

  1. Raise the worker heap — leaves the allocation O(history payload) and only moves the threshold.
  2. Read the history in pages — changes the plan's inputs and the per-job retention partition to a cursor, a larger behavioural change for the same result here.
  3. Drop both payload columns from the sweep — changes pruning (detail.kind partitions), grouping (detail.storeKey) and the summaries written back; rejected.

Cron history maintenance planned retention and reconciliation from a scan
that also materialized terminal_summary and detail_json for every run, so a
large history aborted the state worker (ERR_WORKER_OUT_OF_MEMORY). Plan from
the members the planner actually decides on -- the detail store key and kind
-- and load the full payloads only for the runs the sweep will reconcile,
by job/run for the recovery candidate and by task id for an active row
without a run identity.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Cron history maintenance reads planning metadata first and loads full payloads only for rows involved in reconciliation.

Example: Maintenance encounters 24 synthetic Cron rows with large Unicode payloads and one stale running row.

  • Before: The 512 MB SQLite worker exhausts its heap before pruning or reconciliation.
  • After: The supplied dispatch trace shows 16 expired rows pruned, eight terminal rows retained, and the stale row marked lost with its payload preserved.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent repair with production-worker dispatch evidence, meaningful storage regression coverage, and the previous SQL guard finding resolved; broad exact-head CI remains pending.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Supplied terminal output exercises maintainCronRunHistory through the real SQLite worker dispatcher with oversized synthetic Unicode history under the production 512 MB worker limit: main fails with heap exhaustion, while the reviewed head prunes expired rows and preserves the reconciled row's payload; separate equivalence output covers retention partitions and recovery payload adoption.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Large retained Cron output can repeatedly crash the shared state worker before maintenance removes expired history.
Reason: The focused repair addresses an observed failure through existing storage and maintenance owners without new configuration or public contracts.

Merge readiness

✅ Ready for maintainer review

This PR addresses a concrete worker-memory failure still present on main; the earlier finding is fixed, and no actionable correctness or security defect remains.

Priority: P1
Reviewed head: 603120ffd0e0a75c0c8d2f8bb8ea14a7f3710146

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway maintenance scheduler dispatches Cron history work to the shared SQLite worker, which plans retention and recovery before applying changes through the existing transactional writer.

flowchart TD
  A[Gateway maintenance scheduler] --> B[Shared state worker dispatch]
  B --> C[Read planning metadata]
  C --> D[Identify reconciliation rows]
  D --> E[Load exact payloads]
  E --> F[Existing retention and recovery planner]
  F --> G[Transactional history writer]
Loading

Technical review

Best possible solution:

Retain metadata-first maintenance within the existing Cron owner while preserving retention partitions, protected runs, and complete reconciliation payloads.

Do we have a high-confidence way to reproduce the issue?

Current-main source confirms unrestricted native payload materialization before retention in a 512 MB worker, matching the reported failure and supplied before/after dispatch output; this read-only review executed no target code.

Is this the best way to solve the issue?

Projecting the planner's actual inputs and hydrating exact reconciliation identities removes unnecessary retained-payload allocation without raising heap limits, changing retention, or introducing another state owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 746a52a3618e.

Provenance checked

  • Cron-owned retained history keeps the original intent (6652f7e: Retire Tasks runtime while preserving stored rows and assigning retained history and recovery to Cron.)
  • Filtered history reader keeps the original intent (e1b701b: Filter history before decoding while retaining partition checks, ordering, and terminal-result protection.)
  • Maintenance planning before transactional application keeps the original intent (70ba239: Avoid write transactions and shared-reader invalidation when maintenance changes no rows.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 70ba239 adds src/cron/store/run-history.kernel.ts:329 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 70ba239521bc; files: src/cron/store/run-history.kernel.ts)

PR surface

Source +78, Tests +130. Total +208 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 83 5 +78
Tests 1 130 0 +130
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 213 5 +208

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: Oversized retained history can repeatedly exhaust the shared state worker and interrupt other broker-backed workflows.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-16T18:36:29.325Z sha f5f323a :: needs real behavior proof before merge. :: [P2] Make both SQL projections satisfy the Kysely guard

Reviewed October 16, 2026, 3:14 PM ET / 19:14 UTC (Revision 2).

@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 16, 2026
@RomneyDa
RomneyDa merged commit 8add07e into openclaw:main Oct 16, 2026
146 of 150 checks passed
RomneyDa added a commit that referenced this pull request Oct 16, 2026
)

* perf(cron): read history identities before maintenance payloads

Cron history maintenance planned retention and reconciliation from a scan
that also materialized terminal_summary and detail_json for every run, so a
large history aborted the state worker (ERR_WORKER_OUT_OF_MEMORY). Plan from
the members the planner actually decides on -- the detail store key and kind
-- and load the full payloads only for the runs the sweep will reconcile,
by job/run for the recovery candidate and by task id for an active row
without a run identity.

* fix(cron): load maintenance payloads by exact task id and satisfy Kysely guard

---------

Co-authored-by: wangmiao0668000666 <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
(cherry picked from commit 8add07e)
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Thanks for merging this, @RomneyDa — much appreciated. Glad the cron history read order is in: reading identities before maintenance payloads keeps the maintenance path from paying for data it never uses. 🙏

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…claw#174530)

* perf(cron): read history identities before maintenance payloads

Cron history maintenance planned retention and reconciliation from a scan
that also materialized terminal_summary and detail_json for every run, so a
large history aborted the state worker (ERR_WORKER_OUT_OF_MEMORY). Plan from
the members the planner actually decides on -- the detail store key and kind
-- and load the full payloads only for the runs the sweep will reconcile,
by job/run for the recovery candidate and by task id for an active row
without a run identity.

* fix(cron): load maintenance payloads by exact task id and satisfy Kysely guard

---------

Co-authored-by: wangmiao0668000666 <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 23, 2026
* fix: recover unfinished tool work after empty length responses (#153728)

* 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 (#164485)

* 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 startup (#168391)

* 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]>

* chore(deps): update fs-safe to 0.26.0 (#168629)

(cherry picked from commit 626eeac)
Co-authored-by: RomneyDa <[email protected]>

* fix(agents): keep rejected Claude CLI drafts out of final replies (#168764)

* 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]>

* fix: finish worker shutdown after inventory retirement (#168862)

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 (#169385)

* 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]>

* fix(gateway): GitHub PR publishing rejects operators whose profile attaches 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 verification and restore (#171292)

* fix: resume interrupted R2 backup downloads

* fix: type the resumed R2 download response

(cherry picked from commit 197c764)
Co-authored-by: RomneyDa <[email protected]>

* fix: isolate retained and incompatible secondary agent databases (#171372)

* 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]>

* fix(agents): large subagent completion batches overflow requester context (#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]>

* fix(gateway): synchronous node exec output repeats as an Exec finished 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]>

* fix(sqlite): keep Bun admission deadlines thread-local (#172756)

Adapted from 3bbc89c for the 2026.10.7 SQLite admission owner.

Co-authored-by: RomneyDa <[email protected]>

* fix(update): support Windows long and 8.3 plugin paths (#172768) (#172769)

Adapt the relevant behavior from 3ea4657 and 26e124d to the current 2026.10.7 plugin capture owner.

Co-authored-by: RomneyDa <[email protected]>

* fix(update): bound the post-activation Doctor step by its allowance (#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): prevent announce wakes from resetting CLI chats (#176218)

* 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 (#177716)

* 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]>

* fix(release): adapt #176218 to stable reply policy

Co-authored-by: RomneyDa <[email protected]>

* perf(cron): read history identities before maintenance payloads (#174530)

Co-authored-by: RomneyDa <[email protected]>

* refactor(gateway): isolate exec completion recovery

Co-authored-by: RomneyDa <[email protected]>

* fix(update): preserve verified activation after maintenance errors (#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]>

* fix(update): resume safe interrupted package publications (#181307)

Co-authored-by: RomneyDa <[email protected]>

* fix(cron): adapt history projection to stable Kysely

Co-authored-by: RomneyDa <[email protected]>

* fix(ui): remove stale outbox owner import

Co-authored-by: RomneyDa <[email protected]>

* fix(memory-wiki): remove stale markdown decoder import

Co-authored-by: RomneyDa <[email protected]>

* fix(release): resolve stable validation blockers

Co-authored-by: RomneyDa <[email protected]>

* docs(update): normalize stable release formatting

Co-authored-by: RomneyDa <[email protected]>

* docs(changelog): refresh 2026.10.7 notes

Co-authored-by: RomneyDa <[email protected]>

* test: refresh codex prompt snapshots

Co-authored-by: RomneyDa <[email protected]>

* fix: close stable release CI gaps

Co-authored-by: RomneyDa <[email protected]>

* test: align registration refusal settlement

Co-authored-by: RomneyDa <[email protected]>

* test: repair stable release regression coverage

Co-authored-by: RomneyDa <[email protected]>

* test: align unsafe recovery fixture with stable schema

Co-authored-by: RomneyDa <[email protected]>

* fix: preserve post-core failure diagnostics

Co-authored-by: RomneyDa <[email protected]>

* test: prune removed updater mock baseline

Co-authored-by: RomneyDa <[email protected]>

* test: align backported fixtures with runtime contracts

Co-authored-by: RomneyDa <[email protected]>

* test: align runtime refusal fixtures

Co-authored-by: RomneyDa <[email protected]>

* test: make Feishu response cap fixtures deterministic

Co-authored-by: RomneyDa <[email protected]>

* fix(stable): align hosted release regressions

Co-authored-by: RomneyDa <[email protected]>

* test(compaction): remove retired correction branches

Co-authored-by: RomneyDa <[email protected]>

* fix(update): tolerate partial plugin results during triage

Co-authored-by: RomneyDa <[email protected]>

* test(codex): budget hosted protocol fixtures

Co-authored-by: RomneyDa <[email protected]>

* test(codex): budget question refresh fixture

Co-authored-by: RomneyDa <[email protected]>

* test(update): align Node runtime refusal contracts

Co-authored-by: RomneyDa <[email protected]>

* test(gateway): allow hosted portal proof startup

Co-authored-by: RomneyDa <[email protected]>

* test: allow hosted recovery proofs to settle

Co-authored-by: RomneyDa <[email protected]>

* test: align hosted long-run budgets

Co-authored-by: RomneyDa <[email protected]>

* test: stabilize remaining hosted long runs

Co-authored-by: RomneyDa <[email protected]>

* test: close hosted update event race

Co-authored-by: RomneyDa <[email protected]>

* test: keep long Codex node proof observable

Co-authored-by: RomneyDa <[email protected]>

* fix: classify fenced transcript commits

Co-authored-by: RomneyDa <[email protected]>

* test: refresh hosted release budgets

Co-authored-by: RomneyDa <[email protected]>

* test: avoid clipped completion visibility wait

Co-authored-by: RomneyDa <[email protected]>

* fix: preserve overlapping update run reads

Co-authored-by: RomneyDa <[email protected]>

* test: distinguish hosted update warnings

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: xingzhou <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: PollyBot13 <[email protected]>
Co-authored-by: ruel225 <[email protected]>
Co-authored-by: ruel225 <[email protected]>
Co-authored-by: stackingrockss <[email protected]>
Co-authored-by: stackingrockss <[email protected]>
Co-authored-by: Mehmed Baždar <[email protected]>
Co-authored-by: Gigaxel <[email protected]>
Co-authored-by: Holger Gruenhagen <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: eliavb43 <[email protected]>
Co-authored-by: eliavb43 <[email protected]>
Co-authored-by: Jacqueline Henriksen <[email protected]>
eleboucher pushed a commit to eleboucher/homelab that referenced this pull request Oct 25, 2026
…026.10.7) (#2447)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/openclaw/openclaw](https://openclaw.ai) ([source](https://github.com/openclaw/openclaw)) | patch | `2026.10.6` → `2026.10.7` |

---

### Release Notes

<details>
<summary>openclaw/openclaw (ghcr.io/openclaw/openclaw)</summary>

### [`v2026.10.7`](https://github.com/openclaw/openclaw/releases/tag/v2026.10.7): openclaw 2026.10.7

[Compare Source](openclaw/openclaw@v2026.10.6...v2026.10.7)

##### 2026.10.7

##### Highlights

- **Replay-safe session recovery:** interrupted sessions now retain recovery provenance and unfinished tool outcomes, stopped conversations retire terminal recovery residue before accepting the next message, rejected Claude CLI drafts stay out of final replies, large child-completion batches stay within requester context, and Codex previews no longer block replies after a context refresh. ([#&#8203;153728](openclaw/openclaw#153728), [#&#8203;168764](openclaw/openclaw#168764), [#&#8203;172068](openclaw/openclaw#172068), [#&#8203;177716](openclaw/openclaw#177716), [#&#8203;176682](openclaw/openclaw#176682), [#&#8203;176783](openclaw/openclaw#176783), [#&#8203;176675](openclaw/openclaw#176675), [#&#8203;159715](openclaw/openclaw#159715), [#&#8203;181801](openclaw/openclaw#181801)) Thanks [@&#8203;zhangguiping-xydt](https://github.com/zhangguiping-xydt), [@&#8203;ruel225](https://github.com/ruel225), [@&#8203;Oliver4Spot](https://github.com/Oliver4Spot), [@&#8203;jjjhenriksen](https://github.com/jjjhenriksen), [@&#8203;enki](https://github.com/enki), [@&#8203;PennyVibe](https://github.com/PennyVibe), [@&#8203;mbelinky](https://github.com/mbelinky), [@&#8203;RomneyDa](https://github.com/RomneyDa), and [@&#8203;krjcolby-svg](https://github.com/krjcolby-svg).
- **Safer update activation and recovery:** verified activations remain successful through later maintenance or ledger errors, interrupted package updates resume safely, post-activation Doctor waits are bounded, stale receipts cannot veto a valid repair, and Windows deep or 8.3 state paths no longer abort onboarding or migration. ([#&#8203;181166](openclaw/openclaw#181166), [#&#8203;181307](openclaw/openclaw#181307), [#&#8203;173862](openclaw/openclaw#173862), [#&#8203;167459](openclaw/openclaw#167459), [#&#8203;172768](openclaw/openclaw#172768), [#&#8203;172769](openclaw/openclaw#172769), [#&#8203;181389](openclaw/openclaw#181389)) Thanks [@&#8203;najef1979-code](https://github.com/najef1979-code), [@&#8203;agroman1993](https://github.com/agroman1993), [@&#8203;shanselman](https://github.com/shanselman), [@&#8203;RomneyDa](https://github.com/RomneyDa), [@&#8203;dor-sr](https://github.com/dor-sr), [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **Database and worker continuity:** maintenance refusals preserve peer readers and borrowers, incompatible retained agent databases stay isolated, empty transcript deletions skip unnecessary archive materialization, Bun admission deadlines remain thread-local, and worker shutdown completes after inventory retirement. ([#&#8203;175987](openclaw/openclaw#175987), [#&#8203;179320](openclaw/openclaw#179320), [#&#8203;170122](openclaw/openclaw#170122), [#&#8203;171372](openclaw/openclaw#171372), [#&#8203;172756](openclaw/openclaw#172756), [#&#8203;168862](openclaw/openclaw#168862)) Thanks [@&#8203;LifeViwer](https://github.com/LifeViwer), [@&#8203;Captain69G](https://github.com/Captain69G), [@&#8203;RomneyDa](https://github.com/RomneyDa), [@&#8203;shanselman](https://github.com/shanselman), [@&#8203;dor-sr](https://github.com/dor-sr), [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **Backup and state durability:** snapshots retain supported legacy exec-approval policies, interrupted R2 verification and restores resume safely, config observation keeps the last-known-good snapshot during truncated writes, failed multi-file patches preserve earlier files, and Memory Wiki re-imports preserve human-authored notes. ([#&#8203;164297](openclaw/openclaw#164297), [#&#8203;171292](openclaw/openclaw#171292), [#&#8203;152565](openclaw/openclaw#152565), [#&#8203;160409](openclaw/openclaw#160409), [#&#8203;175707](openclaw/openclaw#175707)) Thanks [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), [@&#8203;davidcittadini](https://github.com/davidcittadini), [@&#8203;LiuwqGit](https://github.com/LiuwqGit), [@&#8203;yetval](https://github.com/yetval), [@&#8203;masatohoshino](https://github.com/masatohoshino), [@&#8203;YangManBOBO](https://github.com/YangManBOBO), [@&#8203;RomneyDa](https://github.com/RomneyDa), [@&#8203;shanselman](https://github.com/shanselman), [@&#8203;dor-sr](https://github.com/dor-sr), [@&#8203;cristianoc](https://github.com/cristianoc), and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **Operator control continuity:** native computer control recovers after session expiry, late-attached GitHub operators can publish PRs, synchronous node output is not duplicated as a completion wake, cron announcements preserve CLI chats, and history maintenance reads identities before payloads. ([#&#8203;169385](openclaw/openclaw#169385), [#&#8203;169400](openclaw/openclaw#169400), [#&#8203;164511](openclaw/openclaw#164511), [#&#8203;176218](openclaw/openclaw#176218), [#&#8203;174530](openclaw/openclaw#174530)) Thanks [@&#8203;stackingrockss](https://github.com/stackingrockss), [@&#8203;Gigaxel](https://github.com/Gigaxel), [@&#8203;holgergruenhagen](https://github.com/holgergruenhagen), [@&#8203;eliavb43](https://github.com/eliavb43), [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), [@&#8203;asikorskiy](https://github.com/asikorskiy), and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **Provider and plugin continuity:** model refresh, configured-account readiness, GPT-5.6 tool turns, OpenRouter onboarding, incremental plugin loading, and faster external TypeScript plugin startup retain current state instead of rejecting valid setup or discarding providers. ([#&#8203;176709](openclaw/openclaw#176709), [#&#8203;178522](openclaw/openclaw#178522), [#&#8203;173366](openclaw/openclaw#173366), [#&#8203;173292](openclaw/openclaw#173292), [#&#8203;162226](openclaw/openclaw#162226), [#&#8203;161267](openclaw/openclaw#161267), [#&#8203;168391](openclaw/openclaw#168391)) Thanks [@&#8203;ericcaiwx-star](https://github.com/ericcaiwx-star), [@&#8203;eduardonunesfreire-rgb](https://github.com/eduardonunesfreire-rgb), [@&#8203;chandraveshchaudhari](https://github.com/chandraveshchaudhari), [@&#8203;netcrazed](https://github.com/netcrazed), [@&#8203;obviyus](https://github.com/obviyus), [@&#8203;jakeaadams](https://github.com/jakeaadams), and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **Managed integration reliability:** saved Linux Gateway dashboards preserve pairing across restarts, slow macOS Talk runs retain their replies, app upgrades converge official plugins, Copilot setup verifies SDK-backed agents correctly, Claude CLI cache prefixes stay stable after child completion and retain context when caller-only tools appear or disappear, and passkey prompts no longer block headless browser clicks. ([#&#8203;158908](openclaw/openclaw#158908), [#&#8203;164485](openclaw/openclaw#164485), [#&#8203;174257](openclaw/openclaw#174257), [#&#8203;163578](openclaw/openclaw#163578), [#&#8203;172026](openclaw/openclaw#172026), [#&#8203;178955](openclaw/openclaw#178955), [#&#8203;170857](openclaw/openclaw#170857)) Thanks [@&#8203;dor-sr](https://github.com/dor-sr), [@&#8203;PollyBot13](https://github.com/PollyBot13), [@&#8203;kazuyuki-eguchi](https://github.com/kazuyuki-eguchi), [@&#8203;lifuyue](https://github.com/lifuyue), [@&#8203;Marvinthebored](https://github.com/Marvinthebored), [@&#8203;VACInc](https://github.com/VACInc), [@&#8203;trukhinyuri](https://github.com/trukhinyuri), [@&#8203;Peetiegonzalez](https://github.com/Peetiegonzalez), [@&#8203;RomneyDa](https://github.com/RomneyDa), [@&#8203;shanselman](https://github.com/shanselman), [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), [@&#8203;brucemccurdy](https://github.com/brucemccurdy), and [@&#8203;rsaeks](https://github.com/rsaeks).
- **Cross-platform app-managed upgrades:** native state repair, recovery snapshots, Gateway runtime admission, and post-upgrade service recovery now converge without losing agent access across macOS and Windows. ([#&#8203;171508](openclaw/openclaw#171508), [#&#8203;174297](openclaw/openclaw#174297), [#&#8203;175007](openclaw/openclaw#175007), [#&#8203;176174](openclaw/openclaw#176174), [#&#8203;178155](openclaw/openclaw#178155), [#&#8203;178779](openclaw/openclaw#178779), [#&#8203;180010](openclaw/openclaw#180010), [#&#8203;180576](openclaw/openclaw#180576), [#&#8203;180769](openclaw/openclaw#180769)) Thanks [@&#8203;tjarrau-dev](https://github.com/tjarrau-dev), [@&#8203;DonnieFi](https://github.com/DonnieFi), [@&#8203;jayzhou2309](https://github.com/jayzhou2309), [@&#8203;lostsock1](https://github.com/lostsock1), [@&#8203;sglion777](https://github.com/sglion777), [@&#8203;Almost-Certified-ops](https://github.com/Almost-Certified-ops), [@&#8203;billpang1-sketch](https://github.com/billpang1-sketch), and [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Changes

- **Google models:** add Gemini 4 Argon support. ([#&#8203;171852](openclaw/openclaw#171852)) Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Fixes

- **Update guidance:** avoid irrelevant database-repair advice when a package manager is missing, and remove superseded warnings after a successful update. ([#&#8203;173293](openclaw/openclaw#173293), [#&#8203;173395](openclaw/openclaw#173395)) Thanks [@&#8203;DonnieFi](https://github.com/DonnieFi), [@&#8203;RomneyDa](https://github.com/RomneyDa), [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), [@&#8203;sunlit-deng](https://github.com/sunlit-deng), and [@&#8203;bhedanikhilkumar-code](https://github.com/bhedanikhilkumar-code).
- **macOS onboarding:** allow fresh profiles to start the Gateway and complete automatic setup. ([#&#8203;173246](openclaw/openclaw#173246)) Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **Gateway logging:** prevent a deleted or stale temporary log directory from wedging the Gateway at full CPU during date rollover. ([#&#8203;160433](openclaw/openclaw#160433)) Fixes [#&#8203;130807](openclaw/openclaw#130807) Thanks [@&#8203;masatohoshino](https://github.com/masatohoshino), [@&#8203;WadeOwenWatts](https://github.com/WadeOwenWatts), and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **Control UI queue state:** clear slash-steer chips after the queued command is consumed. ([#&#8203;180024](openclaw/openclaw#180024)) Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Complete contribution record

This audited record covers the complete v2026.10.6..[`5c4a797`](openclaw/openclaw@5c4a797) history: 49 in-range PRs + 21 retained seed-only PRs = 70 unique PRs. The generation manifest also supplies direct commits as editorial input; the grouped notes above prioritize user impact.

##### Pull requests

- **PR [#&#8203;181867](openclaw/openclaw#181867 Backports [#&#8203;181801](openclaw/openclaw#181801). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;181487](openclaw/openclaw#181487 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;181801](openclaw/openclaw#181801 Related [#&#8203;181770](openclaw/openclaw#181770). Thanks [@&#8203;najef1979-code](https://github.com/najef1979-code) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;173293](openclaw/openclaw#173293 Related [#&#8203;173084](openclaw/openclaw#173084). Thanks [@&#8203;DonnieFi](https://github.com/DonnieFi) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;sunlit-deng](https://github.com/sunlit-deng).
- **PR [#&#8203;173395](openclaw/openclaw#173395 Related [#&#8203;173089](openclaw/openclaw#173089). Thanks [@&#8203;DonnieFi](https://github.com/DonnieFi) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;bhedanikhilkumar-code](https://github.com/bhedanikhilkumar-code).
- **PR [#&#8203;178155](openclaw/openclaw#178155 Related [#&#8203;177697](openclaw/openclaw#177697). Thanks [@&#8203;DonnieFi](https://github.com/DonnieFi) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;175707](openclaw/openclaw#175707 Related [#&#8203;175700](openclaw/openclaw#175700). Thanks [@&#8203;YangManBOBO](https://github.com/YangManBOBO) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;180024](openclaw/openclaw#180024 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;180010](openclaw/openclaw#180010 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;178779](openclaw/openclaw#178779 Related [#&#8203;167385](openclaw/openclaw#167385). Thanks [@&#8203;jayzhou2309](https://github.com/jayzhou2309) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;lostsock1](https://github.com/lostsock1).
- **PR [#&#8203;180576](openclaw/openclaw#180576 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;176675](openclaw/openclaw#176675 Thanks [@&#8203;enki](https://github.com/enki) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;176682](openclaw/openclaw#176682 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;enki](https://github.com/enki).
- **PR [#&#8203;172026](openclaw/openclaw#172026 Thanks [@&#8203;Marvinthebored](https://github.com/Marvinthebored) and [@&#8203;VACInc](https://github.com/VACInc) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;Peetiegonzalez](https://github.com/Peetiegonzalez).
- **PR [#&#8203;170122](openclaw/openclaw#170122
- **PR [#&#8203;178955](openclaw/openclaw#178955 Thanks [@&#8203;Marvinthebored](https://github.com/Marvinthebored).
- **PR [#&#8203;179933](openclaw/openclaw#179933
- **PR [#&#8203;179951](openclaw/openclaw#179951
- **PR [#&#8203;182030](openclaw/openclaw#182030
- **PR [#&#8203;176892](openclaw/openclaw#176892 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;159715](openclaw/openclaw#159715 Thanks [@&#8203;mbelinky](https://github.com/mbelinky) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;162226](openclaw/openclaw#162226 Thanks [@&#8203;netcrazed](https://github.com/netcrazed) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;161267](openclaw/openclaw#161267 Thanks [@&#8203;obviyus](https://github.com/obviyus) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;171852](openclaw/openclaw#171852 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;176709](openclaw/openclaw#176709 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;180769](openclaw/openclaw#180769 Related [#&#8203;180636](openclaw/openclaw#180636), [#&#8203;180701](openclaw/openclaw#180701), [#&#8203;180707](openclaw/openclaw#180707). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;sglion777](https://github.com/sglion777) and [@&#8203;Almost-Certified-ops](https://github.com/Almost-Certified-ops) and [@&#8203;billpang1-sketch](https://github.com/billpang1-sketch).
- **PR [#&#8203;178522](openclaw/openclaw#178522 Related [#&#8203;178502](openclaw/openclaw#178502). Thanks [@&#8203;ericcaiwx-star](https://github.com/ericcaiwx-star) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;eduardonunesfreire-rgb](https://github.com/eduardonunesfreire-rgb).
- **PR [#&#8203;152565](openclaw/openclaw#152565 Related [#&#8203;152509](openclaw/openclaw#152509). Thanks [@&#8203;LiuwqGit](https://github.com/LiuwqGit) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;yetval](https://github.com/yetval).
- **PR [#&#8203;160409](openclaw/openclaw#160409 Thanks [@&#8203;masatohoshino](https://github.com/masatohoshino) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;163578](openclaw/openclaw#163578 Thanks [@&#8203;lifuyue](https://github.com/lifuyue) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;180482](openclaw/openclaw#180482 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;180989](openclaw/openclaw#180989 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;164297](openclaw/openclaw#164297 Related [#&#8203;164146](openclaw/openclaw#164146), [#&#8203;156945](openclaw/openclaw#156945). Thanks [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;shanselman](https://github.com/shanselman) and [@&#8203;dor-sr](https://github.com/dor-sr) and [@&#8203;cristianoc](https://github.com/cristianoc) and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **PR [#&#8203;158908](openclaw/openclaw#158908 Related [#&#8203;156945](openclaw/openclaw#156945). Thanks [@&#8203;dor-sr](https://github.com/dor-sr) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;shanselman](https://github.com/shanselman) and [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **PR [#&#8203;175987](openclaw/openclaw#175987 Related [#&#8203;156945](openclaw/openclaw#156945). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;shanselman](https://github.com/shanselman) and [@&#8203;dor-sr](https://github.com/dor-sr) and [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **PR [#&#8203;179320](openclaw/openclaw#179320 Related [#&#8203;156945](openclaw/openclaw#156945). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;shanselman](https://github.com/shanselman) and [@&#8203;dor-sr](https://github.com/dor-sr) and [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **PR [#&#8203;181389](openclaw/openclaw#181389 Related [#&#8203;156945](openclaw/openclaw#156945). Thanks [@&#8203;shanselman](https://github.com/shanselman) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;dor-sr](https://github.com/dor-sr) and [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **PR [#&#8203;167459](openclaw/openclaw#167459 Related [#&#8203;167441](openclaw/openclaw#167441), [#&#8203;156945](openclaw/openclaw#156945). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;shanselman](https://github.com/shanselman) and [@&#8203;dor-sr](https://github.com/dor-sr) and [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;brucemccurdy](https://github.com/brucemccurdy).
- **PR [#&#8203;153728](openclaw/openclaw#153728 Related [#&#8203;144842](openclaw/openclaw#144842). Thanks [@&#8203;zhangguiping-xydt](https://github.com/zhangguiping-xydt) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;krjcolby-svg](https://github.com/krjcolby-svg).
- **PR [#&#8203;164485](openclaw/openclaw#164485 Related [#&#8203;153145](openclaw/openclaw#153145). Thanks [@&#8203;PollyBot13](https://github.com/PollyBot13) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;rsaeks](https://github.com/rsaeks).
- **PR [#&#8203;168391](openclaw/openclaw#168391 Related [#&#8203;168130](openclaw/openclaw#168130). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;jakeaadams](https://github.com/jakeaadams).
- **PR [#&#8203;168629](openclaw/openclaw#168629 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;168764](openclaw/openclaw#168764 Related [#&#8203;168676](openclaw/openclaw#168676). Thanks [@&#8203;ruel225](https://github.com/ruel225) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;Oliver4Spot](https://github.com/Oliver4Spot).
- **PR [#&#8203;168862](openclaw/openclaw#168862 Related [#&#8203;158126](openclaw/openclaw#158126). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;Captain69G](https://github.com/Captain69G).
- **PR [#&#8203;169385](openclaw/openclaw#169385 Related [#&#8203;169353](openclaw/openclaw#169353). Thanks [@&#8203;stackingrockss](https://github.com/stackingrockss) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;169400](openclaw/openclaw#169400 Related [#&#8203;169377](openclaw/openclaw#169377). Thanks [@&#8203;Gigaxel](https://github.com/Gigaxel) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;171292](openclaw/openclaw#171292 Related [#&#8203;171165](openclaw/openclaw#171165). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;davidcittadini](https://github.com/davidcittadini).
- **PR [#&#8203;171372](openclaw/openclaw#171372 Related [#&#8203;171348](openclaw/openclaw#171348). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;LifeViwer](https://github.com/LifeViwer).
- **PR [#&#8203;172068](openclaw/openclaw#172068 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;164511](openclaw/openclaw#164511 Thanks [@&#8203;holgergruenhagen](https://github.com/holgergruenhagen) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;172756](openclaw/openclaw#172756 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;172768](openclaw/openclaw#172768 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;172769](openclaw/openclaw#172769 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;173862](openclaw/openclaw#173862 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;176218](openclaw/openclaw#176218 Related [#&#8203;176208](openclaw/openclaw#176208). Thanks [@&#8203;eliavb43](https://github.com/eliavb43) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;177716](openclaw/openclaw#177716 Thanks [@&#8203;jjjhenriksen](https://github.com/jjjhenriksen) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;174530](openclaw/openclaw#174530 Related [#&#8203;174078](openclaw/openclaw#174078). Thanks [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;asikorskiy](https://github.com/asikorskiy).
- **PR [#&#8203;181166](openclaw/openclaw#181166 Related [#&#8203;181020](https://github.com/openclaw/openclaw/issues/181020). Thanks [@&#8203;najef1979-code](https://github.com/najef1979-code).
- **PR [#&#8203;181307](openclaw/openclaw#181307 Related [#&#8203;181235](https://github.com/openclaw/openclaw/issues/181235). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;agroman1993](https://github.com/agroman1993).
- **PR [#&#8203;176783](openclaw/openclaw#176783 Related [#&#8203;176669](https://github.com/openclaw/openclaw/issues/176669). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;PennyVibe](https://github.com/PennyVibe).
- **PR [#&#8203;173366](openclaw/openclaw#173366 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;173292](openclaw/openclaw#173292 Thanks [@&#8203;chandraveshchaudhari](https://github.com/chandraveshchaudhari) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;174257](openclaw/openclaw#174257 Related [#&#8203;174120](https://github.com/openclaw/openclaw/issues/174120). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;kazuyuki-eguchi](https://github.com/kazuyuki-eguchi).
- **PR [#&#8203;170857](openclaw/openclaw#170857 Thanks [@&#8203;trukhinyuri](https://github.com/trukhinyuri) and [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;171508](openclaw/openclaw#171508 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;174297](openclaw/openclaw#174297 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;175007](openclaw/openclaw#175007 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;176174](openclaw/openclaw#176174 Related [#&#8203;176163](https://github.com/openclaw/openclaw/issues/176163). Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;tjarrau-dev](https://github.com/tjarrau-dev).
- **PR [#&#8203;173246](openclaw/openclaw#173246 Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa).
- **PR [#&#8203;160433](openclaw/openclaw#160433 Related [#&#8203;130807](openclaw/openclaw#130807). Thanks [@&#8203;masatohoshino](https://github.com/masatohoshino) and [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;WadeOwenWatts](https://github.com/WadeOwenWatts).

##### Release verification

- npm package: <https://www.npmjs.com/package/openclaw/v/2026.10.7>
- registry tarball: <https://registry.npmjs.org/openclaw/-/openclaw-2026.10.7.tgz>
- integrity: `sha512-iiZO+kFFBgQvxm17wn3Sc/MSC/GQu01PubAFVNA2Nn736HOHUbR0ra7a9NeW9wpjq3kDkSJ1RB7dTP+qVJFXig==`
- release SHA: `157d8c2bc3ea2fa183afdc11088e69690bf8e64e`
- full release CI report: <https://github.com/openclaw/releases/blob/main/evidence/2026.10.7/release-evidence.md>
- release publish: <https://github.com/openclaw/openclaw/actions/runs/40081926023>
- npm preflight: <https://github.com/openclaw/openclaw/actions/runs/40055378381>
- full release validation: <https://github.com/openclaw/openclaw/actions/runs/40054950351>
- plugin npm publish: <https://github.com/openclaw/openclaw/actions/runs/40082487401>
- plugin ClawHub submission: <https://github.com/openclaw/openclaw/actions/runs/40082490562>; public finalization and exact artifact verification follow terminal release-parent completion
- plugin ClawHub bootstrap: not needed
- OpenClaw npm publish: <https://github.com/openclaw/openclaw/actions/runs/40073183916/attempts/1>
- npm Telegram beta E2E: not supplied
- Android APK: skipped — apps/android/version.json is 2026.8.2, release train is 2026.10.7; run pnpm android:version:pin -- --from-gateway before the next tag.

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNzUuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE3NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/2447
RomneyDa added a commit that referenced this pull request Oct 26, 2026
)

* perf(cron): read history identities before maintenance payloads

Cron history maintenance planned retention and reconciliation from a scan
that also materialized terminal_summary and detail_json for every run, so a
large history aborted the state worker (ERR_WORKER_OUT_OF_MEMORY). Plan from
the members the planner actually decides on -- the detail store key and kind
-- and load the full payloads only for the runs the sweep will reconcile,
by job/run for the recovery candidate and by task id for an active row
without a run identity.

* fix(cron): load maintenance payloads by exact task id and satisfy Kysely guard

---------

Co-authored-by: wangmiao0668000666 <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>

(cherry picked from commit 8add07e)

Adapted for 2026.9.x: 9.x has no planCronRunHistoryMaintenance planner and
no database-engine json-values helpers, and its maintenance worker reconciles
and prunes inside one write transaction. The decision loop of
reconcileCronRunHistoryInDatabase is extracted into a private
planCronRunReconciliations (the same single decision owner now serves the
draft and the write), withCronRunReconciliationPayloads lives in the kernel,
and the planning projection uses inline SQLite json_valid/json_each with the
same member-picking semantics as main's jsonPickObject.
readCronRunRecordsInDatabase keeps its 9.x (db, jobId) signature with the new
options third. The regression test is in src/cron/run-history.test.ts and
runs through the real maintainCronRunHistory worker path instead of calling
the worker function directly.
@wangmiao0668000666
wangmiao0668000666 deleted the fix/cron-maintenance-payload-omission-v2 branch October 28, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cron.maintainHistory unbounded .all() over task_runs payload → SQLite worker OOM loop at 512MB (after #166581)

2 participants