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]: Question card jumps between expanded and collapsed layouts when the pointer hovers an option with a preview

Đang mở Phù hợp với người mới
#22,344 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
72/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 trong apps/web và đọc ComposerPendingUserInputPanel.tsx. Issue cho biết bản xem trước của các tùy chọn được hiển thị tại đây và focusedOption điều khiển nó. Tái hiện bằng một AskUserQuestion có các tùy chọn có và không có bản xem trước, sau đó kiểm tra cách thẻ hoạt động khi con trỏ di chuyển. Hoàn tất khi thẻ và luồng hội thoại vẫn ở nguyên vị trí trong lúc di chuyển con trỏ qua các tùy chọn, và mọi bản xem trước vẫn sử dụng được.

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

Mô tả

Area

apps/web

Steps to reproduce
  1. Run a Claude thread where the agent calls AskUserQuestion with 2+ options. At least one option, the first here, has a preview. The others have none.
  2. Wait for the pending question card above the composer.
  3. Move the pointer over the card and the options.
Expected behavior

The card keeps its height. The surrounding thread view stays still while the pointer moves over the options.

Actual behavior

When the pointer reaches an option, the card grows to include the preview pane ("Preview · Update all 3 parts (Recommended)").

  • The card now fills most of the visible area.
  • The "Ran 1 command" row and the agent's text above the card are pushed out of view.
  • The card gets its own inner scrollbar.

A moment later the card snaps back to its small layout, and the preview is gone. In the 14 s recording the card is small until t≈8s, expanded from t≈8s to t≈11s, and small again at t≈12s. The pointer barely moves.

Likely cause (not verified)

Introduced by #21933 (fix(clients): show question option previews), which was reverted in #22229. In ComposerPendingUserInputPanel.tsx, the preview section is rendered below the option list and sized by its content. Hovering sets focusedOption, which picks the preview. Options without a preview remove the section again. So growing and shrinking the card moves the options under a stationary pointer. That changes which option is hovered, which changes the preview, and the loop repeats.

If the preview is re-landed, reserve a fixed-height slot for it, or don't make the preview depend on hover.

Impact

Cosmetic issue. The card is hard to read and click while it moves, and the thread content jumps.

Environment

macOS (Darwin 27.0.0), T3 Code build containing #21933 (before the revert), Claude Opus 5.5, Extra High effort, Full access.

Screenshots, recordings, or supporting files

Screen recording (14 s) to follow in a comment.

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

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.