← 返回更新日志

Codex rust-v0.23.0

2025-08-20 · GitHub 原文
- 亮点 - 新增命令与控制:在 TUI 中支持 `/mcp` 命令 (#2430),并新增斜杠命令 `/approvals` 用于控制审批 (#2474)。 - 推理控制:在运行时更改推理力度和模型 (#2435) `/model`;为 GPT‑5 模型新增“最低”推理力度选项 (#2326)。 - 认证改进:未登录 ChatGPT 时显示登录选项 (#2440),并自动刷新 ChatGPT 认证令牌 (#2484)。 - 界面/体验优化:Ghostty 的 Ctrl‑b/Ctrl‑f 回退方案 (#2427),支持 Ctrl+H 作为退格键 (#2412),调整 Tab 补全后的光标位置 (#2442),更新颜色与无障碍设计 (#2401, #2421)。 - 分发与基础设施:发布中包含 zip 压缩的二进制文件 (#2438),并为 Windows x86_64 添加 DotSlash 入口 (#2361);升级至 Rust 1.89 (#2465, #2467)。 - 合并的 PR 完整列表 - [#2352](https://github.com/openai/codex/pull/2352) tui:在本地编写器历史中跳过重复的连续条目 - [#2355](https://github.com/openai/codex/pull/2355) 修复:引入 codex-protocol crate - [#2326](https://github.com/openai/codex/pull/2326) 修复 #2296:为 GPT‑5 模型添加“最低”推理力度 - [#2357](https://github.com/openai/codex/pull/2357) 移除重复的“成功登录”消息 - [#2337](https://github.com/openai/codex/pull/2337) 为应用补丁摘要中的状态字母添加颜色 - [#2336](https://github.com/openai/codex/pull/2336) 清理:移除重复的锁文件 - [#2361](https://github.com/openai/codex/pull/2361) 修复:在生成的 DotSlash 文件中为 Windows x86_64 添加条目 - [#2245](https://github.com/openai/codex/pull/2245) 为 `/diff` 命令显示进度指示 - [#2314](https://github.com/openai/codex/pull/2314) 用轮换占位符替换 `/prompts` - [#2372](https://github.com/openai/codex/pull/2372) 添加用于附加到运行中 codex CLI 进程的启动配置 - [#2373](https://github.com/openai/codex/pull/2373) 添加 MCP 服务器命令以启用通过 ChatGPT 认证 - [#2388](https://github.com/openai/codex/pull/2388) 修复:重构 login/src/server.rs,将 process_request() 提取为独立函数 - [#2365](https://github.com/openai/codex/pull/2365) 修复:引入 EventMsg::TurnAborted - [#2360](https://github.com/openai/codex/pull/2360) 移除 mcp-server/src/mcp_protocol.rs 及其依赖代码 - [#2401](https://github.com/openai/codex/pull/2401) 修复:清理样式与颜色,并在 styles.md 中定义 - [#2411](https://github.com/openai/codex/pull/2411) 依赖更新:在 /.github/actions/codex 中升级 @types/node - [#2421](https://github.com/openai/codex/pull/2421) 修复:停止使用 ANSI 蓝色 - [#2423](https://github.com/openai/codex/pull/2423) 清理:将 mcp-server/src/wire_format.rs 移至 protocol/src/mcp_protocol.rs - [#2424](https://github.com/openai/codex/pull/2424) 清理:为生成的 mcp-types 添加 TS 注解 - [#2428](https://github.com/openai/codex/pull/2428) 将推理枚举合并为一个 - [#2431](https://github.com/openai/codex/pull/2431) 添加覆盖当前任务上下文的功能 - [#2425](https://github.com/openai/codex/pull/2425) protocol-ts - [#2432](https://github.com/openai/codex/pull/2432) 为 UserTurn 添加缓存测试 - [#2412](https://github.com/openai/codex/pull/2412) 修复 #2391:添加 Ctrl+H 作为退格键的快捷键 - [#2405](https://github.com/openai/codex/pull/2405) 依赖更新:在 /codex-rs 中升级 anyhow - [#2406](https://github.com/openai/codex/pull/2406) 依赖更新:在 /codex-rs 中升级 libc - [#2389](https://github.com/openai/codex/pull/2389) 清理:优先返回 Err 而非使用 expect() - [#2393](https://github.com/openai/codex/pull/2393) 修复:将登录流程异步化 - [#2404](https://github.com/openai/codex/pull/2404) 依赖更新:在 /codex-rs 中升级 clap - [#2394](https://github.com/openai/codex/pull/2394) 修复:将 `shutdown_flag` 从 `Arc<AtomicBool>` 改为 `tokio::sync::Notify` - [#2438](https://github.com/openai/codex/pull/2438) 发布包含 zip 压缩二进制文件的版本 - [#2395](https://github.com/openai/codex/pull/2395) 修复:移除 ServerOptions.login_timeout,改用 tokio::time::timeout() - [#2396](https://github.com/openai/codex/pull/2396) 修复:将 ShutdownHandle 设为 LoginServer 的私有字段 - [#2398](https://github.com/openai/codex/pull/2398) 修复:减少 codex-login crate 中对 Server 的引用 - [#2399](https://github.com/openai/codex/pull/2399) 修复:移除 run_login_server() 的 shutdown_flag 参数 - [#2403](https://github.com/openai/codex/pull/2403) 依赖更新:在 /codex-rs 中升级 clap_complete - [#2440](https://github.com/openai/codex/pull/2440) 未登录 ChatGPT 时显示登录选项 - [#2446](https://github.com/openai/codex/pull/2446) 修复:从上下文百分比中排除系统提示等 - [#2430](https://github.com/openai/codex/pull/2430) [tui] 支持 /mcp 命令 - [#2442](https://github.com/openai/codex/pull/2442) 修复 #2429:调整 Tab 补全后的光标位置 - [#2457](https://github.com/openai/codex/pull/2457) 修复:补全审阅决策响应中缺失的空格 - [#2427](https://github.com/openai/codex/pull/2427) tui:支持 Ghostty 的 Ctrl-b/Ctrl-f 回退方案 - [#2407](https://github.com/openai/codex/pull/2407) 依赖更新:将 actions/checkout 从 4 升级到 5 - [#2435](https://github.com/openai/codex/pull/2435) 支持更改推理力度 - [#2462](https://github.com/openai/codex/pull/2462) 特性:在 /status 中调整会话 ID 的显示位置 - [#2464](https://github.com/openai/codex/pull/2464) 文档:记录 sandbox_workspace_write 的 writable_roots - [#2466](https://github.com/openai/codex/pull/2466) 修复:优先使用 `cargo check` 而非 `cargo build` 以节省时间与空间 - [#2465](https://github.com/openai/codex/pull/2465) 清理:升级至 Rust 1.89 - [#2467](https://github.com/openai/codex/pull/2467) 清理:Rust 1.89 将文件锁定功能移入标准库 - [#2468](https://github.com/openai/codex/pull/2468) 修复:当仅渲染一个文件时应用补丁 - [#2475](https://github.com/openai/codex/pull/2475) 修复:即使使用其他提供商也显示“登录”的问题 - [#2460](https://github.com/openai/codex/pull/2460) 为 Rust 工具链启用 Dependabot 更新 - [#2476](https://github.com/openai/codex/pull/2476) Diff 命令 - [#2487](https://github.com/openai/codex/pull/2487) 客户端标头 - [#2484](https://github.com/openai/codex/pull/2484) 刷新 ChatGPT 认证令牌 - [#2495](https://github.com/openai/codex/pull/2495) 修复:优先使用配置变量而非环境变量 - [#2474](https://github.com/openai/codex/pull/2474) 添加控制权限的斜杠命令