Skip to content

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

fix(bus): handle missing event type in event bus dispatch

Steven Enamakel343d803c8c35
diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rs
index bb6f917f0d..0506c22456 100644
--- a/crates/openhuman-core/src/core/bus.rs
+++ b/crates/openhuman-core/src/core/bus.rs
@@ -63,7 +63,13 @@ pub const EVENTS_INTERFACE: &str = "ai.tinyhumans.openhuman.Events";
/// `1.2.0` added `ActiveWorkspaceChanged` (#5966).
/// `1.3.0` retired `McpSetupSecretRequested` with the MCP setup agent; a
/// subscriber that still matches on it simply never sees one.
-pub const EVENTS_VERSION: Version = Version::new(1, 3, 0);
+/// `1.4.0` is the wire-contract pass ahead of the assistant-UI-elements work:
+/// additive fields on `ApprovalRequested`/`ApprovalDecided`,
+/// `PlanReviewRequested`/`PlanReviewDecided`, the `Artifact*` family, the
+/// `RunQueue*` family, and `ThreadGoalUpdated`, plus the new
+/// `ThreadTodosChanged` variant. All additions are optional/defaulted, so an
+/// older subscriber keeps parsing what a newer publisher emits.
+pub const EVENTS_VERSION: Version = Version::new(1, 4, 0);
/// The bus. Initialised once by [`init`]; safe to touch before that.
pub static BUS: OnceBus<DomainEvent> = OnceBus::new();