Skip to content

fix: label successful config.patch notices as restart required (#46797) - #93863

Closed
arkyu2077 wants to merge 1 commit into
openclaw:mainfrom
arkyu2077:fix/issue-46797
Closed

arkyu2077 wants to merge 1 commit into
openclaw:mainfrom
arkyu2077:fix/issue-46797

Conversation

@arkyu2077

Copy link
Copy Markdown
Contributor

Summary

  • report successful config.patch sentinel summaries as restart required instead of restart complete
  • preserve existing wording for config.patch failures and other sentinel kinds
  • add regression coverage for the success-path notice

Testing

  • pnpm exec vitest run --config test/vitest/vitest.unit.config.ts src/infra/restart-sentinel.test.ts

Closes #46797

@openclaw-barnacle openclaw-barnacle Bot added size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 17, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Jun 19, 2026
@clawsweeper

clawsweeper Bot commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

This PR should close because the same config.patch restart notice problem was fixed by the merged metadata-backed implementation in #83041, and the fix is present in current main and release v2026.6.11.

Root-cause cluster
Relationship: superseded
Canonical: #83041
Summary: The merged related PR is the canonical fix for the same config.patch restart-required notice problem, while the broader deterministic apply-status issue remains separate.

Members:

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

Canonical path: Keep the metadata-backed implementation from #83041; leave the broader deterministic config apply-status contract to #83851.

So I’m closing this here and keeping the remaining discussion on #83041 and #83851.

Review details

Best possible solution:

Keep the metadata-backed implementation from #83041; leave the broader deterministic config apply-status contract to #83851.

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

Yes. Source and test inspection show the original failure mode was the ok-style config.patch restart notice, and current main now covers both restart-required and hot-reloaded config.patch cases.

Is this the best way to solve the issue?

No. This PR's blanket config.patch formatter rule is no longer the best fix because the merged implementation derives wording from explicit restart-required metadata at the config write boundary.

Security review:

Security review cleared: The diff only changes TypeScript restart-notice formatting and a focused unit test; it does not touch secrets, dependencies, workflows, package scripts, or code-loading surfaces.

AGENTS.md: found and applied where relevant.

What I checked:

  • Current main uses explicit restart metadata: summarizeRestartSentinel returns restart-required wording only for config-apply/config-patch payloads with status ok and stats.requiresRestart true, which is the safer version of this PR's intended behavior. (src/infra/restart-sentinel.ts:344, b63e06f68aa0)
  • Current main writer populates the metadata: resolveGatewayConfigRestartWriteResult computes the restart requirement from the changed paths and config reload settings, then stores requiresRestart in the sentinel payload. (src/gateway/server-methods/config-write-flow.ts:284, b63e06f68aa0)
  • Current tests cover restart-required and hot-reload cases: Restart sentinel tests assert restart-required wording when requiresRestart is true and preserve the ok-style summary for hot-reloaded config.patch writes when requiresRestart is false. (src/infra/restart-sentinel.test.ts:275, b63e06f68aa0)
  • Gateway tests cover writer-side restart metadata: The config shared-auth tests assert a direct-restart config.patch write records requiresRestart true and a hot-reloaded config.patch write records requiresRestart false. (src/gateway/server-methods/config.shared-auth.test.ts:350, b63e06f68aa0)
  • Superseding PR is merged: Live GitHub PR metadata shows Fix config patch restart-required notices #83041 merged on 2026-06-22 with merge commit 96e27c6 and explicitly fixed the same linked issue. (96e27c6ea8cc)
  • Fix provenance commit: The merge commit for the superseding PR touched the restart sentinel formatter, config write flow, and associated tests. (96e27c6ea8cc)

Likely related people:

  • xuruiray: Authored the merged PR that added requiresRestart metadata and the current formatter/test coverage for this behavior. (role: superseding implementation author; confidence: high; commits: 81eb8d3e7d11, b208c3469b43, 96e27c6ea8cc; files: src/infra/restart-sentinel.ts, src/infra/restart-sentinel.test.ts, src/gateway/server-methods/config-write-flow.ts)
  • vincentkoc: Merged the superseding PR and the PR discussion shows direct repair/validation coordination for that branch. (role: merger and recent repair coordinator; confidence: high; commits: 96e27c6ea8cc; files: src/infra/restart-sentinel.ts, src/gateway/server-methods/config-write-flow.ts)
  • steipete: Commit 71c3126 added the gateway config/update restart flow and initial restart sentinel surface that this notice path builds on. (role: introduced adjacent restart flow; confidence: medium; commits: 71c31266a1db; files: src/infra/restart-sentinel.ts, src/gateway/server-methods/config.ts)
  • velamints2: Commit 61be533 recently changed restart sentinel message formatting and adjacent tests on the same formatter surface. (role: recent formatter contributor; confidence: medium; commits: 61be533ad4ed; files: src/infra/restart-sentinel.ts, src/infra/restart-sentinel.test.ts)

Codex review notes: model internal, reasoning high; reviewed against b63e06f68aa0; fix evidence: release v2026.6.11, commit 96e27c6ea8cc.

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jun 19, 2026
@clawsweeper

clawsweeper Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

  • Action: closed this PR.
  • Close reason: duplicate or superseded.
  • Evidence: durable ClawSweeper review.
  • Coverage proof: PR B clearly covers PR A's useful behavior and is the better merged review/landing path; PR A's remaining differences are either superseded by PR B's safer metadata-backed design or incidental test/detail differences. Covering PR: Fix config patch restart-required notices #83041.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config patch restart notice is misleading; should say 'restart required'

1 participant