[bug] bl skill add installs paths exceeding Windows MAX_PATH (259 chars), breaking the host agent's entire skill library
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
The issue is in the skill installation path generation logic, likely in the code that handles the bailian-docs-llm-wiki skill's raw doc tree. Look at the bl skill add command implementation and the skill packaging/unpacking process. Focus on Windows path length checks and the concatenation of parent and child slugs. Test by installing the skill and verifying the generated directory paths against MAX_PATH. The fix should ensure paths stay under 260 characters, possibly by truncating/hashing long slugs or using the \\?\ prefix.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
- CLI: bl 2.0.1
- Skill: bailian-docs-llm-wiki (registry
publishedAt: 2026-09-23T04:37:22+08:00) - Node: v24.14.1
- OS: Windows 11 (NTFS), no long-path opt-in (
LongPathsEnablednot set) - Region: cn (cn-beijing)
Reproduce
# 1) install (or let any `bl` command auto-sync the skill family)
bl skill add --name bailian-docs-llm-wiki
# 2) from the host agent that owns <agent-skills-dir>, walk the installed tree
python -c "import os; os.listdir(r'C:\Users\<user>\.hermes\skills\bailian-docs-llm-wiki\raw\application-user-guide\application-gallery\official-application-lingque-ccai-dialogue-analysis-aio\api-reference-2\api-contactcenterai-2024-06-03-dir\api-contactcenterai-2024-06-03-dir-hot-word-management')"
Expected
bl skill add installs bailian-docs-llm-wiki into the detected agent skill directories; the host agent can enumerate / load them normally.
Actual
The installed tree contains directories whose full path is 259 characters long (Windows MAX_PATH = 260, and the install does not use a \\?\ prefix). os.path.exists() on the directory itself returns True, but any child entry exceeds the limit, so traversal raises:
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'C:\Users\<user>\.hermes\skills\bailian-docs-llm-wiki\raw\application-user-guide\application-gallery\official-application-lingque-ccai-dialogue-analysis-aio\api-reference-2\api-contactcenterai-2024-06-03-dir\api-contactcenterai-2024-06-03-dir-hot-word-management'
Impact: the host agent's skill loader walks its skills directory on every skill operation (list / view / manage). One over-long path therefore takes down the entire skill library — not just this skill — until bailian-docs-llm-wiki is removed. Measured on this machine: 35 MB / 2,776 files; the deepest directory name is generated by concatenating the parent slug (api-contactcenterai-2024-06-03-dir- + hot-word-management).
Deterministic: reproduced on repeated installs; bl skill remove --name bailian-docs-llm-wiki (removed 59 symlinks) restores the host agent immediately.
Suggested fix
- Cap the generated segment length / total depth for the
raw/doc tree ofbailian-docs-llm-wiki(e.g. truncate and hash long slugs instead of concatenating parent+child slugs), or - Flatten deeply nested doc dirs when packaging the skill, or
- Create files with the
\\?\long-path prefix (and/or warn) on Windows, or - Skip / slim this doc-heavy skill by default on Windows.
Already tried
bl skill update/bl skill list— same install shape (auto-sync on an ordinarybl auth statusre-installed it)bl skill remove --name bailian-docs-llm-wiki→ problem disappears
Notes
- Frequency: always (deterministic on Windows)
- Invoked via: terminal + agent (Hermes Agent on Windows 11)
- Nothing else in the bailian-* family triggers this: only
bailian-docs-llm-wikireaches the 260 boundary
- Ngôn ngữ chính
- TypeScript
- Star
- 333
- Fork
- 28
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 38
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelstudioai/cli
-
[bug] bl update: darwin-arm64 binary ships invalid ad-hoc signature, killed by macOS (Killed: 9) Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
modelstudioai/cli#223 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
modelstudioai/cli#225 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
modelstudioai/cli#211 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
modelstudioai/cli#202 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 63/100
modelstudioai/cli#200 · 1 bình luận ·
Tất cả issue của modelstudioai/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·