Skip to content

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

feat(channels): add preparation_mode to channel inbound requests

Steven Enamakel08989d67058e
diff --git a/crates/openhuman-core/src/channels/host/channel_events.rs b/crates/openhuman-core/src/channels/host/channel_events.rs
index 826f71ed79..a652e810d9 100644
--- a/crates/openhuman-core/src/channels/host/channel_events.rs
+++ b/crates/openhuman-core/src/channels/host/channel_events.rs
@@ -83,6 +83,7 @@ impl EventHandler<DomainEvent> for ChannelApprovalSurfaceSubscriber {
&self.client().await,
tinychannels_bus::module_inbound::PrepareChannelInboundRequest {
namespace: "main".into(),
+ preparation_mode: Default::default(),
session_policy: Default::default(),
source: tinychannels_bus::module_inbound::ChannelInboundSource::Legacy {
message: ChannelMessage {
diff --git a/crates/openhuman-core/src/channels/module_fixture_tests.rs b/crates/openhuman-core/src/channels/module_fixture_tests.rs
index dc4ead440f..8ddaefba14 100644
--- a/crates/openhuman-core/src/channels/module_fixture_tests.rs
+++ b/crates/openhuman-core/src/channels/module_fixture_tests.rs
@@ -166,6 +166,7 @@ async fn linked_module_prepares_legacy_inbound_facts_over_confidential_bus_call(
envelope: None,
},
namespace: "openhuman".into(),
+ preparation_mode: Default::default(),
session_policy: Default::default(),
},),
)
diff --git a/crates/openhuman-core/src/channels/providers/relay/ops.rs b/crates/openhuman-core/src/channels/providers/relay/ops.rs
index e816a3ca82..0b7c493972 100644
--- a/crates/openhuman-core/src/channels/providers/relay/ops.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/ops.rs
@@ -263,6 +263,7 @@ pub(crate) async fn run_relay_turn(
envelope: None,
},
namespace: "main".into(),
+ preparation_mode: Default::default(),
session_policy: Default::default(),
},
)
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
index 597f69d024..0b68b13a7e 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -76,6 +76,7 @@ pub(crate) async fn process_channel_runtime_message(
PrepareChannelInboundRequest {
source,
namespace: "main".into(),
+ preparation_mode: Default::default(),
session_policy: Default::default(),
},
)
diff --git a/crates/openhuman-core/src/threads/store/bus.rs b/crates/openhuman-core/src/threads/store/bus.rs
index 474845b173..45044ac3b4 100644
--- a/crates/openhuman-core/src/threads/store/bus.rs
+++ b/crates/openhuman-core/src/threads/store/bus.rs
@@ -455,6 +455,7 @@ async fn persist_channel_turn(
(
tinychannels_bus::module_inbound::PrepareChannelInboundRequest {
namespace: "main".into(),
+ preparation_mode: Default::default(),
session_policy: Default::default(),
source: tinychannels_bus::module_inbound::ChannelInboundSource::Legacy {
message: ChannelMessage {