fix(skills): warn when bundled dir missing

This commit is contained in:
Gustavo Madeira Santana
2026-02-03 14:01:40 -05:00
parent 5935c4d23d
commit f60eae83fa
2 changed files with 11 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ Docs: https://docs.openclaw.ai
- Onboarding: keep TUI flow exclusive (skip completion prompt + background Web UI seed); completion prompt now handled by install/update.
- TUI: block onboarding output while TUI is active and restore terminal state on exit.
- CLI/Zsh completion: cache scripts in state dir and escape option descriptions to avoid invalid option errors.
- fix(ui): resolve Control UI asset path correctly.
- Docs: finish renaming the QMD memory docs to reference the OpenClaw state dir.
- Tests: stub SSRF DNS pinning in web auto-reply + Gemini video coverage. (#6619) Thanks @joshp123.

View File

@@ -1,6 +1,10 @@
import { loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
import { createSubsystemLogger } from "../../logging/subsystem.js";
import { resolveBundledSkillsDir, type BundledSkillsResolveOptions } from "./bundled-dir.js";
const skillsLogger = createSubsystemLogger("skills");
let hasWarnedMissingBundledDir = false;
export type BundledSkillsContext = {
dir?: string;
names: Set<string>;
@@ -12,6 +16,12 @@ export function resolveBundledSkillsContext(
const dir = resolveBundledSkillsDir(opts);
const names = new Set<string>();
if (!dir) {
if (!hasWarnedMissingBundledDir) {
hasWarnedMissingBundledDir = true;
skillsLogger.warn(
"Bundled skills directory could not be resolved; built-in skills may be missing.",
);
}
return { dir, names };
}
const result = loadSkillsFromDir({ dir, source: "openclaw-bundled" });