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: keep memory context policy in openhuman
Steven Enamakelabebfaf735d7
diff --git a/crates/openhuman-core/src/inference/local/service/ollama_admin/binary.rs b/crates/openhuman-core/src/inference/local/service/ollama_admin/binary.rsindex 2d9e90ceda..2f7f9e1cd4 100644--- a/crates/openhuman-core/src/inference/local/service/ollama_admin/binary.rs+++ b/crates/openhuman-core/src/inference/local/service/ollama_admin/binary.rs@@ -170,7 +170,9 @@ impl LocalAiService {status.error_category = None;}- let result = run_ollama_install_script(&install_dir).await?;+ let result = run_ollama_install_script(&install_dir)+ .await+ .map_err(|error| error.to_string())?;if !result.exit_status.success() {let stderr_tail: String = result.stderrdiff --git a/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs b/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rsindex 27001d7c16..bb30acc149 100644--- a/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs+++ b/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs@@ -1,9 +1,7 @@use crate::config::ops::local_ai_presets;use crate::config::Config;use tinyinference_local::lm_studio::lm_studio_base_url;-use tinyinference_local::model_requirements::{- evaluate_context, ContextEligibility, MIN_CONTEXT_TOKENS,-};+use tinyinference_local::model_requirements::{evaluate_context, ContextEligibility};use tinyinference_local::models as model_ids;use tinyinference_local::ollama::{ollama_base_url_from_override, OllamaModelShow, OllamaModelTag, OllamaShowRequest,@@ -18,6 +16,9 @@ use super::super::LocalAiService;use super::health::OllamaHealthStatus;use super::util::lm_studio_models_error_means_unreachable;+const MIN_CONTEXT_TOKENS: u64 =+ tinyinference_core::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64;+impl LocalAiService {/// Run full diagnostics: check Ollama server health, list installed models,/// and verify expected models are present. Returns a JSON-serializable report.@@ -114,7 +115,7 @@ impl LocalAiService {};let model_eligibilities: Vec<ContextEligibility> = model_shows.iter()- .map(|s| evaluate_context(s.context_length))+ .map(|s| evaluate_context(s.context_length, MIN_CONTEXT_TOKENS)).collect();let installed_models: Vec<serde_json::Value> = modelsdiff --git a/vendor/tinyagents b/vendor/tinyagentsindex 1defc7ee07..580c6bbc2e 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit 1defc7ee0794bbc1d0434260cc4d3207a78f477a+Subproject commit 580c6bbc2e68b2e27fa6ddc39e26b59ace636b0cdiff --git a/vendor/tinymemory b/vendor/tinymemoryindex 3e360813d6..e3ee33b5e5 160000--- a/vendor/tinymemory+++ b/vendor/tinymemory@@ -1 +1 @@-Subproject commit 3e360813d6e00a5fed08c559caac4bd1aca61657+Subproject commit e3ee33b5e558e0322f57a9ec0a840a9b513171a7