[Bug]: Waiting strip shows no timer for a Claude background command, because the task id does not match the turn item

Đang mở Phù hợp với người mới
#28,899 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
68/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ệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ apps/web/src/components/chat/ThreadActivityBanners.tsx, nơi phép tra cứu so sánh (candidate.nativeItemRef?.nativeId || candidate.id) với task.taskId và vì thế không tìm thấy mục nào cho id của shell chạy nền. Hãy kiểm tra mối quan hệ giữa taskId của nhà cung cấp và nativeItemRef.nativeId của mục lượt đối với các lệnh Bash chạy nền. Sau đó, làm cho banner xác định đúng mục tương ứng để startedAtMs được đặt. Hoàn thành khi dải chờ hiển thị bộ đếm thời gian trực tiếp cho một lệnh chạy nền đang chờ duy nhất.

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

Mô tả

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 Claude thread, have the agent start one long command with Bash run_in_background.
  2. Let the turn end, so the thread waits on that command.
  3. Look at the waiting strip.
Expected behavior

A live elapsed time next to the task, because backgroundWorkNowItem renders one when a single task is pending.

Actual behavior

No timer. The strip shows only the label and Stop.

Impact

Minor bug or occasional failure

Version or commit

0.1.7-nightly.20261101.4035

Environment

macOS (darwin 25.6.0), desktop app, Claude Opus 5.5

Logs or stack traces

Likely cause, from this thread's state while the command ran:

  • The pending task on the provider thread has taskId: "butrq2gr1", the background shell id.
  • The running command_execution turn item has startedAt set, with nativeItemRef.nativeId: "toolu_01N8rbvPjwHPTudjfA4XJ2Gs", the tool call id.
  • ThreadActivityBanners.tsx finds the item with (candidate.nativeItemRef?.nativeId || candidate.id) === task.taskId. The two ids differ, so item is undefined and startedAtMs is null.

No turn item in the thread has butrq2gr1 as its native id. I read the state and the source. I did not run a patched build.

Screenshots, recordings, or supporting files

Waiting strip with a background command and no timer

Workaround

None. The agent has to be asked how long the command has run.

Related: #28897 asks for a timer per task when several run, and #15584 covers the wider background work details.

Written with Claude Opus 5.5 in T3 Code.

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

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.