fix(codex): refresh CLI identity for GPT-6.1 Sol
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
This commit is contained in:
1 parent
49ba54b2ba
commit
ca6e8407f1
2 files changed
+3
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user