[Bug]: Question card jumps between expanded and collapsed layouts when the pointer hovers an option with a preview
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
- Run a Claude thread where the agent calls
AskUserQuestionwith 2+ options. At least one option, the first here, has apreview. The others have none. - Wait for the pending question card above the composer.
- 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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pingdotgg/t3code
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pingdotgg/t3code#22819 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pingdotgg/t3code
Issue simili
-
[BUG] rag: sentence content can cross the reported sentence boundariesForse già presa @LJK-ikun l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
README: the Resource URI Schemas example's file://documents/* pattern only matches that literal URIAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
platformatic/mcp#361 ·
I maintainer di solito rispondono entro 1 giorno
-
frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Push: sem service worker ou sem VAPID, o interruptor de Notificações fica ligado sem avisar nadaAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melgarafael/DeskcommCRM#3164 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ant-design/pro-components#9769 ·
I maintainer di solito rispondono entro 1 giorno