ask_user_question 卡片 UI 异常:问题文本重复渲染、溢出边界,且卡片内容与实际参数不符
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
## 环境
Windows 桌面端 Cindy
## 现象一:文本重复渲染 + 溢出
Agent 调用 `ask_user_question` 时,若问题文本较长(多行长句、含中文),问题文本会被渲染两次(卡片外、卡片内各一遍),且不换行、横向纵向都溢出圆角卡片边界,右侧被截断。选项按钮列表本身显示正常。
## 现象二:卡片内容与实际传入参数不符
另一次调用中,Agent 实际传入的是两个问题(各带 2 个选项),但用户端卡片显示的内容完全不同:只显示了近似第一个问题的压缩文本,随后跟着一句**从未传入过的文本**(疑似其他消息串扰/串写),两个问题的选项列表均未渲染。用户实际上看不到真实的问题和选项,只能取消卡片。
## 预期
1. 问题文本只渲染一次,在卡片内自动换行、随内容增高,不溢出;
2. 卡片渲染的内容必须与工具调用参数完全一致,多问题/多选项结构完整展示。
## 复现
- 现象一:用较长的问题文本(多行中文长句)调用 `ask_user_question` 即可复现;
- 现象二:见下方截图(截图为提问卡片实际渲染结果,与该次调用的实际参数不一致)。
Contributor guide
Research direction
Start by reproducing the ask_user_question entry point on the Windows desktop with a long Chinese question and with multiple questions and options. Trace the card renderer and the tool-call parameters to compare displayed content with the request. Done means each question and option renders once, wraps within the card, and matches the parameters exactly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100