Repository navigation
fix(doctor): replace unavailable TUI cleanup advice - #140074
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 6, 2026, 7:58 AM ET / 11:58 UTC. ClawSweeper reviewWhat this changesDoctor replaces unsupported TUI cleanup advice with factual Gateway-pressure observations and diagnostic guidance, removes unreachable termination code, and updates documentation and regression coverage. Merge readiness⛔ Blocked before merge - 1 item remains This PR remains useful: current main and v2026.9.2 still contain the misleading cleanup advice. No actionable patch defect was found. The previous migration-proof blocker does not apply because the introduced changes do not modify persistence or repair authorization. Priority: P2 Review scores
Verification
How this fits togetherDoctor combines Gateway health with local terminal-client observations to guide operators troubleshooting WhatsApp responsiveness. Its repair mode already skips Gateway health collection during maintenance. flowchart TD
A[Doctor invocation] --> B{Repair maintenance active?}
B -->|Yes| C[Skip Gateway health collection]
B -->|No| D[Read Gateway pressure]
D --> E[Observe local terminal clients]
E --> F[Render factual advice]
F --> G[Operator inspects diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -101, Tests -48, Docs +2, Other -1. Total -148 across 10 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one shared advisory renderer that reports observed pressure, preserves the opt-in check, and directs operators to existing diagnostics without inferring causation. Do we have a high-confidence way to reproduce the issue? Yes, from source: inspection with WhatsApp enabled, degraded Gateway status, and detected TUI clients recommends cleanup that repair-mode maintenance cannot perform. No runtime reproduction was executed here. Is this the best way to solve the issue? Yes. Reusing the structured finding for the note corrects both misleading outputs while preserving existing maintenance behavior; a database migration is unrelated to this repair. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9b043a18cbb5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* commit '3ed964c8ca6206d26ecc0b6567ccd1389d9948fc': (36 commits) refactor(plugins): unify install config snapshot preparation (openclaw#140081) fix: cloud provisioning stays failed after temporary storage recovers (openclaw#140021) fix(ci): preflight job outputs exceed 1 MiB on full-plan pull requests (openclaw#140018) refactor: consolidate command and provider helpers (openclaw#140072) fix(doctor): replace unavailable TUI cleanup advice (openclaw#140074) fix(plugins): avoid scoped pack failures and missing runtime entries (openclaw#140016) fix: clarify background command timeouts (openclaw#140022) fix(workboard): refresh board navigation while retaining drafts (openclaw#139952) fix: preserve newer chat drafts when rewind completes (openclaw#140066) feat(transcripts): browse and export saved meeting archives (openclaw#139875) fix(cron): complete timeout test observation phase (openclaw#140076) fix(macos): show the full automation count (openclaw#139692) fix: native worker turns fail to load WebSocket transport (openclaw#140071) fix(cli): complete quoted Bash option values (openclaw#140034) fix(chat): show command instructions while pending (openclaw#140041) refactor(cli): use canonical resume result schema (openclaw#140056) fix: restore package acceptance across install runtimes (openclaw#140062) refactor(auto-reply): keep model-selection fixtures in tests (openclaw#140069) fix(plugins): remove owned aliases before uninstalling files (openclaw#140065) fix: completed replies hang when context-engine cleanup stalls (openclaw#140023) ...
* fix(doctor): replace unavailable TUI cleanup advice * chore: align Doctor cleanup with validation guards
Related: #134031
What Problem This Solves
Fixes an issue where operators following WhatsApp responsiveness advice were told that
doctor --fixwould stop TUI clients, although current repair mode enters maintenance and never performs that cleanup. The warning also attributed Gateway pressure to detected clients without evidence connecting them.Why This Change Was Made
The note now renders the same factual observation and diagnostic guidance as the opt-in finding. This removes the unreachable termination branch, its repair-only argument and its private test export. Maintenance, readiness and CPU thresholds are unchanged. The diagnostics docs also describe the existing persistent-degradation warning exception for idle Gateways.
The historical cleanup was reachable in v2026.8.1; v2026.8.2 and v2026.9.2 already suppress Gateway status collection during repair. This retires obsolete internal code and advice, rather than changing current repair authorization. No published SDK export or external caller depends on these helpers.
Compatibility
The automated data-model classification does not apply: this changes advisory text and removes an unreachable local process-termination helper, not database repair logic. No schema, stored representation, migration, persistence reader/writer, configuration or SDK export changes. No data migration is required. Maintained-release compatibility is checked at the existing maintenance/status boundary; historical v2026.8.1 cleanup is explicitly distinguished above.
User Impact
Doctor distinguishes observed pressure from its unknown cause and directs operators to diagnostics before deciding whether to close a client. The existing lint check ID, opt-in selection and PID observations remain available.
Evidence
d57cc2c1bc3457353bcc67b009ebbed7596e68e6passed 336 tests across five files with Node 24.19.0, pnpm 12.3.4 and frozen current dependencies: advice owner, real contribution bridge, contributions/opt-in lint, maintenance owner and real CLI parser. The wrapper verified the public source/tree against the executed source capsule. Testbox workflow (native command exit 0; lease lifecycle is separate).