Skip to content

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

feat(events): add request_id field to DomainEvent variant

Steven Enamakel7eca076cc8f5
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index 6531d1d23a..83bb93fda2 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -743,6 +743,11 @@ pub enum DomainEvent {
/// Socket.IO client id (room) to surface the disclosure to, when known.
/// `None` for non-chat callers.
client_id: Option<String>,
+ /// The turn this transfer was made under, from the ambient
+ /// `ApprovalChatContext::request_id`. `None` for non-chat callers, or
+ /// a chat caller that had no turn request_id in scope.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ request_id: Option<String>,
},
// ── Plan review (interactive plan-mode gate) ────────────────────────