Skip to content

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

refactor(agent/goals): simplify isolated goal store initialization

Steven Enamakel4fa8b28ec81b
diff --git a/crates/openhuman-core/src/agent/goals/mod.rs b/crates/openhuman-core/src/agent/goals/mod.rs
index e2ddf5ccce..9d7b44180c 100644
--- a/crates/openhuman-core/src/agent/goals/mod.rs
+++ b/crates/openhuman-core/src/agent/goals/mod.rs
@@ -60,11 +60,10 @@ pub fn goal_store(
/// A lost-scope caller gets isolated state, without permission to publish
/// goal changes into the host's thread or web-channel event streams.
fn isolated_goal_store() -> Arc<GoalStore> {
- Arc::new(GoalStore::with_observer(
+ Arc::new(GoalStore::new(
tinyagents_session::port::InMemorySessionStores::new()
.for_agent("ephemeral")
.kv,
- Arc::new(OpenHumanGoalObserver),
))
}