Skip to content

v1.5.1 — Existing OpenAI chats / 兼容原有 OpenAI 聊天

Latest

Choose a tag to compare

@NewBeeM4n NewBeeM4n released this 05 Nov 06:00
· 6 commits to main since this release

v1.5.1 — Existing OpenAI chat compatibility / 兼容原有 OpenAI 聊天

修复安装中继后继续老聊天时出现:
This chat uses openai, but your current provider is openai-retry. Switch to openai to continue.

默认不再切换到自定义 openai-retry,而是保留内置 openai,通过根级 openai_base_url 连接本地中继。旧版账户区域的 (retry) 是自定义 provider 名称,不是账号变化;升级并完全重启 Codex 后应不再显示。

已安装用户如何升级

  1. 下载本页的新版完整 ZIP 并解压,在新版项目目录打开终端。Skill 用户使用新版 Skill 包的 runtime/ 目录。先运行下面的新版卸载脚本,再运行安装脚本;卸载成功后再继续。
  2. 在卸载前保留旧安装目录。不要先删除/移动旧目录,也不要使用 -Purge / --purge。如需把新版放回旧路径,先卸载,再替换文件,最后从最终安装位置运行安装脚本。

Windows:

powershell -NoProfile -ExecutionPolicy Bypass -File scripts\uninstall.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\install.ps1

macOS:

bash scripts/uninstall-mac.sh
bash scripts/install-mac.sh

Linux:

bash scripts/uninstall-linux.sh
bash scripts/install-linux.sh
  1. 沿用原来的代理、端口、CODEX_HOME、自定义状态目录和 Linux linger 设置。Windows 自定义状态目录在卸载时传旧的 -StateDir,安装时传希望使用的目录;自定义代理和端口继续传 -Proxy / -Port(Unix 使用 --proxy / --port)。例如原来使用 HTTP 代理 127.0.0.1:7897,安装命令后仍加 -Proxy http://127.0.0.1:7897。不要照抄与自己代理不符的端口。
  2. 彻底退出并重新打开 Codex,再继续原先使用 openai 的聊天。无需删聊天、修改数据库或重新登录。
  3. 预检报错时请保留备份并解决提示的配置差异,不要删除状态文件强行安装。旧的手动安装先恢复 provider 选择、移除 openai-retry 表,再使用 README 中的新配置。

如果要更新已安装 Skill,先从新版包运行卸载,成功后再替换旧 Skill 文件夹,并从最终位置的 runtime/ 重新安装。加载新版 SKILL.md 本身不会更新后台中继。

范围说明: 本次兼容原先使用 openai 的聊天;曾经在 openai-retry 下创建的聊天仍属于该 provider,本次不会迁移或修改它们的历史。Issue #3 所述新聊天 overload 后网络异常的原因仍未确认,本版本不将其标记为已解决。

Changes

  • Preserve built-in openai identity using the official openai_base_url endpoint override, so original OpenAI chats can resume after installation.
  • Decline Responses WebSocket upgrades locally with HTTP/1.1 426, allowing Codex to fall back to HTTP/SSE instead of forwarding a persistent upgrade through the HTTP reader.
  • Migrate verified legacy openai-retry settings in memory; retain pre-legacy backups and preserve unrelated user edits. Refuse edited managed settings rather than overwriting them.
  • Update all three platform installers, manual snippets, bilingual READMEs and the bundled Skill. Explain the old (retry) label.

Upgrade (English)

Download/extract this release and run the matching uninstall/install pair above from the new project root (or runtime/ for the Skill bundle). Keep the old install directory until uninstall succeeds. To reuse its path, uninstall first, replace the files, then install from the final location. Do not purge backups/logs. Reuse your custom proxy, port, CODEX_HOME, state directory and Linux linger options; pass the old custom Windows -StateDir to uninstall. Fully quit/reopen Codex afterwards. Do not edit chat records or reset sign-in. Skill instructions alone do not update a running relay.

This fixes the openai → openai-retry resume mismatch. Chats created with openai-retry still require that identity. The separate network error in Issue #3 remains unconfirmed.

Validation

54 local tests passed (3 platform-specific skips). Persisted-thread integration with real Codex CLI 0.166.0-alpha.6: create an openai chat before installation, install the native endpoint configuration, resume the same thread ID, receive two synthetic overloads then a successful third response. API-key and synthetic ChatGPT-token configurations verified inference routing; no real account credentials or live model inference used. Synthetic login does not validate real service authentication. Windows (Python 3.9/3.12), macOS and Linux CI all passed. Both archives are verified against Git blobs and file modes.

SHA-256 (codex-overload-fix-1.5.1.zip): 6753c77920e74aae4d62123a5a2aba096f1d2a9b26b3eb4fc935c4ab9e57c9f6

SHA-256 (codex-overload-fix-skill-1.5.1.zip): 3619b7a090d479d2b750503c85898feeec2aa120fe7dc80e9ab8820bc92dbcc6