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(storage-host): log dropped watch signals on relay lag
Steven Enamakeld63c67168324
diff --git a/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs b/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rsindex be2712e5b9..437703dded 100644--- a/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs+++ b/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs@@ -197,7 +197,11 @@ async fn a_second_module_cannot_receive_the_first_modules_watch_signals() {if let Ok(Ok(message)) =tokio::time::timeout(std::time::Duration::from_millis(200), everything.recv()).await{- ids.push(message.body[0]["watch_id"].as_str().unwrap().to_string());+ let id = message.body.first().and_then(|b| b["watch_id"].as_str());+ ids.push(id.map_or_else(+ || format!("<non-watch: {:?}>", message.body),+ str::to_string,+ ));}}assert!(diff --git a/crates/openhuman-core/src/modules/storage_host_endpoint.rs b/crates/openhuman-core/src/modules/storage_host_endpoint.rsindex 579cff7b83..a1eee19340 100644--- a/crates/openhuman-core/src/modules/storage_host_endpoint.rs+++ b/crates/openhuman-core/src/modules/storage_host_endpoint.rs@@ -109,7 +109,15 @@ impl StorageHost {// No receiver just means the bus forwarder is gone.let _ = tx.send(signal);}- Err(broadcast::error::RecvError::Lagged(_)) => {}+ Err(broadcast::error::RecvError::Lagged(missed)) => {+ // The watch ids in the skipped batch are gone; the+ // signal carries no reset form, so record the loss.+ tracing::warn!(+ target: "storage_host",+ missed,+ "[storage-host] watch relay lagged; dropped watch signals"+ );+ }Err(broadcast::error::RecvError::Closed) => return,}}