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
refactor(memory): adjust error handling and formatting in memory modules
Steven Enamakel83d4fb5745a8
diff --git a/crates/openhuman-core/src/memory/error_tests.rs b/crates/openhuman-core/src/memory/error_tests.rsindex 2f57b9e9f6..93342db746 100644--- a/crates/openhuman-core/src/memory/error_tests.rs+++ b/crates/openhuman-core/src/memory/error_tests.rs@@ -194,7 +194,6 @@ fn typed_insufficient_credits_maps_without_parsing_engine_text() {assert!(error.expected_user_state);}-#[test]fn upstream_unavailable_is_transient_not_account_wide() {use tinymemory_api::Error as E;diff --git a/crates/openhuman-core/src/memory/import.rs b/crates/openhuman-core/src/memory/import.rsindex f42183046e..7c090076cc 100644--- a/crates/openhuman-core/src/memory/import.rs+++ b/crates/openhuman-core/src/memory/import.rs@@ -278,7 +278,9 @@ async fn launch(paused: Option<PauseCheck>,) -> std::result::Result<LaunchOutcome, LaunchError> {if mode == Mode::Import && !consent {- return Err(LaunchError::Other(import_error(&ImportError::ConsentRequired)));+ return Err(LaunchError::Other(import_error(+ &ImportError::ConsentRequired,+ )));}let workspace = config.workspace_dir.clone();let Some(guard) = run_slots::reserve(&IMPORT, &workspace, &[&BACKFILL, &MIGRATION]) else {@@ -299,7 +301,9 @@ async fn launch(};return Err(LaunchError::SlotBusy(reason));};- let bound = engine::resolve(config).engine().map_err(LaunchError::Other)?;+ let bound = engine::resolve(config)+ .engine()+ .map_err(LaunchError::Other)?;let driver = importer(config, bound.engine, consent, paused);let begin = {let driver = driver.clone();diff --git a/crates/openhuman-core/src/memory/sources/state_tests.rs b/crates/openhuman-core/src/memory/sources/state_tests.rsindex 2688479c94..5d2be69fda 100644--- a/crates/openhuman-core/src/memory/sources/state_tests.rs+++ b/crates/openhuman-core/src/memory/sources/state_tests.rs@@ -10,7 +10,10 @@ fn corrupt_legacy_source_state_is_skipped_and_left_in_place() {std::fs::write(&file, corrupt).unwrap();assert!(load(tmp.path()).is_empty());- assert!(file.exists(), "the read-only legacy load must not move the file");+ assert!(+ file.exists(),+ "the read-only legacy load must not move the file"+ );assert_eq!(std::fs::read(file).unwrap(), corrupt);}