Skip to content

fix(update): --no-restart update fails when the Gateway restarts itself during Doctor's stop - #200181

Merged
fuller-stack-dev merged 3 commits into
openclaw:mainfrom
fuller-stack-dev:fix/update-no-restart-gateway-self-restart
Nov 16, 2026
Merged

fuller-stack-dev merged 3 commits into
openclaw:mainfrom
fuller-stack-dev:fix/update-no-restart-gateway-self-restart

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: openclaw update --no-restart fails with doctor-failed and rolls the package back when the running Gateway restarts itself for the replaced installation while update Doctor is stopping it.

--no-restart leaves the managed Gateway running while the package is replaced. The Gateway's 30-second installation check sees the new dist/build-info.json and restarts the process. On a Linux systemd service, if that restart lands while the stop is in flight, the stop refuses with Gateway process changed during maintenance drain. Doctor fails, the update rolls back, and recovery verification then finds the restarted Gateway running the new version from the restored files.

Measured on plain main (b58c23c, Docker cell): the exposed window is about 1.8 s per update, so roughly 5-6% of --no-restart updates with a running managed Gateway. One measured run missed the failure by 0.24 s.

User Impact

User impact: a --no-restart update no longer fails or rolls back because the Gateway restarted itself for the new installation. The update stops the restarted process, records a warning in update history, and continues. As before, the Gateway that Doctor had to stop is started again on the updated installation.

A Gateway process that changes for any other reason during the stop is still refused, with the same message.

Why This Change Was Made

The stop bound its authority to the PID it first inspected and treated every later PID as a foreign process. The Gateway's own restart for the replaced installation is the one change that is expected under --no-restart, and the exiting Gateway already records it in its boot lifecycle (reason gateway.installation_replaced: ..., with its PID).

The managed-service stop owns service inspection, so the fix is there. When the drain, or the Linux PID check just before the native stop, reports a changed process, the stop asks whether the latest recorded shutdown belongs to the PID it inspected and names the replaced installation. If so it inspects the service once more with the existing ownership, definition and ancestry checks, warns, and drains and stops the current process inside the same time budget. There is one re-inspection, and a second change fails as before. Matching on the PID needs no clock comparison.

Alternatives I rejected:

  • Making the Gateway's installation check stand down during an update. The running Gateway is the installed version, so that fix would miss the first update onto a release that contains it, and it needs a new cross-process signal.
  • Accepting any PID change of the same verified service. Simpler, but it also accepts an operator restart or a crash loop in the middle of the stop.

Two moves in this diff are mechanical. The maintenance module was already over the 700-line lint cap, which is an error for any touched file, so its update-history recording (warn and the stop record) and the pre-stop PID check moved to sibling modules unchanged. The shared shutdown-record read now also selects pid. gateway status --json and update status --json output is unchanged.

withGatewayMaintenanceDrain itself only gained a typed error. Its other caller, immutable activation, binds an explicit lease to one exact process and is unchanged. launchd and Windows have no PID check on this path.

Still refused, on purpose or by scope

  • A change the Gateway did not record. If the exiting Gateway could not persist its record, or the record cannot be read, the stop refuses as it does today. An unreadable record adds a warning that says so.
  • systemd's restart delay. The managed unit has RestartSec=5. A stop that inspects the service in those seconds, when neither process is running, still fails, with a service ownership check that reports the service as unavailable. This is the same race at a different check. Handling it means letting ownership be verified for a unit in activating, which is a larger change than this one. I left it out.

Release directories (#198835)

#198835 landed while this PR was open, and main is merged into this branch. It changes how the package path is replaced, not the maintenance stop, so the two do not overlap in code: no update-command-service-*.ts file changed on main, and the merge had no conflicts.

I read the paths that meet this fix. None changes what the stop assumes:

  • The self-restart still happens on that layout. The Gateway's installation check reads dist/build-info.json through the package path (resolveOpenClawInstallationRootSync maps a release's real path back to its link). A release replaced in place, or a link moved to another release, both show the running Gateway a new build, and it restarts and records the same reason.
  • The re-inspection runs the same ownership check with the same root as the first inspection in that stop. That check compares real paths, so a service that starts a release's real path and one that starts the package path are judged the same way both times.
  • Nothing rewrites the service definition between the two inspections. Under --no-restart the service is not rebound at all.

This is from reading the code. I did not run the release cells with the Gateway up.

Rollback side

After a failed --no-restart update, a Gateway can be running the new version from rolled-back files. This fix removes the trigger measured here. It also means a Doctor failure after the stop leaves a stopped Gateway, which recovery starts from the restored files. The state stays reachable when the update fails after the Gateway restarted itself and before the stop succeeds, for example in the restart-delay case above. That Gateway corrects itself on its next installation check, but recovery verification can report a version mismatch first. That needs its own handling in recovery verification and is not in this PR.

Update behaviour

All of the fix runs in the new version's maintenance stop, which the installed updater starts from the replaced package through update Doctor. Nothing has to run in the installed updater or in the Gateway that is already running. It applies to the first update onto a release that contains it.

It depends on the running Gateway recording gateway.installation_replaced: as its shutdown reason. The 2026.11.4 source does. The installation check itself shipped in 2026.9.6.

A published driver x candidate run takes the new path only when the race occurs, which needs --no-restart and a Gateway restart during the stop. The default cell uses a managed restart and does not reach it.

No config, schema or protocol changes. No added waits.

Evidence

The reproduction is deterministic and sits at the owner. The new test runs update Doctor's real predecessor stop (stopSupervisedPredecessorGateway), the real maintenance stop and drain, and the Gateway's real boot-lifecycle write operations and reader on a private state database. The service manager, its systemd policy helpers and the Gateway connection are simulated. The Gateway is replaced once, either before it answers the drain or after it answers and before the native stop.

pnpm test src/cli/update-cli/update-command-service-resident-restart.test.ts --maxWorkers=1

  • Red, production sources at 4e9812c (those files are identical on main at aa4d490, the commit merged into this branch): 4 failed, 4 passed. The two restart cases fail with the production errors, Error: Gateway process changed during maintenance drain and GatewayServiceUpdateOwnershipError with code service-process-changed.
  • Green, head 4c63b23 (821f76d with main at aa4d490 merged in): 8 passed. Both restart cases stop the service once, write the stop receipt with the restarted process's PID, and record the warning in update history.
  • Controls that pass on base and head: the same process change with an operator stop on record, and with an installation replacement recorded by an earlier process, is refused. The service is not stopped and no receipt or warning is written.
  • Controls for the new path, red on base: a restarted Gateway whose service definition changed is refused at re-inspection, and a second process change after the accepted restart is refused.

The test passes Doctor no database write capture, and that matches the real update on this path. The updater hands Doctor its database generations only when it captured them with exclusive state ownership (captureUpdateDatabases, the same rule in 2026.11.4). A Gateway that is running at capture time holds that ownership, so the stop's receipt is the plain ledger write the test runs. If the Gateway is already between processes at capture time, the updater can capture, and the restarted Gateway's writes then meet Doctor's capture. That is the restart-delay family named above and is not covered here.

Other checks. All of these except the Docker run were rerun on the merged head 4c63b23. main moved to 7cb238a before the push (#200172, #200208). Neither touches these files, their callers or the tests below, so it is not merged here. #200172 changes Doctor's first admission of a database capture, which this path does not have.

  • 16 related and consumer test files (drain, maintenance, immutable activation, Doctor maintenance, boot lifecycle, both status readers): 440 passed, 51 skipped, exit 0. The 51 skips are Linux-only tests on macOS, in update-immutable-activation.test.ts, update-command-service-drain.native.test.ts and update-command-service.integration.test.ts. CI has to cover them.
  • OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 node scripts/check-changed.mjs: exit 0. The dead-export scan is skipped because it fails on main for three untouched files (extensions/google/provider-catalog-runtime.ts, src/config/sessions/session-history-types.ts, ui/src/pages/chat/chat-agent-run-grouping.ts). Run alone with this patch applied it lists only those three.
  • oxfmt --check on the changed files and git diff --check: clean.
  • bash scripts/e2e/published-driver-update-docker.sh (published 2026.11.4 updater, candidate built from this patch at cef2bbad990): PASS, update finished, readyz 200, running version verified. This ran before feat(update): keep each release in its own directory on OpenClaw-owned installs #198835 landed and was not rerun on the merged head, so it is evidence for the earlier head only. It is a regression check of the normal update path through the changed stop. It does not exercise the race: this cell updates with a managed restart, not --no-restart.

Test cost: one new file, about 260 lines, 13 s wall locally with about 5 s of test time. The first case pays the cold module load. No CI timing yet. It is registered with the database-worker (forks) test list because it needs the host SQLite broker. No existing test file changed and nothing was pruned.

Not proven:

  • The live race was not reproduced end to end. The Docker update cell cannot force the window: the Gateway's check interval is a fixed 30 s with no test override, the cell drives a systemctl shim, and the tick phase depends on when the Gateway started relative to a 26-30 s package swap. I did not loop a timing-dependent run as proof.
  • Real systemd behaviour, including the restart-delay case above.
  • The shutdown-record read from inside the real update Doctor process, against a predecessor database that has not been migrated yet. By reading the code, state reads refuse newer schemas and not older ones, and a failed read keeps the old refusal.
  • The unreadable-record warning branch has no test. Doctor's own maintenance stop shares the fixed owner but has no dedicated case for this race.

Review: the repository's autoreview helper cannot run on this machine, so an independent read-only reviewer agent reviewed the diff twice. The first pass led to PID attribution in place of a timestamp comparison, the definition-changed control, and naming the restart-delay case. The second pass found no blocking defect. Its points on the stop receipt PID, the shared drain budget, the non-snapshot read and the second-change test are applied.

Follow-ups

  • Once this is on main, the in-place Docker cell from feat(update): keep each release in its own directory on OpenClaw-owned installs #198835 (test:docker:published-driver-release-in-place, in scripts/e2e/lib/upgrade-survivor/published-driver.mjs) can run with the Gateway up again. It stops the Gateway before the --no-restart update to avoid this race. This PR leaves the cell unchanged.
  • The systemd restart-delay case.
  • Recovery verification after a rolled-back --no-restart update, as described under "Rollback side".

…lf during Doctor's stop

`openclaw update --no-restart` replaces the package under a running managed
Gateway. That Gateway's installation check then restarts the process. When
the restart landed while update Doctor was stopping the Gateway on Linux, the
stop refused with "Gateway process changed during maintenance drain", Doctor
failed, and the update rolled back.

The managed-service stop now accepts that one process change. The exiting
Gateway records its restart for the replaced installation in the boot
lifecycle. When the latest recorded shutdown belongs to the inspected PID and
names the replaced installation, the stop inspects the service once more
(ownership, definition and ancestry rechecked), records a warning in update
history, and drains and stops the restarted process within the same budget.
A process change without that record, and a second change, are still refused.

The maintenance module was over the 700-line cap, so its update-history
recording (warnings and the stop record) and the Linux pre-stop PID check
move to sibling modules unchanged.
@clawsweeper

clawsweeper Bot commented Nov 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-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The maintenance stop retries once when the inspected Gateway recorded an installation-replacement restart, revalidating the service before stopping its successor.

Example: A Linux managed Gateway restarts after package replacement during openclaw update --no-restart.

  • Before: Doctor rejects the changed PID and the update rolls back.
  • After: When the predecessor's shutdown record identifies an installation replacement, Doctor revalidates and stops the successor, records a warning, and continues.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and has meaningful regression coverage, but required real-behavior evidence for the changed path is absent.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: A --no-restart update can fail Doctor and roll back when the running Gateway restarts itself during maintenance shutdown.
Reason: This maintainer-authored direction has clear user value; the body explicitly leaves the systemd restart-delay and rollback-verification cases outside this repair.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a concrete update failure, and source review found no definite introduced defect.

Priority: P2
Reviewed head: 821f76db06e169b1c1133643505436ec43c7c029

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted terminal output or logs from a latest-stable upgrade using --no-restart with real Doctor and systemd, showing the replacement restart during the stop, successful successor shutdown, completed update, and preserved settings/data.
Agent review details

How this fits together

Update Doctor delegates managed Gateway shutdown to the shared maintenance-stop owner, which combines native service inspection, lifecycle drain, boot-history reads, and durable stop receipts.

flowchart TD
  A[Update CLI] --> B[Candidate Doctor]
  B --> C[Maintenance stop]
  C --> D[Gateway drain]
  C --> E[Boot lifecycle history]
  C --> F[Native service manager]
  F --> G[Stop receipt]
Loading

Technical review

Best possible solution:

Keep one bounded retry in the existing maintenance-stop owner, retaining service revalidation, accurate stop receipts, and refusal of unrelated process changes.

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

Current main exposes the reported PID-change refusal, and the related feature PR records an observed update failure; this review did not execute target code.

Is this the best way to solve the issue?

The change uses the existing stop and lifecycle owners without introducing competing state or a cross-process coordination mechanism; the extractions have coherent responsibilities and preserve their previous behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4a0e45492b89.

Provenance checked

  • Maintenance identity checks and drain changes intended behavior with a stated reason (54abbae: Shared update and Doctor maintenance preserves service identity, operator policy, bounded draining, and reported write custody.)
  • Maintenance stop-history recording keeps the original intent (32aab96: Recovery needs a durable record of the Gateway an interrupted update stopped; the extraction preserves that recording.)
  • Asynchronous shutdown-history reads keeps the original intent (910b54b: Keep inspection preparation off the caller's event loop and bound stalled reads; the patch retains that reader and preserves public status output.)
  • Installation-replacement restart keeps the original intent (dd04e91: Restart a Gateway whose installed runtime was replaced, preventing continued execution with missing or incompatible chunks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +140, Tests +266, Docs +19. Total +425 across 10 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 7 205 65 +140
Tests 2 266 0 +266
Docs 1 19 0 +19
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 490 65 +425

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The repair addresses a timing-dependent failure in the advanced --no-restart update workflow with a running Linux managed Gateway.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 16, 2026, 12:27 PM ET / 17:27 UTC.

fuller-stack-dev added a commit to fuller-stack-dev/openclaw that referenced this pull request Nov 16, 2026
…ound service

The plan to switch the link and then rebind the service failed in Docker: the
post-update ownership check ran first and left the Gateway stopped. As landed
in openclaw#198835, the update replaces the release the service starts in place and
the restart's service refresh binds the service to the package path. The
launcher comparison covers only the launchers the swap publishes. Decision 8
is closed, and the separate --no-restart race on main points at openclaw#200181.
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes size: L labels Nov 16, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

The CI failure on 4c63b23 is not caused by this change

CI run 43935994553 (attempt 1) finished with one failed job plus the gate: 53 passed, 27 skipped, and security-fast passed. CI tested merge 63c743f5d7a (this head into main 7cb238ad89a).

Failed: checks-ui-e2e (1/2), ui/src/e2e/chat-send-ack-ownership.e2e.test.ts › "unadopted-c survives a steer ok receipt": locator.scrollIntoViewIfNeeded: Element is not attached to the DOM after 7032 ms.

The gate's table classes it "unknown" (no matching job on main), so I investigated it:

  • The tested merge differs from its main parent in ten files, none under ui/. The failing test file is identical on both.
  • node scripts/run-vitest.mjs ui/src/e2e/chat-send-ack-ownership.e2e.test.ts passed 9 of 9 runs on unmodified main 7cb238ad89a and 8 of 8 on the tested merge. I could not reproduce the failure locally.
  • The same test file failed in the checks-ui-e2e job of nine other pull-request CI runs among the 18 recent failed UI jobs I scanned today: seven on this case and three on its sibling "unadopted-c survives a steer timeout receipt". Examples: runs 43922644435, 43925944183, 43934378634, 43937410186.

So this is an intermittent Control UI test failure that exists independently of this PR. The job was not rerun.

Scoped checks on the tested merge: this PR's new test file passes (8 tests), and I reran it with the process-identity comparison removed to confirm the two "earlier process" refusal cases fail without it.

Landing uses the maintainer exception for attributed pre-existing failures with this evidence. The landing record keeps CI as failed.

@fuller-stack-dev
fuller-stack-dev merged commit ff75829 into openclaw:main Nov 16, 2026
152 of 155 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

@fuller-stack-dev
fuller-stack-dev deleted the fix/update-no-restart-gateway-self-restart branch November 16, 2026 19:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
…lf during Doctor's stop (openclaw#200181)

`openclaw update --no-restart` replaces the package under a running managed
Gateway. That Gateway's installation check then restarts the process. When
the restart landed while update Doctor was stopping the Gateway on Linux, the
stop refused with "Gateway process changed during maintenance drain", Doctor
failed, and the update rolled back.

The managed-service stop now accepts that one process change. The exiting
Gateway records its restart for the replaced installation in the boot
lifecycle. When the latest recorded shutdown belongs to the inspected PID and
names the replaced installation, the stop inspects the service once more
(ownership, definition and ancestry rechecked), records a warning in update
history, and drains and stops the restarted process within the same budget.
A process change without that record, and a second change, are still refused.

The maintenance module was over the 700-line cap, so its update-history
recording (warnings and the stop record) and the Linux pre-stop PID check
move to sibling modules unchanged.
RomneyDa added a commit that referenced this pull request Nov 17, 2026
Backport #200181 (ff75829), adapting the boot reader and lifecycle fixture to the stable owner contracts.

Co-authored-by: RomneyDa <[email protected]>
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(plugins): portable plugin-state keys for PostgreSQL

Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs openclaw#184862 openclaw#188642.

* test: account for rebased plugin-state coverage

* test(clickclack): import legacy revocations before adoption

(cherry picked from commit 395cac7)

Release adaptation: Only exclusive SQL lower bound in kernel and Doctor pagination; preserve legacy SQLite keys and public validation. Regression exercises real Doctor paging and inspected executed SQL bindings; no NUL-key fixture policy, schema or unrelated tests.

Follow-up dispositions: 8253356 fix: preserve child results after source lifecycle changes (openclaw#202708); f3f89c7 fix: show saved child results when completion delivery fails (openclaw#202664); c45faa8 fix: align CI tests with admitted tool calls (openclaw#202655); 5c9389a fix: make channels add report required plugin install failures (openclaw#202091); 52b9188 fix: show hosted model details in `models list` without a Gateway (openclaw#202490); d248a76 fix: show an outcome when kept child chats return no answer (openclaw#202423); 5148804 fix(discord): check a queued message's access again when its turn starts (openclaw#202330); 2470d62 fix: let setup use account models with a fresh catalog (openclaw#202019); 9fa0b92 fix: let PostgreSQL Gateways start with plugin-backed secrets (openclaw#201063); c180824 fix(plugins): Talk and plugin-loading requests fail on PostgreSQL Gateways (openclaw#201976); cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 17c5fb0 fix(state): PostgreSQL state created before Template bootstrap deferral is refused as schema drift (openclaw#197425); b5c1277 fix: let resumed parents collect children stopped by restart (openclaw#201460); f920a7e chore(postgres): qualify cron completion during graceful shutdown (openclaw#201246); 1680f54 fix(openai): new ChatGPT subscription models missing until an OpenClaw release (openclaw#201130); 0d8820a fix(media): image descriptions use the ChatGPT OAuth route when OpenAI has no API key (openclaw#199299); ee3e16e test(agents): trim and fold low-value regression suites (openclaw#198916); b8029b4 test(agents): qualify PostgreSQL simple-completion acquisition (openclaw#200956); 703c82d fix(sessions): record queued input end causes and recover them across crashes (openclaw#200533); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); d565e17 fix(ci): retire deleted session fork test from inventory (openclaw#200611); 4cf12c6 chore(postgres): qualify prompt refresh and rebalance CI (openclaw#200488); d460273 fix(templates): release earlier Template-managed agents (openclaw#200303); ff75829 fix(update): --no-restart update fails when the Gateway restarts itself during Doctor's stop (openclaw#200181); 0b2ad60 chore(postgres): cover compaction watched-session prompts (openclaw#200117); b90c573 test: consolidate redundant coverage (198795 recut) (openclaw#198943); a042363 test: consolidate redundant coverage (198793, part 2) (openclaw#198936); 9bfad2b test: consolidate suites while retaining recovery owners (openclaw#198933); 4e9812c test: consolidate redundant coverage (198789, part 2) (openclaw#198932); 90814f5 fix(subagents): stops a finished sub-agent's chat being deleted before its parent reads the result; 799bc0b fix(ci): stabilize hourly fixtures and retire unused exports (openclaw#199851); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); a4cc2ad fix: undo cold-session compaction CPU and latency regressions (openclaw#199561); 55fec79 fix(agents): stop divergent mid-turn overflow recovery (openclaw#199636); 2c4413a fix: reduce Gateway stalls under filesystem pressure (openclaw#197510); 37d977f fix: output reducers are skipped in headless and Code Mode runs (openclaw#199434); c9ee264 fix(compaction): concurrent sessions wait for each other's summaries during compaction (openclaw#196550); 2471ddc feat: let agents review generated images before delivery (openclaw#198227); 21f7dc6 fix(github): publication fails with PostgreSQL session or state stores (openclaw#193749); 63d9e57 fix(ci): new PostgreSQL suites are omitted from conformance (openclaw#198390); 466a4b6 fix(telegram): steered answers quote the wrong input (openclaw#178124); 87b6f52 fix(delivery): resend routed Telegram finals after an ambiguous network failure (openclaw#192779); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); cff99b2 fix(agents): keep provider history append-only across runs (openclaw#197874); 8a328bf feat: add an opt-in usage-ranked tool index (openclaw#197128); 097e648 fix(ci): plan only executable infra tests (openclaw#197911); 76385fd fix(models): discovered models become "Unknown model" after restart or an ended sign-in (openclaw#197784); 89d4177 fix(plugin-state): guarded calls fail until Gateway restart after an unknown write outcome (openclaw#197790); baca36e fix(sessions): commit selected invitations with original messages (openclaw#184512); 699e538 fix(sessions): drain passive notices on sessions_send resumes; d6ded18 chore(ci): drop retired test-lines allocation records (2/3) (openclaw#197656); e0dd020 fix(agents): collect process results at suspended-run capacity; 4897740 feat(auth): preserve delegated OCE user profiles and permissions (openclaw#196856); 7197ce1 feat(templates): install bundled plugins through native management (openclaw#196349); 9c6ee9b feat: let Template automations start paused for onboarding (openclaw#196323); 79a6214 fix(message): retain local final replies in conversation history (openclaw#187795); caa978c feat(templates): open durable chat before verified setup (openclaw#196392); 78e73aa fix(sessions): cold PostgreSQL conversations fail after idle readers close (openclaw#189991); b6ed907 perf(sessions): persist active transcript facts for hydration (openclaw#193682); 1595dd2 feat(plugins): reauthorize accepted session work (openclaw#176886); b43ad0a fix(models): avoid reloading plugins on catalog refresh (openclaw#193903); 0947d02 fix(ci): avoid unrelated PostgreSQL runs and admit owned tests (openclaw#193870); 428ca7d feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag (openclaw#192335); c718583 fix(update): repair refuses forever after a verified update fails a later step (openclaw#193132); 3f64174 fix: deliver background replies after a reload retires the turn registry (openclaw#193130); 982f3b1 fix(imessage): report Automation failures after Gateway updates (openclaw#186117); 31b28e9 fix(agents): wait for a peer OAuth refresh before failing request auth (openclaw#192906); cf50d4a feat(storage): support read-only PostgreSQL standby inspection (openclaw#192645); 82fd4e6 fix(agents): retain stale session target refusal reasons (openclaw#192681); 8ac4e19 fix(worktrees): reserve capacity on PostgreSQL (openclaw#192537); 718b349 fix: reduce session startup stalls under storage contention; 08f4a19 refactor(skills): move Skill Workshop into its bundled plugin (openclaw#192471); 837402a fix(clawrouter): keep upstream credit failures off the shared key (openclaw#192575); f38495f fix(plugins): reject late routing from canceled runs (openclaw#192492); dc5d61a improve(sessions): reduce unnecessary maintenance query rows (openclaw#192023); c4bf0dc fix(sessions): avoid extra maintenance scans for embedded archives (openclaw#184507); e44b3d6 fix(team-reports): recover after database connection loss (openclaw#192020); 991fb33 fix(logbook): recover after database connection loss (openclaw#192011); e6d0d2e fix(test): include omitted PostgreSQL conformance suites (openclaw#191962); da5ff0f fix(codex): reject native hooks from a previous run (openclaw#191788); 09f0b0b feat(plugins): add skill usage runtime for plugins (openclaw#191661); 00b2ff4 fix: parent sessions miss child approvals with a custom session store (openclaw#189827); be44b10 fix: stop completed session writes retaining request data (openclaw#191197); d40aa7c fix(sessions): replay creation requests across Gateway restarts (openclaw#190862); d894035 fix: await Doctor shared-state repair preparation (openclaw#190875); b515cc7 feat: fork threaded conversations with Telegram support (openclaw#190783); def6349 feat(plugins): plugins can run a hidden forked turn of a session with their own tools (openclaw#190950); d983e34 feat(plugins): plugin commands can continue the agent with a replacement prompt, on every channel (openclaw#190908); ea3f0b8 fix(ci): provision Node test prerequisites and retain Baseten routing (openclaw#191050); 29503e1 fix(update): Gateway stays stopped after the updater process dies mid-update (openclaw#188497); fc8c2d0 fix(update): preserve unfinished handoff artifacts (openclaw#190571); 7c26e8c fix(ci): cover PostgreSQL managed update handoffs (openclaw#190336); 4913d41 fix(ci): prevent truncated PostgreSQL target listings (openclaw#189509); 8925f62 fix(gateway): start restored PostgreSQL homes on the first attempt (openclaw#190291); 177fe32 feat(models): preserve inference capabilities in opt-in catalog v3 (openclaw#189678); 7faf32d feat: retain repository disk authority through recovery (openclaw#189106); a658df3 feat(database): capture externally quiesced SQLite migrations; 0f9e7f7 feat(database): capture exact SQLite migration capsules; 4fb684e feat(backup): add PostgreSQL local companion checkpoints; c89a101 fix(doctor): migrate auth profiles on PostgreSQL stores (openclaw#189639); 799de09 fix(ci): split oversized workspace and setup files (openclaw#189356); 21ee847 fix(acp): keep completed run conversations resumable (openclaw#189273); fce0e56 perf(sessions): open cold history without restoring archives (schema 39) (openclaw#188397)

Validation: Baseline1 NUL-binding assertion failure/21passing; candidate22/22passes (188693-green.log). Real SQLite Doctor path and generated SQL proved; no native PostgreSQL server execution claimed.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0895146d8c1493146f5c6461eee0b10c329bdd1e)
(cherry picked from commit f8ccaa70bc9773d6bbb569bc0e275eee0c544ead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L 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.

1 participant