Skip to content

feat: ChatChainOfThoughtRail — timeline skin for chain of thought - #80

Merged
bubbleptr merged 1 commit into
mainfrom
feat/chat-chain-of-thought-rail
Aug 9, 2026
Merged

bubbleptr merged 1 commit into
mainfrom
feat/chat-chain-of-thought-rail

Conversation

@bubbleptr

Copy link
Copy Markdown
Owner

背景

思维链形态探索(/proto 原型,4 个变体对比真实 part 序列数据)的落地 PR。决策记录见 .scratch/cot-variants/PRD.md:

  • Baseline 保持默认(ChatChainOfThought 不动)
  • Rail 升格为正式组件(本 PR),等 Appearance 设置页落地后作为用户可选项(issues/01)
  • Ledger 定为 Trace 页重构方向(issues/02)
  • Narrative 淘汰(工具信息弱化过头,chip 挤压)

改动

  • shared/ui/chat/chat-chain-of-thought-rail.tsx:轮次分界 + 节点轨道,思考/工具是不同形态节点(圆点按节点类型分别对齐首行中心),每步时长右对齐 tabular-nums;工具行复用 chat-tool 的 target 提取与时长格式化,行内展开 args/output
  • 样式并入 chat.css(reduced-motion、hover 能力查询、payload 局部滚动条)
  • 同 PR 注册 /design Components 层(展开/流式/折叠三态)
  • 暂不接线 agent-workspace,默认渲染不变

验证

  • TDD:5 个行为测试先红后绿(轮次分组/节点契约/错误态/折叠/流式 shimmer)
  • tsc --noEmit 干净;desktop 全量 345 测试通过
  • Electron dev 下 /design 页截图确认渲染正常

Outcome of the /proto chain-of-thought exploration (4 variants judged
against real part-sequence data). Decision record and follow-ups live in
.scratch/cot-variants/: Baseline stays the default, Rail lands as an
optional skin pending the Appearance setting (issues/01), Ledger is
earmarked for the Trace page refactor (issues/02), Narrative rejected.

- rounds group think→tool loops with per-round durations
- thinking vs tool nodes as distinct rail markers, aligned per node kind
- tool rows reuse chat-tool target extraction/duration formatting and
  expand inline to args/output payloads
- registered on the /design Components layer in the same PR
@bubbleptr
bubbleptr merged commit 57af402 into main Aug 9, 2026
@bubbleptr
bubbleptr deleted the feat/chat-chain-of-thought-rail branch September 6, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant