发布日期: 2026-09-01
版本号: rust-v0.152.0

本次更新包含多项功能增强与问题修复。新功能方面,Vim模式现支持在草稿中使用/?进行搜索,匹配项会高亮显示,并可通过nN重复导航;终端界面和codex exec命令会显示凭证刷新进度,包括Amazon Bedrock的重新认证;MCP服务器名称支持:@/.等字符,采用包式命名;单个MCP工具现支持output_token_limit设置。错误修复主要包括:启用Vim的编辑器在提交消息或使用斜杠命令后,新草稿会以插入模式启动;自动审批审查现在能保留用户指令和授权信息,并在历史记录压缩时维持更长的消息与对话记录;恢复线程时会在未提供路径时还原其保存的工作目录;解决了Windows沙盒执行、子进程挂起及旧版JediTerm终端光标显示损坏等问题。其他杂项更新包括:计划工具现默认禁用,需手动启用;插件推荐在启动时加载以减少首次交互延迟。本次为版本rust-v0.152.0的更新。

更新内容 (中文)

新功能

  • Vim模式支持在草稿内使用/?进行搜索,高亮匹配结果,并可通过nN重复导航。(#41586)
  • 速率限制横幅提供操作选项,用于查看使用情况、管理积分、重置限制和管理计划。(#41742)
  • 终端界面和codex exec显示凭证刷新进度,包括Amazon Bedrock重新认证。(#41239)
  • MCP服务器名称可包含:@/.,支持整个CLI命令和认证中的包式命名。(#41700)
  • 单个MCP工具支持output_token_limit设置,在会话恢复时实现一致的截断。(#41421)
  • 应用服务器客户端可配置thread/shellCommand超时,包括超过一小时的截止时间。(#41384)

错误修复

  • 启用Vim的编辑器现在在提交消息或分发斜杠命令后,会以插入模式开始新的草稿。(#41921)
  • 自动审批审查可以保留更长的消息和更大的对话记录。(#41931)
  • 自动审批审查在历史压缩过程中保留用户指令、答案和有效授权。(#41660, #41846, #41852)
  • 当未提供路径时,恢复的线程会从拥有的设置快照中恢复其保存的工作目录,并且客户端元数据更新会保留文件系统权限。(#41567, #41464)
  • MCP工具在缓存刷新和远程插件更改期间保持可用;认证重试使用刷新的辅助程序提供的头信息。(#41336, #41344, #41396, #41400)
  • 打开模型选择器时,刷新可用模型而不会丢失高亮选择。(#41467)
  • 修复了Windows沙盒执行与Microsoft Store PowerShell、子进程在终端查询时挂起,以及旧版JediTerm终端中与光标相关的显示损坏问题。(#41227, #41436, #41673)
  • 云任务请求会拒绝不受信任的后端URL并禁用重定向,以保护保存的凭证。(#41403)

杂项

  • 规划工具默认禁用;可通过tools.update_plan.enabled = true启用。(#41744)
  • 插件建议在启动期间开始加载,减少了第一轮对话前的延迟。(#41375)

变更日志

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

  • #41210 从模型元数据启用时钟工具 @copyberry
  • #41215 在后续审查前翻转Guardian上下文 @copyberry
  • #41218 在TUI中共享链接工具提及解析 @copyberry
  • #41219 重试已确认的远程注册冲突 @copyberry
  • #41221 在Guardian审查翻转中遵守回合令牌预算 @copyberry
  • #41223 为project/list添加最近时间排序 @copyberry
  • #41226 将Guardian审查会话测试移至单独文件 @copyberry
  • #41227 在Windows沙盒提权命令中使用兼容的PowerShell @copyberry
  • #41230 对未认证的插件读取应用应用路由策略 @copyberry
  • #41231 检测已加载的插件缓存 @copyberry
  • #41232 在环境上下文中公开PowerShell版本 @copyberry
  • #41235 清理历史记录后端错误 @copyberry
  • #41239 显示模型提供商认证恢复进度 @copyberry
  • #41243 为sleep工具添加可配置的门控 @copyberry
  • #41250 在实时连接元数据中包含线程来源 @copyberry
  • #41260 让历史记录后端强制执行工具输出预算 @copyberry
  • #41285 从操作注册表驱动快捷键冲突检查 @copyberry
  • #41292 将历史记录备注图像转发给模型 @copyberry
  • #41308 使子代理遵循根服务层级 @copyberry
  • #41309 重用Guardian分数时遵守必需的审查 @copyberry
  • #41313 将HTTP重试退避与过载集成测试解耦 @copyberry
  • #41322 隔离必需模型的Guardian审批覆盖范围 @copyberry
  • #41328 根据保留的权限审查终端输入 @copyberry
  • #41331 将时钟工具分类为内置控制工具 @copyberry
  • #41336 在绑定捕获期间保留缓存的MCP工具 @copyberry
  • #41344 在绑定捕获期间使用刷新的MCP工具缓存 @copyberry
  • #41349 为生成的响应输入项分配稳定ID @copyberry
  • #41354 在审查的终端输入中拒绝NUL字节 @copyberry
  • #41357 支持共享滚动部署系谱的压缩 @copyberry
  • #41360 在应用服务器启动时测量Codex主页使用情况 @copyberry
  • #41364 测试恢复压缩的共享部署 @copyberry
  • #41365 将异步用户消息限制为问题 @copyberry
  • #41368 使Windows Shell指导与执行器平台匹配 @copyberry
  • #41375 在会话启动期间预加载插件建议 @copyberry
  • #41380 澄清主动多代理委托指导 @copyberry
  • #41384 支持线程Shell命令的可配置超时 @copyberry
  • #41385 为Guardian分类分配不同的回合标识 @copyberry
  • #41392 添加共享Guardian上下文原语 @copyberry
  • #41393 当统一执行被禁用时保留一次性执行 @copyberry
  • #41396 刷新远程插件状态更改的运行时 @copyberry
  • #41400 在授权失败后刷新MCP HTTP辅助程序头信息 @copyberry
  • #41403 将云任务凭证限制为受信任的来源 @copyberry
  • #41413 优化历史记录项查找 @copyberry
  • #41416 添加应用服务器通知媒体过滤 @copyberry
  • #41421 支持每工具MCP输出限制 @copyberry
  • #41422 添加共享Guardian记录收集 @copyberry
  • #41424 跨嵌套代理分支保留上下文基线 @copyberry
  • #41427 从函数调用输出通知中过滤媒体 @copyberry
  • #41429 为每个回合保留最后选定的步骤上下文 @copyberry
  • #41432 为被中断的回合运行执行器钩子 @copyberry
  • #41435 允许在子代理停止时运行捆绑浏览器清理钩子 @copyberry
  • #41436 响应来自TTY子进程的终端查询 @copyberry
  • #41447 支持openai/elicitation表单请求 @copyberry
  • #41448 澄清默认协作模式下的问题处理 @copyberry
  • #41449 重命名只读Seatbelt平台默认策略 @copyberry
  • #41452 报告代码模式主机请求持续时间 @copyberry
  • #41454 在重复的执行主机失败后阻止目标 @copyberry
  • #41456 在执行器插件钩子中支持应用目标 @copyberry
  • #41457 从模型目录获取主动多代理指令 @copyberry
  • #41461 从模型目录获取异步用户消息描述 @copyberry
  • #41464 更新会话元数据时保留权限 @copyberry
  • #41467 从应用服务器刷新TUI模型选择器 @copyberry
  • #41476 为发布二进制文件使用rules_rs平台 @copyberry
  • #41477 将捆绑的Rust资源组织到资产目录下 @copyberry
  • #41562 跨目标延续保留回合系谱 @copyberry
  • #41567 从拥有的设置快照恢复线程工作目录 @copyberry
  • #41569 加强诊断报告上传 @copyberry
  • #41570 修复主动多代理指令语法 @copyberry
  • #41586 在编辑器中添加Vim搜索动作 @copyberry
  • #41613 将Vim历史记录测试移至历史记录搜索模块 @copyberry
  • #41630 更新默认启用update_plan的测试 @copyberry
  • #41660 在历史压缩过程中保留Guardian授权 @copyberry
  • #41666 无需Guardian等待即可批准首次Node REPL执行 @copyberry
  • #41673 修复旧版JediTerm终端上的光标样式渲染 @copyberry
  • #41683 为环境MCP测试设置工作目录 @copyberry
  • #41700 支持包式MCP服务器名称 @copyberry
  • #41742 在TUI中显示可操作的速率限制横幅 @copyberry
  • #41743 在回合元数据中标记历史记录摄取请求 @copyberry
  • #41744 使update_plan工具成为可选启用 @copyberry
  • #41803 允许模型默认启用令牌预算 @copyberry
  • #41840 为审批审查使用异步栈预算 @copyberry
  • #41846 在压缩过程中保留Guardian审查证据 @copyberry
  • #41852 在压缩过程中保留Guardian用户答案 @copyberry
  • #41853 在其API边界处装箱会话启动未来对象 @copyberry
  • #41857 从当前历史记录中保留Guardian用户答案 @copyberry
  • #41858 当Guardian历史记录丢弃超大图像时保留用户文本 @copyberry
  • #41861 将历史记录扩展工具排除在Guardian审查之外 @copyberry
  • #41921 以插入模式开始新的Vim草稿
  • #41931 增加Guardian消息记录限制

更新内容 (原始)

New Features

  • Vim mode supports / and ? searches within drafts, highlighted matches, and repeat navigation with n and N. (#41586)
  • Rate-limit banners offer actions for checking usage, managing credits, resetting limits, and managing plans. (#41742)
  • The terminal UI and codex exec show credential-refresh progress, including Amazon Bedrock reauthentication. (#41239)
  • MCP server names can contain :, @, /, and ., supporting package-style names throughout CLI commands and authentication. (#41700)
  • Individual MCP tools support an output_token_limit setting, with consistent truncation across session resumes. (#41421)
  • App-server clients can configure thread/shellCommand timeouts, including deadlines longer than one hour. (#41384)

Bug Fixes

  • Vim-enabled composers now start fresh drafts in Insert mode, including after submitting messages or dispatching slash commands. (#41921)

  • Automatic approval reviews can retain longer messages and a larger conversation transcript. (#41931)

  • Automatic approval reviews preserve user instructions, answers, and valid authorizations across history compaction. (#41660, #41846, #41852)

  • Resumed threads restore their saved working directory when none is supplied, and client metadata updates preserve filesystem permissions. (#41567, #41464)

  • MCP tools remain available through cache refreshes and remote plugin changes; authentication retries use refreshed helper-provided headers. (#41336, #41344, #41396, #41400)

  • Opening the model picker refreshes available models without losing the highlighted choice. (#41467)

  • Fixed Windows sandbox execution with Microsoft Store PowerShell, subprocess hangs on terminal queries, and cursor-related display corruption in older JediTerm terminals. (#41227, #41436, #41673)

  • Cloud task requests reject untrusted backend URLs and disable redirects to protect saved credentials. (#41403)

Chores

  • The planning tool is disabled by default; enable it with tools.update_plan.enabled = true. (#41744)
  • Plugin recommendations begin loading during startup, reducing delays before the first turn. (#41375)

Changelog

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

  • #41210 Enable clock tools from model metadata @copyberry
  • #41215 Roll over Guardian context before follow-up reviews @copyberry
  • #41218 Share linked tool mention parsing in the TUI @copyberry
  • #41219 Retry confirmed remote registration conflicts @copyberry
  • #41221 Honor turn token budgets in Guardian review rollover @copyberry
  • #41223 Add recency sorting to project/list @copyberry
  • #41226 Move Guardian review session tests to a separate file @copyberry
  • #41227 Use compatible PowerShell for elevated Windows sandbox commands @copyberry
  • #41230 Apply app routing policy to unauthenticated plugin reads @copyberry
  • #41231 Instrument the loaded plugin cache @copyberry
  • #41232 Expose the PowerShell version in environment context @copyberry
  • #41235 Sanitize history notes backend errors @copyberry
  • #41239 Surface model provider authentication recovery progress @copyberry
  • #41243 Add configurable gating for the sleep tool @copyberry
  • #41250 Include thread source in realtime connection metadata @copyberry
  • #41260 Let the history backend enforce tool output budgets @copyberry
  • #41285 Drive keymap conflict checks from the action registry @copyberry
  • #41292 Forward history note images to the model @copyberry
  • #41308 Make subagents follow the root service tier @copyberry
  • #41309 Honor required reviews when reusing Guardian scores @copyberry
  • #41313 Decouple HTTP retry backoff from overload integration testing @copyberry
  • #41322 Isolate required-model Guardian approval coverage @copyberry
  • #41328 Review terminal input against retained permissions @copyberry
  • #41331 Classify clock tools as built-in control tools @copyberry
  • #41336 Preserve cached MCP tools during binding capture @copyberry
  • #41344 Use refreshed MCP tool caches during binding capture @copyberry
  • #41349 Assign stable IDs to generated Responses input items @copyberry
  • #41354 Reject NUL bytes in reviewed terminal input @copyberry
  • #41357 Support compression for shared rollout lineages @copyberry
  • #41360 Measure Codex home usage at app-server startup @copyberry
  • #41364 Test resuming compressed shared rollouts @copyberry
  • #41365 Restrict async user messages to questions @copyberry
  • #41368 Match Windows shell guidance to the executor platform @copyberry
  • #41375 Preload plugin recommendations during session startup @copyberry
  • #41380 Clarify proactive multi-agent delegation guidance @copyberry
  • #41384 Support configurable timeouts for thread shell commands @copyberry
  • #41385 Give Guardian classifications distinct turn identities @copyberry
  • #41392 Add shared Guardian context primitives @copyberry
  • #41393 Preserve one-shot exec when unified exec is disabled @copyberry
  • #41396 Refresh runtimes for remote plugin state changes @copyberry
  • #41400 Refresh MCP HTTP helper headers after authorization failures @copyberry
  • #41403 Restrict cloud task credentials to trusted origins @copyberry
  • #41413 Optimize history item lookups @copyberry
  • #41416 Add app-server notification media filtering @copyberry
  • #41421 Support per-tool MCP output limits @copyberry
  • #41422 Add shared Guardian transcript collection @copyberry
  • #41424 Preserve context baselines across nested agent forks @copyberry
  • #41427 Filter media from function call output notifications @copyberry
  • #41429 Retain the last selected step context for each turn @copyberry
  • #41432 Run executor hooks for interrupted turns @copyberry
  • #41435 Allow bundled browser cleanup hooks on subagent stop @copyberry
  • #41436 Respond to terminal queries from TTY subprocesses @copyberry
  • #41447 Support openai/elicitation form requests @copyberry
  • #41448 Clarify question handling in Default collaboration mode @copyberry
  • #41449 Rename the read-only Seatbelt platform defaults policy @copyberry
  • #41452 Report code mode host request durations @copyberry
  • #41454 Block goals after repeated execution host failures @copyberry
  • #41456 Support app targets in executor plugin hooks @copyberry
  • #41457 Source proactive multi-agent instructions from the model catalog @copyberry
  • #41461 Source async user message descriptions from the model catalog @copyberry
  • #41464 Preserve permissions when updating session metadata @copyberry
  • #41467 Refresh the TUI model picker from the app server @copyberry
  • #41476 Use rules_rs platforms for release binaries @copyberry
  • #41477 Organize bundled Rust resources under asset directories @copyberry
  • #41562 Preserve turn lineage across goal continuations @copyberry
  • #41567 Restore thread cwd from owned settings snapshots @copyberry
  • #41569 Harden diagnostic report uploads @copyberry
  • #41570 Fix proactive multi-agent instruction grammar @copyberry
  • #41586 Add Vim search motions to the composer @copyberry
  • #41613 Move Vim history tests into the history search module @copyberry
  • #41630 Update tests for default-enabled update_plan @copyberry
  • #41660 Preserve Guardian authorization across history compaction @copyberry
  • #41666 Approve the first Node REPL execution without a Guardian wait @copyberry
  • #41673 Repair cursor-style rendering on older JediTerm terminals @copyberry
  • #41683 Set working directories for environment MCP tests @copyberry
  • #41700 Support package-style MCP server names @copyberry
  • #41742 Show actionable rate-limit banners in the TUI @copyberry
  • #41743 Mark history ingestion requests in turn metadata @copyberry
  • #41744 Make the update_plan tool opt-in @copyberry
  • #41803 Allow models to enable token budgeting by default @copyberry
  • #41840 Use the async stack budget for approval reviews @copyberry
  • #41846 Preserve Guardian review evidence across compaction @copyberry
  • #41852 Preserve Guardian user answers across compaction @copyberry
  • #41853 Box the session startup future at its API boundary @copyberry
  • #41857 Preserve Guardian user answers from current history @copyberry
  • #41858 Preserve user text when Guardian history drops oversized images @copyberry
  • #41861 Keep history extension tools out of Guardian reviews @copyberry
  • #41921 Start fresh Vim drafts in Insert mode
  • #41931 Increase Guardian message transcript limits

下载链接