fix: reading skills on Windows (#6490)

There is an issue with reading the skill directory on the Windows system, which results in a high probability of files under the skill directory being unrecognizable, now fix it.
This commit is contained in:
linzhengtian
2026-03-17 15:12:02 +08:00
committed by GitHub
parent 3dcdb8b29c
commit 26d69c96d1
+1 -1
View File
@@ -136,7 +136,7 @@ def _build_skill_read_command_example(path: str) -> str:
return f"cat {path}"
if _is_windows_prompt_path(path):
command = "type"
path_arg = f'"{path}"'
path_arg = f'"{os.path.normpath(path)}"'
else:
command = "cat"
path_arg = shlex.quote(path)