Skip to content

fix: bump coder/fantasy for gpt-5.6 Responses routing (#27132) - #27134

Merged
mtojek merged 1 commit into
release/2.35from
mike/fantasy-gpt-5.6-responses-2.35
Jul 13, 2026
Merged

fix: bump coder/fantasy for gpt-5.6 Responses routing (#27132)#27134
mtojek merged 1 commit into
release/2.35from
mike/fantasy-gpt-5.6-responses-2.35

Conversation

@ibetitsmike

Copy link
Copy Markdown
Collaborator

Cherry-pick of #27132 (f84801ee) onto release/2.35.

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

Backport safety

  • The delta over 2.35's pin is exactly the two commits above; chore: bump coder/fantasy for gpt-5.6 Responses routing #27132 itself touched only go.mod/go.sum, and no coder/coder code references the refusal metadata or content-filter finish reason (verified on main and 2.35).
  • Finish-part provider metadata is never persisted by chatd, so a rollback to an unpatched 2.35.x binary cannot hit undecodable stored history.
  • go build ./coderd/... and go test ./coderd/x/chatd/{chatopenai,chatprovider,chatprompt,chatloop}/ pass on this branch; go mod tidy is a no-op.

This PR was authored by Mux on Mike's behalf.

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.

(cherry picked from commit f84801e)
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

👋 Hey @ibetitsmike!

This PR is targeting the release/2.35 release branch, but its title does not start with fix: or fix(scope):.

Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format:

fix: description of the bug fix
fix(scope): description of the bug fix

If this is not a bug fix, it likely should not target a release branch.

@ibetitsmike ibetitsmike changed the title chore: bump coder/fantasy for gpt-5.6 Responses routing (#27132) fix: bump coder/fantasy for gpt-5.6 Responses routing (#27132) Jul 9, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b40412b7a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread go.mod
// 16) coder/fantasy#46, route the gpt-5.6 family (sol, terra, luna)
// through the OpenAI Responses API.
// See: https://github.com/coder/fantasy/commits/6da0c3b10237
replace charm.land/fantasy => github.com/coder/fantasy v0.0.0-20260709180403-6da0c3b10237

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the GPT-5.6 Sol alias to the Responses pin

When admins configure the documented OpenAI alias gpt-5.6 for Sol, this bump still leaves that model off fantasy's exact-match Responses allowlist. chatopenai.UsesResponsesOptions delegates routing to fantasyopenai.IsResponsesModel(model.Model()), and the pinned fantasy commit adds only gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna, so the alias continues to take the Chat Completions path and loses reasoning/encrypted-continuity, which is the regression this backport is meant to fix.

Useful? React with 👍 / 👎.

@mtojek
mtojek merged commit d331a10 into release/2.35 Jul 13, 2026
56 of 57 checks passed
@mtojek
mtojek deleted the mike/fantasy-gpt-5.6-responses-2.35 branch July 13, 2026 07:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants