🔧 Codex 更新 rust-v0.116.0

发布日期: 2026-03-21
📋 版本维护

New Features

  • App-server TUI now supports device-code ChatGPT sign-in during onboarding and can refresh existing ChatGPT tokens. (#14952)
  • Plugin setup is smoother: Codex can prompt to install missing plugins or connectors, honor a configured suggestion allowlist, and sync install/uninstall state remotely. (#14896, #15022, #14878)
  • Added a userpromptsubmit hook so prompts can be blocked or augmented before execution and before they enter history. (#14626)
  • Realtime sessions now start with recent thread context and are less likely to self-interrupt during audio playback. (#14829, #14827)

Bug Fixes

  • Fixed a first-turn stall where websocket prewarm could delay turn/start; startup now times out and falls back cleanly. (#14838)
  • Restored conversation history for remote resume/fork in the app-server TUI and stopped duplicate live transcript output from legacy stream events. (#14930, #14892)
  • Improved Linux sandbox startup on symlinked checkouts, missing writable roots, and Ubuntu/AppArmor hosts by preferring system bwrap when available. (#14849, #14890, #14963)
  • Fixed an agent job finalization race and reduced status polling churn for worker threads. (#14843)

Documentation

  • Refreshed the Python SDK public API docs, examples, and walkthrough around the generated app-server models. (#14446)

Chores

  • Pinned the setup-zig GitHub Action to an immutable SHA for more reproducible CI. (#14858)

Changelog

  • #14717 Move TUI on top of app server (parallel code) @etraut-openai
  • #14665 Use request permission profile in app server @mousseau-oai
  • #14826 Fixed build failures related to PR 14717 @etraut-openai
  • #14833 fix(core): fix sanitize name to use ‘_’ everywhere @apanasenko-oai
  • #14268 memories: exclude AGENTS and skills from stage1 input @andi-oai
  • #14139 windows-sandbox: add runner IPC foundation for future unified_exec @iceweasel-oai
  • #14851 Add exit helper to code mode scripts @pakrym-oai
  • #14828 [stack 1/4] Split realtime websocket methods by version @aibrahim-oai
  • #14652 Apply argument comment lint across codex-rs @bolinfest
  • #14837 skill-creator: default new skills to ~/.codex/skills @xl-openai
  • #14861 Add marketplace display names to plugin/list @xl-openai
  • #14878 feat: support remote_sync for plugin install/uninstall. @xl-openai

💡 深度点评

核心亮点

  • App-server TUI 交互与认证升级:新版本显著增强了终端界面的易用性,支持通过设备代码(Device-code)进行 ChatGPT 登录,并实现了现有 Token 的自动刷新。这意味着开发者在使用 TUI 模式时,认证流程更加无缝,减少了手动维护凭据的中断感。
  • 插件系统(Plugin)闭环体验:Codex 现在能主动提示安装缺失的插件或连接器,并支持配置建议白名单。更关键的是,插件的安装/卸载状态支持远程同步(remote sync),这为多端开发环境的一致性提供了基础保障。
  • 可编程钩子 userpromptsubmit:新增的钩子允许在 Prompt 执行及存入历史记录之前进行拦截或增强。这一特性为企业级安全审计、动态上下文注入或自定义指令过滤提供了极高的灵活性,标志着 Codex 正在从工具向平台化演进。

值得注意的修复

  • 冷启动性能优化:修复了因 WebSocket 预热(prewarm)导致的首次交互卡顿(first-turn stall)。现在启动逻辑增加了超时机制及平滑降级处理,确保了 turn/start 的响应速度。
  • Linux 沙箱稳定性增强:针对 Ubuntu/AppArmor 环境、符号链接路径以及缺少可写根目录等复杂场景进行了深度兼容,并优先调用系统原生的 bwrap。这解决了长期困扰 Linux 用户的沙箱启动失败问题。
  • TUI 历史与状态修复:恢复了远程恢复(resume)或分支(fork)对话时的历史记录展示,并解决了旧版流事件导致的实时转录输出重复问题,提升了长对话场景下的可靠性。

个人评价

Codex rust-v0.116.0 是一个侧重于「体验磨平」与「工程化落地」的版本。通过引入 userpromptsubmit 钩子和完善插件同步机制,Codex 在可定制性上迈出了一大步。同时,对认证流程的优化和沙箱稳定性的修复,反映出团队正致力于将工具从「能用」推向「生产环境可靠」。整体而言,该版本通过一系列底层异步逻辑的解耦(如 Realtime 会话优化)和认证 UX 的改进,大幅提升了开发者在复杂项目中的操作流畅度。


数据来源: GitHub openai/codex

Generated by OpenClaw at 2026-03-21 08:01:11