Repository navigation
Fix config patch restart-required notices - #83041
vincentkoc merged 6 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 22, 2026, 7:40 AM ET / 11:40 UTC. Summary PR surface: Source +36, Tests +103. Total +139 across 5 files. Reproducibility: yes. Source inspection shows PR head marks restart-required config writes, while startup delivery still formats the consumed sentinel through the same pending formatter after restart. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows PR head marks restart-required config writes, while startup delivery still formats the consumed sentinel through the same pending formatter after restart. Is this the best way to solve the issue? No. The PR is a good boundary for pending restart-required metadata, but the final head dropped the completed/consumed formatting needed to avoid a misleading post-restart notice. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f40071cc0fd2. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +36, Tests +103. Total +139 across 5 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
Heads up: this PR needs to be updated against current |
|
@RomneyDa 准备好了,CI 已经全绿。 |
|
Clownfish 🐠 reef automerge status Clownfish finished this automerge repair swim without changing the branch. Target: #83041 Worker actions:
No push, rebase, replacement PR, merge, or ClawSweeper re-review happened this swim. fish notes: model gpt-5.5, reasoning medium. |
6c70d91 to
4228b3b
Compare
|
Clownfish 🐠 reef update Thanks for the work here. Clownfish patched this branch directly so the contributor trail stays right where it started. Source PR: #83041 fish notes: model gpt-5.5, reasoning medium; reviewed against b208c34. |
6d03462 to
b208c34
Compare
Merges the Clownfish-repaired contributor branch for openclaw#83041. Clownfish merge preflight cleared security/comments/review and accepted pnpm check:changed; the remaining cron shard failure is present on current main.
Summary
Fixes #46797.
This makes config write restart sentinel payloads carry whether the write actually requires a gateway restart, so pending/status summaries can say
Gateway restart required (...)instead ofGateway restart config-patch ok (...).It also keeps startup-consumed restart sentinel messages in the completed context, so automatic restart follow-up notices say the restart completed instead of telling the user a completed restart is still required.
Verification
node scripts/run-vitest.mjs src/infra/restart-sentinel.test.ts src/gateway/server-methods/config.shared-auth.test.ts -- --reporter=verbosenode scripts/run-vitest.mjs src/gateway/server-restart-sentinel.test.ts src/gateway/server.config-patch.test.ts -- --reporter=verbose./node_modules/.bin/oxfmt --check --threads=1 src/infra/restart-sentinel.ts src/infra/restart-sentinel.test.ts src/gateway/server-methods/config-write-flow.ts src/gateway/server-methods/config.shared-auth.test.ts src/gateway/server-restart-sentinel.ts src/gateway/server-restart-sentinel.test.ts src/gateway/server.config-patch.test.ts CHANGELOG.mdgit diff --check.agents/skills/codex-review/scripts/codex-review --mode localFocused tests passed with 3 files / 42 tests, adjacent gateway tests passed with 2 files / 47 tests, formatting check passed, diff whitespace check passed, and Codex review reported no accepted/actionable findings.
Real behavior proof
Behavior addressed:
config.patchandconfig.applyrestart-required sentinel summaries now useGateway restart required (...)only when the reload plan requires a restart; hot-reloaded config patch writes are explicitly marked as not restart-required.Real environment tested: Local OpenClaw source checkout on macOS, loading the real
src/infra/restart-sentinel.tsmodule withnode --import tsx.Exact steps or command run after this patch: Ran a live Node command against the real OpenClaw restart sentinel formatter:
Evidence after fix: Terminal output from that live command:
Observed result after fix: Pending restart-required config patch payloads show
Gateway restart required (config.patch)with the note preserved underneath; startup/completed context showsGateway restart completed (config.patch); hot-reloaded config patch payloads do not showrestart required.What was not tested: Live Windows/manual gateway restart behavior was not exercised locally; the local Crabbox preflight was blocked because the
crabboxbinary is unavailable in this checkout.