Repository navigation
fix(doctor): ignore channel metadata during plugin repair - #120891
Merged
steipete merged 2 commits intoAug 9, 2026
Merged
Conversation
steipete
marked this pull request as ready for review
August 9, 2026 04:46
Contributor
Author
|
Land-ready proof for
Only gap: no live operator run. That is unnecessary for this internal deterministic Doctor refactor; it changes no external API and has focused migration coverage plus exact-head CI. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 10, 2026
…20891) * fix(doctor): ignore channel metadata during plugin repair * test(doctor): avoid unsafe optional chain
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where Doctor flows could treat
channels.modelByChanneland blank channel keys as configured channel/plugin IDs. That could trigger incorrect plugin discovery, migration, warning, or repair behavior, while duplicated helper forks continued to drift across Doctor paths.Why This Change Was Made
Centralizes channel-ID policy behind one options-based Doctor helper while preserving each caller's activation rules, reuses the canonical lexical path-containment predicate, collapses the three legacy web-tool migrations into one plan-driven owner, and shares runtime model-policy normalization. Obsolete duplicate implementations and tests are removed instead of retained as compatibility shims.
User Impact
Doctor and release-repair flows no longer mistake channel metadata for a plugin. Existing disabled-channel, environment-presence, migration, path-safety, and runtime-policy behavior remains covered, with substantially less duplicate production code.
Evidence
node --max-old-space-size=8192 --import tsx scripts/generate-plugin-sdk-api-baseline.ts --checkpassed with the baseline unchanged.check:changedproof. Core-test typecheck passed after three fixture typing corrections withnode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core-test.tsbuildinfo.check:changedrun originally exposed the SDK-boundary and test-type issues; those findings were fixed, and the exact failed lanes then passed.git diff --check, dead-export scan, deprecated API checks, plugin boundary checks, and package patch checks passed.AI-assisted: implementation and review used coding agents; the maintainer verified the diff and proof.