This commit is contained in:
Ahmed Ibrahim
2026-01-05 13:29:41 -08:00
parent 0f3c232541
commit 284dc5c724
2 changed files with 14 additions and 0 deletions

View File

@@ -83,6 +83,13 @@ pub(crate) fn maybe_show_pending_model_migration_notice(
return None;
}
if let Some(current_model) = config.model.as_deref().filter(|model| !model.is_empty())
&& current_model != notice.from_model
{
let _ = std::fs::remove_file(&notice_path);
return None;
}
Some(notice)
}

View File

@@ -83,6 +83,13 @@ pub(crate) fn maybe_show_pending_model_migration_notice(
return None;
}
if let Some(current_model) = config.model.as_deref().filter(|model| !model.is_empty())
&& current_model != notice.from_model
{
let _ = std::fs::remove_file(&notice_path);
return None;
}
Some(notice)
}