Add thinking duration to message parts #13

Merged
weichen merged 1 commits from feature/chat-timeline-preview into main 2026-10-01 07:38:46 +00:00
Owner

摘要

  • Part 增加可选字段 durationMs,只记录思考时长。
  • Go、TypeScript 与 conformance golden 一起改。

验证

  • go test ./... 通过。

合入

先合本 PR,再合 Backend。

## 摘要 - `Part` 增加可选字段 `durationMs`,只记录思考时长。 - Go、TypeScript 与 conformance golden 一起改。 ## 验证 - `go test ./...` 通过。 ## 合入 先合本 PR,再合 Backend。
weichen added 1 commit 2026-10-01 06:20:23 +00:00
Why: The chat timeline needs a persisted thinking duration, and tool duration already lives on the tool call, so the thinking part had nowhere to put it.
Evidence: go test ./... passes; the message golden now includes durationMs on the thinking part.
Impact: Additive JSON field with omitempty. Existing clients ignore unknown fields.
Refs: feature/chat-timeline-preview
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit b80407a9a6 into main 2026-10-01 07:38:46 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Core#13