Repository navigation
feat(internal/provider): accept OpenAI reasoning_mode in coderd_agents_model model_config - #444
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ibetitsmike
added a commit
that referenced
this pull request
Sep 22, 2026
Review feedback on #444: the codersdk bump alone makes reasoning_mode accepted, and other fields gained via dependency bumps did not get field-specific tests or examples.
…s_model model_config The provider validates model_config against its pinned coder/coder SDK and rejects unrecognized settings at plan time, so provider_options.openai.reasoning_mode (coder/coder#29584, OpenAI Pro reasoning for GPT-5.6 Sol and later, including GPT-6 Astra) failed with "Unrecognized model_config settings" on the v2.37.1 pin. Bump github.com/coder/coder/v2 to main a970c6c92e46 (v2.34.0-rc.0.0.20260921160322-a970c6c92e46). The model_config schema change is additive (reasoning_mode, openai_config.reasoning_model); no existing key is removed. Test helpers move to the renamed codersdk.CreateUserRequest with OrganizationIDs. The example and generated docs gain an OpenAI provider with a GPT-6 Astra model that sets reasoning_mode = "pro".
Review feedback on #444: the codersdk bump alone makes reasoning_mode accepted, and other fields gained via dependency bumps did not get field-specific tests or examples.
ethanndickson
force-pushed
the
mike/agents-model-reasoning-mode
branch
from
September 22, 2026 05:58
0293fa2 to
13e68e1
Compare
ethanndickson
approved these changes
Sep 22, 2026
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.
Coder now supports OpenAI's Pro reasoning mode for chat models (coder/coder#29584):
provider_options.openai.reasoning_mode = "pro"in the model config, for models from the GPT-5.6 Sol generation onward, including GPT-6 Astra.Problem
coderd_agents_model.model_configis validated against the provider's pinnedcodersdk.ChatModelCallConfigat plan time (#388), so with the currentgithub.com/coder/coder/v2 v2.37.1pin any config that sets the new field fails before it is ever sent to Coder:Fix
github.com/coder/coder/v2tomaincommita970c6c92e46(v2.34.0-rc.0.0.20260921160322-a970c6c92e46), the same pseudo-version pattern as feat!: reject unrecognized model_config settings and bump coder/coder to latest main #388 and chore!: bump coder/coder SDK and remove model cost settings #413. Diffing theChatModelCallConfigJSON tags between v2.37.1 and the new pin shows themodel_configschema change is purely additive (provider_options.openai.reasoning_modeandopenai_config.reasoning_model); no existing key is removed, so there is no migration and this is not a breaking release.codersdk.CreateUserRequest(OrganizationIDsreplacesOrganizationID,DisableLoginis gone). Provider code is unaffected.No field-specific tests or examples are added for
reasoning_mode; the existing validator and canonicalization tests cover the mechanism, matching how earlier dependency-bump fields were handled (review feedback, 0293fa2).Compatibility
Using
reasoning_moderequires a Coder release that includes coder/coder#29584 (newer than 2.37); Coder validates the value server-side and OpenAI rejects it for models without Pro.integration/agents-model-testis intentionally left unchanged because the integration harness pullsghcr.io/coder/coder:latest, which does not yet echo the field back.