fix(providers/openai): route gpt-5.6 family through Responses API#46
Merged
Merged
Conversation
gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna are reasoning models and must use the Responses API. Without allowlist entries they fell through to the Chat Completions path, which breaks reasoning continuity for agents.
ibetitsmike
added a commit
to coder/coder
that referenced
this pull request
Jul 9, 2026
gpt-5.6 models were unusable with agents: fantasy's Responses allowlist did not include the new family, so `IsResponsesModel` returned false and chatd fell back to the Chat Completions path (no reasoning params, no encrypted reasoning continuity). ## Changes - Bump the `charm.land/fantasy` replace pin to coder/fantasy `6da0c3b10237` (coder_2_33), pulling in: - coder/fantasy#46: route `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` through the OpenAI Responses API as reasoning models. - coder/fantasy#41: surface Anthropic refusal stop_reason as content-filter (already on coder_2_33, rides along with the bump). - Update the fork changelog comment in go.mod. ## Verification - Probed all three gpt-5.6 models through the ai-gateway: `/v1/responses` with `reasoning.effort`, `include: ["reasoning.encrypted_content"]`, and `store: false` completes for each. - `go build ./coderd/...` and `go test ./coderd/x/chatd/chatopenai/ ./coderd/x/chatd/chatprovider/` pass against the new pin. > This PR was authored by Mux on Mike's behalf.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna were missing from
responsesReasoningModelIDs, soIsResponsesModelreturned false and the provider fell through to the Chat Completions path. chatd gates the Responses API on this allowlist (WithUseResponsesAPI+IsResponsesModel), which broke the gpt-5.6 family for agents: no reasoning params, no encrypted reasoning continuity.Changes
gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-lunatoresponsesReasoningModelIDs.Verification
Probed all three models through the ai-gateway:
/v1/responseswithreasoning.effort,include: ["reasoning.encrypted_content"], andstore: falsecompletes for each, confirming they are Responses reasoning models like the rest of the gpt-5.x line.Only the shipped preview IDs are added, matching the earlier gpt-5.5 trim (48e61a0). Upstream's speculative
gpt-5.6/-pro/-mini/-nano/-codexentries (upstream 29b1da1) will arrive with the next upstream sync. Note #45 adds onlygpt-5.6-soland targetsmain; coder/coder pinscoder_2_33, hence this PR.