OpenAI Codex CLI v0.173.0:MCP共享默认开启
0.173.0
推荐理由
MCP 连接默认共享与同步 Hook 阻断能力直接影响 Agent 调用链路与权限控制逻辑,建议开发者检查现有 Hook 策略是否受新行为影响并及时适配。
New Features
新功能
- Custom status lines can align items left, center, or right, or spread them across the terminal width. (#62569, #62637)
- Terminal Markdown now renders multiline labels on Mermaid flowchart arrows, labeled underbraces in display equations, and \widetilde over a single character. (#62550, #62554, #62577)
- Codex shares MCP connections by default and supports older local servers that require initialize as their first request. (#62552)
- Supported synchronous command and MCP tool hooks can set onFailure to block. A failed PreToolUse check then prevents the tool from running. (#62831)
- Administrators can block both scheduled and manual daemon updates by setting features.daemon_updates = false in managed requirements.toml or local MDM policy. (#62690)
- Codex automatically discovers OAuth endpoints published by a config server when config_server.oauth is omitted. (#62824)
- 自定义状态栏中的项目可以左对齐、居中或右对齐,也可以横跨终端宽度分布。(#62569, #62637)
- 终端 Markdown 现在支持在 Mermaid 流程图箭头上渲染多行标签、在显示方程中标注下划线括号,以及为单个字符添加 \widetilde 符号。(#62550, #62554, #62577)
- Codex 默认共享 MCP 连接,并支持将 initialize 作为首个请求的旧版本地服务器。(#62552)
- 受支持的同步命令和 MCP 工具钩子可将 onFailure 设置为阻塞模式。若 PreToolUse 检查失败,则会阻止工具运行。(#62831)
- 管理员可以通过在托管的 requirements.toml 或本地 MDM 策略中设置 features.daemon_updates = false,来阻止计划内和手动触发的守护进程更新。(#62690)
- 当省略 config_server.oauth 时,Codex 会自动发现配置服务器发布的 OAuth 端点。(#62824)
Bug Fixes
错误修复
- Open sidebar previews refresh when files change on disk, even when an editor replaces the file on save. (#62583)
- Pasting an image path creates a private copy, so the attachment survives moving or deleting the original before sending. (#62687)
- The Agents overview refreshes Cloud thread names, status, and unread indicators when another client makes changes. (#62858)
- The task mention picker now fuzzy-matches the titles you see and keeps recent threads in the results. (#62691)
- Running threads pick up updated approval requirements and Guardian policies when you reload configuration, sign in, or sign out. (#62585, #62614)
- Codex can report why the server rejected a WebSocket request, including when it was too large, even if the upload stalls or fails. (#62749, #62771)
- 打开侧边栏预览后,即使编辑器在保存时替换了文件,磁盘上的文件变更也会触发预览刷新。(#62583)
- 粘贴图片路径会创建私有副本,因此在发送前移动或删除原始文件不会导致附件丢失。(#62687)
- 当其他客户端进行修改时,Agents 概览页面会刷新 Cloud 线程名称、状态和未读指示器。(#62858)
- 任务提及选择器现在会对您看到的标题进行模糊匹配,并在结果中保留最近的线程。(#62691)
- 当您重新加载配置、登录或登出时,正在运行的线程会获取更新的审批要求和 Guardian 策略。(#62585, #62614)
- Codex 可以报告服务器拒绝 WebSocket 请求的原因(包括请求过大),即使上传停滞或失败也能提供该信息。(#62749, #62771)
Documentation
文档
- The TUI style guide shows how to pair a keyboard shortcut with its action and style hints such as esc close. (#62560)
- TUI 风格指南展示了如何将键盘快捷键与其操作配对,并对 esc close 等样式提示进行了说明。(#62560)
Chores
日常维护
- Smaller npm packages reduce the download size when installing or updating Codex. (#62643)
- 更小的 npm 包减少了安装或更新 Codex 时的下载大小。(#62643)
Changelog
更新日志
Full Changelog: rust-v0.172.0...rust-v0.173.0
完整更新日志:rust-v0.172.0...rust-v0.173.0
- #62525 Reuse the parsed bundled model catalog @jif-oai
- #62532 Avoid cloning the PostToolUse hook payload @jif-oai
- #62534 Add built-in namespace guidance and budget tool description prefixes @tz-openai
- #62537 Respect app-server turn admission for agent mailbox wakes @jif-oai
- #62540 Borrow user input in extension turn contexts @jif-oai
- #62547 Prevent remote app-server shutdown from hanging on a full queue @jif-oai
- #62550 Render multiline Mermaid flowchart edge labels @etraut-openai
- #62552 Enable MCP connection sharing by default @charliemarsh-oai
- #62554 Render \widetilde in terminal Markdown math @etraut-openai
- #62557 Preserve process state across concurrent unified exec updates @jif-oai
- #62558 Stage ICU data for mksnapshot in rusty_v8 builds @charliemarsh-oai
- #62559 Reject overflowing rollout budget charges before posting @tz-openai
- #62560 Document how to render TUI shortcut labels @fcoury-oai
- #62564 Fix timing races in core integration tests @dylan-hurd-oai
- #62566 Remove the real-time wait from the OTLP headers helper timeout test @dylan-hurd-oai
- #62567 Add OpenTelemetry for subagent lifecycles @bryanashley
- #62568 Box the managed credential loading future @charliemarsh-oai
- #62569 Add justification to custom statusline rows @joesavona
- #62571 Keep async Guardian scoring active for serving probes @jif-oai
- #62573 Use the cloud emoji for cloud thread labels @bc-openai
- #62577 Render LaTeX underbraces in TUI display math @etraut-openai
- #62582 Allow macOS installer cleanup despite unrelated mount warnings @etraut-openai
- #62583 Refresh open sidebar file previews when files change @fcoury-oai
- #62585 Enforce refreshed Guardian policy on running threads @ioanbudea-OAI
- #62587 Centralize schema selection for config diagnostics @charliemarsh-oai
- #62588 Support a host-selected inference provider for Guardian @XMLIU-oai
- #62589 Remove cumulative MCP attribution from requests and rollouts @owenlin0
- #62593 Explain Windows sandbox logon policy failures @zm-oai
- #62599 Stream app-server fs/readFile responses over stdio @charliemarsh-oai
- #62601 Retry transient exec-server connection failures @richardopenai
- #62602 Apply additional context when turn input is delivered @dylan-hurd-oai
- #62604 Expose current turn admission state on CodexThread @keitht-openai
- #62607 Enable Guardian V2 scoring with an explicit Guardian provider @XMLIU-oai
- #62609 Apply backpressure to app-server request replay on thread resume @ztanner-oai
- #62610 Refresh plugin recommendations after installed state changes @zamoshchin-openai
- #62614 Refresh Guardian policy on config reload and account changes @rreichel3-oai
- #62615 Split in-memory execution policy rules into a separate crate @charliemarsh-oai
- #62621 Handle rollout budget decisions in each accounting path @tz-openai
- #62624 Share slash command argument range mapping in the TUI @imac-oai
- #62627 Retry Guardian model discovery in the background @XMLIU-oai
- #62633 Centralize thread context ID allocation @euroelessar
- #62635 Centralize request and prefix ID handling in ThreadContextIds @euroelessar
- #62636 Reduce rollout scanning overhead when listing threads @dkovalenko-oai
- #62637 Add center and end alignment to status line rows @joesavona
- #62639 Defer queue-only mail after a retained final answer @pash-openai
- #62640 Reuse executor Discovery V2 inventories across turns @TAFOYA-OAI
- #62641 Release persisted MCP tool results from active-turn memory @btraut-openai
- #62642 Hide the warning navigation hint for a single warning @imac-oai
- #62643 Shrink npm release tarballs with libdeflate @imac-oai
- #62644 Pass inherited history visibility to the thread store @owenlin0
- #62648 Fix standalone release pruning on macOS with GNU coreutils @fcoury-oai
- #62653 Return file sizes from fs/getMetadata @fcoury-oai
- #62654 Add thread and child retention policies for injected items @vivi
- #62674 Prewarm executor capability discovery during remote startup @TAFOYA-OAI
- #62675 Force executor capability rescans after V2 cache invalidation @TAFOYA-OAI
- #62677 Keep explicitly pinned history outside the carryover token budget @vivi
- #62679 Retry executor discovery V2 failures with backoff @TAFOYA-OAI
- #62684 Allow hosts to route selected analytics events @ding-oai
- #62687 Copy pasted image files into temporary TUI attachments @etraut-openai
- #62690 Let administrators disable Codex daemon updates @etraut-openai
- #62691 Match TUI task mentions by displayed title @etraut-openai
- #62709 Link agent tool calls to delivered messages in rollout traces @cassirer-openai
- #62742 Flush idle Responses WebSocket pongs under backpressure @charliemarsh-oai
- #62749 Recover server replies after Responses WebSocket write failures @charliemarsh-oai
- #62771 Read Responses WebSocket messages during blocked uploads @charliemarsh-oai
- #62807 Reset TUI thread-switch state on reconnect @fcoury-oai
- #62808 Remove model-selected Search MCP routing @yitaoh-oai
- #62810 Include native USD in ChatGPT turn cost telemetry @jfoo-oai
- #62820 Upgrade Bazel to 9.3.3 @ioanbudea-OAI
- #62824 Enable OAuth discovery by default for config servers @vishnu-oai
- #62827 Persist Guardian retention limits in thread settings @ioanbudea-OAI
- #62828 Honor Guardian retention settings for assistant messages @ioanbudea-OAI
- #62829 Apply elastic Guardian budgets to retained user and sender evidence @ioanbudea-OAI
- #62831 Let required hooks block continuation on failure @rtaylor-oai
- #62833 Record MCP tool call outcomes in traces @tigrantsat-openai
- #62837 Load managed cloud config for plugin add and list @mpc-oai
- #62840 Reuse one syntax highlighter when building TUI Markdown styles @charliemarsh-oai
- #62842 Tag all multi-agent role instructions consistently @rhan-oai
- #62846 Return an assessment for explicit Guardian reviews @swastik-oai
- #62525 复用已解析的捆绑模型目录 @jif-oai
- #62532 避免克隆 PostToolUse 钩子的有效载荷 @jif-oai
- #62534 添加内置命名空间指导和预算工具描述前缀 @tz-openai
- #62537 尊重 app-server 的轮次准入机制以处理代理邮箱唤醒 @jif-oai
- #62540 在扩展程序转换上下文中借用用户输入 @jif-oai
- #62547 防止远程应用服务器因队列满而挂起 @jif-oai
- #62550 渲染多行 Mermaid 流程图边标签 @etraut-openai
- #62552 默认启用 MCP 连接共享 @charliemarsh-oai
- #62554 在终端 Markdown 数学公式中渲染 \widetilde @etraut-openai
- #62557 在并发统一执行更新之间保留进程状态 @jif-oai
- #62558 在 rusty_v8 构建中为 mksnapshot 准备 ICU 数据 @charliemarsh-oai
- #62559 在发布前拒绝超出的发布预算费用 @tz-openai
- #62560 文档说明如何渲染 TUI 快捷键标签 @fcoury-oai
- #62564 修复核心集成测试中的时序竞争问题 @dylan-hurd-oai
- #62566 从 OTLP 标头辅助超时测试中移除实时等待 @dylan-hurd-oai
- #62567 为子代理生命周期添加 OpenTelemetry 支持 @bryanashley
- #62568 将托管凭据加载的未来(future)装箱 @charliemarsh-oai
- #62569 为自定义状态栏行添加对齐方式 @joesavona
- #62571 保持异步 Guardian 评分对服务探测处于活动状态 @jif-oai
- #62573 使用云表情符号作为云端线程标签 @bc-openai
- #62577 在 TUI 显示数学公式中渲染 LaTeX 下划线 @etraut-openai
- #62582 尽管存在无关的挂载警告,仍允许 macOS 安装程序清理 @etraut-openai
- #62583 当文件更改时刷新打开侧边栏的文件预览 @fcoury-oai
- #62585 对运行中的线程强制执行刷新的 Guardian 策略 @ioanbudea-OAI
- #62587 集中化配置诊断的模式选择 @charliemarsh-oai
- #62588 支持由主机选择的 Guardian 推理提供商 @XMLIU-oai
- #62589 从请求和发布中移除累积的 MCP 归属 @owenlin0
- #62593 解释 Windows 沙盒登录策略失败原因 @zm-oai
- #62599 通过 stdio 流式传输 app-server fs/readFile 响应 @charliemarsh-oai
- #62601 重试瞬态 exec-server 连接失败 @richardopenai
- #62602 在交付轮次输入时应用额外上下文 @dylan-hurd-oai
- #62604 在 CodexThread 上暴露当前轮次准入状态 @keitht-openai
- #62607 使用显式 Guardian 提供程序启用 Guardian V2 评分 @XMLIU-oai
- #62609 在线程恢复时对 app-server 请求重放应用背压 @ztanner-oai
- #62610 在安装状态更改后刷新插件推荐 @zamoshchin-openai
- #62614 在配置重新加载和账户更改时刷新 Guardian 策略 @rreichel3-oai
- #62615 将内存中执行策略规则拆分为单独的 crate @charliemarsh-oai
- #62621 在每个计费路径中处理发布预算决策 @tz-openai
- #62624 在 TUI 中共享斜杠命令参数范围映射 @imac-oai
- #62627 在后台重试 Guardian 模型发现 @XMLIU-oai
- #62633 集中化线程上下文 ID 分配 @euroelessar
- #62635 在 ThreadContextIds 中集中化处理请求和前缀 ID @euroelessar
- #62636 在列出线程时减少发布扫描开销 @dkovalenko-oai
- #62637 为状态行行添加居中和右对齐 @joesavona
- #62639 在保留最终答案后延迟仅队列邮件 @pash-openai
- #62640 跨轮次重用 Executor Discovery V2 清单 @TAFOYA-OAI
- #62641 从当前活跃轮次内存中释放持久化的 MCP 工具结果 @btraut-openai
- #62642 隐藏单个警告的警告导航提示 @imac-oai
- #62643 使用 libdeflate 缩小 npm 发布压缩包 @imac-oai
- #62644 将继承的历史可见性传递给线程存储 @owenlin0
- #62648 修复 macOS 上使用 GNU coreutils 时的独立发布修剪问题 @fcoury-oai
- #62653 从 fs/getMetadata 返回文件大小 @fcoury-oai
- #62654 为注入项添加线程和子级保留策略 @vivi
- #62674 在远程启动期间预热执行器能力发现 @TAFOYA-OAI
- #62675 在 V2 缓存失效后强制重新扫描执行器能力 @TAFOYA-OAI
- #62677 将显式固定的历史记录置于结转令牌预算之外 @vivi
- #62679 使用退避机制重试执行器发现 V2 失败 @TAFOYA-OAI
- #62684 允许主机路由选定的分析事件 @ding-oai
- #62687 将粘贴的图像文件复制到临时 TUI 附件中 @etraut-openai
- #62690 允许管理员禁用 Codex 守护进程更新 @etraut-openai
- #62691 按显示标题匹配 TUI 任务提及 @etraut-openai
- #62709 在发布跟踪中将代理工具调用链接到已发送的消息 @cassirer-openai
- #62742 在背压下刷新空闲 Responses WebSocket pong @charliemarsh-oai
- #62749 在 Responses WebSocket 写入失败后恢复服务器回复 @charliemarsh-oai
- #62771 在上传阻塞期间读取 Responses WebSocket 消息 @charliemarsh-oai
- #62807 在重新连接时重置 TUI 线程切换状态 @fcoury-oai
- #62808 移除由模型选择的 Search MCP 路由 @yitaoh-oai
- #62810 在 ChatGPT 轮次成本遥测中包含原生 USD @jfoo-oai
- #62820 将 Bazel 升级至 9.3.3 @ioanbudea-OAI
- #62824 默认启用配置服务器的 OAuth 发现 @vishnu-oai
- #62827 在线程设置中持久化 Guardian 保留限制 @ioanbudea-OAI
- #62828 对助手消息遵守 Guardian 保留设置 @ioanbudea-OAI
- #62829 将弹性 Guardian 预算应用于保留的用户和发送者证据 @ioanbudea-OAI
- #62831 允许必需的钩子在失败时阻止继续执行 @rtaylor-oai
- #62833 在跟踪中记录 MCP 工具调用结果 @tigrantsat-openai
- #62837 为插件添加和列表加载托管云配置 @mpc-oai
- #62840 在构建 TUI Markdown 样式时复用一个语法高亮器 @charliemarsh-oai
- #62842 一致地标记所有多智能体角色指令 @rhan-oai
- #62846 为显式守护者审查返回评估结果 @swastik-oai
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力