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

tasks: a landing refusal names an untracked file the task never touched as a clash

Đang mở Phù hợp với người mới
#1,779 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/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ệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Tìm your own uncommitted work in trong internal/session và lần theo cách lời từ chối khi landing xác định những đường dẫn cần nêu. Thêm một kiểm thử landing có tính xác định cho một commit mang theo các thay đổi, chứa một tệp chưa được theo dõi và một chỉnh sửa đối với tệp đã được theo dõi, trong khi task chỉ thay đổi tệp đã được theo dõi. Hoàn tất khi lời từ chối nêu strutil.go nhưng không nêu mine.txt.

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

Mô tả

area:session bug sev:papercut

What happened

2026-10-05, staging-20261005-7e30335645c8 (no code change from dev@f81638787). Found in the v0.7.1 staging happy-path pass.

The repository was on branch work. It had an uncommitted edit to strutil.go and an untracked mine.txt. A /task changed strutil.go and strutil_test.go, and its landing was refused, correctly, with:

did not merge cleanly and was kept: your own uncommitted work in strutil.go, mine.txt is in the same files, so your tree was left exactly as it was

The task never touched mine.txt. That file was only carried into the "world this task started from" commit at the base of the task's branch. The sentence names it as a clash anyway, so the person goes looking for a conflict in a file that has none. Nothing was lost; the tree was verified unchanged by shasum.

Replication

Deterministic (no model). A landing test whose task branch starts with the carried-changes commit (an untracked file plus an edit to a tracked file) and whose work changes only the tracked file. Assert that the refusal names only the tracked file.

Field. OPENROUTER_API_KEY:

  1. In a repository on work with strutil.go committed, add an untracked mine.txt and append a comment to strutil.go.
  2. /task add a Reverse function with a table test to strutil.go.
  3. Expand the landing card.

Cost is about $0.05.

Where

The landing refusal that builds your own uncommitted work in … (search that string in internal/session). It appears to list every path in the carried-changes commit rather than the intersection with the paths the task's own commits changed.

The fix

The sentence names only files that both the person's uncommitted work and the task's own changes touched: here strutil.go.

Acceptance

  • Unit: the refusal for the case above names strutil.go and not mine.txt.
Ngôn ngữ chính
Go
Star
115
Fork
14
Merge trung bình
9 giờ 3 phút
Pull request đã merge (30 ngày)
517

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.