fix(doctor): handle unknown tool profiles in preview warnings · openclaw/openclaw@541f7ff
openclaw
·
2026-06-23
·
via Recent Commits to openclaw:main
Skip to content
Navigation Menu
Saved searches
Use saved searches to filter your results more quickly
Sign up
Commit 541f7ff
fix(doctor): handle unknown tool profiles in preview warnings
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
src/commands/doctor/shared
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -347,6 +347,9 @@ function collectUncoveredConfiguredToolSectionGrantEntries(
|
347 | 347 | configuredEntries: ConfiguredToolSectionGrantEntry[], |
348 | 348 | profilePolicy: ToolPolicyConfig | undefined, |
349 | 349 | ): ConfiguredToolSectionGrantEntry[] { |
| 350 | +if (!profilePolicy) { |
| 351 | +return []; |
| 352 | +} |
350 | 353 | return configuredEntries |
351 | 354 | .map((entry) => ({ |
352 | 355 | ...entry, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
0 commit comments