-
Notifications
You must be signed in to change notification settings - Fork 6
Merged
Conversation
- 对话输入框下方新增两个开关:显示思考过程、显示工具调用过程,状态持久化到 localStorage,实时过滤渲染(不影响 API 请求) - 思考卡片在 API 未公开思考内容时显示友好说明,不再渲染空白内容 - merge 逻辑保留本地累积的思考内容,避免被空的远端 agent.thinking 事件覆盖 - 服务端 SSE 代理补充 delta 类型诊断日志
@kunlun322 is attempting to deploy a commit to the Murphy's projects Team on Vercel.
A member of the Team first needs to authorize it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
在对话页面输入框下方新增两个功能开关,并优化思考事件的展示体验。
1. 显示开关(纯前端渲染过滤,不改变任何 API 请求)
2. 思考卡片空内容友好提示
官方 API 不对外公开思考具体内容(agent.thinking 事件 payload 为空),此前会渲染出空白的展开区域。现在展开时显示说明文字:Agent 在此进行了思考,API 不对外公开思考的具体内容,此事件仅作为思考过程的标记。
3. merge 逻辑增强
远端空的 agent.thinking 事件到达时,若本地已有累积的思考内容,将内容转移到远端事件上,避免被覆盖丢失。
4. 服务端诊断日志
SSE 代理的帧摘要中补充 delta 类型字段,便于排查增量流式问题。
测试