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
feat(runtime): enable core update scheduler in desktop service set
Steven Enamakel17276bc7940f
diff --git a/crates/openhuman-core/src/core/runtime/README.md b/crates/openhuman-core/src/core/runtime/README.mdindex 4dbecf340c..fdde15f0cc 100644--- a/crates/openhuman-core/src/core/runtime/README.md+++ b/crates/openhuman-core/src/core/runtime/README.md@@ -35,7 +35,7 @@ Each flag is independent. Presets:| Preset | Shape || --- | --- |-| `ServiceSet::desktop()` | Everything on except `update_scheduler`: the Tauri shell and standalone `openhuman-core run`. The shell updates through the Tauri updater and releases publish core archives for Linux only, so the core self-update poller is opt-in. |+| `ServiceSet::desktop()` | Everything on: the Tauri shell and standalone `openhuman-core run`. || `ServiceSet::headless_api()` | HTTP JSON-RPC only (`rpc_http`): no Socket.IO, cron, channels, or login-gated services; a single-core cloud/server deployment. || `ServiceSet::none()` | No transport, no background services: a library/harness embedder driving only `CoreRuntime::invoke`. || `ServiceSet::embedded()` | No transport (`rpc_http: false`), but the background work a long-lived embedded session expects: cron, login-gated services, memory queue, harness init, skill catalog refresh, memory sync. `socketio`/`channels` stay off because such a host reads state through the facade and owns its own networking. |diff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rsindex f44b60552d..684712673c 100644--- a/crates/openhuman-core/src/core/runtime/builder.rs+++ b/crates/openhuman-core/src/core/runtime/builder.rs@@ -33,8 +33,7 @@ pub use super::domain_set::DomainSet;/// Selects which background services and transports a [`CoreRuntime`] runs.////// Each flag is independent. Presets cover the common hosts:-/// [`ServiceSet::desktop`] (everything but the core self-update poller — the-/// Tauri shell / standalone CLI),+/// [`ServiceSet::desktop`] (everything — the Tauri shell / standalone CLI),/// [`ServiceSet::headless_api`] (HTTP JSON-RPC only — single-core cloud), and/// [`ServiceSet::none`] (no transport, no background work — library / harness).#[derive(Debug, Clone, Copy, PartialEq, Eq)]@@ -66,12 +65,7 @@ pub struct ServiceSet {}impl ServiceSet {- /// Everything on — the desktop shell and the standalone `openhuman-core run` —- /// except the core self-update poller. The shell updates through the Tauri- /// updater, and releases publish core archives for Linux only, so on macOS- /// and Windows the poller could only ever report a missing asset- /// (Sentry TAURI-RUST-122R/122S). Hosts that self-update the core binary- /// opt in by setting `update_scheduler`.+ /// Everything on — the desktop shell and the standalone `openhuman-core run`.pub fn desktop() -> Self {Self {rpc_http: true,@@ -79,7 +73,7 @@ impl ServiceSet {cron: true,channels: true,login_gated: true,- update_scheduler: false,+ update_scheduler: true,memory_queue: true,harness_init: true,skill_catalog_refresh: true,diff --git a/crates/openhuman-core/src/core/runtime/builder_tests.rs b/crates/openhuman-core/src/core/runtime/builder_tests.rsindex c04609470d..4bbbddd2d3 100644--- a/crates/openhuman-core/src/core/runtime/builder_tests.rs+++ b/crates/openhuman-core/src/core/runtime/builder_tests.rs@@ -169,11 +169,3 @@ fn boot_jobs_are_independent_from_runtime_service_flags() {assert!(!headless.integrations);assert!(!headless.memory_sync);}--/// Sentry TAURI-RUST-122R/122S: the desktop shell updates through the Tauri-/// updater, and releases publish no core archive for macOS or Windows, so an-/// in-process core polling GitHub for one reported a missing asset every hour.-#[test]-fn desktop_service_set_does_not_run_the_core_update_scheduler() {- assert!(!ServiceSet::desktop().update_scheduler);-}diff --git a/crates/openhuman-rpc/src/host_tests.rs b/crates/openhuman-rpc/src/host_tests.rsindex 947abfada3..98b413b12e 100644--- a/crates/openhuman-rpc/src/host_tests.rs+++ b/crates/openhuman-rpc/src/host_tests.rs@@ -33,6 +33,7 @@ fn desktop_builder_carries_bearer_listener_and_services() {assert_eq!(summary.domains, Some(DomainSet::full()));let mut expected = ServiceSet::desktop();expected.socketio = false;+ expected.update_scheduler = false;assert_eq!(summary.services, Some(expected));assert!(summary.fixed_token);assert_eq!(summary.listen_host.as_deref(), Some("127.0.0.1"));@@ -54,7 +55,24 @@ fn desktop_defaults_leave_listener_and_token_to_the_environment() {assert!(!summary.fixed_token);assert_eq!(summary.listen_host, None);assert_eq!(summary.listen_port, None);- assert_eq!(summary.services, Some(ServiceSet::desktop()));+ let mut expected = ServiceSet::desktop();+ expected.update_scheduler = false;+ assert_eq!(summary.services, Some(expected));+}++/// Sentry TAURI-RUST-122R/122S/13B8/13B9: the shell updates through the+/// Tauri updater and releases publish core archives for Linux only, so an+/// in-process core polling for its own archive reported a missing asset+/// every hour on macOS and Windows. The standalone CLI keeps the poller.+#[cfg(feature = "server")]+#[test]+fn only_the_standalone_cli_runs_the_core_update_poller() {+ let desktop = desktop_builder(&DesktopOptions::default())+ .into_embed()+ .summary();+ assert!(!desktop.services.expect("desktop sets services").update_scheduler);+ let cli = cli_builder().into_embed().summary();+ assert!(cli.services.expect("cli sets services").update_scheduler);}#[cfg(feature = "server")]