Skip to content

fix: doctor slows as old plugin generations accumulate - #176108

Closed
chelsealong wants to merge 2 commits into
openclaw:mainfrom
chelsealong:fix/codex-openclaw-176063
Closed

chelsealong wants to merge 2 commits into
openclaw:mainfrom
chelsealong:fix/codex-openclaw-176063

Conversation

@chelsealong

Copy link
Copy Markdown
Contributor

Closes #176063

What Problem This Solves

Doctor and post-update host-link maintenance inspect stale plugin generations, so the work grows as old generations accumulate.

User Impact

Host-link maintenance now inspects recorded managed npm installs. No migration or configuration change is required.

Why This Change Was Made

The audit and repair paths select npm roots from install records. Recovery and cleanup retain their broader discovery behavior.

Evidence

With the source fix removed, the new filesystem regression failed: the audit returned two generations instead of the one recorded generation. With the fix, the audit selects the recorded generation, repairs its host link, and leaves the stale generation unchanged.

Focused tests passed: 53 tests across five suites. Core typecheck, file-scoped lint, format, and git diff --check passed. A full openclaw doctor CLI run and wall-clock speedup measurement were not performed. The shared autoreview helper was not run because this assignment prohibits launching another agent; independent controller review is pending.

AI disclosure: generated and automatically reviewed with Codex.

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: S labels Oct 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 01d9da40804667628598524b98619d2689b52e44, but the PR head is now 5449c16b20fe639e01656262425511421e5cc92a. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-18T06:41:32.958Z sha 01d9da4 :: needs real behavior proof before merge. :: [P2] Preserve Windows path identity when selecting recorded roots | [P2] Record the updater recovery fixture's selected plugin

@chelsealong

Copy link
Copy Markdown
Contributor Author

The checks-node-changed-4 failure came from the host-link recovery fixture: it created a peer plugin but recorded no npm install, so the new root selector skipped it. I updated the fixture to persist and pass the install record. The focused suite now passes all 6 tests; targeted typecheck, lint, format, and diff checks pass. CI has not rerun on the updated head.

Commit: 5449c16

@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Oct 18, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 18, 2026
@steipete

Copy link
Copy Markdown
Contributor

Thank you @chelsealong! Doctor slowing down as plugin generations accumulate is fixed on main by #176121 (44df069): Doctor and post-update convergence now select only recorded install generations. Closing since current main already covers this; please reopen with a reproduction on a build that includes it if you still see the problem.

@steipete steipete closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations P2 Normal backlog priority with limited blast radius. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doctor/update: plugin npm-root walks enumerate stale generation trees — O(all roots) not O(active plugins); slow doctor on plugin-heavy installs

2 participants