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 Home project underline can stay on the wrong row after navigation

Đang mở
#1,477 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
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, testing-qa

Hướng nghiên cứu

Start in internal/tui3/home.go around projectHover at line 615 and its pointer reset near line 4300, then inspect the row draw in internal/tui3/homecell.go:499. Run make demo-home to reproduce the stale underline while navigating and rebuilding Home. Done means keyboard movement and rebuilds cannot leave an old index underlining another project, with e2e and unit coverage and the former cue recorded in invalidates.

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

Mô tả

area:chat bug sev:papercut

Seen on dev@debffabf6. Surfaced while verifying #1422; introduced by it.

What happened

A hovered project's underline can remain while the keyboard moves through conversations. projectHover stores a line index and is updated on pointer movement, but Home rebuilds its lines without clearing or rebinding that index. After a rebuild the underline can appear on a different project until the pointer moves. Clicking still acts on the correct hit row; the defect is the stale visual cue.

Replication

Deterministic (no model). Run make demo-home, hover one project name on Home, then use the arrow keys to change the conversation selection without moving the pointer. Observe the underline persisting. Trigger a Home list rebuild, such as a search or project refresh, and observe that the old index can underline a different project.

Where

internal/tui3/home.go:615 at dev@debffabf6 defines projectHover as an index; :4300 resets it only during pointer handling. The row draw checks that index in internal/tui3/homecell.go:499.

The fix

Clear project hover on keyboard movement and on line rebuild, or track the hovered project's stable identity and revalidate it against the painted frame.

Acceptance

  • e2e: keyboard navigation and Home rebuilds remove or correctly relocate the underline before further pointer movement.
  • Unit: a hover-then-rebuild test cannot underline another project by the old line index.
  • Record the former stale cue 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.