Skip to content

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

refactor(session-host): drop redundant arc around post-commit hooks

Steven Enamakel110c3a89325c
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs
index 9a4210fb86..516677068f 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs
@@ -28,8 +28,7 @@ use tinyinference_llm::message::Message;
pub(super) struct OpenHumanPostCommitSink {
pub(super) state: std::sync::Arc<std::sync::Mutex<super::OpenHumanSessionState>>,
- pub(super) hooks:
- std::sync::Arc<Vec<std::sync::Arc<dyn tinyagents_harness::host::LearningSink>>>,
+ pub(super) hooks: Vec<std::sync::Arc<dyn tinyagents_harness::host::LearningSink>>,
pub(super) identity: TurnIdentityOwned,
}