Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

A linked skill folder can make chat hash an entire repository at launch

Đang mở
#1,461 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
48/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, performance

Hướng nghiên cứu

Start with internal/resident/skills.go at contentDigest and line 705, then inspect internal/tui3/skillpick.go:515. Reproduce the linked-folder case by calling skills.Discover and ReconcileImportedSkills, counting files passed through contentDigest, and reopening /skill. Done means bounded chat and picker work, unrelated root files are excluded from the digest, and the boundary is documented in the skills manual and invalidates.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:chat area:session bug sev:papercut

Found on santos/dev2 at 008363c98 (#1410). It reaches dev when #1410 merges.

What happened

Discovery follows linked skill folders, while import digesting walks every regular file beneath a resolved folder. A committed .agents/skills/x -> .. link and a valid root SKILL.md make the digest cover the repository. /skill also reruns discovery on the update loop. The path is confirmed by reading the code; no slow launch was measured in the small hand setup.

Replication

Deterministic (no model). In a throwaway Git repository, write a root SKILL.md, make .agents/skills/x link to .., and add many regular files under the root. Call skills.Discover and ReconcileImportedSkills from internal/resident; count files passed through contentDigest. The count grows with unrelated repository files. Open /skill again and observe another discovery pass.

Where

internal/resident/skills.go:226, contentDigest, walks all regular files; :705 resolves a linked folder before digesting. internal/tui3/skillpick.go:515, discoveredSkills, scans on picker updates.

The fix

Bound imported-skill content to the skill's allowed folder and files, and cache or schedule picker discovery so an update cannot repeatedly walk a large tree.

Acceptance

  • e2e: codeaf chat and /skill in the linked fixture finish within a bounded time as unrelated files are added, while still listing the valid skill.
  • Unit: the digest does not include unrelated root files through a linked folder.
  • State the link boundary in the skills manual and invalidates.
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Agent-Field/CodeAF

Tất cả issue của Agent-Field/CodeAF

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.