fix(web): keep consultation thinking above one spoken answer

Per-domain thinking trees were interleaved with sliced analysis, so a finished reply still looked like unfinished checklists. One collapsed thinking panel and one full body restores the reading order.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-23 01:49:05 +08:00
parent 0285cad1fd
commit 995b752e70
12 changed files with 274 additions and 95 deletions
+16
View File
@@ -5387,4 +5387,20 @@
- 复发自:BUG-309validate 跳过 `next build`publish 才暴露类型错误)
- 修复版本:`707327ef`
## BUG-356 | 咨询思考与正文交错,完成步骤仍显示「还有 N 项」
- 状态:resolved
- 首次发现:2026-08-23
- 最近更新:2026-08-23
- 影响面:咨询页 `ConsultationThinkingReport`、思考步骤树、回答 Markdown 列表、技法审计折叠
- 用户现象:思考与「分析」看起来像同一段;领域步骤树插在正文中间和文末;已完成步骤仍显示空心圆「还有 N 项」;行运/适合推进等并列项是挤在一起的段落,技法表与「本轮技法」重复。
- 触发条件:带 `thinking.section` 的本命咨询回答,尤其模型未按领域 H2 切开、或步骤超过 4 项时。
- 根因:报告按每个 thinking section 交错渲染思考+切片正文。`visibleThinkingSteps` 把第 5 项起收成「还有 N 项」且固定空心圆。模型用「标签:解释」段落而不是列表。正文已贴审计表时仍再叠一层折叠表。
- 修复:一轮只保留一个可折叠「思考」和一个完整「分析」。结算后未写出的步骤标为完成并展开全部步骤。并列「标签:解释」提升为 Markdown 列表。正文已有完整审计表时不再重复折叠副本。组答要求并列项用 bullet list。
- 验证:`frontend/tests/consultation-thinking-plan.test.ts``frontend/tests/chat-definition-lists.test.ts``frontend/tests/chat-stream-layout.test.ts``frontend/tests/consultation-technique-audit.test.ts`
- 防复发:咨询思考不得按领域把正文切片后反复插入步骤树。完成态不得用空心圆「还有 N 项」代替未展示步骤。正文已含完整技法表时不得再渲染折叠副本。
- 相关记录:BUG-354
- 复发自:BUG-354(按领域交错思考/分析,步骤树截断)
- 修复版本: