Repository navigation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the env default out of the explicit-provider path.
FRONTAL_CODE_DEFAULT_PROVIDERentersresolve_effective_model_and_providerasSome(provider). The resolver accepts that value before it checkscode_api::model_requires_responses. WithFRONTAL_CODE_DEFAULT_PROVIDER=anthropic, a Codex model selected through--modelorFRONTAL_CODE_MODELis sent toanthropicin both--promptand REPL sessions. Before this change, the same model went toopenai. The resolver's own comment says Codex models are OpenAI-only.Apply the Codex check before any env-sourced default. Keep an explicit
--providervalue as the only value that the resolver treats as explicit. Pass the env default separately, and let the resolver apply it only after the Codex check. Pass the env default separately from the explicit flag, and keep the existing precedence against the configuration default. BothLiveCliconstructors at lines 6229 and 6261 must receive the change. Do not replace line 781 withNone. That would remove theFRONTAL_CODE_DEFAULT_PROVIDERfeature this PR adds.