Skip to content

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

fix(core): remove stray closing paren in cron service spawn

Steven Enamakel28993f2c4fee
diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rs
index a0e60f4c39..ab28f44448 100644
--- a/crates/openhuman-core/src/core/runtime/services.rs
+++ b/crates/openhuman-core/src/core/runtime/services.rs
@@ -285,7 +285,7 @@ pub fn spawn_cron_service(
log::warn!("[core] config load failed, skipping cron scheduler: {err}");
}
}
- }))
+ })
}
/// Realtime channel listeners (Telegram getUpdates, Discord gateway, etc.).
diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.json
index 85a78a98ff..8fdb846aca 100644
--- a/scripts/ci/saas-ambient-baseline.json
+++ b/scripts/ci/saas-ambient-baseline.json
@@ -118,20 +118,6 @@
"text": ".map(|u| u.home_dir().to_path_buf())",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs",
- "line": 27,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs",
- "line": 46,
- "text": "tokio::spawn(async move {",
- "occurrence": 2
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs",
@@ -153,20 +139,6 @@
"text": "let config = match Config::load_or_init().await {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/channels/runtime/session.rs",
- "line": 112,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/channels/tests/runtime_dispatch.rs",
- "line": 366,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/config/migrations/mod.rs",
@@ -405,13 +377,6 @@
"text": "match crate::config::Config::load_or_init().await {",
"occurrence": 3
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/core/runtime/services.rs",
- "line": 259,
- "text": "tokio::spawn(crate::core::runtime::CoreContext::scope(ctx, async move {",
- "occurrence": 1
- },
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/core/runtime/services.rs",
@@ -622,13 +587,6 @@
"text": "let config = crate::config::Config::load_or_init()",
"occurrence": 4
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/inference/tokenjuice/repl_tools.rs",
- "line": 290,
- "text": "let read = tokio::task::spawn_blocking(move || {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/integrations/composio/bus/config_changed_subscriber.rs",
@@ -650,62 +608,6 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
- "line": 34,
- "text": "tokio::task::spawn_blocking(move || marker_docs.legacy_imported(name))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
- "line": 57,
- "text": "tokio::task::spawn_blocking(move || docs.import_if_absent(name, value))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
- "line": 81,
- "text": "tokio::task::spawn_blocking(move || docs.load(name))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
- "line": 106,
- "text": "tokio::task::spawn_blocking(move || docs.update(name, change))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/file_store.rs",
- "line": 126,
- "text": "tokio::task::spawn_blocking(move || docs.save(name, &value))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/trigger_history.rs",
- "line": 90,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/composio/trigger_history.rs",
- "line": 160,
- "text": "tokio::spawn(async move {",
- "occurrence": 2
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/integrations/task_sources/periodic.rs",
- "line": 84,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/integrations/test_support_backend.rs",
@@ -783,13 +685,6 @@
"text": "let _ = std::thread::spawn(move || {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/mcp/ui/tools.rs",
- "line": 113,
- "text": "tokio::task::spawn_blocking(move || {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/memory/backfill.rs",
@@ -804,13 +699,6 @@
"text": "let counts = tokio::task::spawn_blocking(move || count_legacy(&workspace_dir))",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/memory/lifecycle/prefetch.rs",
- "line": 174,
- "text": "let _ = tokio::task::spawn_blocking(move || {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/modules/boot.rs",
@@ -818,41 +706,6 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/modules/storage_host_endpoint.rs",
- "line": 105,
- "text": "relay.bridge = Some(tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/modules/storage_import_tinyconnectors.rs",
- "line": 95,
- "text": "tokio::task::spawn_blocking(move || read_legacy(&prefs_dir, &triggers_dir))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/modules/storage_import_tinyjuice.rs",
- "line": 96,
- "text": "tokio::task::spawn_blocking(move || read_originals(&dir, now))",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/modules/storage_import_tinymcp.rs",
- "line": 113,
- "text": "tokio::task::spawn_blocking(move || -> Result<_> {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/modules/storage_import_tinywallet.rs",
- "line": 69,
- "text": "let (records, skipped) = tokio::task::spawn_blocking(move || -> Result<_> {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/platform/doctor/ops.rs",
@@ -895,20 +748,6 @@
"text": "let handle = tokio::spawn(async move {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/profiles/background.rs",
- "line": 44,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/profiles/lease.rs",
- "line": 194,
- "text": "tokio::spawn(renewals);",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/sandbox/native_jail.rs",
@@ -1091,20 +930,6 @@
"text": "tokio::task::spawn_blocking(do_write);",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/storage/blob_sweep.rs",
- "line": 177,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/storage/import/mod.rs",
- "line": 194,
- "text": "tokio::task::spawn_blocking(move || run_all(&backend, &config)).await;",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/storage/import_claim.rs",
@@ -1154,20 +979,6 @@
"text": "let spend = tokio::task::spawn_blocking(move || thread_spend_in(locator.as_ref(), &thread_id))",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/tinymemes/callbacks.rs",
- "line": 260,
- "text": "match tokio::task::spawn_blocking(move || docs::load(&config, kind)).await {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/tinymemes/callbacks.rs",
- "line": 275,
- "text": "match tokio::task::spawn_blocking(move || {",
- "occurrence": 1
- },
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/tools/impl/document/engine.rs",
@@ -1203,13 +1014,6 @@
"text": "crate::core::runtime::context::CoreContext::current().map(|c| c.tool_groups()),",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/voice/always_on/capture.rs",
- "line": 28,
- "text": "let task = tokio::spawn(async move {",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/voice/always_on/lock_watcher.rs",
@@ -1252,20 +1056,6 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/voice/server/hotkey_listener.rs",
- "line": 124,
- "text": "let task = tokio::spawn(async move {",
- "occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/voice/server/hotkey_listener.rs",
- "line": 347,
- "text": "let task = tokio::spawn(async move {",
- "occurrence": 2
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/voice/server/singleton.rs",
@@ -1343,13 +1133,6 @@
"text": "tokio::spawn(async move {",
"occurrence": 1
},
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/web_chat/ops/state.rs",
- "line": 223,
- "text": "let handle = tokio::spawn(async move { watched.cancelled().await });",
- "occurrence": 1
- },
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/web_chat/ops/system_turn.rs",
@@ -1370,12 +1153,5 @@
"line": 87,
"text": "tokio::spawn(crate::core::runtime::context::CoreContext::propagate(",
"occurrence": 1
- },
- {
- "rule": "bare-spawn",
- "path": "crates/openhuman-core/src/web_chat/turn_activity.rs",
- "line": 292,
- "text": "tokio::spawn(async move {",
- "occurrence": 1
}
]