Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Preserve explicit memory timeout overrides

Steven Enamakel949820900457
diff --git a/crates/openhuman-core/src/config/schema/memory_tests.rs b/crates/openhuman-core/src/config/schema/memory_tests.rs
index ee91671342..237019fedc 100644
--- a/crates/openhuman-core/src/config/schema/memory_tests.rs
+++ b/crates/openhuman-core/src/config/schema/memory_tests.rs
@@ -32,6 +32,13 @@ fn default_pre_turn_waits_ten_seconds_for_memory() {
assert_eq!(MemoryConfig::default().recall.pre_turn_timeout_ms, 10_000);
}
+#[test]
+fn explicit_pre_turn_deadline_still_overrides_the_default() {
+ let config: MemoryConfig = toml::from_str("[recall]\npre_turn_timeout_ms = 5000")
+ .expect("the configured deadline parses");
+ assert_eq!(config.recall.pre_turn_timeout_ms, 5_000);
+}
+
#[test]
fn turning_the_github_split_off_survives_a_save() {
// On is the default and is not written; off is, so it reads back off.