Skip to content

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

fix(events): correct event ordering to ensure proper sequence

Steven Enamakel362212851f07
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index 2651b3b5f6..908d7ab07a 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -859,6 +859,12 @@ pub enum DomainEvent {
/// Socket.IO client id (room) to surface the card to, when known.
/// `None` for non-chat callers.
client_id: Option<String>,
+ /// The tool call that reserved this artifact, when known.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ tool_call_id: Option<String>,
+ /// The turn/request id this artifact was reserved under, when known.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ request_id: Option<String>,
},
// ── Webhooks ────────────────────────────────────────────────────────