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 message contexts

Steven Enamakel385945c0dbf3
diff --git a/crates/openhuman-core/src/channels/host/channel_events.rs b/crates/openhuman-core/src/channels/host/channel_events.rs
index 826f71ed79..90b6e7641e 100644
--- a/crates/openhuman-core/src/channels/host/channel_events.rs
+++ b/crates/openhuman-core/src/channels/host/channel_events.rs
@@ -84,6 +84,7 @@ impl EventHandler<DomainEvent> for ChannelApprovalSurfaceSubscriber {
tinychannels_bus::module_inbound::PrepareChannelInboundRequest {
namespace: "main".into(),
session_policy: Default::default(),
+ preparation_mode: Default::default(),
source: tinychannels_bus::module_inbound::ChannelInboundSource::Legacy {
message: ChannelMessage {
reply_to_id: None,
diff --git a/crates/openhuman-core/src/channels/module_fixture_tests.rs b/crates/openhuman-core/src/channels/module_fixture_tests.rs
index dc4ead440f..b94db16aed 100644
--- a/crates/openhuman-core/src/channels/module_fixture_tests.rs
+++ b/crates/openhuman-core/src/channels/module_fixture_tests.rs
@@ -167,6 +167,7 @@ async fn linked_module_prepares_legacy_inbound_facts_over_confidential_bus_call(
},
namespace: "openhuman".into(),
session_policy: Default::default(),
+ preparation_mode: Default::default(),
},),
)
.await
diff --git a/crates/openhuman-core/src/channels/providers/relay/ops.rs b/crates/openhuman-core/src/channels/providers/relay/ops.rs
index 98a4519da0..5957be6dc2 100644
--- a/crates/openhuman-core/src/channels/providers/relay/ops.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/ops.rs
@@ -264,6 +264,7 @@ pub(crate) async fn run_relay_turn(
},
namespace: "main".into(),
session_policy: Default::default(),
+ preparation_mode: Default::default(),
},
)
.await
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 632d60833b..9a936aa1b0 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -59,6 +59,7 @@ pub(crate) async fn process_channel_runtime_message(
source,
namespace: "main".into(),
session_policy: Default::default(),
+ preparation_mode: Default::default(),
},
)
.await
diff --git a/crates/openhuman-core/src/threads/store/bus.rs b/crates/openhuman-core/src/threads/store/bus.rs
index 474845b173..ce461a8b56 100644
--- a/crates/openhuman-core/src/threads/store/bus.rs
+++ b/crates/openhuman-core/src/threads/store/bus.rs
@@ -456,6 +456,7 @@ async fn persist_channel_turn(
tinychannels_bus::module_inbound::PrepareChannelInboundRequest {
namespace: "main".into(),
session_policy: Default::default(),
+ preparation_mode: Default::default(),
source: tinychannels_bus::module_inbound::ChannelInboundSource::Legacy {
message: ChannelMessage {
reply_to_id: None,