From ca6e8407f105ca6d7e26633f0cac87e8ba6299ae Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 1 Oct 2026 10:09:48 +0700 Subject: [PATCH] fix(codex): refresh CLI identity for GPT-6.1 Sol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump CODEX_CLI_VERSION 0.155.0 → 0.159.0 (npm stable) so OpenAI stops rejecting gpt-6.1-sol on connected ChatGPT accounts. Update transport header assertions and assert the User-Agent identity. Fixes #4471 --- open-sse/providers/registry/codex.js | 2 +- tests/unit/codex-gpt6-lite.test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/open-sse/providers/registry/codex.js b/open-sse/providers/registry/codex.js index f01153db..15a38784 100644 --- a/open-sse/providers/registry/codex.js +++ b/open-sse/providers/registry/codex.js @@ -2,7 +2,7 @@ import { withCodexReviewModels } from "../models/helpers.js"; // Codex CLI version seen by OpenAI's backend — single source for the Version / // User-Agent identity headers. Bump when the installed codex CLI is upgraded. -const CODEX_CLI_VERSION = "0.155.0"; +const CODEX_CLI_VERSION = "0.159.0"; const GPT_6_LITE_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"]; export default { diff --git a/tests/unit/codex-gpt6-lite.test.js b/tests/unit/codex-gpt6-lite.test.js index 25182652..77cb8ed7 100644 --- a/tests/unit/codex-gpt6-lite.test.js +++ b/tests/unit/codex-gpt6-lite.test.js @@ -190,7 +190,8 @@ describe("Codex GPT-6 Sol/Luna transport", () => { const body = JSON.parse(options.body); expect(url).toBe("https://chatgpt.com/backend-api/codex/responses"); expect(options.headers["x-openai-internal-codex-responses-lite"]).toBe("true"); - expect(options.headers.version).toBe("0.155.0"); + expect(options.headers.version).toBe("0.159.0"); + expect(options.headers["User-Agent"]).toBe("codex_cli_rs/0.159.0"); expect(body.model).toBe("gpt-6-luna"); expect(body.instructions).toBe(""); expect(body.input[0].type).toBe("additional_tools");