惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
V
Visual Studio Blog
C
Check Point Blog
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
量子位
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
M
MIT News - Artificial intelligence
爱范儿
爱范儿
B
Blog RSS Feed
MyScale Blog
MyScale Blog
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
L
LangChain Blog
D
Docker

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor(doctor): dedupe missing skill summaries · opencl...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -17,6 +17,26 @@ export function collectUnavailableAgentSkills(report: SkillStatusReport): SkillS

1717

);

1818

}

1919
20+

export function formatMissingSkillSummary(skill: SkillStatusEntry): string {

21+

const missing: string[] = [];

22+

if (skill.missing.bins.length > 0) {

23+

missing.push(`bins: ${skill.missing.bins.join(", ")}`);

24+

}

25+

if (skill.missing.anyBins.length > 0) {

26+

missing.push(`any bins: ${skill.missing.anyBins.join(", ")}`);

27+

}

28+

if (skill.missing.env.length > 0) {

29+

missing.push(`env: ${skill.missing.env.join(", ")}`);

30+

}

31+

if (skill.missing.config.length > 0) {

32+

missing.push(`config: ${skill.missing.config.join(", ")}`);

33+

}

34+

if (skill.missing.os.length > 0) {

35+

missing.push(`os: ${skill.missing.os.join(", ")}`);

36+

}

37+

return missing.join("; ") || "unknown requirement";

38+

}

39+
2040

/** Disables unavailable skills in config while preserving existing skill entries. */

2141

export function disableUnavailableSkillsInConfig(

2242

config: OpenClawConfig,

Original file line numberDiff line numberDiff line change

@@ -16,33 +16,14 @@ import type { DoctorPrompter } from "./doctor-prompter.js";

1616

import {

1717

collectUnavailableAgentSkills,

1818

disableUnavailableSkillsInConfig,

19+

formatMissingSkillSummary,

1920

} from "./doctor-skills-core.js";

2021
2122

export {

2223

collectUnavailableAgentSkills,

2324

disableUnavailableSkillsInConfig,

2425

} from "./doctor-skills-core.js";

2526
26-

function formatMissingSummary(skill: SkillStatusEntry): string {

27-

const missing: string[] = [];

28-

if (skill.missing.bins.length > 0) {

29-

missing.push(`bins: ${skill.missing.bins.join(", ")}`);

30-

}

31-

if (skill.missing.anyBins.length > 0) {

32-

missing.push(`any bins: ${skill.missing.anyBins.join(", ")}`);

33-

}

34-

if (skill.missing.env.length > 0) {

35-

missing.push(`env: ${skill.missing.env.join(", ")}`);

36-

}

37-

if (skill.missing.config.length > 0) {

38-

missing.push(`config: ${skill.missing.config.join(", ")}`);

39-

}

40-

if (skill.missing.os.length > 0) {

41-

missing.push(`os: ${skill.missing.os.join(", ")}`);

42-

}

43-

return missing.join("; ") || "unknown requirement";

44-

}

45-
4627

function formatInstallHints(skill: SkillStatusEntry): string[] {

4728

if (skill.install.length === 0) {

4829

return [];

@@ -93,7 +74,7 @@ export function formatUnavailableSkillDoctorLines(skills: SkillStatusEntry[]): s

9374

"Some skills are allowed for this agent but are not usable in the current runtime environment.",

9475

];

9576

for (const skill of skills) {

96-

lines.push(`- ${skill.name}: ${formatMissingSummary(skill)}`);

77+

lines.push(`- ${skill.name}: ${formatMissingSkillSummary(skill)}`);

9778

lines.push(...formatInstallHints(skill));

9879

}

9980

lines.push(`Disable unused skills: ${formatCliCommand("openclaw doctor --fix")}`);

Original file line numberDiff line numberDiff line change

@@ -13,7 +13,10 @@ import {

1313

shellCompletionStatusToHealthFindings,

1414

shellCompletionStatusToRepairEffects,

1515

} from "../commands/doctor-completion.js";

16-

import { disableUnavailableSkillsInConfig } from "../commands/doctor-skills-core.js";

16+

import {

17+

disableUnavailableSkillsInConfig,

18+

formatMissingSkillSummary,

19+

} from "../commands/doctor-skills-core.js";

1720

import {

1821

detectUiProtocolFreshnessIssues,

1922

uiProtocolFreshnessIssueToHealthFinding,

@@ -993,23 +996,3 @@ export function createCoreHealthChecks(

993996

}

994997
995998

export const CORE_HEALTH_CHECKS: readonly HealthCheck[] = createCoreHealthChecks();

996-
997-

function formatMissingSkillSummary(skill: SkillStatusEntry): string {

998-

const missing: string[] = [];

999-

if (skill.missing.bins.length > 0) {

1000-

missing.push(`bins: ${skill.missing.bins.join(", ")}`);

1001-

}

1002-

if (skill.missing.anyBins.length > 0) {

1003-

missing.push(`any bins: ${skill.missing.anyBins.join(", ")}`);

1004-

}

1005-

if (skill.missing.env.length > 0) {

1006-

missing.push(`env: ${skill.missing.env.join(", ")}`);

1007-

}

1008-

if (skill.missing.config.length > 0) {

1009-

missing.push(`config: ${skill.missing.config.join(", ")}`);

1010-

}

1011-

if (skill.missing.os.length > 0) {

1012-

missing.push(`os: ${skill.missing.os.join(", ")}`);

1013-

}

1014-

return missing.join("; ") || "unknown requirement";

1015-

}