fix(list_files): report when directory entries are truncated
Đá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
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
- Đọ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 rasbt/mini-coding-agent
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
rasbt/mini-coding-agent#16 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
rasbt/mini-coding-agent#15 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rasbt/mini-coding-agent#14 · 2 reaction ·
Tất cả issue của rasbt/mini-coding-agent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Negation with "not" and "no" is ignored during sentiment analysisCó thể đã có người làm @vivek-3728 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
techcsispit/mess-mood#11 · 1 bình luận ·
-
changelog investigate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ramnes/notion-sdk-py#408 ·
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
btclib-org/btclib-wallet#267 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
knnmelprop/YAADO#111 ·