mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 13:11:40 +00:00
fix: copy SKILL.md as hard copy in dist-runtime to prevent realpath security check failure (#64166)
SKILL.md files were created as symlinks pointing to dist/, causing realpathSync() in resolveContainedSkillPath to resolve outside the dist-runtime/ directory. The security check then rejected the path, resulting in all 23 plugin skills being skipped at load time. Add SKILL.md to the shouldCopyRuntimeFile whitelist so it gets a hard copy instead of a symlink, matching the existing behavior for package.json and plugin.json files. Fixes #64138
This commit is contained in:
@@ -79,7 +79,8 @@ function shouldCopyRuntimeFile(sourcePath) {
|
||||
relativePath.endsWith("/openclaw.plugin.json") ||
|
||||
relativePath.endsWith("/.codex-plugin/plugin.json") ||
|
||||
relativePath.endsWith("/.claude-plugin/plugin.json") ||
|
||||
relativePath.endsWith("/.cursor-plugin/plugin.json")
|
||||
relativePath.endsWith("/.cursor-plugin/plugin.json") ||
|
||||
relativePath.endsWith("/SKILL.md")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user