mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-30 22:12:32 +08:00
perf(doctor): skip redundant plugin legacy rescans
This commit is contained in:
@@ -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}`),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user