From f6f8786f3edba7d4c2351d2bb618a11557327e5f Mon Sep 17 00:00:00 2001 From: AlexFucuson9 Date: Sat, 27 Jun 2026 16:41:37 +0700 Subject: [PATCH] fix(skills): resolve symlinks before relative_to in skill install Path.relative_to() does a lexical prefix check that fails when either path contains symlink components. When ~/.hermes or its skills/ dir is a symlink (common on systems where home dir is symlinked), the install succeeds but printing the relative path raises ValueError. Fix by resolving both paths before calling relative_to. Fixes #53403 --- tools/skills_hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/skills_hub.py b/tools/skills_hub.py index 76969fb8d8cee..54b488441a201 100644 --- a/tools/skills_hub.py +++ b/tools/skills_hub.py @@ -3450,7 +3450,7 @@ def install_from_quarantine( trust_level=bundle.trust_level, scan_verdict=scan_result.verdict, skill_hash=content_hash(install_dir), - install_path=str(install_dir.relative_to(SKILLS_DIR)), + install_path=str(install_dir.resolve().relative_to(SKILLS_DIR.resolve())), files=list(bundle.files.keys()), metadata=bundle.metadata, )