Skip to content

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

fix(agent): handle missing session in turn runner

Steven Enamakel59cd4664572a
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs b/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs
index 723115fdaf..64d7224bbe 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs
@@ -629,7 +629,7 @@ pub(crate) async fn run_turn_via_tinyagents_shared(
pause_at_cap,
turn_journal.as_ref(),
compression_mw.as_ref(),
- &prompt_cache_guard,
+ prompt_cache_guard.as_ref(),
turn_completed_sink,
bridge,
early_exit_hook,
diff --git a/crates/openhuman-core/src/modules/memory/sync_sessions_episodic.rs b/crates/openhuman-core/src/modules/memory/sync_sessions_episodic.rs
index 9887727c27..10580cb4a2 100644
--- a/crates/openhuman-core/src/modules/memory/sync_sessions_episodic.rs
+++ b/crates/openhuman-core/src/modules/memory/sync_sessions_episodic.rs
@@ -198,7 +198,7 @@ impl MemoryCodingSessions for ModuleMemoryProvider {
/// wall-clock ceiling must be the one that fires, because its message names the
/// budget rather than the wire member. Anything comfortably longer than the
/// scheduling jitter between the two `tokio::time::timeout` arms would do.
-const INGEST_BUS_GRACE: std::time::Duration = std::time::Duration::from_secs(30);
+pub(super) const INGEST_BUS_GRACE: std::time::Duration = std::time::Duration::from_secs(30);
#[async_trait]
impl MemoryEpisodic for ModuleMemoryProvider {