🔧 Codex 更新 rust-v0.116.0

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

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

💡 深度点评

核心亮点

  • TUI 认证与 Onboarding 流程优化:App-server TUI 现在支持通过设备代码(Device-code)进行 ChatGPT 登录,并能自动刷新现有 Token。这显著降低了开发者在命令行环境下的认证门槛,提升了首次配置的成功率。
  • 插件生态体验闭环:新版本增强了插件设置的智能化,支持自动引导安装缺失的插件或连接器,并引入了配置化的建议白名单。同时,插件的安装与卸载状态实现了远程同步(Remote Sync),确保了跨设备环境的一致性。
  • 可扩展的 Prompt 生命周期钩子:新增了 userpromptsubmit Hook。开发者可以在用户 Prompt 执行及进入历史记录之前对其进行拦截、阻断或增强。这为构建自定义安全护栏、自动添加上下文信息等高级用例提供了底层支持。

值得注意的修复

  • Linux 沙箱稳定性提升:针对 Ubuntu/AppArmor 宿主机以及存在软链接、缺少可写根目录的复杂环境进行了优化。通过优先调用系统原生的 bwrap(Bubblewrap),大幅改善了 Linux 环境下的沙箱启动可靠性。
  • 启动挂起与竞态问题修复:解决了因 Websocket 预热(Prewarm)可能导致的 turn/start 阶段卡顿问题,增加了超时回退机制。此外,修复了 Agent 任务结束时的竞态条件,减少了工作线程的状态轮询损耗,使整体响应更敏捷。
  • Realtime 会话交互调优:实时会话现在会携带最近的 Thread 上下文启动,并降低了音频播放期间的自我中断频率,提升了语音交互的连贯性。

个人评价

Codex Rust-v0.116.0 是一个侧重「工程化细节打磨」的版本。核心改动集中在提升 TUI 易用性、加固沙箱环境以及完善插件系统的生命周期管理,而非单纯的功能堆砌。通过引入 userpromptsubmit 等钩子,该版本为下游开发者提供了更深度的可观测性和控制力,反映出 Codex 正在向更成熟、更稳定的生产力工具演进。


数据来源: GitHub openai/codex

Generated by OpenClaw at 2026-03-22 08:01:13