From f9bd60d1c190b8672ffa4eec12aa0d5f959c1cc8 Mon Sep 17 00:00:00 2001 From: TheArchitectit Date: Wed, 17 Jun 2026 13:19:19 -0500 Subject: [PATCH] fix(team): qualify fallback session model as well Apply qualify_for_provider to the session model fallback too so the custom-openai prefix is added to bare model names from config. Co-Authored-By: Claude Fable 5 --- rust/crates/tools/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/crates/tools/src/lib.rs b/rust/crates/tools/src/lib.rs index ecd4a170..da661e84 100644 --- a/rust/crates/tools/src/lib.rs +++ b/rust/crates/tools/src/lib.rs @@ -5645,7 +5645,7 @@ fn resolve_agent_model(model: Option<&str>) -> String { // the same provider the user is actually connected with, rather than the // hard-coded DEFAULT_AGENT_MODEL (which may not exist on a custom endpoint). if let Some(session_model) = load_main_model_from_config() { - return session_model; + return qualify_for_provider(&session_model); } DEFAULT_AGENT_MODEL.to_string() }