Repository navigation
Conversation
The retryable state-admission refusal was collapsed to the doctor hint, so operators could not tell that maintenance was still holding the database.
|
Codex review: needs real behavior proof before merge. What this changesThe PR displays redacted state-access refusal reasons and recovery instructions in ordinary CLI output. Example: Run
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR addresses a verified CLI diagnostic bug that remains on current main; no actionable code findings were identified. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe state owner rejects unavailable database access, worker transport preserves error names, and the shared CLI renderer turns those failures into operator guidance. flowchart LR
A[Plugin CLI command] --> B[State access owner]
B --> C[Named refusal error]
C --> D[Worker error transport]
D --> E[Shared CLI renderer]
E --> F[Redacted recovery guidance]
Technical reviewBest possible solution: Keep the focused shared-renderer fix with producer-owned error identity and unchanged state-access enforcement. Do we have a high-confidence way to reproduce the issue? The official-release report and current-main state-owner and CLI-renderer paths establish the failure mechanism; no target code was executed during this review. Is this the best way to solve the issue? The shared renderer is the correct owner, and stable producer identity avoids wording-dependent classification while preserving redaction and retry distinctions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ccacf757790. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +79, Docs +3. Total +83 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed October 13, 2026, 11:15 AM ET / 15:15 UTC (Revision 7). |
The maintenance reason belongs on admission refusals. The existing contention hint stays a two-line wait message, without a new Reason line.
|
@clawsweeper re-review The contention Reason line is gone. Admission and offline-maintenance refusals still print the redacted reason. The PR body now includes the shipped |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review The PR body now has shipped |
|
🦞👀 Re-review progress:
|
Keep maintenance and ownership verification remedies visible without debug output. Preserve nested refusal reasons through the shared CLI renderer, avoid loading the state-lock runtime, and retain terse contention and redacted debug behavior.
Name refusals at their state owner while retaining the distinct pending and offline maintenance subclasses. Preserve recovery messages through worker serialization and match only the stable name in the CLI renderer.
|
Landing stopped on the final authorized rerun: CI run 38405541427, attempt 3 at The coordinator's investigation attributes this to a pre-existing intermittent placement-authority defect independent of this PR: the unchanged test passed 2/2 on trusted main (91 s and 82 s test bodies), and the earlier CI failures contained no state-database refusal. The final retry likewise contains no state-database refusal. The placement error originates from the plain-Error guard in No further rerun or CI exception was applied. Leaving this PR open for the coordinator's exception-route decision. |
|
Merged via squash.
|
…aw#169907) * fix(cli): show the plugins enable maintenance reason without debug The retryable state-admission refusal was collapsed to the doctor hint, so operators could not tell that maintenance was still holding the database. * fix(cli): keep Gateway contention output terse The maintenance reason belongs on admission refusals. The existing contention hint stays a two-line wait message, without a new Reason line. * fix(cli): preserve actionable state refusal diagnostics Keep maintenance and ownership verification remedies visible without debug output. Preserve nested refusal reasons through the shared CLI renderer, avoid loading the state-lock runtime, and retain terse contention and redacted debug behavior. * fix(cli): classify state access refusals by stable error name Name refusals at their state owner while retaining the distinct pending and offline maintenance subclasses. Preserve recovery messages through worker serialization and match only the stable name in the CLI renderer. --------- Co-authored-by: Peter Steinberger <[email protected]>
Fixes #169862
What Problem This Solves
openclaw plugins enablecan stop with only “The CLI command failed” while offline database maintenance is in progress, hiding the reason and retry instruction unless debug output is enabled.User Impact
Commands reaching the shared CLI failure renderer show the redacted state-access refusal without debug mode. The producer's remedy stays intact: retry after active maintenance, or restart the Gateway when ownership cannot be verified. Stack traces and unrelated nested diagnostics remain hidden, and existing Gateway-contention output is preserved. There are no configuration, schema, or updater lifecycle changes.
Why This Change Was Made
The shared renderer now recognizes the stable
StateDatabaseAccessErrorname instead of matching diagnostic prose. The state owner uses that base error for previously untyped refusals; its existing admission-pending and offline-maintenance subclasses inherit the same diagnostic name while retaining their distinct retry identities.Worker replies and state-error hydration already preserve names; no wire-format changes or eager state-runtime import are needed in the renderer. The regressions construct the real error classes and round-trip deliberately reworded messages through the shared state-worker error graph, so changing diagnostic wording cannot silently hide the remedy again.
Original fix by @ericcaiwx-star; maintainer cleanup and coordinator-requested producer/transport correction by @steipete.
Evidence
prints the actionable state refusal without debug: %scovers admission, offline maintenance, and nested ownership verification with redaction and unrelated-diagnostic suppression.preserves reworded $name guidance across worker transportcovers all three class forms through production encode/clone/hydrate. Existing contention, manual-recovery, update, and debug tests remain.sqlite-store.worker.tsretains the failure name on refusal replies;sqlite-worker-broker-reply.tsrestores it;openclaw-state-worker-error.tsserializes and hydrates names throughout nested graphs.git diff --checkpassed. The parent dependency install lackseslint-plugin-solid, so local oxlint omits only the nonmatchingui/**/*.tsxoverride from a temporary config. CI uses the full configuration.scoped-clean, no actionable P0–P2 findings on this revision. Deslop complete.0a948520047488f477a5647cbe2130c47e7df349: 70 jobs passed, 28 skipped, including the aggregate CI gate, production/test typechecks, and full lint. This head merges main7896f10f9ba171a9bf411657703e6116929775f2without any additional implementation changes.38405541427failed the native same-session test in three attempts (two placement-authority errors and one 360-second timeout), and its initial UI run failed the Details-panel Escape test. After merging current main, both lanes passed. checks-node-changed-2, job 115381464634 explicitly passedtest/e2e/qa-lab/runtime/required-native-same-session.e2e.test.ts: the test took 93.566 seconds, the file invocation took 104.57 seconds, all four turn pairs completed, and cleanup confirmed the node, Gateway, and provider stopped. This establishes a passing current head; it does not identify the cause of the earlier failures.23aae316ab33f2377833fb85413e7e591855003b, reported no actionable code findings. Its remaining request was live proof only, intentionally skipped under the explicit maintainer policy below.Diff versus main: production +25/-24 (net +1); tests +79/-0; docs +3/-0. The additional production line supplies the coordinator-requested stable producer identity. Local test wall time is unmeasured; exact-head CI timings are recorded above.
Contributor-reported prior-head behavior evidence
At
a42af0f503cc9db765b4b0cdd7dbb87385575de9, the contributor reportednode dist/index.js plugins enable githubwith isolated existing state and a live maintenance holder: refusal included the reason, and retry succeeded after the holder released ownership. This remains prior-head contributor evidence, not a fresh maintainer run.