[Bug]: Question card jumps between expanded and collapsed layouts when the pointer hovers an option with a preview
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
从 apps/web 开始,阅读 ComposerPendingUserInputPanel.tsx。issue 指出,选项预览在这里渲染,并由 focusedOption 控制。使用包含有预览和无预览选项的 AskUserQuestion 重现问题,然后检查指针移动时卡片的行为。完成标准是:指针移过各个选项时,卡片和对话线程保持原位,且任何预览仍可使用。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 3 小时 39 分钟
- 30 天内合并 PR
- 301
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
pingdotgg/t3code#22819 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
kunchenguid/gh-axi#220 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
prerender: wait for env-runner worker readiness before crawling可能已有人在做 @sarankumar1325 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复