Skip to content

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

fix(agent): warn about index drift only when tool is available

Steven Enamakelb0ebd5612faf
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs
index 51a49fe983..9f767ce026 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs
@@ -141,7 +141,7 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>
.lock()
.map(|tracker| tracker.pending_index_update())
.unwrap_or(false);
- if pending {
+ if self.can_update_index && pending {
tracing::warn!(
"[tinyagents::mw] memory-protocol: run ended with a memory write that was never \
followed by update_memory_md — the MEMORY.md index is left stale"