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

fix(list_files): report when directory entries are truncated

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

@Oscar-Williams đang làm issue này rồi.

Từ ngày 27/9/2026.

  • #18 của @Oscar-Williams — đang mở

Đá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
68/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ệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Start at the tool_list_files() entry point and trace how directory entries are limited to 200. Add a regression test for a directory with more than 200 entries, then verify the output stays bounded, reports omitted entries, and supports discovering them through subsequent calls.

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

Mô tả

Problem

"tool_list_files()" limits directory results to 200 entries:

for entry in entries[:200]:

but does not indicate that additional entries were omitted.

This can cause the model to incorrectly treat a partial directory listing as a complete repository view.

Expected behavior

When the result contains more than 200 entries, the tool should explicitly report that the output was truncated and provide enough information for the agent to continue exploring.

For example:

... 200 entries shown; 137 additional entries omitted.

Alternatively, the tool could support pagination.

Acceptance criteria

  • The existing output limit remains bounded.
  • Truncation is explicitly reported.
  • The agent can discover omitted entries through subsequent calls.
  • Add a regression test for directories containing more than 200 entries.
Ngôn ngữ chính
Python
Star
1.2k
Fork
217
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: 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 rasbt/mini-coding-agent

Tất cả issue của rasbt/mini-coding-agent

Issue tương tự

Thêm issue về Python

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.