Skip to content

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

docs(relay): clarify host event receipt semantics

Steven Enamakelaa5b32ed4c8d
diff --git a/crates/openhuman-core/src/channels/providers/relay/channel.rs b/crates/openhuman-core/src/channels/providers/relay/channel.rs
index d736aeef1b..e859b0fab0 100644
--- a/crates/openhuman-core/src/channels/providers/relay/channel.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/channel.rs
@@ -80,8 +80,8 @@ impl RelayChannel {
}
/// Publish lossless typed output to the gateway that owns provider delivery.
- /// The receipt acknowledges acceptance by this host event path; provider
- /// receipt IDs arrive separately from the gateway and are never fabricated.
+ /// Host event acceptance has no provider receipt; receipt IDs arrive
+ /// separately from the gateway and are never fabricated.
pub(crate) fn publish_typed_reply(
&self,
channel: &tinychannels_bus::ChannelRef,
@@ -119,7 +119,6 @@ impl RelayChannel {
"parts": parts,
})),
});
-
}
}
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
index 8952e076ef..df17c06dbd 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
@@ -339,6 +339,9 @@ async fn compiled_module_hosted_progressive_callback_is_scoped_and_typed() {
};
assert!(outcome.error.is_none());
assert!(outcome.receipt.idempotency_key.as_deref().is_some());
+ assert!(outcome.receipt.primary_platform_message_id.is_none());
+ assert!(outcome.receipt.platform_message_ids.is_empty());
+ assert!(outcome.receipt.parts.is_empty());
assert_eq!(outcome.receipt.channel.as_ref(), Some(&channel));
assert_eq!(outcome.receipt.conversation.as_ref(), Some(&conversation));
assert_eq!(outcome.receipt.thread_id.as_deref(), Some("topic-3"));