feat(web): show consult runs as a Lucide timeline with sliced compose
Keep provider thinking on a separate channel so process talk is not billed as the spoken reply (BUG-359). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5435,6 +5435,22 @@
|
||||
- 复发自:BUG-176(同一物理 Turn 的助手正文在恢复时丢失;后来又用最后一条 id 做 key,把 opening 状态一起冲掉)
|
||||
- 修复版本:`f03a2706`
|
||||
|
||||
## BUG-359 | 生时纠正把截断的过程自述落成完成回复
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-08-23
|
||||
- 最近更新:2026-08-23
|
||||
- 影响面:生时纠正对话、普通咨询会话、`runV9AgentTurn`、`streamAgentResponse`、Turn / 会话水合
|
||||
- 用户现象:工具已写入带日期经历并完成评分后,折叠「思考」和「回复」出现同一段第三人称过程自述;回复在句中被截断,Turn 仍显示完成并扣点。普通咨询在 thinking 关闭时也会把过程写进正文。
|
||||
- 触发条件:供应商 thinking 关闭后,模型把中文过程自述写进 `text-delta` 并在写完口语结论前结束。
|
||||
- 根因:BUG-354 为保住正文额度关闭了纠正和咨询的 provider thinking。`reasoning-delta` 不再出现,过程自述改走正文。BUG-357 再用正则从正文里切「思考 / 回复」,分类漏了「用户在上一轮 / 批量工具」,finalize 还把单段自述回灌成完成回复。
|
||||
- 修复:纠正与咨询重新打开 provider thinking。`reasoning-delta` 进折叠「思考」,`text-delta` 进「回复」。输出预算改为正文 16384 + 思考 8192,避免 CoT 抢正文额度。`length` 续写仍关闭 thinking。正则只作正文漏检网和旧 Turn 水合,不再当主分流。没有口语结论时走 `empty_stream` 重试。
|
||||
- 验证:`frontend/tests/rectification-spoken-answer.test.ts`、`frontend/tests/rectification-v9-stream.test.ts`、`frontend/tests/rectification-v9-agent.test.ts`、`frontend/tests/rectification-agentic-entry.test.ts`、`frontend/tests/consultation-agentic-runtime.test.ts`、`frontend/tests/consultation-workflow-contract.test.ts`、`frontend/tests/agent-activity-progress.test.ts`、`frontend/tests/chat-stream-layout.test.ts`
|
||||
- 防复发:纠正与咨询组答若打开 thinking,必须把思考预算加进 `maxOutputTokens`,且不得把 `reasoning-delta` 混进 `answer.delta`。不得用正则当思考/回复主分类器。`length` 续写必须关 thinking。纯过程自述不得 `run.completed`。
|
||||
- 相关记录:BUG-345、BUG-346、BUG-354、BUG-357、BUG-358
|
||||
- 复发自:BUG-354(关 thinking 后过程进正文)、BUG-357(用正则从正文里切两栏)
|
||||
- 修复版本:unreleased
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user