Skip to content

fix(gateway): preserve restart intent across coalesced config writes - #110397

Merged
Patrick-Erichsen merged 6 commits into
openclaw:mainfrom
metaforismo:agent/preserve-config-reload-restart-intent
Jul 29, 2026
Merged

Patrick-Erichsen merged 6 commits into
openclaw:mainfrom
metaforismo:agent/preserve-config-reload-restart-intent

Conversation

@metaforismo

@metaforismo metaforismo commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #105623

What Problem This Solves

The gateway config reloader coalesces writes that arrive while an earlier write is still being applied. The pending slot correctly keeps the newest config payload, but it also replaced the entire afterWrite intent.

That creates a reliability gap for this sequence:

  1. write A is being applied;
  2. committed write B arrives and requires a process restart;
  3. B's filesystem echo may move it from the pending slot into watcher ownership;
  4. write C arrives before A finishes, contains the newest config, and does not independently require a restart.

Before this change, C could erase B's restart requirement either directly from the pending slot or after the watcher had claimed B. The reloader then applied C without restarting, even though one of the committed, not-yet-applied writes had already established that the running gateway could not safely converge through hot reload alone.

Why This Change Was Made

This change gives coalesced, not-yet-applied writes two intentionally different merge rules:

  • config data, hashes, prepared candidates, and refresh metadata still use the newest write;
  • an unapplied restart intent is retained until the pending state is processed, unless the newer write also supplies its own restart intent;
  • when a watcher echo claims a pending write, a small provenance flag keeps that pending origin attached to the watcher candidate.

The provenance is deliberately narrow: only a watcher candidate known to have come from the pending slot can donate its restart intent to a newer write. A restart intent from an obsolete active write is still discarded. The change does not alter config schemas, debounce behavior, watcher lifecycle, hot-reload planning, or restart handling after processing begins.

An existing regression test proves that a restart intent from an obsolete active write must not leak into a newer pending write. The new cases cover the complementary invariant: a restart intent from an unapplied pending committed write must not be erased by a later coalesced non-restart write, either before or after a watcher echo.

User Impact

Rapid successive config writes no longer leave the gateway running with stale process state when an intermediate committed write required a restart. The latest config still wins, and ordinary none/auto behavior is unchanged when no pending restart exists.

Tests

Added deterministic three-write regression cases that block write A during plugin-record loading, queue restart-requiring write B, then coalesce newer write C. One case coalesces directly; the other emits B's watcher echo before C. They verify that:

  • exactly one restart occurs;
  • the restart reason comes from B;
  • the restarted gateway receives C's newest config;
  • no hot reload is performed instead.

Evidence

  • Red before the first production change: the direct coalescing case failed in all three gateway projects because onRestart was called 0 times instead of 1.
  • Red before the watcher-provenance change: the watcher-echo case also failed in all three gateway projects with the same missing restart.
  • Green on the final commit with Node 24.15.0: the repository-standard pnpm test src/gateway/config-reload.test.ts passed 136/136, while the direct three-project Vitest matrix passed 408/408 across gateway-core, gateway-server, and gateway-client.
  • Repeat/stress validation: both new race regressions were run sequentially 20 times across all three gateway projects — 120/120 focused executions passed with fresh timer/watcher state per iteration.
  • Production-path runtime proof: a temporary driver used the real replaceConfigFile, runtime write bus, gateway reloader, filesystem watcher, and snapshot reader. With only plugin-record loading gated to make the race deterministic, writes A/B/C produced exactly one restart; its reason was proof pending B requires restart, while the restarted and persisted config was C (channelHealthCheckMinutes=3, hooks.enabled=false). The same proof failed before the watcher-provenance change by timing out after C was processed with mode: none.
  • Full build: pnpm build passed in 3m04s, including unified/package bundles, runtime postbuild, plugin SDK export guards, and Control UI performance budgets.
  • Full repository gate: pnpm check passed, including all 80 npm shrinkwrap checks, core/UI/extensions/scripts/test typechecks, lint across core/extensions/scripts, formatting across 23,249 files, policy guards, and the zero-runtime-import-cycle check.
  • Current-main compatibility: the PR was merged synthetically with origin/main at 6aee6417 using git merge-tree --write-tree. The merge was conflict-free, the two affected blobs were byte-identical to the tested PR head, and the merged worktree passed the full three-project gateway file matrix (408/408). This validates the current merge result without repeatedly rebasing a live PR to chase a moving target.
  • GitHub CI on current head ae96413b83 completed with 80 passing checks, 34 scope skips, zero pending checks, zero cancellations, and zero failures. The passing set includes production/test typechecks, lint, repository guards, all Node test shards, QA smoke profiles, security checks, native static analysis, and Real behavior proof.
  • A repo-wide local pnpm test run was also attempted on macOS. It is not reported as a green signal because unrelated platform/environment failures occurred (/var vs /private/var, Bash 3.2 incompatibilities, unavailable loopback aliases/incomplete optional workspace dependencies), and the iMessage extension shard stopped making progress. The affected gateway tests above remained green; clean GitHub CI is the authoritative full-run gate for this PR.
  • Affected-test timing check: baseline config-reload.test.ts ran 402 tests in 5.59s; the final patched file ran 408 tests in 6.01s. These timings are included only as a regression check, not as a performance claim.

Branch refresh

On July 25, GitHub safely updated the conflict-free branch from current main. The fresh merge-head CI exposed two new test fixtures that still used the removed gateway.reload.debounceMs field. Follow-up commit ff96fa01 changes only those fixtures to gateway.reload: {}, matching the surrounding current-main tests.

Exact-head validation for the follow-up: the focused gateway file passed 159/159 tests; Oxfmt and git diff --check passed; fresh repository autoreview reported no findings and assessed the patch correct with 0.94 confidence. The full local test-type command was stopped after more than 15 minutes without diagnostics, and a narrower attempt encountered unrelated dependency-version errors from the shared local node_modules; fresh hosted CI is the authoritative full typecheck.

AI Assistance

This change was developed with assistance from OpenAI Codex. I reviewed the relevant reloader state transitions, neighboring tests, and final diff, and ran the validation commands documented above.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Jul 18, 2026
@metaforismo
metaforismo marked this pull request as ready for review July 18, 2026 04:05
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 27, 2026, 10:27 PM ET / July 28, 2026, 02:27 UTC.

ClawSweeper review

What this changes

The PR changes gateway configuration reload coalescing so that a restart required by an unapplied committed write survives a later non-restart write while the newest configuration remains the one applied.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This is still necessary: it addresses a real gateway convergence gap that current main has not absorbed. The branch has unusually strong focused and production-path proof, but the restart-intent provenance is race-sensitive and the branch is behind current main, so it should receive an owner review and exact-merge-head gate rather than an automated close or repair.

Priority: P2
Reviewed head: ae96413b83aa767e9fa13671caa7c3c8bc73fd47
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong runtime evidence and focused regression coverage support a narrow fix; current-main merge-head validation remains the meaningful final risk reducer.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The PR includes a redacted after-fix production-path run using the real writer, runtime event bus, reloader, watcher, and snapshot reader, with an observed restart reason from B and newest configuration from C.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR includes a redacted after-fix production-path run using the real writer, runtime event bus, reloader, watcher, and snapshot reader, with an observed restart reason from B and newest configuration from C.
Evidence reviewed 5 items Changed reload invariant: The proposed runtime change adds pending-origin tracking for the watcher candidate and uses it to retain a restart follow-up only when the candidate originated from an unapplied pending write; it also clears and restores the provenance alongside the candidate.
Regression coverage: The added deterministic three-write harness blocks the active reload, queues a restart-requiring pending write, optionally emits its watcher echo, then coalesces a newer non-restart config and asserts one restart with the newest config and no hot reload.
Real runtime proof: The contributor supplied a redacted production-path transcript using the real config writer, write listener, gateway reloader, watcher, and snapshot reader; it reports one restart from pending write B while persisting and restarting with write C.
Findings None None.
Security None None.

How this fits together

Gateway configuration changes arrive through in-process writes and filesystem watcher events, which the reloader coalesces while an earlier reload is active. The reloader chooses the newest configuration payload but must preserve any still-unapplied restart requirement before it either hot-reloads or restarts the running gateway.

flowchart LR
  A[Config write A active] --> B[Pending committed write]
  B --> C[Filesystem watcher echo]
  C --> D[Coalescing reload state]
  E[Newer config write] --> D
  D --> F{Pending restart required?}
  F -->|Yes| G[Restart with newest config]
  F -->|No| H[Hot reload or no-op]
Loading

Decision needed

Question Recommendation
Should the gateway owner accept the pending-origin restart-intent policy after the exact current-main merge result has rerun the focused reload tests? Approve after merge-head proof: Recommended: retain the bounded pending-origin policy and require the focused gateway reload matrix on the exact merge commit.

Why: The patch is narrow and well-proven, but it changes lifecycle semantics across asynchronous writer and watcher paths; choosing that reliability boundary is not a mechanical repair decision.

Before merge

  • Resolve merge risk (P1) - The change alters a race-sensitive restart boundary: a missed provenance reset or retry pairing could either suppress a required restart or preserve one after its pending source is obsolete.
  • Resolve merge risk (P1) - The branch is behind current main; the contributor’s synthetic-merge proof predates the supplied current main SHA, so the exact merge result should rerun the focused gateway reload suite before landing.
Agent review details

Security

None.

PR surface

Source +22, Tests +113. Total +135 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 23 1 +22
Tests 1 113 0 +113
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 136 1 +135

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #105623
Summary: This PR is a concrete candidate fix for one narrow rapid-write/restart-intent aspect of the open gateway reload reliability report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Gate on the exact merge result (recommended)
    Recommended: rerun the focused gateway reload matrix after rebasing or in the merge queue, then accept the bounded restart-intent policy if it remains green.
  2. Pause for lifecycle-owner review
    If the current-main state machine has materially changed, hold the PR until the gateway owner confirms the candidate/provenance transitions remain exhaustive.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Rebase or use the merge queue, then run the focused gateway config-reload matrix on the exact merge commit and retain the pending-origin restart invariant.

Technical review

Best possible solution:

Keep the narrow pending-origin invariant, land it only after gateway ownership review and exact-merge-head focused validation confirm that pending restart intent survives coalescing without allowing obsolete active intent to leak.

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

Yes, source-reproducible: the added deterministic tests define the active A, pending restart B, and newer C interleavings, including a watcher echo. The supplied production-path transcript independently reports the same before/after behavior, although this review did not rerun it locally.

Is this the best way to solve the issue?

Yes, with owner confirmation: retaining only an unapplied pending restart obligation while keeping the latest config avoids the broader FIFO queue proposed in the linked issue and preserves the existing protection against obsolete active intent leaking forward.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6de4b47203a3.

Labels

Label justifications:

  • P2: This is a bounded gateway reliability repair with a credible stale-process-state impact, but no evidence of an active widespread outage.
  • merge-risk: 🚨 availability: Incorrect restart-intent provenance can leave a running gateway without a required process restart during rapid configuration writes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR includes a redacted after-fix production-path run using the real writer, runtime event bus, reloader, watcher, and snapshot reader, with an observed restart reason from B and newest configuration from C.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR includes a redacted after-fix production-path run using the real writer, runtime event bus, reloader, watcher, and snapshot reader, with an observed restart reason from B and newest configuration from C.

Evidence

What I checked:

  • Changed reload invariant: The proposed runtime change adds pending-origin tracking for the watcher candidate and uses it to retain a restart follow-up only when the candidate originated from an unapplied pending write; it also clears and restores the provenance alongside the candidate. (src/gateway/config-reload.ts:267, ae96413b83aa)
  • Regression coverage: The added deterministic three-write harness blocks the active reload, queues a restart-requiring pending write, optionally emits its watcher echo, then coalesces a newer non-restart config and asserts one restart with the newest config and no hot reload. (src/gateway/config-reload.test.ts:4037, ae96413b83aa)
  • Real runtime proof: The contributor supplied a redacted production-path transcript using the real config writer, write listener, gateway reloader, watcher, and snapshot reader; it reports one restart from pending write B while persisting and restarting with write C. (26ed9d081c1e)
  • Current-head validation: The supplied PR context records successful focused gateway coverage, repository checks, build, and completed GitHub checks for the current head; the branch remains mergeable but behind the repository main SHA 6de4b47. (ae96413b83aa)
  • Canonical problem relationship: The PR explicitly targets the still-open gateway reliability report, whose central concern includes rapid config writes losing an intermediate required action; this narrower branch is a candidate fix, not evidence that the report should close before merge. (src/gateway/config-reload.ts:267, ae96413b83aa)

Likely related people:

  • steipete: Public repository source history for the gateway reload module identifies this account on recent file history, but the available read-only shell could not complete a fuller blame/log pass; route with low confidence. (role: recent area contributor; confidence: low; commits: 4b5a5e6; files: src/gateway/config-reload.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Run the focused gateway reload matrix on the exact current-main merge result before landing.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-07-18T04:07:03.965Z sha ea703572b0402876a1315001975d047066dc1116 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T04:21:54.806Z sha ea703572b0402876a1315001975d047066dc1116 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T05:00:00.007Z sha 26ed9d081c1edfc5f21f594b56efb19a00423abf :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T05:12:36.144Z sha 26ed9d081c1edfc5f21f594b56efb19a00423abf :: needs maintainer review before merge. :: none
  • reviewed 2026-07-18T05:54:56.657Z sha 26ed9d081c1edfc5f21f594b56efb19a00423abf :: needs maintainer review before merge. :: none
  • reviewed 2026-07-18T05:59:59.500Z sha 26ed9d081c1edfc5f21f594b56efb19a00423abf :: needs maintainer review before merge. :: none
  • reviewed 2026-07-18T19:04:05.786Z sha b5e266d :: needs maintainer review before merge. :: none
  • reviewed 2026-07-25T21:37:56.646Z sha ae96413 :: needs maintainer review before merge. :: none

@metaforismo

Copy link
Copy Markdown
Contributor Author

Runtime behavior proof for the final commit (26ed9d08)

I exercised the production config path with a temporary, uncommitted driver using:

  • replaceConfigFile for all three writes;
  • registerRuntimeConfigWriteListener for in-process delivery;
  • startGatewayConfigReloader with its real chokidar watcher;
  • readConfigFileSnapshotForRuntimeTransaction for disk snapshots.

The only injected control was a gate in readPluginInstallRecords, used to keep write A active long enough to deterministically queue B, observe its filesystem echo, and then commit C.

Redacted output:

[PROOF] write A is active inside the production reloader
[WRITE] A committed hash=<sha256>
[WRITE] B committed hash=<sha256> intent=restart
[WRITE] C committed hash=<sha256> intent=none latest=3 hooks=false
[INFO] config reload superseded: GatewayConfigReloadSupersededError: config reload superseded by a newer config write
[INFO] config change detected; evaluating reload (gateway.channelHealthCheckMinutes, meta)
[RESTART] count=1 reasons=["proof pending B requires restart"] latest=3 hooks=false
[DISK] latest=3 hooks=false
[RESULT] PASS: B restart intent survived while C remained the newest config

This same production-path proof failed before the watcher-provenance follow-up: the watcher echo moved B out of the pending slot, C cleared its restart intent, and the driver timed out waiting for onRestart. The deterministic unit regression for that interleaving also failed in all three gateway projects before the fix and now passes in all three.

Final focused suite: 408/408 tests passed across gateway-core, gateway-server, and gateway-client on Node 24.15.0.

@clawsweeper clawsweeper Bot added 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. labels Jul 18, 2026
@metaforismo

Copy link
Copy Markdown
Contributor Author

Current-main lifecycle and validation follow-up

I completed the requested source-level review against origin/main at 6aee6417 without repeatedly rebasing the live PR:

  • git merge-tree --write-tree HEAD origin/main produced a conflict-free merge tree.
  • The merged-tree blobs for both src/gateway/config-reload.ts and src/gateway/config-reload.test.ts are byte-identical to the already reviewed PR-head blobs. No current-main commit changed either affected file after this PR's recorded base.
  • A detached worktree created from that exact synthetic merge passed the full three-project gateway matrix: 408/408 tests.

Lifecycle audit results:

  • direct writer replacement preserves restart only from the unapplied pending slot;
  • a watcher/meta refresh records whether the selected live candidate came from pending or active state;
  • watcher success and hash mismatch consume both candidate and provenance together;
  • watcher retry restores the captured provenance only if the same transaction remains current;
  • direct in-process failure deliberately restores the candidate as active-origin, so obsolete active restart intent cannot leak;
  • a newer writer clears watcher ownership synchronously after reading only a pending-origin restart obligation;
  • missing-file retry leaves the watcher candidate and provenance intact for the scheduled reread;
  • all assignments and clears of watcherIntentCandidate have a corresponding provenance assignment/reset.

The linked issue's maintainer-oriented analysis explicitly defines the desired policy as latest-state coalescing plus preservation of the strongest required pending follow-up, while rejecting a broader FIFO queue and rejecting intent leakage from obsolete active writes. The implementation and neighboring tests match that boundary.

Additional final-head validation:

  • repository-standard focused suite: 136/136 passed;
  • three-project focused file matrix: 408/408 passed;
  • sequential stress run: 20 iterations of both new races across all three gateway projects, 120/120 executions passed;
  • pnpm build: passed;
  • pnpm check: passed, including all typechecks, lint shards, 80 shrinkwrap checks, formatting across 23,249 files, policy guards, and import-cycle checks;
  • GitHub CI: 78 passed, 39 skipped by scope, zero pending, zero failed.

No additional production or test change was made in this follow-up because the audit and stress pass did not produce a new failing invariant; avoiding speculative churn keeps the PR focused.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 18, 2026
@metaforismo
metaforismo force-pushed the agent/preserve-config-reload-restart-intent branch from 26ed9d0 to b5e266d Compare July 18, 2026 19:00
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 18, 2026

metaforismo commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Current-main refresh exposed a focused test-type failure: the two new race fixtures still used the removed gateway.reload.debounceMs field. Commit ff96fa01 now uses gateway.reload: {}, matching the surrounding current-main fixtures.

Exact-head focused coverage passes 159/159 tests. Oxfmt and git diff --check pass, and fresh repository autoreview found no issues with 0.94 correctness confidence. The exact hosted check-test-types job now passes on the fixed head; the rest of the fresh CI matrix is still running.

@metaforismo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@Patrick-Erichsen
Patrick-Erichsen merged commit 1eb038b into openclaw:main Jul 29, 2026
195 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main: (57 commits)
  docs: document gateway and memory chat wizards (#115487)
  fix(agents): restore subagent completion delivery on CLI runtimes (#115422)
  fix(sandbox): stop provisioning failures from exhausting fallbacks (#115481)
  refactor: remove duplicate runtime and plugin paths (#115483)
  fix(ui): canonicalize agent model identity (#115480)
  fix(ui): preview model picker interactions live (#115477)
  fix(ui): match disabled microphone picker background (#115472)
  refactor(code-mode): split focused runtime stress suites (#115462)
  fix(gateway): preserve restart intent across coalesced config writes (#110397)
  fix: scope subagent handoff to direct tools (#115466)
  docs: explain native subagent handoff
  fix: clarify native subagent completion handoff
  fix(config): respect agent directory filesystem case (#105402)
  refactor(code-mode): unify safe OpenAI tool filtering (#115460)
  refactor(code-mode): prepare MCP namespaces once per run (#115459)
  fix(ollama): preserve selected model capabilities during onboarding (#115467)
  refactor(chat): remove duplicate session projection paths (#115461)
  refactor(code-mode): make tool catalogs run-owned (#115458)
  fix(cli): preserve mid-turn text in durable replies (#115455)
  fix(memory): fall back to keyword search when embeddings cannot start (#115397)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…penclaw#110397)

* fix(gateway): preserve pending restart intent

* fix(gateway): retain restart intent across watcher echoes

* test(gateway): cover missing-file restart coalescing

* test(gateway): update reload fixtures for current config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

[Enhancement] Hot-Reload Reliability: Address Race Conditions in Rapid Config Writes and Watcher Recreation Gaps

2 participants