The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(config): handle missing schema migration for vendor directory
Steven Enamakel8ce5e695f8b7
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rsindex 06dec63afa..bb776639ef 100644--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs@@ -4,7 +4,9 @@ use super::dirs::{resolve_config_dirs_ignoring_env, resolve_runtime_config_dirs_with, ConfigResolutionSource,};use super::env::{EnvLookup, ProcessEnv, ProcessEnvWithoutWorkspace};-use super::migrate::{migrate_cloud_provider_slugs, migrate_legacy_inference_url};+use super::migrate::{+ migrate_cloud_provider_slugs, migrate_legacy_inference_url, migrate_search_settings,+};use super::secrets::{decrypt_config_secrets, encrypt_config_secrets};use anyhow::{Context, Result};use std::collections::HashSet;@@ -408,6 +410,8 @@ impl Config {config.recovered_from_corruption = config_was_corrupted;migrate_legacy_inference_url(&mut config);migrate_cloud_provider_slugs(&mut config);+ migrate_search_settings(&mut config);+ migrate_search_settings(&mut config);config.apply_env_overrides_from(env);if config_was_corrupted {@@ -610,6 +614,7 @@ impl Config {config.recovered_from_corruption = config_was_corrupted;migrate_legacy_inference_url(&mut config);migrate_cloud_provider_slugs(&mut config);+ migrate_search_settings(&mut config);config.apply_env_overrides_from(&ProcessEnvWithoutWorkspace);if config_was_corrupted {diff --git a/crates/openhuman-core/src/config/schema/load/migrate.rs b/crates/openhuman-core/src/config/schema/load/migrate.rsindex 17f87ad5df..8b66f7e11c 100644--- a/crates/openhuman-core/src/config/schema/load/migrate.rs+++ b/crates/openhuman-core/src/config/schema/load/migrate.rs@@ -194,3 +194,23 @@ pub(crate) fn migrate_cloud_provider_slugs(config: &mut Config) {|| looks_like_openhuman_provider_endpoint(&entry.endpoint)}}++/// Convert the single-engine `[search]` format into providers, routes and+/// roles. In-memory and idempotent like the other load migrations: the legacy+/// fields are never serialized, so the next save writes the new format.+pub(crate) fn migrate_search_settings(config: &mut Config) {+ if !config.search.needs_migration() {+ return;+ }+ let legacy = super::super::LegacySearchInputs {+ tinyfish_active: config.integrations.tinyfish.is_active(),+ seltz_active: config.seltz.enabled+ && config+ .seltz+ .api_key+ .as_deref()+ .is_some_and(|key| !key.trim().is_empty()),+ searxng_active: config.searxng.enabled,+ };+ config.search.migrate_legacy(legacy);+}diff --git a/crates/openhuman-core/src/config/schema/load/mod.rs b/crates/openhuman-core/src/config/schema/load/mod.rsindex 2a116d3227..94dfa0af95 100644--- a/crates/openhuman-core/src/config/schema/load/mod.rs+++ b/crates/openhuman-core/src/config/schema/load/mod.rs@@ -53,7 +53,9 @@ pub(crate) use dirs::ACTIVE_USER_STATE_FILE;#[cfg(test)]pub(crate) use impl_load::parse_config_with_recovery;#[cfg(test)]-pub(crate) use migrate::{migrate_cloud_provider_slugs, migrate_legacy_inference_url};+pub(crate) use migrate::{+ migrate_cloud_provider_slugs, migrate_legacy_inference_url, migrate_search_settings,+};#[cfg(test)]pub(crate) use std::path::PathBuf;diff --git a/vendor/tinysearch b/vendor/tinysearchindex ff2d76ee33..5e88c1f3ac 160000--- a/vendor/tinysearch+++ b/vendor/tinysearch@@ -1 +1 @@-Subproject commit ff2d76ee339b0d128f3fd52854be932b9e8e927f+Subproject commit 5e88c1f3ac6122e444c3af234459cd84a8e31c50