Skip to content

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

feat(agent): carry native progressive reply in trusted turn state

Steven Enamakel144832996c36
diff --git a/crates/openhuman-core/src/agent/turn_host.rs b/crates/openhuman-core/src/agent/turn_host.rs
index 61584b53b1..f80e90f602 100644
--- a/crates/openhuman-core/src/agent/turn_host.rs
+++ b/crates/openhuman-core/src/agent/turn_host.rs
@@ -34,6 +34,9 @@ pub(crate) struct TrustedAgentTurn {
pub(crate) approval: ApprovalTurnContext,
pub(crate) relay_thread: Option<String>,
pub(crate) imported_history: Vec<tinyagents_session::transcript::TranscriptMessage>,
+ /// Captured compiled-module reply port for native channel turns. This
+ /// stays in trusted queue state and is never reconstructed from metadata.
+ pub(crate) native_reply: Option<Arc<crate::channels::bus::NativeProgressiveReply>>,
}
impl std::fmt::Debug for TrustedAgentTurn {
@@ -44,6 +47,7 @@ impl std::fmt::Debug for TrustedAgentTurn {
.field("session_scoped", &!self.session_key.is_empty())
.field("relay_thread", &self.relay_thread)
.field("imported_history_rows", &self.imported_history.len())
+ .field("native_reply", &self.native_reply.is_some())
.finish_non_exhaustive()
}
}