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(core): grep skip counts/reasons not surfaced to caller or user

Đang mở
#1,139 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/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ệ
typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Đọc packages/core/src/ripgrep.ts và packages/opencode/src/tool/grep.ts, theo dõi cách grep() tính skipped và cách Match[] đến được bên gọi tool. Quyết định cách số lượng bị bỏ qua và bất kỳ mẫu lý do nào cần đi qua ranh giới này, sau đó đảm bảo rằng số lượng bị bỏ qua khác không sẽ tạo ra một ghi chú một dòng để bên gọi và người dùng có thể thấy các kết quả một phần.

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

Mô tả

bug

Found during v0.9.7 release review (End User persona), building on the ripgrep record-isolation fix in ca9b34a523 (#1094).

grep() in packages/core/src/ripgrep.ts computes a skipped tally for a single aggregate Effect.logWarning, but the return value consumed by packages/opencode/src/tool/grep.ts is just Match[] — the skip count/reasons never reach the tool caller or the user.

Risk: a tree with many corrupted/oversized/non-UTF-8 files (or a systematic issue) now returns a partial result that reads exactly like an honest 'no matches' to both agent and user, with the only trace in a debug log almost nobody opens. This is the same class of silent-data-loss bug #1094 was written to fix, just one layer further out.

Suggested fix: thread the skip count (and maybe a sample of skip reasons) through to the tool result, surfaced as a one-line note when non-zero (e.g. 'N records skipped due to encoding/size issues').

Ngôn ngữ chính
TypeScript
Star
813
Fork
134
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
64

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

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 AltimateAI/altimate-code

Tất cả issue của AltimateAI/altimate-code

Issue tương tự

Thêm issue về TypeScript

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.