Skip to content

fix: 在对话里展示模型思考,并在一轮结束后收起 - #38

Merged
SATA260 merged 1 commit into
mainfrom
fix/show-model-reasoning
Sep 22, 2026
Merged

SATA260 merged 1 commit into
mainfrom
fix/show-model-reasoning

Conversation

@SATA260

@SATA260 SATA260 commented Sep 22, 2026

Copy link
Copy Markdown
Owner

改了什么 / What changed

  • 解析 DeepSeek 的 reasoning_content(兼容 reasoning),经 assistant.delta / assistant.completed 送到时间线,并写进助手消息,下一轮以 reasoning_content 回传。
  • 一轮结束后,思考和 Used tools 默认收进 Thought:先点开才看到 Reasoning 和工具摘要,再点才展开详情。进行中的那一轮仍展开。
  • 会话正文行高改为字号的 1.6 倍。

怎么验证 / How to verify

  • cd server && go test ./...
  • pnpm test:client
  • 新开一轮本地 Agent 对话,流式时应能看到思考;Run 结束后 Thought 默认收起,点开后能回看 Reasoning 和工具详情。旧会话没有存过思考,不会补出正文。

相关 Issue / Related issue:Closes #37

Made with Cursor

思考随助手事件流出并回传给下一轮;完成后收进 Thought,会话正文行高调到 1.6。

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: b059a269-40cd-417d-8ecb-626ec49d5452


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SATA260
SATA260 merged commit 352bf20 into main Sep 22, 2026
3 checks passed
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.

[Bugfix] 本地对话不显示模型的思考内容

1 participant