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

[Bug]: Add to agent silently discards an earlier unsent PR diff question

Đã đóng
#14,637 1 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
84/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ệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với phần chuyển giao cho composer trong apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx và logic thay thế trong apps/web/src/components/pullRequest/pullRequestDetail.logic.ts. Đọc test liên quan trong apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts, sau đó cập nhật coverage để các hành động Add to agent lặp lại vẫn giữ các câu hỏi và trích dẫn dòng chưa được gửi trước đó.

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

Mô tả

enhancement via-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. In a thread linked to a PR, open its Code tab.
  2. Select a diff line, enter a question, and click Add to agent. Do not send the composer.
  3. Repeat on a different line with a second question.
  4. Inspect the composer.
Expected behavior

I expected Add to agent to keep both unsent questions and their line citations.

Actual behavior

After the second action, only its line citation remains. The first unedited question is also replaced. The public [composer handoff](https://github.com/pingdotgg/t3code/blob/451afcb22d93f06cb24f9bc16703404564952553/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx#L1074-L1100) uses [replacement logic](https://github.com/pingdotgg/t3code/blob/451afcb22d93f06cb24f9bc16703404564952553/apps/web/src/components/pullRequest/pullRequestDetail.logic.ts#L659-L721), and its [test](https://github.com/pingdotgg/t3code/blob/451afcb22d93f06cb24f9bc16703404564952553/apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts#L1209-L1215) expects the earlier citation to be removed.

Impact

Cosmetic issue

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
4 giờ 17 phút
Pull request đã merge (30 ngày)
487

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

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.