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

Sessions can clear a remembered conversation's working mark

Đang mở
#1,483 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
76/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

Start at internal/tui3/place_sessions.go:373-385 and follow tasksPlace.filtered, then inspect the row consumer in internal/tui3/tasksplace.go:755. Reproduce the filtered-reading fixture with a saved working conversation and another window's live task. Done means the unit and two-window e2e cases keep the row working, with the Sessions manual updated and the former false mark 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 #1426; not introduced by it.

What happened

When this window has no watcher for a remembered conversation, the Sessions place rebuilds chatViews from this window's tab list and calls homeChatState. That call can return working: false, overwriting the saved working state even while another window's task is running. The row then looks idle until a later refresh restores the work reading.

Replication

Deterministic (no model). Seed a Sessions reading with a saved conversation marked working and a live task owned by another window. Give the current app a tab for that conversation but no local watcher, then call tasksPlace.filtered. Inspect r.chatViews[transcript].working: today it is false. A same-window watcher is the control.

Where

internal/tui3/place_sessions.go:373 at dev@debffabf6, tasksPlace.filtered, recreates chatViews; :385 substitutes homeChatState for the saved state. The row painter consumes that value in internal/tui3/tasksplace.go:755.

The fix

Combine live local state with the remembered and cross-window work reading, preserving true until the underlying task has actually settled.

Acceptance

  • e2e: two codeaf chat windows viewing the same home keep the Sessions row marked working while one window's task runs and the other has no watcher.
  • Unit: the filtered-reading fixture above preserves working: true.
  • Update the Sessions manual and record the former false mark 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.