Repository navigation
Conversation
- 设置页网关新增「第三方模型回答完自动折叠过程」开关,默认关闭 - 为 Codex 来源的 /v1/responses 响应补 phase 阶段标记,回答完折叠推理与命令过程 - 新增 GET/PUT /api/reasoning-collapse 管理接口,桌面桥与网页桥同步接线 - 流式、非流式聚合与上游完整响应三条回程共用同一阶段判据 - 输出预算用尽与内容过滤的截断响应不补阶段标记,避免半截答案被当作收尾 - 客户端归类值提取为常量,阶段标记判据与请求日志客户端列同源
Merged
aimod-cc
pushed a commit
that referenced
this pull request
Nov 7, 2026
保留原贡献者提交,适配当前 beta。统一正常结束与截断判据,空工具列表按未调用工具处理;阶段兼容仅使用严格客户端识别,不跟随报表规则。补充错误、缺少结束信号和未知结束原因的阶段保护,重新构建设置页和多语言资源。
Owner
|
感谢 @mojie126 的贡献。修正后的功能已纳入 beta:defbc81,原提交 d51d97b 和作者署名均保留。 在原 PR 基础上补了三处边界:
保留默认关闭、下一次请求生效的开关,已重新构建界面并同步多语言文案。后端 cargo check、前端类型检查与构建、多语言缺失键检查通过;frontend-artifacts 也已通过。未运行测试或真实客户端验收。 准备更新 PR 时发现作者已主动关闭 PR 并删除原分支,因此没有恢复该分支,也没有将此 PR 标记为网页合并;代码通过保留原提交的合并进入 beta。当前未改版本号、未打 tag、未发布安装包。 🤖 本条回复由 AI Agent 生成 |
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.
背景
Codex 桌面端只在收到带
phase: "final_answer"的助手消息时,才会把这一轮的推理、命令与过程消息收进可折叠的「已处理 X 分钟」。官方模型逐条给出final_answer/commentary,第三方模型通常不带这个字段,整轮过程就一直展开。改动
phase—— 本轮没有工具调用的最后一条消息补final_answer,之前的正文与过程消息补commentary;只对经本网关的 Codex 来源/v1/responses请求生效,其它客户端与/v1/chat/completions不受影响,下一次请求即生效、不用重启GET/PUT /api/reasoning-collapse,桌面桥与网页桥同步接线,系统信息页展示状态CLIENT_CODEX常量,阶段标记判据与请求日志的「客户端」列同源,避免两处各写一份字面量验证
cargo check -p agent2api-server --lib:通过,无新增警告一点提示:上游
e8bed73的测试代码有 4 处编译不过(#[cfg(test)]内,与本 PR 无关):api/pipeline.rs:1234的RequestQuery初始化缺字段、core/cloud_sync/settings.rs:463与:479的WebDavConfig缺user_agent、core/upstream/provider_loop/tests.rs:330调用参数少两个。🤖 本条回复由 AI Agent 生成
Generated by an AI agent.