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
use super::*;
#[test]
fn register_all_is_idempotent() {
let _registry = crate::registry_test_lock();
let options = InstallOptions::default();
register_all(&options, DoctorRegistration::Process);
register_all(&options, DoctorRegistration::Process);
}
#[tokio::test]
async fn boot_registration_supplies_hosted_model_default_and_normalizer_before_context_exists() {
let _registry = crate::registry_test_lock_async().await;
register_all(&InstallOptions::default(), DoctorRegistration::Process);
let config = openhuman_embed::__host::config::Config::default();
assert_eq!(
config.default_model.as_deref(),
Some(crate::inference::MODEL_MANAGED_DEFAULT)
);
let mut legacy = openhuman_embed::__host::config::Config {
default_model: Some("reasoning-v1".to_string()),
..Default::default()
};
let tmp = tempfile::tempdir().unwrap();
legacy.workspace_dir = tmp.path().join("workspace");
legacy.config_path = tmp.path().join("config.toml");
tokio::fs::create_dir_all(&legacy.workspace_dir)
.await
.unwrap();
openhuman_embed::__host::config::migrations::run_pending(&mut legacy).await;
assert_eq!(
legacy.default_model.as_deref(),
Some(crate::inference::MODEL_MANAGED_DEFAULT)
);
}