Skip to content

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

fix(events): remove duplicate event variant in event enum

Steven Enamakele036e66dec00
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index c9de8aaa90..5958b17313 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -727,6 +727,15 @@ pub enum DomainEvent {
summary: String,
/// Ordered plan steps shown in the review card.
steps: Vec<String>,
+ /// The gated tool call's provider-assigned call id, when the parked
+ /// turn originated from a tracked tool-call. `None` until every
+ /// publish site is updated to pass it through.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ tool_call_id: Option<String>,
+ /// RFC3339 expiry of this pending plan review, mirrored the same
+ /// way as `ApprovalRequested::expires_at`.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ expires_at: Option<String>,
},
/// User resolved a parked plan review. Published after the gate's parked
/// future wakes. `decision` is `"approve"` / `"reject"` / `"revise"`
@@ -734,6 +743,18 @@ pub enum DomainEvent {
PlanReviewDecided {
request_id: String,
decision: String,
+ /// Chat thread the decided review belongs to, mirrored from the
+ /// original `PlanReviewRequested`. `None` for non-chat callers and
+ /// until every publish site is updated.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ thread_id: Option<String>,
+ /// Socket.IO client id (room), mirrored the same way.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ client_id: Option<String>,
+ /// The gated tool call's provider-assigned call id, mirrored from
+ /// `PlanReviewRequested::tool_call_id`.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ tool_call_id: Option<String>,
},
// ── Artifacts ───────────────────────────────────────────────────────