Skip to content

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

fix(config): unify AI provider settings across config and core

Steven Enamakel4ae97ce199ba
diff --git a/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs b/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs
index 924ecd3524..26248eba5d 100644
--- a/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs
+++ b/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs
@@ -11,7 +11,6 @@
//! — per-role chat (#1710, partial)
//! - `local_ai.usage.{embeddings,heartbeat,learning_reflection,subconscious}`
//! — local-vs-cloud booleans
-//! - `memory_tree.llm_backend` (+ `cloud_llm_model`) — memory summariser
//!
//! After this migration there is one grammar — provider strings parsed by
//! [`crate::inference::provider::factory`] — addressing every workload
@@ -211,14 +210,9 @@ fn derive_workload_providers(config: &mut Config, stats: &mut MigrationStats) {
}
};
- // Memory summariser — `memory_tree.llm_backend` is `LlmBackend::Cloud | Local`.
- let memory_value = match config.memory_tree.llm_backend {
- crate::config::schema::LlmBackend::Local if runtime_on && !chat_model.is_empty() => {
- format!("ollama:{}", chat_model)
- }
- _ => "cloud".to_string(),
- };
- set_field(&mut config.memory_provider, memory_value, stats);
+ // Memory summariser workload: the memory-tree backend switch it used to
+ // follow is gone with memory v1, so it defaults to cloud.
+ set_field(&mut config.memory_provider, "cloud".to_string(), stats);
// Embeddings — uses the embedding_model_id, not chat_model_id.
let embeddings_value =
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index 2f993dc9c5..34e78ec5f1 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -72,7 +72,7 @@ impl RegisteredController {
///
/// - `harness()` claimed "agent + memory + threads + config + security" but
/// silently dropped `agent::{harness_init, artifacts, learning}`,
-/// `security::{credentials, devices}`, `config::{workspace, migration_helpers}`,
+/// `security::{credentials, devices}`, `config::workspace`,
/// `memory::people` and `skills::webhooks`, all of which sat in `Platform`.
/// An agent harness that does not register `harness_init` is a latent bug.
/// - `embedded()` had to set `platform: true` purely to reach credentials and
@@ -979,7 +979,6 @@ pub fn namespace_description(namespace: &str) -> Option<&'static str> {
"encrypt" => Some("Encrypt secure values managed by secret storage."),
"health" => Some("Process and component health snapshots."),
"inference" => Some("Connect to configured text, vision, and embedding inference runtimes."),
- "migrate" => Some("Data migration utilities."),
"javascript" => Some("First-class JavaScript runtime bridge for listing and dispatching tools."),
"security" => Some("Security policy and autonomy guardrail metadata."),
"service" => Some("Desktop service lifecycle management."),