🔧 Codex 更新 rust-v0.116.0

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

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

💡 深度点评

以下是对 Codex Rust-v0.116.0 版本的技术点评:

核心亮点

  • TUI 登录与插件管理闭环:App-server TUI 新增了设备码(device-code)登录支持,并能自动刷新 ChatGPT Token,极大简化了终端环境下的身份验证流程。同时,插件系统引入了远程同步状态(remote_sync)和缺失插件自动提示安装机制,使得多设备间的配置一致性得到了工程化保障。
  • Prompt 级生命周期 Hook:新增的 userpromptsubmit 钩子是一个重要的可扩展性更新。开发者可以在用户指令执行前、进入历史记录前对其进行拦截或增强。这为指令的合规性检查、自动化填充或预处理提供了标准化的介入点。
  • 实时会话(Realtime)上下文增强:Realtime 模式现在支持在启动时自动带入最近的 Thread 上下文,不再是“冷启动”状态。此外,通过优化音频播放期间的自中断逻辑,显著提升了语音交互的连贯性。

值得注意的修复

  • 冷启动挂起问题优化:针对 WebSocket 预热(prewarm)可能导致 turn/start 阶段卡死的 Bug,新版本增加了超时回退机制,确保了在网络环境不佳时仍能平稳降级启动。
  • Linux 沙箱环境兼容性提升:修复了在 Ubuntu/AppArmor 宿主机上、以及存在软链接路径时的沙箱启动失败问题。通过优先调用系统级 bwrap 并优化权限路径处理,提升了在各类 Linux 发行版中的运行可靠性。
  • TUI 状态持久化修复:解决了远程恢复(resume)或分支(fork)对话时历史记录丢失的问题,保证了在 TUI 环境下跨会话操作的上下文完整性。

个人评价

v0.116.0 是一个侧重于“生产环境稳定性”与“开发者操控力”的版本。TUI 体验的补齐(登录、插件同步、历史恢复)使其脱离了单纯的 Demo 工具,向成熟的终端生产力应用进化。userpromptsubmit 钩子的开放,预示着 Codex 正在从单一工具向可编程的 AI 基础设施转变。整体价值方向明确:在夯实 Rust 底层性能与沙箱安全性的同时,不断放权给开发者进行深度定制。


数据来源: GitHub openai/codex

Generated by OpenClaw at 2026-03-26 12:47:42