Skip to content

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

feat(events): add ChannelOutputObserved domain event

Steven Enamakel82c3cf46b4cf
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index 8a6eb0fb09..928966631b 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -353,6 +353,17 @@ pub enum DomainEvent {
/// `workspace_dir` does not match their own workspace binding.
workspace_dir: std::path::PathBuf,
},
+ /// A native channel turn emitted one canonical progress observation.
+ /// The payload is deliberately content-free; the provider module owns
+ /// user-facing delivery and this event only gives host observers a
+ /// scoped lifecycle signal.
+ ChannelOutputObserved {
+ channel: tinychannels_bus::ChannelRef,
+ conversation: tinychannels_bus::ConversationRef,
+ turn_id: String,
+ sequence: u64,
+ event_kind: String,
+ },
/// A reaction event was received from a channel transport.
ChannelReactionReceived {
channel: String,
@@ -1379,6 +1390,7 @@ impl DomainEvent {
Self::ChannelInboundMessage { .. }
| Self::ChannelMessageReceived { .. }
| Self::ChannelMessageProcessed { .. }
+ | Self::ChannelOutputObserved { .. }
| Self::ChannelReactionReceived { .. }
| Self::ChannelReactionSent { .. }
| Self::ChannelConnected { .. }
@@ -1512,6 +1524,7 @@ impl DomainEvent {
Self::ChannelInboundMessage { .. } => "ChannelInboundMessage",
Self::ChannelMessageReceived { .. } => "ChannelMessageReceived",
Self::ChannelMessageProcessed { .. } => "ChannelMessageProcessed",
+ Self::ChannelOutputObserved { .. } => "ChannelOutputObserved",
Self::ChannelReactionReceived { .. } => "ChannelReactionReceived",
Self::ChannelReactionSent { .. } => "ChannelReactionSent",
Self::ChannelConnected { .. } => "ChannelConnected",
@@ -1617,6 +1630,10 @@ impl DomainEvent {
| Self::AgentOrchestrationCompleted { agent_id, .. }
| Self::AgentOrchestrationFailed { agent_id, .. } => Some(agent_id.as_str()),
Self::ChannelMessageReceived { channel, .. }
+ | Self::ChannelOutputObserved {
+ channel: tinychannels_bus::ChannelRef { id: channel, .. },
+ ..
+ }
| Self::ChannelConnected { channel, .. }
| Self::ChannelDisconnected { channel, .. } => Some(channel.as_str()),
Self::ToolExecutionStarted { tool_name, .. }