发布日期: 2026-08-29
版本号: rust-v0.151.0

本次更新至 v0.151.0 版本,主要引入了新功能、修复了多项错误并进行了日常维护。新功能方面,增加了对可选 MCP 服务器的配置化启动宽限期,允许扩展在工具结果送达模型前进行检查或替换,并改进了插件目录以结合仓库级配置同时报告无效项目。错误修复涵盖了多个关键领域,包括:在 TUI 会话中保留已恢复的权限配置文件、在模型切换时正确维护工具可用性和推理努力程度、优化远程沙盒对执行器主目录及操作系统环境的适配、保留结构化的 MCP 工具与资源错误、将嵌套子代理的令牌使用量计入根目标预算,以及防止过时的 Guardian 分类在权限状态变更后仍授权操作。日常维护工作包括增加了对标准输入审查和远程执行器 MCP 发现的遥测,以及在慢速或高并发的 CI 环境中稳定了 Guardian WebSocket 和核心测试用例。

更新内容 (中文)

新功能

  • 新增可配置的延迟时间,用于从可选MCP服务器发现工具。(#41199)
  • 扩展现在可以在MCP工具结果到达模型之前对其进行检查或替换。(#41202)
  • 插件目录现在结合了每个仓库的配置,并报告无效的项目市场而不隐藏有效插件。(#41208)

错误修复

  • 在TUI会话中保留恢复的权限配置,并防止/cd命令削弱沙箱限制。(#41192)
  • 在切换模型或回退到其他模型时,保持工具可用性和推理努力程度正确。(#41195, #41206)
  • 改进了远程沙箱执行,使用执行器的实际主目录、操作系统和路径约定。(#41196, #41204, #41207, #41209)
  • 在应用服务器响应中保留结构化的MCP工具和资源错误。(#41196)
  • 将嵌套子代理的令牌使用量计入根目标预算。(#41183)
  • 防止过时的Guardian分类在权限状态更改后授权操作。(#41196)

杂项

  • 为升级的stdin审查和远程执行器MCP发现添加了遥测。(#41189, #41205)
  • 在缓慢或高并发CI环境下稳定了Guardian WebSocket和核心夹具测试。(#41191, #41194)

变更日志

完整变更日志:https://github.com/openai/codex/compare/rust-v0.150.0…rust-v0.151.0

  • #41183 将子代理令牌使用量计入根目标 @copyberry
  • #41189 为stdin审查大小检查添加检测 @copyberry
  • #41191 稳定Guardian WebSocket测试 @copyberry
  • #41192 在TUI会话中保留恢复的权限配置 @copyberry
  • #41193 报告来自远程插件同步的影响功能 @copyberry
  • #41194 加强核心测试夹具启动断言 @copyberry
  • #41195 在ToolRouter中最终确定特定模型的工具计划 @copyberry
  • #41196 改进沙箱、MCP错误和缓存批准 @copyberry
  • #41199 使可选MCP启动延迟可配置 @copyberry
  • #41202 允许扩展处理MCP工具结果 @copyberry
  • #41204 将执行器主目录传播到沙箱上下文中 @copyberry
  • #41205 跟踪执行器MCP发现遥测 @copyberry
  • #41206 使Ultra推理回退模型感知 @copyberry
  • #41207 将执行器操作系统传播到轮次环境中 @copyberry
  • #41208 在目录请求中尊重每个仓库的插件配置 @copyberry
  • #41209 使拒绝读取匹配与执行器路径语义一致 @copyberry

更新内容 (原始)

New Features

  • Added a configurable grace period for discovering tools from optional MCP servers. (#41199)
  • Extensions can now inspect or replace MCP tool results before they reach the model. (#41202)
  • Plugin catalogs now combine per-repository configuration and report invalid project marketplaces without hiding valid plugins. (#41208)

Bug Fixes

  • Preserved restored permission profiles across TUI turns and prevented /cd from weakening sandbox restrictions. (#41192)
  • Kept tool availability and reasoning effort correct when switching models or falling back to another model. (#41195, #41206)
  • Improved remote sandbox enforcement using the executor’s actual home directory, operating system, and path conventions. (#41196, #41204, #41207, #41209)
  • Preserved structured MCP tool and resource errors in app-server responses. (#41196)
  • Counted nested subagent token usage toward root goal budgets. (#41183)
  • Prevented stale Guardian classifications from authorizing actions after permission state changes. (#41196)

Chores

  • Added telemetry for escalated stdin reviews and remote executor MCP discovery. (#41189, #41205)
  • Stabilized Guardian WebSocket and core fixture tests under slow or highly concurrent CI. (#41191, #41194)

Changelog

Full Changelog: https://github.com/openai/codex/compare/rust-v0.150.0...rust-v0.151.0

  • #41183 Account subagent token usage toward root goals @copyberry
  • #41189 Instrument stdin review size checks @copyberry
  • #41191 Stabilize Guardian WebSocket tests @copyberry
  • #41192 Preserve restored permission profiles in TUI sessions @copyberry
  • #41193 Report affected capabilities from remote plugin syncs @copyberry
  • #41194 Harden core test fixture startup assertions @copyberry
  • #41195 Finalize model-specific tool plans in ToolRouter @copyberry
  • #41196 Improve sandboxing, MCP errors, and cached approvals @copyberry
  • #41199 Make the optional MCP startup grace configurable @copyberry
  • #41202 Let extensions process MCP tool results @copyberry
  • #41204 Propagate executor home directories into sandbox contexts @copyberry
  • #41205 Track executor MCP discovery telemetry @copyberry
  • #41206 Make Ultra reasoning fallback model-aware @copyberry
  • #41207 Propagate executor OS into turn environments @copyberry
  • #41208 Honor per-repository plugin configuration in catalog requests @copyberry
  • #41209 Align deny-read matching with executor path semantics @copyberry

下载链接