From dab2e79d6ecc24acfd8737a10dfdf8ef02765b30 Mon Sep 17 00:00:00 2001 From: Christiaan Arnoldus Date: Tue, 28 Jul 2026 14:44:40 +0200 Subject: [PATCH] fix(cli): exclude gpt-5.6 from ChatGPT subscriptions --- .changeset/exact-gpt-subscription.md | 5 +++++ packages/opencode/src/plugin/openai/codex.ts | 2 +- packages/opencode/test/plugin/codex.test.ts | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .changeset/exact-gpt-subscription.md diff --git a/.changeset/exact-gpt-subscription.md b/.changeset/exact-gpt-subscription.md new file mode 100644 index 00000000000..05332f513e6 --- /dev/null +++ b/.changeset/exact-gpt-subscription.md @@ -0,0 +1,5 @@ +--- +"@kilocode/cli": patch +--- + +Exclude GPT-5.6 from models available through ChatGPT subscriptions while retaining access to variants such as GPT-5.6 Sol. diff --git a/packages/opencode/src/plugin/openai/codex.ts b/packages/opencode/src/plugin/openai/codex.ts index 262882669f7..5a3a6fc9f93 100644 --- a/packages/opencode/src/plugin/openai/codex.ts +++ b/packages/opencode/src/plugin/openai/codex.ts @@ -29,7 +29,7 @@ const ALLOWED_MODELS = new Set([ // kilocode_change end ]) // kilocode_change start -const DISALLOWED_MODELS = new Set(["gpt-5.5-pro"]) +const DISALLOWED_MODELS = new Set(["gpt-5.5-pro", "gpt-5.6"]) // kilocode_change end interface PkceCodes { diff --git a/packages/opencode/test/plugin/codex.test.ts b/packages/opencode/test/plugin/codex.test.ts index a40b9953580..a264bd376a3 100644 --- a/packages/opencode/test/plugin/codex.test.ts +++ b/packages/opencode/test/plugin/codex.test.ts @@ -148,6 +148,14 @@ describe("plugin.codex", () => { id: "gpt-5.5", api: { id: "gpt-5.5" }, } as never, + "gpt-5.6": { + id: "gpt-5.6", + api: { id: "gpt-5.6" }, + } as never, + "gpt-5.6-sol": { + id: "gpt-5.6-sol", + api: { id: "gpt-5.6-sol" }, + } as never, "gpt-5.4-mini": { id: "gpt-5.4-mini", api: { id: "gpt-5.4-mini" }, @@ -164,6 +172,8 @@ describe("plugin.codex", () => { } as never, { auth: { type: "oauth" } } as never) expect(provider).not.toHaveProperty(["gpt-5.5-pro"]) expect(provider).toHaveProperty(["gpt-5.5"]) + expect(provider).not.toHaveProperty(["gpt-5.6"]) + expect(provider).toHaveProperty(["gpt-5.6-sol"]) expect(provider).toHaveProperty(["gpt-5.4-mini"]) expect(provider).toHaveProperty(["gpt-5.1-codex"]) expect(provider).not.toHaveProperty(["other-model"])