Repository navigation
fix(doctor): explain Codex plugin health failures - #144813
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 11, 2026, 6:19 AM ET / 10:19 UTC (Revision 2). ClawSweeper reviewWhat this changesDoctor distinguishes missing, untrusted, unloadable, and incomplete Codex plugin health checks with actionable guidance, and update snapshot errors use clearer wording. Merge readiness⛔ Blocked before merge - 1 item remains No actionable findings. The diagnostic improvement remains useful, and source inspection supports the discussion’s dismissal of the previous migration blocker: this patch changes no stored state or upgrade policy. Priority: P3 Review scores
Verification
How this fits togetherDoctor uses configured runtime and plugin metadata to register health checks. This change explains registration failures before those checks run, while preserving plugin selection and trust requirements. flowchart TD
A[Configured runtime] --> B[Selected plugin metadata]
B --> C{Present and trusted?}
C -->|No| F[Actionable diagnostic]
C -->|Yes| D{Health capability declared?}
D -->|Yes| E[Load and validate health API]
D -->|No| G[Continue other checks]
E -->|Valid| H[Register health checks]
E -->|Failure| F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +22, Tests +2. Total +24 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep actionable diagnostics at the existing health-registration owner while retaining selected-plugin trust, capability compatibility, and underlying error causes. Do we have a high-confidence way to reproduce the issue? Yes, from source: Doctor registration on current main emits the same installation advice for missing and untrusted selected plugins and exposes raw API failures. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. The patch improves errors where the failure is identified, reuses existing inspection and triage commands, and leaves plugin selection, trust, and compatibility behavior intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 441435b5066c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Maintainer disposition of the data-model flag at head 3bb292e: not applicable. The two snapshot files change error text only, and the Doctor registration change preserves selected-owner trust and capability behavior without altering any schema or stored state; the patch distinguishes a missing plugin from an untrusted selected one at @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Preserve the reviewed harness while incorporating the landed benchmark prerequisite. Punchcard-Session: coral-orchard-orchard-d4 * commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits) fix(perf): isolate benchmark subprocess transport (#144159) refactor(auth): await Copilot cache persistence (#144810) refactor(web-fetch): exercise URL normalization through the public tool (#144887) fix(ollama): preserve hosted subdomain model context (#144891) fix(doctor): explain Codex plugin health failures (#144813) fix(channels): honor pinned accounts in Mattermost model menus (#144880) fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729) fix(logging): preserve OpenClaw package references in diagnostics (#144808) fix: retain plugin detail tab selections while inspection loads (#144647) fix: keep discovered models when sign-in tokens renew (#144861) fix(update): preserve local package overrides (#89985) fix(update): resolve compatibility bridges within the runtime graph (#144831) chore(i18n): refresh native locales (#144856) fix: preserve child signal termination during CLI respawn (#144838) fix(text): hide encoded MiniMax tool envelopes (#126307) fix(subagents): deliver child replies that match the empty placeholder (#130647) fix(cli): reject blank message channel selectors (#144802) fix(telegram): preserve mixed text order and pending stop (#144839) fix(memory): restore FTS fallback for same-name view collisions (#144783) chore(release): close out 2026.9.4 on main (#144708) ...
What Problem This Solves
Codex Doctor reported the same installation command when the plugin was missing or its selected source was untrusted. Broken health APIs could instead expose an implementation error.
Why This Change Was Made
Distinguish missing plugins, unverified sources, unloadable health APIs, and incomplete health checks. Each failure gives an appropriate installation or inspection command and repair guidance. Preserve trust enforcement and underlying causes. Update snapshot failures also use plain update terminology.
The reported old-updater failure was reproduced against
853d0c0: its snapshot projector changed bundled plugin ownership to an untrusted global copy and selected the old payload. The producer fix is already on main in #143190, including the reported target6aab56d5; this PR improves diagnosis without adding another projection path.User Impact
Doctor explains why the selected Codex plugin cannot provide health checks, instead of incorrectly treating every failure as a missing installation.
Evidence
git diff --checkpassed.Related: #144808 preserves public package names; #144811 surfaces the health error once in update output.