Repository navigation
feat(chat): 工具之间说的话折进工作过程行,只留结论 - #241
Merged
Merged
Conversation
和 ChatGPT 一样:跑完后前面每一轮"说一段话 + 调工具"全部收进一行, 展开才按顺序看到;最后一个工具之后的文字作为结论留在外面。运行中照常实时可见。 媒体/提示块仍然留在原位。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
|
方向不对:这版把中间的话也折进了工作过程行,但中间的话本身不应该折叠(它不是思考)。先关闭,等确认正确的折叠方式后重做。 |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
改动
一轮回复里模型常常"说一段话 → 调几个工具 → 再说一段话 → 再调工具"重复多次。现在跑完后,这些中间的话和工具一起折进同一行"工作过程",展开才按顺序看到;最后一个工具之后的文字作为结论留在外面(和 ChatGPT 一致)。
面板里这些话按普通文字完整显示(不是思考那种灰色单行折叠);思考的折叠不变。
buildAssistantTurnEntries:位于最后一个步骤之前的 text 块并入当前 run;之后的才是回复。media / info 块仍然结束 run、留在原位。TurnWorkRowTest,新增WorkProcessGroupingTest用例(前导句、结论、无步骤、info 打断)。已知取舍
验证
WorkProcessGroupingTest、TurnWorkRowTest通过;真机观感待核对。🤖 Generated with Claude Code