fn resolve_backfill_provider_and_model(
provider: &str,
model_vendor_base_url: &str,
) -> (String, String)Expand description
Same derivation Store::bundle_provision_for_new_agent
(backend/storage/agents/definition.rs) uses for brand-new agents — delegates to
Store::resolve_effective_vendor so both paths agree on the
model_vendor_base_url → "custom" rule (P2 fix, Codex review on PR
#2587) rather than maintaining two copies of the same logic. Falls
back to FALLBACK_PROVIDER/FALLBACK_MODEL when provider is empty
— the one case resolve_effective_vendor can’t help with, since it
still needs a real provider id to look up.