Skip to content

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

fix(core): remove ollama lifecycle references from exit budget and dependencies

Steven Enamakel8cad58e24b94
diff --git a/crates/openhuman-app/src/core_process.rs b/crates/openhuman-app/src/core_process.rs
index 019c5901a6..b19b0809bd 100644
--- a/crates/openhuman-app/src/core_process.rs
+++ b/crates/openhuman-app/src/core_process.rs
@@ -703,12 +703,13 @@ impl CoreProcessHandle {
///
/// The moment is sized from what that teardown is allowed to take, so the
/// abort below never lands in the middle of it: the memory exit budget
- /// (`EXIT_BUDGET`, every driver and the hook registry on one deadline),
- /// the ollama cleanup after it in `CoreRuntime::exit_cleanup` (2 s), and half a second
- /// for the drain itself. Typical quits finish in milliseconds; the budget
- /// is only what a wedged store or daemon may cost.
+ /// (`EXIT_BUDGET`, every driver and the hook registry on one deadline)
+ /// plus half a second for the drain itself. There is no local-runtime
+ /// cleanup after it: OpenHuman never spawns Ollama / LM Studio / MLX.
+ /// Typical quits finish in milliseconds; the budget is only what a wedged
+ /// store may cost.
async fn drain_task_briefly(&self) {
- const AFTER_MEMORY: Duration = Duration::from_millis(2_500);
+ const AFTER_MEMORY: Duration = Duration::from_millis(500);
let budget = openhuman_core::memory::exit::EXIT_BUDGET + AFTER_MEMORY;
let mut task_guard = self.task.lock().await;
let Some(task) = task_guard.as_mut() else {
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 121e2ef738..a47ddd4ccc 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -406,8 +406,6 @@ lettre = { version = "0.11.22", default-features = false, features = ["builder",
parking_lot = "0.12"
rusqlite = { version = "=0.40.2", features = ["bundled"] }
sha2 = "0.10"
-# `ollama_lifecycle_e2e` checks the spawned runtime child is really gone.
-sysinfo = { version = "0.33", default-features = false, features = ["system"] }
tar = "0.4"
tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", features = ["sqlite", "multimodal"] }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rs
index 03a9cb35b9..0ee690ae33 100644
--- a/crates/openhuman-core/src/core/observability.rs
+++ b/crates/openhuman-core/src/core/observability.rs
@@ -2028,8 +2028,9 @@ fn report_expected_message(kind: ExpectedErrorKind, message: &str, domain: &str,
);
}
ExpectedErrorKind::LocalAiBinaryMissing => {
- // User-state condition: the piper or Ollama binary
- // isn't installed on this host. The error message itself is
+ // User-state condition: the piper binary (used for local
+ // TTS) isn't installed on this host. OpenHuman never installs
+ // it, nor any local model runtime. The error message itself is
// the user-facing instruction ("Set PIPER_BIN or install
// piper.") — Sentry has nothing to act on, since we can't
// install the binary for them. OPENHUMAN-TAURI-9N is the
diff --git a/crates/openhuman-core/src/memory/exit.rs b/crates/openhuman-core/src/memory/exit.rs
index e84741776a..316e7334ef 100644
--- a/crates/openhuman-core/src/memory/exit.rs
+++ b/crates/openhuman-core/src/memory/exit.rs
@@ -31,7 +31,7 @@ use crate::memory::binding::MemoryBinding;
/// a hook still pending. Releasing a lease is one write per in-flight job;
/// anything slower is a store that is not going to answer, and its leases
/// expire by themselves. The shell sizes its drain budget from this constant
-/// plus the ollama cleanup that follows it in `CoreRuntime::exit_cleanup`.
+/// plus a short margin for the drain itself.
pub const EXIT_BUDGET: Duration = Duration::from_secs(2);
/// The least the hook registry gets even when the drivers spent the budget.