Skip to content

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

refactor(agent): simplify session history reset logic

Steven Enamakel689214afe575
diff --git a/crates/openhuman-core/src/agent/host_agents.rs b/crates/openhuman-core/src/agent/host_agents.rs
index d39163380e..7c3226627b 100644
--- a/crates/openhuman-core/src/agent/host_agents.rs
+++ b/crates/openhuman-core/src/agent/host_agents.rs
@@ -148,9 +148,7 @@ impl HostAgent {
let mut session = self.session_host(&self.config, Some(session_key))?;
session.set_thread_id(Some(session_key));
session.set_event_context(event_session_id, channel);
- let reset = self.scope(session.reset_bound_history()).await?;
- anyhow::ensure!(reset, "durable channel session has no resettable history");
- Ok(true)
+ self.scope(session.reset_bound_history()).await
}
/// Build a session for this agent from `config` -- normally a clone of