The answer outline (think.plan / thinking.section) was drawn as four think rows and ticked done as soon as the chart calculation started. The reducer now keeps the outline only as calculate-row detail; live and history views share it. Product chose option B on 2026-10-01. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
2.2 KiB
2.2 KiB
PROGRESS · 普通对话进度栏去掉回答提纲行(2026-10-01)
任务书:docs/tasks/TASK-consult-timeline-no-plan-20261001.md;BUG-1145。
实现
frontend/src/lib/consultation-run-timeline.ts:think.plan直接返回原状态(不再生成提纲行)。thinking.section只把领域与对照项累积到新增的calculateHints,经applyCalculateHints补到计算行;tool.started建计算行时也补上(提纲在算盘前下发,原enrichCalculate在实时流里因计算行尚不存在而落空,历史重建里才有明细;现在两边一致)。answer.delta同时把计算行收口为完成(原来由thinking.section顺手收口)。consultationTimelineFromSettled:有思考文本就发一条thinking.delta,删掉「把思考文本挂到最后一条提纲行」的补丁。
- 服务端
think.plan/thinking.section照发(公共事件合同、consultation-agentic-runtime测试锁定think.plan存在;客户端已不再用它画行)。thinkPlanSteps仍被服务端与测试使用,未删。
改动的断言(原值 / 新值 / 原因)
| 测试 | 原值 | 新值 | 原因 |
|---|---|---|---|
consultation-run-timeline.test.ts 首条(改名为 “…then the first write (no outline row)”) |
行种类 ["method","calculate","think","write"],第 3 行「先回答你问的这件事」已完成 |
行种类 ["method","calculate","write"],不存在该标签行;写作行下标 3→2 |
BUG-1145:提纲不是步骤,产品选 B 去掉 |
新增三条:算盘前提纲不成行且只有方法行完成;整轮结束无 think 行、无 live 行;历史重建同形且计算行有明细。三条与改写的一条在修前代码上均失败(已实测:4 fail),修后通过。
门禁(Node 22.14)
| 项 | 基线 f1a169cb |
分支 |
|---|---|---|
| tsc | — | 0 |
| lint | — | 0 error / 126 warning |
| npm test | 4,851 条,fail 24 | 4,854 条,fail 24(同名) |
build / |
— | Static |
.next/static js gzip 合计 |
1,632,680 B | 1,632,662 B(−18 B) |
环境缺口
- 浏览器级(真机看进度栏)留给
docs/testing/consult-plain-answer-20261001.md第 10 步。