use crate::brain::agent::service::should_refresh_session_model;
#[test]
fn an_alias_resolving_to_a_concrete_version_is_adopted() {
assert!(should_refresh_session_model(true, "opus", "claude-opus-5"));
}
#[test]
fn a_turn_that_ran_elsewhere_cannot_replace_the_pick() {
assert!(
!should_refresh_session_model(false, "Qwen3.8-27B", "mimo-v2.5-pro"),
"a provider the session did not choose cannot describe its choice"
);
}
#[test]
fn an_unchanged_model_is_not_rewritten() {
assert!(!should_refresh_session_model(
true,
"claude-opus-5",
"claude-opus-5"
));
}
#[test]
fn a_provider_reporting_nothing_cannot_blank_the_pick() {
assert!(!should_refresh_session_model(true, "Qwen3.8-27B", ""));
assert!(!should_refresh_session_model(true, "Qwen3.8-27B", " "));
}