Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#22,344 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia da apps/web e leggi ComposerPendingUserInputPanel.tsx. L’issue indica che qui viene visualizzata l’anteprima delle opzioni e che focusedOption la controlla. Riproduci il problema con un AskUserQuestion contenente opzioni con e senza anteprima, quindi osserva come si comporta la scheda quando il puntatore si sposta. Il lavoro è completato quando la scheda e il thread restano al loro posto mentre il puntatore passa sulle opzioni e l’eventuale anteprima rimane utilizzabile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
3h 39m
PR unite (30g)
301

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.