The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(store): handle missing conversation in event bus subscription
Steven Enamakel72d40a70a3cf
diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rsindex 33908f1a9c..b306a48903 100644--- a/crates/openhuman-core/src/core/bus.rs+++ b/crates/openhuman-core/src/core/bus.rs@@ -72,7 +72,7 @@ pub const EVENTS_INTERFACE: &str = "ai.tinyhumans.openhuman.Events";/// (`request_id`), the new `ThreadTodosChanged` and `ThreadRunModeChanged`/// variants. All additions are optional/defaulted, so an older subscriber/// keeps parsing what a newer publisher emits.-pub const EVENTS_VERSION: Version = Version::new(1, 5, 0);+pub const EVENTS_VERSION: Version = Version::new(1, 6, 0);/// The bus. Initialised once by [`init`]; safe to touch before that.pub static BUS: OnceBus<DomainEvent> = OnceBus::new();diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex 03435bf32d..e2a2467778 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -126,21 +126,6 @@ pub enum DomainEvent {orchestration_id: String,reason: Option<String>,},- // ── Subconscious orchestrator ───────────────────────────────────────- /// A subconscious trigger finished gate evaluation (promote or drop).- /// Observability only — lets dashboards see ingestion volume and the- /// gate's promote/drop ratio without reading logs.- SubconsciousTriggerProcessed {- /// Trigger source family (`cron` / `user_message` / …).- source: String,- /// Gate decision (`promote` / `drop`).- decision: String,- /// Whether the trigger was promoted into the long-lived session.- promoted: bool,- /// Gate evaluation latency in milliseconds.- latency_ms: u64,- },-// ── Run Queue ──────────────────────────────────────────────────────/// A message was queued into the active-run queue instead of interrupting.RunQueueMessageQueued {@@ -1644,8 +1629,6 @@ impl DomainEvent {| Self::ThreadTodosChanged { .. }| Self::ThreadRunModeChanged { .. } => "agent",- Self::SubconsciousTriggerProcessed { .. } => "subconscious",-Self::Voice(_) => "voice",Self::ApprovalRequested { .. }@@ -1689,7 +1672,6 @@ impl DomainEvent {Self::AgentOrchestrationCompleted { .. } => "AgentOrchestrationCompleted",Self::AgentOrchestrationFailed { .. } => "AgentOrchestrationFailed",Self::AgentOrchestrationClosed { .. } => "AgentOrchestrationClosed",- Self::SubconsciousTriggerProcessed { .. } => "SubconsciousTriggerProcessed",Self::RunQueueMessageQueued { .. } => "RunQueueMessageQueued",Self::RunQueueFollowupDispatched { .. } => "RunQueueFollowupDispatched",Self::RunQueueInterrupted { .. } => "RunQueueInterrupted",diff --git a/crates/openhuman-core/src/memory/conversations/store/store.rs b/crates/openhuman-core/src/memory/conversations/store/store.rsindex 506821b036..b714a41552 100644--- a/crates/openhuman-core/src/memory/conversations/store/store.rs+++ b/crates/openhuman-core/src/memory/conversations/store/store.rs@@ -237,7 +237,9 @@ pub(super) fn normalize_labels(labels: Vec<String>) -> Vec<String> {for label in labels {let next = match label.as_str() {"work" => "general".to_string(),- "from_reflection" | "subconscious_tick" => "subconscious".to_string(),+ // Labels written by the retired background-reasoning engine. Its+ // threads are ordinary conversations now.+ "from_reflection" | "subconscious_tick" | "subconscious" => "general".to_string(),"agent-task" | "worker" => "tasks".to_string(),_ => label,};diff --git a/crates/openhuman-core/src/memory/conversations/store/store_tests.rs b/crates/openhuman-core/src/memory/conversations/store/store_tests.rsindex 8524fdc115..7fbfaf7822 100644--- a/crates/openhuman-core/src/memory/conversations/store/store_tests.rs+++ b/crates/openhuman-core/src/memory/conversations/store/store_tests.rs@@ -512,12 +512,13 @@ fn store_handles_labels_and_inference() {store.ensure_thread(CreateConversationThread {parent_thread_id: None,- id: "legacy-subconscious-thread".to_string(),- title: "Legacy Subconscious Chat".to_string(),+ id: "legacy-reflection-thread".to_string(),+ title: "Legacy Reflection Chat".to_string(),created_at: "2026-04-10T12:00:00Z".to_string(),labels: Some(vec!["from_reflection".to_string(),"subconscious_tick".to_string(),+ "subconscious".to_string(),]),personality_id: None,})@@ -563,9 +564,9 @@ fn store_handles_labels_and_inference() {{let legacy = threads.iter()- .find(|t| t.id == "legacy-subconscious-thread")+ .find(|t| t.id == "legacy-reflection-thread").unwrap();- assert_eq!(legacy.labels, vec!["subconscious"]);+ assert_eq!(legacy.labels, vec!["general"]);}{let legacy = threads