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
chore: files changed crates/openhuman-core/src/memory/ops_tests.rs,crates/openhuman-core/src/memory/
Steven Enamakel027d5786e8e1
diff --git a/crates/openhuman-core/src/memory/ops_tests.rs b/crates/openhuman-core/src/memory/ops_tests.rsindex d822099571..c41743a6fe 100644--- a/crates/openhuman-core/src/memory/ops_tests.rs+++ b/crates/openhuman-core/src/memory/ops_tests.rs@@ -667,3 +667,23 @@ async fn forget_with_a_reach_forgets_within_it() {#[path = "ops_compat_tests.rs"]mod compat_tests;++#[test]+fn disabled_engine_rejects_an_api_key_without_mutating_memory_settings() {+ let tmp = tempfile::tempdir().unwrap();+ let mut config = config_in(&tmp);+ let before = config.memory.clone();++ let error = apply_engine_set(+ &mut config,+ &EngineSetParams {+ engine: DISABLED_ENGINE.into(),+ endpoint: None,+ api_key: Some("not-a-real-key".into()),+ },+ )+ .unwrap_err();++ assert_eq!(error.code(), "INVALID_REQUEST");+ assert_eq!(config.memory, before);+}diff --git a/crates/openhuman-core/src/memory/tools_tests.rs b/crates/openhuman-core/src/memory/tools_tests.rsindex 4006bfce81..bc192fb9ac 100644--- a/crates/openhuman-core/src/memory/tools_tests.rs+++ b/crates/openhuman-core/src/memory/tools_tests.rs@@ -730,3 +730,27 @@ async fn learning_is_durably_queued_even_when_the_backend_refuses_writes() {assert_eq!(value["status"], "queued; not yet saved to memory");assert_eq!(super::super::tool_writes::drain(&config).await, 0);}++#[tokio::test]+async fn write_queue_filesystem_failure_is_model_visible_through_execute() {+ let tmp = tempfile::tempdir().unwrap();+ let config = config_in(&tmp);+ bind_reference(&config);+ std::fs::write(config.workspace_dir.join("memory"), b"not a directory").unwrap();++ let result = run_action(+ &ambient(),+ &config,+ &json!({"action": "learn", "text": "a durable memory fact"}),+ &facts(),+ )+ .await;++ assert!(result.is_error, "{}", text(&result));+ assert!(+ text(&result).contains("memory write queue unavailable"),+ "{}",+ text(&result)+ );+ assert!(text(&result).contains("UNAVAILABLE"), "{}", text(&result));+}