Skip to content

feat(chatgpt_codex): add gpt-5.5 to known models - #9292

Merged
michaelneale merged 2 commits into
mainfrom
micn/gpt5.5-codex-provider
May 18, 2026
Merged

feat(chatgpt_codex): add gpt-5.5 to known models#9292
michaelneale merged 2 commits into
mainfrom
micn/gpt5.5-codex-provider

Conversation

@michaelneale

Copy link
Copy Markdown
Collaborator

What

Adds gpt-5.5 to the CHATGPT_CODEX_KNOWN_MODELS list in the ChatGPT Codex (OAuth) provider so it shows up in the model picker, instead of users having to type it in by hand.

 pub const CHATGPT_CODEX_KNOWN_MODELS: &[ChatGptCodexModelAttrs] = &[
+    ChatGptCodexModelAttrs {
+        name: "gpt-5.5",
+        reasoning_levels: &["low", "medium", "high", "xhigh"],
+    },
     ChatGptCodexModelAttrs { name: "gpt-5.4", ... },
     ChatGptCodexModelAttrs { name: "gpt-5.3-codex", ... },
 ];

Placed first so it's the most prominent option in the picker.

Why

The ChatGPT Codex provider's available-models list is hand-curated (the OAuth backend at chatgpt.com/backend-api/codex doesn't expose a usable /models endpoint for this flow), so each new model needs an explicit entry. Users have been setting gpt-5.5 manually and reporting it works — this just surfaces it properly in the UI/CLI.

Verification

Tested live against the real ChatGPT Codex backend (POST https://chatgpt.com/backend-api/codex/responses) using the exact OAuth + payload shape create_codex_request builds:

Model HTTP completed.model Tool calls
gpt-5.3-codex 200 gpt-5.4 (server alias)
gpt-5.5 200 gpt-5.5
gpt-5.4 200 gpt-5.4

gpt-5.5 returns the same SSE event schema goose's stream parser already consumes (response.output_text.delta, response.function_call_arguments.done, etc.), so no other code paths needed changes. Reasoning effort low/medium/high/xhigh all accepted.

What was not changed

  • CHATGPT_CODEX_DEFAULT_MODEL is still gpt-5.3-codex (it gets a special coding-agent preamble injected). Happy to flip it to gpt-5.5 in a follow-up if desired.
  • No preamble special-case for gpt-5.5 — it gets the plain system prompt, same as gpt-5.4.

Tests

  • cargo test -p goose --lib providers::chatgpt_codex — all 15 tests pass
  • cargo fmt
  • cargo build -p goose

Adds gpt-5.5 to the CHATGPT_CODEX_KNOWN_MODELS list so it appears
in the model picker for the ChatGPT Codex (OAuth) provider, instead
of users having to type it manually.

Verified end-to-end against the real ChatGPT Codex backend
(POST https://chatgpt.com/backend-api/codex/responses) using the
same OAuth + payload shape goose builds. Both plain text generation
and tool calling work; the backend returns the same SSE event
schema goose already parses, so no other code paths needed changes.

Signed-off-by: Michael Neale <michael.neale@gmail.com>
@michaelneale
michaelneale enabled auto-merge May 18, 2026 01:02
Make gpt-5.5 the default model for the ChatGPT Codex provider now
that it's the strongest model available via the ChatGPT subscription
backend. Verified live against /backend-api/codex/responses for both
plain generation and tool calling.

Signed-off-by: Michael Neale <michael.neale@gmail.com>
@michaelneale
michaelneale added this pull request to the merge queue May 18, 2026
Merged via the queue into main with commit 027137c May 18, 2026
29 of 30 checks passed
@michaelneale
michaelneale deleted the micn/gpt5.5-codex-provider branch May 18, 2026 01:30
shafqatevo pushed a commit to shafqatevo/goose that referenced this pull request Aug 7, 2026
Signed-off-by: Michael Neale <michael.neale@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants