Codex CLI 0.148.0 稳定版发布,主打会话分叉:用 `codex exec fork` 可以从现有会话开出分支,TUI 的恢复选择器也支持归档和恢复会话。hooks 现在可以异步执行命令,还能调用 MCP 工具。Amazon Bedrock Runtime 成为内置 provider,支持 AWS profile、区域选择和 GPT-5.6 路由;`/status`、状态栏和终端标题会显示会话的预估 credits 和成本。其他新增:`/export` 把对话导出为 markdown(到剪贴板或文件),TUI 启动期间就能先起草 prompt。修复包括:模型切换后残留旧指令、恢复会话时还原工作目录与 approval policy、provider 故障期间的重连、OAuth 重新认证后的 MCP 恢复;Linux 和 Windows 沙箱对被拒或不可读的路径改为默认拒绝(fail closed)。
Codex CLI 0.165 接入 Vertex AI 并扩展会话迁移
Codex CLI 0.165 内置 Google Vertex AI provider,并把 GPT-6.1 Terra 加入模型目录。它还加入仓库筛选和目录分组,让新 profile 默认启用 memory v2,并支持导入外部记忆。附着式线程分叉和对话中途调整推理强度仍属实验功能;本版也修复默认审批、MCP 取消、中断后的排队消息与 marketplace URL 校验。
本文来自既有扫描档案。迁移保留原判断,不代表在迁移时重新核验。
对你意味着什么
对需要跨 provider 或 workspace 迁移 coding-agent 会话的团队来说,这一版减少配置摩擦,也让积累的记忆更容易迁移。实验性的分叉与推理强度调整仍要围绕权限、中断和重放做回归。
证据与关联材料
Codex 0.158.0 稳定版支持预注册 MCP OAuth client secret 与 exec-server bearer token,并默认启用高权限命令的终端输入审批;同时修复 Windows、Linux 与 macOS 的多处沙箱边界问题。
Codex 0.159.0 稳定版加入运行中即时转向与 app-server 历史分页,并保留命令的文件系统拒绝规则、保护 `.aws`、修复 macOS 网络沙箱与 Windows MCP 进程边界。
Codex 0.160.0 增加可选的 Guardian 历史上下文召回,并改善恢复、重连与长任务可靠性。
Codex 0.161.0 扩展 Bedrock 多 agent 支持,并强化远程会话与 sandbox 边界。
Codex 0.162.0 启用托管 worktree 创建、任务置顶与排序式工具发现,并修复跨平台沙箱。
Codex 0.163.0 加强并行读取、转向与沙箱边界
Codex CLI 0.164.0 加入企业 MCP 认证并修复远程 shell 与本地执行边界问题。
Codex 0.165 接入 Vertex AI,扩展记忆迁移与实验性线程分叉。
后续变化
Codex 0.158.0 加固 MCP 认证、命令审批与跨平台沙箱
Codex 0.159.0 增加运行中转向并收紧本地执行边界
Codex 0.160.0 加入 Guardian 历史上下文召回并改善恢复可靠性
Codex 0.161.0 扩大 Bedrock 多 agent 支持并加固远程会话与沙箱边界。
Codex 0.162.0 启用托管 worktree 与任务置顶
Codex 0.163.0 加强并行读取、转向与沙箱边界
Codex 0.164.0 加入企业 MCP 认证并加固远程 shell
Codex 0.165 接入 Vertex AI,扩展记忆迁移与实验性线程分叉
技术细节与六维评分
| 版本 | 0.148.0(stable) |
|---|---|
| 会话分叉 | codex exec fork;可在 TUI 恢复选择器中归档、恢复会话 |
| Hooks | 异步命令执行;可调用 MCP 工具 |
| Bedrock | 内置 Amazon Bedrock Runtime provider;支持 AWS profile 与区域选择;GPT-5.6 路由 |
| 成本可见性 | /status、状态栏和终端标题显示会话预估 credits 与成本 |
| 导出 | /export 导出 markdown 到剪贴板或文件 |
| 加固 | 沙箱对被拒绝或不可读的路径默认拒绝(fail-closed,Linux/Windows) · OAuth 重新认证后 MCP 恢复 · provider 故障期间自动重连 · 恢复的会话还原工作目录与 approval policy |
| V0 150 0 | 0.150.0 stable(2026-08-26T19:37Z):@ 引用其他 Codex 任务;agent 可在终端读取、创建或向任务发消息——agent 发起的跨任务消息进入 stable;Interrupt hooks(回合被中断时执行命令或 MCP handler);安全:不可信项目不再注入 AGENTS.md、app-server 诊断凭据脱敏、应用签名校验、Bedrock multi-agent/压缩兼容修复 |
| V0 150 1 | 0.150.1(2026-08-27T01:56Z):远程压缩将保留图片计入 token 预算(backport) |
| 2026-09-24 更新 | 0.156.0 stable(2026-09-22T19:51Z)让 agent 任务面板默认支持 worktree 会话,增加全屏转录搜索/复制、/usage 分析面板、默认开启的语音对话与本地后台服务更新。该版本修复 Windows 入站网络、特权 socket 与 macOS 只读句柄相关的沙箱缺口。0.156.1 增加 GPT-6 Sol/Luna 路由。维持 ADOPT。 |
| 2026-09-26 更新 | 0.157.0 stable(2026-09-25T02:31Z)默认启动后台服务,支持远程/后台会话 `/import` 与跨应用会话 fork。网络策略会贯穿重定向及持续 HTTP/WebSocket 流量;Unix 本地 MCP server 被限制为 stdio descriptor,daemon socket 路径在祖先挂载中会被遮蔽,gateway OAuth 存储与错误脱敏也得到加固。维持 ADOPT。 |
| 2026-09-28 更新 | 0.158.0 stable(2026-09-28T05:07Z):预注册 MCP OAuth client 可配置 client secret,直连 exec-server 的 WebSocket 支持 bearer token;高权限命令默认启用终端输入审批。沙箱修复覆盖 Windows 10 常规路径、被拒绝的已存凭据、大型权限策略、Linux 嵌套可写目录、Git 元数据保护与 macOS 路径别名。维持 ADOPT。 |
| 2026-09-29 更新 | 0.159.0 stable(2026-09-29T08:05Z)加入可选的即时中断,可在模型回答或长时间 code-mode 调用中途转向;app-server 支持从指定 item 分页读取历史,Mermaid 渲染也更完整。获批命令会保留显式文件系统拒绝规则,可写根目录下的 `.aws` 默认受保护;网络沙箱修复 macOS TLS/proxy,Windows MCP/code-mode 子进程不再弹出多余控制台窗口。维持 ADOPT。 |
| 2026-10-02 更新 | 0.160.0 增加可选的 Guardian 历史指令与 handoff 上下文召回、受工作区策略约束的无项目会话、保留权限的恢复,以及重连和 SQLite 卡顿修复。 |
| 2026 10 07 更新 | 0.161.0 将 GPT-6.1 Sol 设为内置与 Bedrock catalog 默认模型,加入 Bedrock multi-agent V2、Ultra 与 GovCloud,并强化远程会话认证、重放/world-state 历史及审批/沙箱边界。 |
| 更新 2026 10 09 | 0.162.0 在可信项目启用托管 worktree 创建/列举,加入任务置顶、排序式工具搜索和 provider 能力标记;修复 Linux/Windows 沙箱、CRLF 保留与 Retry-After 处理。 |
| 2026 10 16 更新 | 0.163.0:并行只读工具、长工具调用转向、摘要与沙箱/恢复修复 |
| 最新稳定版 | 0.165.0 |
| 企业 MCP 认证 | 符合条件的 Codex grants、独立 OAuth 与 confidential clients |
| 远程 Shell | 遮蔽 Bash/Zsh 快照中的凭据 |
| 安全加固 | macOS 大小写路径、可替换 executable symlink 与权限顺序 |
| 可靠性 | 压缩恢复与线程设置 |
| 发布时间 | 2026-10-27T20:09:38Z |
| 2026-10-28 更新 | 内置 Vertex AI provider、GPT-6.1 Terra 模型目录、仓库筛选与目录分组;新 profile 默认启用 memory v2,支持外部记忆导入,并实验性加入附着式线程分叉与对话中途调整推理强度 |
历史更新原文
· 0.149.0 stable (2026-08-20T21:04Z, in-window; preceded by five 0.149.0 alphas 8/19-8/20; 0.150.0-alpha.1 already out 8/20 22:06Z). New: interactive agents dashboard for searching, starting, opening, renaming and stopping tasks with configurable shortcuts (#39094 et al.) — first fleet-management UI in a stable CLI agent runtime; `codex queue` sends messages into existing local/remote sessions (#39092), with queued messages reliably waking idle sessions and better duplicate-session-name resolution — cross-session messaging lands in Codex stable, initiated by user/orchestrator rather than agent-to-agent (trend #3 criterion (a) partially satisfied); /cd, /pwd, /cwd TUI commands for working-directory management (#38894); vim mode change motions cw/c$/cc (#39661); codex doctor checks endpoint protection, network/proxy failures, desktop app state, update connectivity (#38827 et al.). Also: GPT-5.6 max context window raised (#39102, no figures in release notes); sandbox hardening — dropped capabilities from Linux sandbox processes (#39103), fail-closed PowerShell Tree-sitter lowerer (#39213), symlink-safe sensitive-file reader (#39200); WebRTC sideband reconnects after transport loss without losing output (#39257); SDK exact CLI config overrides + max/ultra reasoning effort (#38817, #39662); docs now warn on DNS exfiltration risks in secure devcontainers (#39283). Recommendation stays ADOPT.
· Recovered from index (previous run wrote the update note to index/events.json only): 0.150.0 stable (19:37Z): @-mentions reference other Codex tasks; agents can read, create, or message tasks from the terminal (agent-initiated cross-task messaging in stable — meets trend #3 criterion (a)); /copy picker; auto task titles; Interrupt hooks (commands/MCP handlers on turn interruption); security: untrusted-project AGENTS.md ignored, credential redaction in app-server diagnostics, app signature verification, Bedrock multi-agent/compaction fixes
· Recovered from index (previous run wrote the update note to index/events.json only): 0.150.1 (01:56Z): remote compaction counts retained images toward token budget (backport)
· 0.151.0 stable (2026-08-29T09:55:39Z GitHub / 09:59:26Z npm, in-window; twelve 0.151.0 alphas 8/27-8/29 preceded it; 0.152.0-alpha.1 followed at 10:53Z). New: configurable grace period for discovering tools from optional MCP servers (#41199); extensions can inspect or replace MCP tool results before they reach the model (#41202) — an MCP middleware hook landing in stable; plugin catalogs combine per-repository configuration and report invalid project marketplaces without hiding valid plugins (#41208). Fixes: restored permission profiles preserved across TUI turns and /cd no longer weakening sandbox restrictions (#41192); tool availability and reasoning effort kept correct across model switches and fallbacks (#41195, #41206); remote sandbox enforcement using the executor's actual home directory, OS and path conventions (#41196/41204/41207/41209); structured MCP tool/resource errors preserved in app-server responses (#41196); nested subagent token usage counted toward root goal budgets (#41183); stale Guardian classifications no longer authorize actions after permission state changes (#41196). Recommendation stays ADOPT.
· 0.152.0 stable (9/1T01:58Z): Vim mode / and ? search in drafts with n/N repeat; rate-limit banners with check-usage/manage-credits/reset-limits actions; credential-refresh progress surfaced in TUI and codex exec (incl. Bedrock reauthentication); MCP server names may contain : @ / . for package-style naming; per-MCP-tool output_token_limit with consistent truncation across session resumes; app-server clients can configure thread/shellCommand timeouts (>1h deadlines); security — cloud task requests reject untrusted backend URLs and disable redirects to protect saved credentials; MCP tools survive cache refreshes and remote plugin changes with refreshed auth headers; planning tool disabled by default (tools.update_plan.enabled). 0.152.1 (9/1T22:33Z): Guardian approval review honors Node REPL policies from model metadata; 0.153.0-alpha line started same day
· 0.153.0 stable (9/3T01:37Z): vim-mode u/Ctrl-R undo preserving full drafts incl. pasted attachments; plugin CLI list/install/remove from remote marketplaces; tui.auto_recap; TUI history shows full patches; Plus/Team early warning when under half of the ~5h usage window remains; TUI auto-reconnect after app-server drop with drafts retained; Full-Access Guardian scoping for confirm-only operations; remembered MCP tool approvals scoped per app account; rollback compaction incl. shared history; structured async questions (request_user_input_async); experimental context_management mode (token-budgeted context + history notes + new_context tool — the Astra notes-across-context-windows feature, default for Astra in coming weeks). 0.153.1-0.153.4 (9/3-9/4): GPT-6-Astra rollout chain — API config support, Fast-tier '2x speed' wording fix, Bedrock model picker, and 0.153.4 making Astra the bundled default when no model is explicitly configured. Alpha channel: 0.154.0-alpha.1-3. Captured 2026-09-05 run
· Codex 0.156.0/0.156.1: worktrees default in command center, fullscreen transcript, usage analytics, voice, sandbox hardening and GPT-6 Sol/Luna routing; stays ADOPT
· Codex 0.157.0: automatic background server, cross-app fork/import and redirect-safe network enforcement; stays ADOPT
· Codex 0.158.0: MCP OAuth client secrets, authenticated exec-server WebSockets, default terminal-input approval and cross-platform sandbox fixes; stays ADOPT