mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 04:48:15 +00:00
perf(doctor): skip redundant plugin legacy rescans
This commit is contained in:
parent
6b2d418973
commit
3362cccc20
1 changed files with 10 additions and 7 deletions
|
|
@ -58,13 +58,16 @@ export async function loadAndMaybeMigrateDoctorConfig(params: {
|
|||
doctorFixCommand,
|
||||
});
|
||||
({ cfg, candidate, pendingChanges, fixHints } = legacyStep.state);
|
||||
const pluginLegacyIssues = findLegacyConfigIssues(
|
||||
snapshot.parsed,
|
||||
snapshot.parsed,
|
||||
listPluginDoctorLegacyConfigRules({
|
||||
pluginIds: collectRelevantDoctorPluginIds(snapshot.parsed),
|
||||
}),
|
||||
);
|
||||
const pluginLegacyIssues =
|
||||
snapshot.parsed === snapshot.sourceConfig
|
||||
? []
|
||||
: findLegacyConfigIssues(
|
||||
snapshot.parsed,
|
||||
snapshot.parsed,
|
||||
listPluginDoctorLegacyConfigRules({
|
||||
pluginIds: collectRelevantDoctorPluginIds(snapshot.parsed),
|
||||
}),
|
||||
);
|
||||
const seenLegacyIssues = new Set(
|
||||
snapshot.legacyIssues.map((issue) => `${issue.path}:${issue.message}`),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue