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(agent): persist tinyagents journal and todos
Steven Enamakel2d14a7f61ad9
diff --git a/crates/openhuman-core/src/agent/goals/store.rs b/crates/openhuman-core/src/agent/goals/store.rsindex f9ca860c8a..ffd2ac0fd0 100644--- a/crates/openhuman-core/src/agent/goals/store.rs+++ b/crates/openhuman-core/src/agent/goals/store.rs@@ -21,7 +21,12 @@ use tinyagents_graph::goals::store as crate_store;use tinyagents_harness::store::Store;use tinyagents_session::transcript::import::ops::open_session_stores;+/// The store thread goals live in: the current agent's host session store+/// when one is installed, else the workspace's `tinyagents_store/kv`.pub(crate) fn goals_store(workspace_dir: &Path) -> Arc<dyn Store> {+ if let Some(stores) = crate::agent::session_store::current() {+ return stores.kv;+ }Arc::new(open_session_stores(workspace_dir).kv)}diff --git a/crates/openhuman-core/src/agent/tinyagents/journal.rs b/crates/openhuman-core/src/agent/tinyagents/journal.rsindex c0589c72b3..4b81b1187f 100644--- a/crates/openhuman-core/src/agent/tinyagents/journal.rs+++ b/crates/openhuman-core/src/agent/tinyagents/journal.rs@@ -56,6 +56,7 @@ use tinyagents_harness::observability::{HarnessStatusStore, JournalSink, RedactingSink, StoreEventJournal,};+use tinyagents_harness::store::{AppendStore, Store};use tinyagents_session::transcript::import::ops::open_session_stores;/// Best-effort live request → durable tinyagents journal stream map. The webdiff --git a/crates/openhuman-core/src/agent/tinyagents/todos.rs b/crates/openhuman-core/src/agent/tinyagents/todos.rsindex bbad1d4e87..f3fd21b156 100644--- a/crates/openhuman-core/src/agent/tinyagents/todos.rs+++ b/crates/openhuman-core/src/agent/tinyagents/todos.rs@@ -19,7 +19,13 @@ use tinyagents_session::transcript::import::ops::open_session_stores;/// The `workspace`-scoped store every session's list lives in, keyed by/// session/thread id. Opened fresh per call (cheap — `FileStore` just holds a/// root path) so it always reflects the caller's current workspace.+///+/// With a host session store installed, the current agent's key-value store+/// instead.pub fn session_todos_store(workspace_dir: &Path) -> Arc<dyn Store> {+ if let Some(stores) = crate::agent::session_store::current() {+ return stores.kv;+ }Arc::new(open_session_stores(workspace_dir).kv)}