Editing a symlinked SKILL.md never refreshes its imported shelf entry
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- cli, documentation, testing
Hướng nghiên cứu
Read #1410 alongside internal/skills/skills.go:277 and internal/resident/skills.go:226, then trace ReconcileImportedSkills at :715. Add the linked-file case to an internal/resident test and run the relevant tests. Done means the chosen safe policy is consistent for reading and digesting, nonregular targets cannot block discovery, use-skill.md is aligned, and invalidates records the behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found on santos/dev2 at 008363c98 (#1410). It reaches dev when #1410 merges.
What happened
A skill folder containing a SKILL.md symlink to a regular file loads through the link. Its import digest omits that link, so changing the target leaves the active shelf fact unchanged at the next launch. The manual says an edited SKILL.md is read again. Linked folders are already handled at this head and are outside this issue.
Replication
Deterministic (no model). In an internal/resident test, create a valid skill file outside a skill folder, link the folder's SKILL.md to it, call ReconcileImportedSkills, edit the target text, and call reconciliation again. Compare the active fact's digest and description. Today they remain the first version. A regular-file control refreshes.
Field (real models). On a fresh home, attach that skill in codeaf chat, edit its target, relaunch, and ask a question that distinguishes the two bodies. Allow OPENROUTER_API_KEY, deepseek/deepseek-v4-flash, about a minute and a small charge.
Where
internal/skills/skills.go:277, readSkillFile, follows the link. internal/resident/skills.go:226, contentDigest, skips its nonregular directory entry; ReconcileImportedSkills compares that digest at :715. The contrary manual promise is in internal/manual/chat/use-skill.md.
The fix
Choose one link policy together with the launch-hang fix being made on #1410 (a committed SKILL.md or .claude/settings.json that links to /dev/tty or a FIFO blocks launch): either safely follow regular targets in both reading and digesting, or reject linked files in both. This issue covers the digest half of that policy.
Acceptance
- e2e: relaunching
codeaf chatafter a target edit uses the new skill body, or consistently reports that the linked file is unsupported. - Unit: a linked file and a regular file follow the same chosen policy, while a link to a nonregular target cannot block discovery.
- Align
use-skill.mdand record the changed behavior ininvalidates.
- Ngôn ngữ chính
- Go
- Star
- 115
- Fork
- 14
- Merge trung bình
- 9 giờ 38 phút
- Pull request đã merge (30 ngày)
- 749
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Agent-Field/CodeAF
-
area:chat feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1510 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Agent-Field/CodeAF#1489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug good first issue sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Agent-Field/CodeAF#1470 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug good first issue sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Agent-Field/CodeAF#1469 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1468 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Agent-Field/CodeAF
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove obsolete ipAllocationPolicy field from containernodepool-subnetworkref test dependencyĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
GoogleCloudPlatform/k8s-config-connector#13462 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
coder/coder#29955 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/TypeScript#64453 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenAI-compatible endpoint: response ids have only 999 possible values (chatcmpl-rand.Intn(999))Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày