mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
Fix model selection after provider setup (#58945)
## Why After provider setup, new threads could still use the models manager created for the server's startup provider, leaving their default model inconsistent with the model picker. ## What changed - Build a models manager from the thread's configuration when its provider differs from the startup provider. - Invalidate the model catalog after successful Amazon Bedrock setup so subsequent model listings reflect the configured provider. ## Testing Extend Bedrock and GCP setup integration tests to verify that a new thread's model matches the refreshed model listing. The Bedrock test also checks that the thread uses `amazon-bedrock`. GitOrigin-RevId: 1db30ad040ba97e2f4f31c9e162a2b73af1377fa
This commit is contained in:
@@ -134,6 +134,7 @@ impl AccountRequestProcessor {
|
||||
.commit_provider_config(write)
|
||||
.await
|
||||
.map_err(map_config_error)?;
|
||||
self.model_catalog.invalidate().await;
|
||||
|
||||
Ok(Some(BedrockSetupResponse {}.into()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user