From 2626eeebe6d063198947045fc95bead1c24ed544 Mon Sep 17 00:00:00 2001 From: c9 <111218268+Ninthless@users.noreply.github.com> Date: Sun, 7 Jun 2026 17:57:37 +0800 Subject: [PATCH] fix: normalize path separators in scan_dir_recursive for Windows (#3430) On Windows, Path::strip_prefix produces backslash-separated relative paths. The update-check matching logic uses rsplit('/') to extract the install name, so subdirectory skills (e.g. skills/my-skill) never matched and updates were silently skipped. Replace backslashes with forward slashes when building the directory string. --- src-tauri/src/services/skill.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/services/skill.rs b/src-tauri/src/services/skill.rs index bb1507e27..0e90e7bb7 100644 --- a/src-tauri/src/services/skill.rs +++ b/src-tauri/src/services/skill.rs @@ -1964,7 +1964,7 @@ impl SkillService { .strip_prefix(base_dir) .unwrap_or(current_dir) .to_string_lossy() - .to_string() + .replace('\\', "/") }; let doc_path = skill_md