[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
- 平均合并
- 1 小时 22 分钟
- 30 天内合并 PR
- 18
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
MCP endpoint matches the Authorization scheme case-sensitively and logs the same reason for "absent" and "wrong scheme" (ChatGPT connector gets missing_bearer_token)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug needs-triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 74/100
pingdotgg/t3code#23175 · 2 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 76/100
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 76/100
lingdojo/kana-dojo#32964 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
Documentation status: needs triage
难度 2/5 1-3 小时 新手友好度 72/100
mastra-ai/mastra#28194 · 1 条评论 ·
维护者通常 1 天内回复
-
priority-low refactor-3
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 3 天内回复