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(agent_registry): use full-context config save error
Steven Enamakelb2f2cc0dd84d
diff --git a/crates/openhuman-core/src/agent_registry/ops.rs b/crates/openhuman-core/src/agent_registry/ops.rsindex 2e093826b3..c7a01fd9c0 100644--- a/crates/openhuman-core/src/agent_registry/ops.rs+++ b/crates/openhuman-core/src/agent_registry/ops.rs@@ -56,7 +56,11 @@ pub async fn upsert_custom_agent(None => config.agent_registry.entries.push(entry.clone()),}config.save().await.map_err(|error| {- crate::config::ops::config_save_error_with_context(error, "failed to save config", true)+ crate::config::ops::config_save_error_with_full_context(+ error,+ "failed to save config",+ true,+ )})?;Ok(entry)}@@ -100,7 +104,11 @@ pub async fn update_agent(ensure_orchestrator_enabled(entry)?;let updated = entry.clone();config.save().await.map_err(|error| {- crate::config::ops::config_save_error_with_context(error, "failed to save config", true)+ crate::config::ops::config_save_error_with_full_context(+ error,+ "failed to save config",+ true,+ )})?;Ok(updated)}@@ -133,7 +141,11 @@ pub async fn remove_agent(ctx: &DispatchCtx, id: &str) -> Result<bool, String> {let removed = config.agent_registry.entries.len() < before;if removed {config.save().await.map_err(|error| {- crate::config::ops::config_save_error_with_context(error, "failed to save config", true)+ crate::config::ops::config_save_error_with_full_context(+ error,+ "failed to save config",+ true,+ )})?;}Ok(removed)