Repository navigation
feat: 折叠已完成回复的思考与工具过程(适配上游 #1483) - #189
Merged
1 commit merged intoNov 10, 2026
Merged
1 commit merged into
1 commit merged into
Conversation
This was referenced Nov 9, 2026
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.
变更说明 / Description
背景与动机 / Context and motivation
较长的聊天回复会留下多轮思考、工具调用和过程说明。此改动在输出结束后提供一个带耗时的总折叠标题,收起最终答复之前的过程,完整保留后续答复的标题、段落和代码;点击可展开查看原文。
改动范围 / Changes
兼容性与风险 / Compatibility and risks
适配 上游 #1483,固定来源为
6af18584f4213b4c53b3dd4c9b443deab2f8c0bd。本仓库一轮回复的过程和正文保存在同一条消息,本次同步其单消息活动边界、总折叠标题与显示开关,并适配现有渲染架构。上游累计分支依赖的跨消息中间回复、消息引导、子代理及协作事件没有引入,也没有数据库迁移。底层聊天内容、模型上下文、用量数据与 waifu 显示保持原有行为。展开选择保存在当前进程;设置通过 DataStore 持久化。是否完成依据输出阶段和标记边界,不表示语义上判定用户任务成功。
关联 Issue / Related issue
Refs AAswordman#1483。当前仓库无对应独立 Issue。
验证方式 / Verification
ChatMarkupRegex,JUnit 4.13.2 实际执行 8 项测试,全部通过。Markdown 枚举和节点声明从生产源码提取,仅省略 Compose 标记注解。git diff --check:通过。仓库原有整洁、本地化、文档链接检查各 0 错误、0 警告,忽略 8 个基准已有坏链接。Markdown blob 批量供给原校验器,仓库检查脚本未修改。assembleDebug)与 Android Tests 的启动请求;远端结果待查看。证据 / Evidence
提交:
af2e4deaf9c6117200dbb1fd25ccd690e926bf33。实现与设备验收步骤:
docs/TODO/feat/collapse-completed-response-process/01-implementation.md。工作流入口:Build · Android Tests。这些是分支列表入口,不是运行结果或通过证明。
检查清单 / Checklist
dev