Files
t3code/apps
Cursor AgentandJulius Marminge 5b9f3fb2e9 fix: fall back to target provider's default model on provider switch
When switching providers (e.g., Codex -> Claude) without explicitly
specifying a model, the thread's existing model slug (a Codex slug like
'gpt-5-codex') was passed to the new provider's adapter. The Claude SDK
does not understand Codex model names, causing failures.

Now, when a provider is explicitly requested and differs from the current
provider, the code falls back to DEFAULT_MODEL_BY_PROVIDER for the
target provider instead of carrying over the thread's existing model.

Co-authored-by: Julius Marminge <[email protected]>
2026-03-16 23:17:38 +00:00
..
2026-03-16 15:41:12 -07:00