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 task-ground comment wrongly says a branch carries only HEAD

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

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
78/100
Loại issue
Tài liệu
Độ 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

Start with the comment at internal/session/task_run.go:8308 and snapshotRung in internal/session/groundladder.go:789, then run the existing grounded-task fixture with dirty tracked and untracked files. Update the comment and manual to explain the repository ground and the later landing step, and add the stated e2e or structural protection while recording the assumption in invalidates.

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

Mô tả

area:session bug hygiene sev:papercut

Found on santos/dev2 at 008363c98 (#1410). On dev@debffabf6 too.

What happened

The source comment WHAT THE BRANCH CARRIES IS HEAD AND NOTHING ELSE is false for repository grounds. snapshotRung carries uncommitted and untracked files into the task copy. The stale comment led a reviewer to deny behavior the manual correctly describes.

Replication

Deterministic (no model). Read cutTaskWorktree's comment, then run the existing grounded-task fixture with a modified tracked file and an untracked file before carving. Inspect the copy: both are present. git grep -n 'WHAT THE BRANCH CARRIES' origin/dev -- internal/session/task_run.go finds the same comment on dev.

Where

internal/session/task_run.go:8308 at 008363c98 contains the claim; internal/session/groundladder.go:789 carries the snapshot. On dev, the comment is at internal/session/task_run.go:8301.

The fix

Describe what the repository ground actually contributes to the branch and name the separate step that later lifts inherited work out of a landing.

Acceptance

  • e2e: a grounded /task begun with a dirty tracked file and an untracked file sees both in its copy while leaving the person's edits uncommitted.
  • Unit: a structural comment check or grounded-task assertion protects the corrected account.
  • Keep the manual consistent and record the corrected assumption in 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)
730

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.