github jlcodes99/cockpit-tools v1.3.25
Cockpit Tools v1.3.25

39 minutes ago

更新日志(中文)

[1.3.25] - 2026-08-23

变更

  • Codex 切号与重新授权更加可靠:解决部分账号切换后需要重新登录、重新授权后账号状态或新登录信息未生效的问题;授权完成后可继续切号或启动原实例。
  • Codex 客户端授权与 API Service 可用性分开判断:客户端需要重新授权但 API Token 仍可用时,账号继续提供 API Service,也不会被计为无效账号。
  • Codex 多开实例增加账号占用保护:同一 OAuth 账号不会同时用于多个官方实例;发生占用时可定位当前实例、改选其他账号或转移账号使用权。
  • Codex API Service 端口冲突时可自动恢复:原端口不可用时会自动更换本地端口并恢复服务,账号、API Key 和账号池设置保持不变。
  • 行为备份改为有界保留:Claude、Codex、WorkBuddy、CodeBuddy 及相关会话和配置修复备份按来源与实例保留最新一份,避免长期占用磁盘空间。

修复

  • 修复 Codex API Service 流式对话卡住和不同对话身份互相影响的问题:流式响应结束后会正常完成请求,不同对话保持独立会话身份。
  • 修复 Codex 账号重新添加后 API Service 统计归零的问题:统计按官方 Codex 账号 ID 归属;删除后重新授权或导入同一官方账号,原有请求数、Token 用量和账号计费会继续保留。
  • 修复 Codex 默认实例识别和启停异常:默认实例及其后台进程可以被正确识别、启动和关闭。
  • 修复已关闭 WebSocket 的 Codex 实例仍反复尝试连接的问题:API Service 会保持实例当前的 WebSocket 设置。

新增

  • Grok 切号可同步 OpenCode 登录信息:可选择在切换 Grok 账号时同步 OpenCode,并自动重启 OpenCode 使新账号立即生效;第三方自定义地址账号不会覆盖现有登录。感谢 @FB208#2002)。
  • 备份存储目录支持迁移到其他磁盘:macOS 和 Windows 可在设置中选择新的本地备份目录;迁移完成后继续使用原有备份,并可按来源查看与清理占用空间。
  • Codex 账号支持导出为官方 auth.json 文件:OAuth、API Key 和 Agent Identity 账号会按对应格式导出,多个账号会生成独立文件。
  • Codex 模型目录支持按模型配置上下文窗口与压缩阈值:每个模型可使用默认值或自定义配置,并同步用于 Codex 客户端和 API Service。

Changelog (English)

[1.3.25] - 2026-08-23

Changed

  • Codex account switching and reauthorization are more reliable: resolved cases where switching required another login or newly authorized account state and credentials did not take effect; after authorization, the original account switch or instance launch can continue.
  • Codex client authorization is now evaluated separately from API Service availability: when the client needs reauthorization but the API token still works, the account remains available to API Service and is not counted as invalid.
  • Codex multi-instance launches now protect account occupancy: the same OAuth account cannot be used by multiple official instances at once; you can locate the active instance, choose another account, or transfer account use.
  • Codex API Service now recovers automatically from local port conflicts: when the original port is unavailable, the service selects another local port while keeping accounts, API keys, and pool settings intact.
  • Behavior backups now use bounded retention: Claude, Codex, WorkBuddy, CodeBuddy, and related session and configuration repair backups keep the newest copy per source and instance instead of consuming disk space indefinitely.

Fixed

  • Fixed Codex API Service streaming conversations hanging and identities leaking across conversations: streaming responses now finish cleanly and each conversation keeps an independent session identity.
  • Fixed Codex API Service stats resetting after an account is added again: usage is attributed by the official Codex account ID, so request counts, token usage, and account cost remain after reauthorizing or re-importing the same official account.
  • Fixed Codex default-instance detection and lifecycle failures: the default instance and its background processes can now be detected, started, and closed correctly.
  • Fixed Codex instances with WebSocket disabled repeatedly attempting WebSocket connections: API Service now preserves each instance's current WebSocket setting.

Added

  • Grok account switches can sync OpenCode sign-in: optionally sync OpenCode when switching Grok accounts and restart OpenCode so the new account takes effect immediately; accounts using custom third-party endpoints do not overwrite the existing sign-in. Thanks @FB208 (#2002).
  • Backup storage can now be moved to another drive: macOS and Windows users can choose a new local backup folder in Settings; existing backups remain available after migration, with storage usage visible and cleanable by source.
  • Codex accounts can be exported as official auth.json files: OAuth, API Key, and Agent Identity accounts are exported in their corresponding formats, with separate files for multiple accounts.
  • Codex model catalogs now support per-model context windows and compact limits: each model can use defaults or custom values, synchronized for both the Codex client and API Service.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.