Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(config): refine orphaned provider reconciliation logic

Steven Enamakelb1fef1a0b533
diff --git a/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs b/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
index fdba7ab7f3..40f9cbe5cf 100644
--- a/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
+++ b/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
@@ -109,8 +109,8 @@ pub fn run(config: &mut Config) -> anyhow::Result<MigrationStats> {
|| s.is_empty()
|| s == "cloud"
|| s == PROVIDER_OPENHUMAN
- // The owner classifier also accepts bare provider-kind aliases
- // such as `openai`; only a parsed local route is persisted here.
+ // Only an explicit local route is exempt; bare provider-kind
+ // aliases stay subject to this migration's unresolved-route check.
|| ProviderRoute::parse(s).is_some_and(|route| matches!(route.kind(), RouteKind::Local(_)))
{
continue;