Skip to content

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

refactor(agent): simplify isolated goal store creation

Steven Enamakel3f28bd427c4f
diff --git a/crates/openhuman-core/src/agent/goals/mod.rs b/crates/openhuman-core/src/agent/goals/mod.rs
index e76615b295..21481051ac 100644
--- a/crates/openhuman-core/src/agent/goals/mod.rs
+++ b/crates/openhuman-core/src/agent/goals/mod.rs
@@ -61,11 +61,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),
))
}
diff --git a/crates/openhuman-core/src/config/ops_files_dir_tests.rs b/crates/openhuman-core/src/config/ops_files_dir_tests.rs
index 357399af30..a02f01fe91 100644
--- a/crates/openhuman-core/src/config/ops_files_dir_tests.rs
+++ b/crates/openhuman-core/src/config/ops_files_dir_tests.rs
@@ -225,10 +225,10 @@ async fn files_made_before_a_folder_change_keep_resolving() {
&cfg,
&meta.id,
)
- .await
- .expect("an artifact from the previous folder still resolves")
- .into_cli_compatible_json()
- .unwrap();
+ .await
+ .expect("an artifact from the previous folder still resolves")
+ .into_cli_compatible_json()
+ .unwrap();
assert_eq!(
value["absolute_path"],
serde_json::json!(path.to_string_lossy())