Skip to content

Commit c248f6d

Browse files
etraut-openaicopyberry
authored andcommitted
Fix model provider lookup for TUI history (#49171)
Read `model_provider` from the effective configuration's nested `config` field in `history_model_provider`, retaining the `openai` fallback. GitOrigin-RevId: 06a8b3da1b499e673f80b8827951020c469c3970
1 parent fbc1698 commit c248f6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎codex-rs/tui/src/app_server_session/provider_selection.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl AppServerSession {
5858
.await?
5959
.map(|config| {
6060
config
61+
.config
6162
.model_provider
6263
.unwrap_or_else(|| "openai".to_string())
6364
}))

0 commit comments

Comments
 (0)