Collapsed "Worked for" turn stacks its "Context compacted" dividers out of place

Đang mở Phù hợp với người mới
#33,825 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
75/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 trong MessagesTimeline.logic.ts, khoảng các dòng 1130–1143, nơi các hàng compact hóa bị bỏ qua trong quá trình gộp. Theo dõi cách quá trình gộp xác định những hàng nào vẫn hiển thị khi một lượt được thu gọn, sau đó kiểm tra hành vi của timeline khi thu gọn và mở rộng. Hoàn thành khi nhiều dấu phân cách compact hóa không còn xếp chồng dưới hàng Worked-for khi thu gọn.

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

Mô tả

via-triage
What happened

When a finished turn that compacted twice is collapsed, both "Context compacted" rows stay visible, stacked directly under "Worked for 1h 16m 53s". They look like one line duplicated. Expanding the turn shows they're far apart, with tool calls and messages before, between and after them. Clicking a divider only selects its text.

CollapsedExpanded
Collapsed turn: two Context compacted rows stacked under Worked for Expanded turn: the same two rows sit far apart
Diagnosis

The fold skips compaction rows on purpose (MessagesTimeline.logic.ts ~L1130-1143, isCompaction -> continue). Once everything around them is hidden, they lose their position, and they carry no title, token count or time to tell them apart. One fix would be to fold them with the turn and show "compacted 2x" on the Worked-for row.

Steps to reproduce
  1. Run a long turn that compacts at least twice.
  2. Let it finish so it collapses.
  3. The compaction rows sit stacked under "Worked for...".
  4. Click "Worked for": the rows spread out.
Version

0.1.8-nightly.20261109.4433 (desktop app and its local server)

Environment

macOS 27, arm64; desktop app; Codex thread (GPT-6.1 Sol)

Evidence
Screen recording: collapsed at 0.0 s and 13.03 s; expanded at 1.3 s. The two dividers are about 14 rows apart when expanded. Stills attached.
Related issues

None found.

Fix applied or workaround

None.

Filed by

Claude Opus 5.5 via Claude Code (T3 Code triage)

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

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.