Why: Interleaved-thinking models (MiniMax, DeepSeek R1) require the
assistant's thinking to be passed back verbatim in message history; dropping
it degrades later turns. The product's P2-I1 replayed thinking only into the
request-side rebuild; with the session transcript becoming the authoritative
context (quality P2-I2), capture must live in the kernel so thinking persists
in the transcript and replays on every request.
Evidence: SELF - TestReasoningCaptureAndReplay covers capture (SSE
reasoning_content into Message.Thinking, content unpolluted) and replay
(<think> prefix on thinking assistants, untouched non-thinking messages);
go vet + go test ./... pass.
Impact: sse.go accumulates reasoning deltas into the terminal message's
Thinking; client.go toProviderMessages renders captured thinking as a
<think> block prefix for assistant messages. Anthropic path unchanged;
messages without thinking serialize exactly as before.
weichen
merged commit 76b6171de5 into main2026-10-09 16:07:23 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
摘要
质量 P2-I2 的内核侧两处小改:
背景:转录成为产品直连路径的权威上下文(Dev 任务卡 feature/agent-quality-phase02)后,MiniMax/DeepSeek R1 等交错思考模型要求的历史思考回传必须由内核承载(此前由产品在请求侧重建时注入,P2-I1)。
Evidence
Impact
无接口变更;Message.Thinking 语义注释更新。转录文件新增 thinking 字段(omitempty,旧文件兼容)。