Skip to content

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

fix(session_host): clone cancellation in session turn creation

Steven Enamakelfa462d7de549
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs
index 9b190f4d30..20b1aa6ca6 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs
@@ -112,7 +112,7 @@ impl OpenHumanSessionHost {
stream: self.on_progress.is_some(),
session: self.session.clone(),
resume: self.turn_resume_mode(),
- cancellation,
+ cancellation: cancellation.clone(),
run_context: context.into_tinyagents(root_config),
controls: Default::default(),
};