官方更新 OpenAI Codex Releases 2026-08-18T22:27 正文 ok 282 words

OpenAI Codex 0.148.0

英文标题:OpenAI Codex 0.148.0

OpenAI 发布 Codex 0.148.0,新增 TUI 对话导出、会话分叉及归档恢复、启动期间撰写提示词等功能。该版本还在符合条件的工作区中提供线程 credits 或成本预估,并将 Amazon Bedrock Runtime 作为内置提供商,支持 AWS profile、区域配置和 GPT-5.6 路由。对于开发者而言,异步 Hooks 与 MCP 工具调用扩展了自动化能力,而多项会话恢复、网络重连、终端交互和沙箱限制修复则提升了可靠性与安全性。
打开原文相关 8.8 · 机会 3
media1.1 KB media1.5 KB media46.9 KB

中文

新功能

  • 可通过 /export 将完整 TUI 对话导出为 Markdown,导出目标可以是剪贴板或新文件。(#37358)
  • 可使用 codex exec fork 分叉会话,并可在 TUI 的恢复选择器中归档或恢复会话。(#37367, #37369, #37371)
  • 可在 TUI 初始化期间起草提示词,启动过程中会显示恢复和分叉进度。(#38642, #38788)
  • 对于符合条件的工作区,可在 /status、状态行和终端标题中查看预估的线程 credits 或成本。(#38281, #38282)
  • 可将 Amazon Bedrock Runtime 用作内置提供商,支持 AWS profile、区域以及 GPT-5.6 路由。(#38470)
  • Hooks 现在可以异步运行命令并调用 MCP 工具。(#37533, #38705)

Bug 修复

  • 切换模型和更新设置不再遗留过时指令,也不会在进行中的活跃轮次中途改变行为。(#37260, #38785)
  • 恢复的会话现在能够还原其持久化的工作目录和审批策略,同时提供更准确的转录预览。(#37198, #37368, #38605)
  • 在提供商暂时不可用时,轮次现可重新连接;OAuth 重新认证后,MCP 服务器无需重启 Codex 即可恢复。(#37337, #37485, #38418)
  • TUI 启动时不再因缓冲的终端输入而意外激活提示词;缺少认证时会显示引导流程。(#38641, #38643, #38644)
  • Composer 和转录渲染现在能够正确处理 CRLF 粘贴内容、换行后的空白字符和长 URL。(#37709, #38380, #38704)
  • 在 Linux 和 Windows 上,对于被拒绝访问或不可读取的路径,沙箱限制现在会以默认拒绝的安全方式失败。(#37875, #38026, #38416, #38660)

文档

  • 内置的 skill-creator 指南更加聚焦,验证机制现在会拒绝包含未完成 TODO 占位符的内容。(#38384)

更新日志

完整更新日志:rust-v0.147.0...rust-v0.148.0

English / 原文

New Features

  • Export complete TUI conversations to Markdown with /export, either to the clipboard or a new file. (#37358)
  • Fork sessions with codex exec fork, and archive or restore sessions from the TUI resume picker. (#37367, #37369, #37371)
  • Draft prompts while the TUI initializes, with resume and fork progress shown during startup. (#38642, #38788)
  • View estimated thread credits or cost in /status, status lines, and terminal titles for eligible workspaces. (#38281, #38282)
  • Use Amazon Bedrock Runtime as a built-in provider with AWS profile, region, and GPT-5.6 routing support. (#38470)
  • Hooks can now run commands asynchronously and invoke MCP tools. (#37533, #38705)

Bug Fixes

  • Model switches and settings updates no longer leave stale instructions behind or change an active turn midstream. (#37260, #38785)
  • Resumed sessions now restore their persisted working directory and approval policy, with more accurate transcript previews. (#37198, #37368, #38605)
  • Turns reconnect through temporary provider outages, and MCP servers recover after OAuth reauthentication without restarting Codex. (#37337, #37485, #38418)
  • TUI startup no longer lets buffered terminal input activate prompts accidentally, and onboarding appears when authentication is missing. (#38641, #38643, #38644)
  • Composer and transcript rendering now handle CRLF pastes, wrapped whitespace, and long URLs correctly. (#37709, #38380, #38704)
  • Sandbox restrictions now fail closed for denied or unreadable paths across Linux and Windows. (#37875, #38026, #38416, #38660)

Documentation

  • The bundled skill-creator guide is more focused, and validation now rejects unfinished TODO placeholders. (#38384)

Changelog

Full Changelog: rust-v0.147.0...rust-v0.148.0