← 返回更新日志

Codex rust-v0.153.0

2026-09-03 · GitHub 原文
## 新功能 - Vim 模式现在支持使用 `u` 撤销和 `Ctrl+R` 重做,同时保留完整草稿,包括粘贴的内容和附件。([#41941](https://github.com/openai/codex/pull/41941)、[#42140](https://github.com/openai/codex/pull/42140)) - 插件 CLI 现在可以从远程市场列出、安装和移除插件。([#42150](https://github.com/openai/codex/pull/42150)) - 设置 `tui.auto_recap = false` 可禁用自动回顾,同时仍可使用手动 `/recap`。([#42101](https://github.com/openai/codex/pull/42101)) - TUI 历史记录现在会显示完整补丁、发送到后台终端的输入,以及单独列出的已完成命令。([#41893](https://github.com/openai/codex/pull/41893)、[#42107](https://github.com/openai/codex/pull/42107)) - 当大约五小时的使用窗口中剩余配额不足一半时,Plus 和 Team 用户会更早收到警告。([#42142](https://github.com/openai/codex/pull/42142)) ## 错误修复 - 外部 app-server 连接断开后,TUI 会话现在可以重新连接,同时保留草稿和记录,并暂停不确定或排队中的提交以供检查。([#41911](https://github.com/openai/codex/pull/41911)、[#41916](https://github.com/openai/codex/pull/41916)、[#41918](https://github.com/openai/codex/pull/41918)) - Full Access 会跳过仅需确认的操作的 Guardian 审查。用户批准模式会跳过后台 Guardian 评分和预热,但敏感操作检查以及请求用户输入仍按现有方式处理。([#42147](https://github.com/openai/codex/pull/42147)、[#42256](https://github.com/openai/codex/pull/42256)) - Guardian 审查历史记录在压缩、重启和用户创建的分支之后仍会保留,同时遵循回滚边界并隔离子代理历史记录。([#41879](https://github.com/openai/codex/pull/41879)、[#42065](https://github.com/openai/codex/pull/42065)) - 已记住的 MCP 工具批准现在限定于所选的应用账户;在 macOS 上,相对路径的 MCP 可执行文件也能更可靠地启动。([#42133](https://github.com/openai/codex/pull/42133)、[#42117](https://github.com/openai/codex/pull/42117)) - Rollout 压缩现在包含共享历史记录;`codex exec resume` 在按工作目录选择时可以处理已压缩的 rollout;线程分支也支持使用符号链接的会话根目录。([#42039](https://github.com/openai/codex/pull/42039)、[#42135](https://github.com/openai/codex/pull/42135)) ## 配置和 API 更新 - App-server 线程元数据现在包含可为空的 `model` 和 `reasoningEffort` 字段。当模型目录启用后,系统还支持通过 `request_user_input_async` 发起结构化异步问题。([#42151](https://github.com/openai/codex/pull/42151)、[#42178](https://github.com/openai/codex/pull/42178)) - `tui.disable_paste_burst` 取代了顶层设置;顶层设置仍作为后备方式受到支持。([#41976](https://github.com/openai/codex/pull/41976)) - 新增默认禁用的 `features.context_management.experimental_mode` 配置。对于符合条件、使用 Codex 后端的 ChatGPT Plus、Pro 或 Pro Lite 会话,启用该配置后将激活基于令牌预算的上下文管理、历史记录备注和 `new_context` 工具。API 密钥会话、自定义提供商以及临时结构化线程仍不在支持范围内。([#42385](https://github.com/openai/codex/pull/42385)) ## 更新日志 [完整更新日志](https://github.com/openai/codex/compare/rust-v0.152.1...rust-v0.153.0) - [#41870](https://github.com/openai/codex/pull/41870) 使用共享的记录收集机制进行 Guardian 审查 - [#41879](https://github.com/openai/codex/pull/41879) 在压缩后保留 Guardian 审查证据 - [#41884](https://github.com/openai/codex/pull/41884) 添加固定版本的原生语音源代码准备 - [#41890](https://github.com/openai/codex/pull/41890) 添加原生语音依赖构建配方 - [#41892](https://github.com/openai/codex/pull/41892) 为事件流保留 MCP 客户端 - [#41893](https://github.com/openai/codex/pull/41893) 在 TUI 中单独显示成功执行的命令 - [#41894](https://github.com/openai/codex/pull/41894) 修复 Windows 原生语音依赖构建 - [#41897](https://github.com/openai/codex/pull/41897) 添加语音辅助程序生命周期基础支持 - [#41899](https://github.com/openai/codex/pull/41899) 任务卸载后保持 MCP 事件订阅处于活动状态 - [#41901](https://github.com/openai/codex/pull/41901) 在空唤醒轮次后加载有界上下文 - [#41902](https://github.com/openai/codex/pull/41902) 添加已安装语音主机的生命周期支持 - [#41906](https://github.com/openai/codex/pull/41906) 添加 MCP 事件流管理器 - [#41908](https://github.com/openai/codex/pull/41908) 归档线程时避免扫描已归档的 rollout - [#41909](https://github.com/openai/codex/pull/41909) 使权限转换能够识别执行器路径上下文 - [#41911](https://github.com/openai/codex/pull/41911) app-server 断开后保留 TUI 草稿 - [#41912](https://github.com/openai/codex/pull/41912) 在 rollout 历史记录中持久化响应令牌使用量 - [#41913](https://github.com/openai/codex/pull/41913) 状态行隐藏时保留 TUI 状态计时 - [#41915](https://github.com/openai/codex/pull/41915) 将配置架构生成器移入专用 crate - [#41916](https://github.com/openai/codex/pull/41916) 自动重新连接 TUI app-server 会话 - [#41917](https://github.com/openai/codex/pull/41917) 从空编辑器打开代理概览 - [#41918](https://github.com/openai/codex/pull/41918) TUI 重新连接后恢复代理导航 - [#41923](https://github.com/openai/codex/pull/41923) 允许为现有实时调用指定按调用区分的 sideband 端点 - [#41924](https://github.com/openai/codex/pull/41924) 在 Core 中记录实时对话历史 - [#41925](https://github.com/openai/codex/pull/41925) 测试整个代码库范围内的 Rust 格式化工具发现 - [#41928](https://github.com/openai/codex/pull/41928) 使用执行器路径上下文进行权限预批准 - [#41929](https://github.com/openai/codex/pull/41929) 在重新连接测试中直接打开代理概览 - [#41933](https://github.com/openai/codex/pull/41933) 统一报告已配置的沙箱策略 - [#41934](https://github.com/openai/codex/pull/41934) 从 Code Mode 中排除过小的 WAV 输出 - [#41936](https://github.com/openai/codex/pull/41936) 将失败的 Guardian 审查附加到诊断报告 - [#41937](https://github.com/openai/codex/pull/41937) 限制后台终端输入预览 - [#41938](https://github.com/openai/codex/pull/41938) 明确退出摘要中的恢复指导 - [#41940](https://github.com/openai/codex/pull/41940) 回退选择期间保留记录布局缓存 - [#41941](https://github.com/openai/codex/pull/41941) 为 TUI 编辑器添加 Vim 撤销 - [#41944](https://github.com/openai/codex/pull/41944) 为 ChatGPT 会话发出轮次成本遥测数据 - [#41946](https://github.com/openai/codex/pull/41946) 扩展扩展程序权限回归测试覆盖范围 - [#41949](https://github.com/openai/codex/pull/41949) 添加插件协调 app-server API - [#41950](https://github.com/openai/codex/pull/41950) 改进嵌套工具调用和 exec 进程的跟踪 - [#41953](https://github.com/openai/codex/pull/41953) 为精选插件强制执行市场来源策略 - [#41974](https://github.com/openai/codex/pull/41974) 按 app-server 模式跟踪 TUI 启动 - [#41976](https://github.com/openai/codex/pull/41976) 将 `disable_paste_burst` 移至 `[tui]` 下 - [#41980](https://github.com/openai/codex/pull/41980) 保留原始响应使用量元数据 - [#42003](https://github.com/openai/codex/pull/42003) 在轮次分析中报告轮次触发方式和来源 - [#42031](https://github.com/openai/codex/pull/42031) 共享 Guardian 用户消息保留逻辑 - [#42033](https://github.com/openai/codex/pull/42033) 改进 Guardian 报告诊断 - [#42039](https://github.com/openai/codex/pull/42039) 在 rollout 压缩中包含共享历史记录 - [#42043](https://github.com/openai/codex/pull/42043) 为 Codex 主目录大小指标添加压缩状态标签 - [#42047](https://github.com/openai/codex/pull/42047) 为应用添加按账户区分的批准设置 - [#42054](https://github.com/openai/codex/pull/42054) 处理 Apps 工具调用中的显式账户选择器 - [#42056](https://github.com/openai/codex/pull/42056) 处理 MCP 工具批准的应用链接设置 - [#42065](https://github.com/openai/codex/pull/42065) 在线程重建期间保留 Guardian 历史记录 - [#42066](https://github.com/openai/codex/pull/42066) 移除选定的 Core 测试用例 - [#42068](https://github.com/openai/codex/pull/42068) 从 macOS CLI 软件包中检测独立安装 - [#42069](https://github.com/openai/codex/pull/42069) 移除冗余测试覆盖 - [#42071](https://github.com/openai/codex/pull/42071) 检测由 Vite+ 管理的 Codex 安装 - [#42076](https://github.com/openai/codex/pull/42076) 统一 Guardian 上下文部分收集 - [#42082](https://github.com/openai/codex/pull/42082) 将嵌套 REPL 审查归因于其工具调用 - [#42085](https://github.com/openai/codex/pull/42085) 集中管理 Guardian 上下文组合 - [#42086](https://github.com/openai/codex/pull/42086) 将 Guardian 审查归因于 OpenAI 应用工具 - [#42094](https://github.com/openai/codex/pull/42094) 记录 Windows MXC 可用性 - [#42096](https://github.com/openai/codex/pull/42096) 提高诊断报告上传对慢速网络的适应能力 - [#42100](https://github.com/openai/codex/pull/42100) 优先使用远程 Sites,而不是捆绑的插件 - [#42101](https://github.com/openai/codex/pull/42101) 添加禁用自动回顾的 TUI 设置 - [#42102](https://github.com/openai/codex/pull/42102) 将 OTEL 跟踪 WebSocket 提取为可复用 crate - [#42104](https://github.com/openai/codex/pull/42104) 在代理命令中心显示最近会话 - [#42107](https://github.com/openai/codex/pull/42107) 在 TUI 历史记录中显示完整补丁和终端输入 - [#42109](https://github.com/openai/codex/pull/42109) 格式化整个代码库中的 Python 脚本 - [#42110](https://github.com/openai/codex/pull/42110) 将捆绑的清理钩子视为内置功能 - [#42113](https://github.com/openai/codex/pull/42113) 将远程平台语义应用于 exec 安全检查 - [#42114](https://github.com/openai/codex/pull/42114) 在 `PluginsManager` 中集中处理远程插件变更 - [#42117](https://github.com/openai/codex/pull/42117) 修复 macOS 上相对路径 MCP 服务器的启动 - [#42118](https://github.com/openai/codex/pull/42118) 优化 TUI 中钩子活动的呈现 - [#42121](https://github.com/openai/codex/pull/42121) 允许更新活动轮次的批准审查者 - [#42123](https://github.com/openai/codex/pull/42123) 保留本地文件链接上的描述性标签 - [#42126](https://github.com/openai/codex/pull/42126) 在插件目录测试辅助工具中忽略非 JSON 文件 - [#42128](https://github.com/openai/codex/pull/42128) 为协调 OAuth 刷新准备 MCP 连接 - [#42132](https://github.com/openai/codex/pull/42132) 限制元数据增强中的 Git 根目录发现范围 - [#42133](https://github.com/openai/codex/pull/42133) 将会话 MCP 批准限定于应用账户链接 - [#42134](https://github.com/openai/codex/pull/42134) 在 MCP 批准请求中包含应用链接元数据 - [#42135](https://github.com/openai/codex/pull/42135) 支持从符号链接的会话根目录创建线程分支 - [#42137](https://github.com/openai/codex/pull/42137) 为符合条件的轮次预热 shell 快照 - [#42140](https://github.com/openai/codex/pull/42140) 为 Vim 编辑器历史记录添加重做支持 - [#42142](https://github.com/openai/codex/pull/42142) 为 Plus 和 Team 方案添加提前限流警告 - [#42144](https://github.com/openai/codex/pull/42144) 添加 Guardian V2 分析事件 - [#42146](https://github.com/openai/codex/pull/42146) 在执行器上下文中解析权限请求 - [#42147](https://github.com/openai/codex/pull/42147) 在 Full Access 中跳过 Guardian 审查 - [#42149](https://github.com/openai/codex/pull/42149) 从合并后的配置升级 Git 市场 - [#42150](https://github.com/openai/codex/pull/42150) 在插件 CLI 中支持远程市场 - [#42151](https://github.com/openai/codex/pull/42151) 在 app-server 线程元数据中公开模型设置 - [#42161](https://github.com/openai/codex/pull/42161) 将工具 JSON Schema 代码拆分为专门模块 - [#42164](https://github.com/openai/codex/pull/42164) 在应用工具分析中记录结果来源 - [#42173](https://github.com/openai/codex/pull/42173) 支持在网络要求中注入标头 - [#42174](https://github.com/openai/codex/pull/42174) 添加可缓存的 Bazel app-server 架构软件包 - [#42178](https://github.com/openai/codex/pull/42178) 添加结构化异步用户输入请求 - [#42256](https://github.com/openai/codex/pull/42256) 在用户批准模式中跳过 Guardian 评分 - [#42385](https://github.com/openai/codex/pull/42385) 添加实验性上下文管理激活功能