Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: Question card jumps between expanded and collapsed layouts when the pointer hovers an option with a preview

クローズ 初心者向け
#22,344 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

apps/webから始めて、ComposerPendingUserInputPanel.tsxを読んでください。issueによると、ここでオプションのプレビューが描画され、focusedOptionがそれを制御します。プレビューのあるオプションとないオプションを含むAskUserQuestionで再現し、ポインターを動かしたときのカードの挙動を調べてください。オプション上でポインターを動かしてもカードとスレッドがその場に留まり、プレビューがある場合は引き続き使用できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
1時間 22分
マージ済み PR(30日)
18

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。