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
Extend memory pre-turn timeout to five seconds
Steven Enamakel67e6d375ee99
diff --git a/crates/openhuman-core/src/config/schema/memory.rs b/crates/openhuman-core/src/config/schema/memory.rsindex 5a7059d8e0..c7b380690c 100644--- a/crates/openhuman-core/src/config/schema/memory.rs+++ b/crates/openhuman-core/src/config/schema/memory.rs@@ -20,7 +20,7 @@//! history_limit = 6//! team_limit = 0 # other agents' turns; 0 leaves the section out//! build_beliefs_every = 10 # turns between belief builds; 0 turns them off-//! pre_turn_timeout_ms = 1500+//! pre_turn_timeout_ms = 5000//! date_hint = false # a model call works out which days a turn is about//! compaction_timeout_ms = 8000//! build_delay_secs = 300 # how far belief builds run behind the writes@@ -277,7 +277,7 @@ impl Default for MemoryConversationsConfig {/// Default `[memory.recall] budget_tokens`.pub const DEFAULT_RECALL_BUDGET_TOKENS: u32 = 1200;/// Default `[memory.recall] pre_turn_timeout_ms`.-pub const DEFAULT_PRE_TURN_TIMEOUT_MS: u64 = 1500;+pub const DEFAULT_PRE_TURN_TIMEOUT_MS: u64 = 5000;/// Default `[memory.recall] compaction_timeout_ms`.pub const DEFAULT_COMPACTION_TIMEOUT_MS: u64 = 8000;/// Default `[memory.recall] build_delay_secs`.diff --git a/crates/openhuman-core/src/config/schema/memory_tests.rs b/crates/openhuman-core/src/config/schema/memory_tests.rsindex 0b6c13db9e..502cf3a471 100644--- a/crates/openhuman-core/src/config/schema/memory_tests.rs+++ b/crates/openhuman-core/src/config/schema/memory_tests.rs@@ -24,6 +24,11 @@ fn defaults_select_tinyhumans_with_logging_and_recall_on() {);}+#[test]+fn default_pre_turn_waits_five_seconds_for_memory() {+ assert_eq!(MemoryConfig::default().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.diff --git a/docs/specs/memory-v2.md b/docs/specs/memory-v2.mdindex c3f97512cc..fe37024ec2 100644--- a/docs/specs/memory-v2.md+++ b/docs/specs/memory-v2.md@@ -183,7 +183,7 @@ brain_limit = 6history_limit = 6team_limit = 3 # 0 leaves other agents' turns outbuild_beliefs_every = 10 # turns between belief builds; 0 = off-pre_turn_timeout_ms = 1500+pre_turn_timeout_ms = 5000compaction_timeout_ms = 8000build_delay_secs = 300