Skip to content

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

fix(threads): remove unused live_state and usage modules

Steven Enamakel237fc278d69a
diff --git a/crates/openhuman-core/src/threads/ops/live_state.rs b/crates/openhuman-core/src/threads/ops/live_state.rs
index c23b779b48..024a1c07c6 100644
--- a/crates/openhuman-core/src/threads/ops/live_state.rs
+++ b/crates/openhuman-core/src/threads/ops/live_state.rs
@@ -10,7 +10,7 @@ use super::support::{envelope, workspace_dir};
use crate::agent::goals::goal_to_value;
use crate::agent::todos::ops::{self as todos_ops, TodoScope};
use crate::core::Outcome;
-use crate::memory::ApiEnvelope;
+use crate::threads::ApiEnvelope;
/// Request for [`goal_get`] / [`todos_get`]: the thread to read.
#[derive(Debug, Clone, serde::Deserialize)]
diff --git a/crates/openhuman-core/src/threads/ops/usage.rs b/crates/openhuman-core/src/threads/ops/usage.rs
index 82ebd6da5c..c587109e72 100644
--- a/crates/openhuman-core/src/threads/ops/usage.rs
+++ b/crates/openhuman-core/src/threads/ops/usage.rs
@@ -2,7 +2,7 @@
use super::support::{counts, envelope, workspace_dir};
use crate::core::Outcome;
-use crate::memory::ApiEnvelope;
+use crate::threads::ApiEnvelope;
use tinyagents_session::transcript::spend::thread_spend;
/// Request for [`token_usage`]: the thread whose persisted usage to total.
diff --git a/crates/openhuman-core/src/threads/ops_conversion_tests.rs b/crates/openhuman-core/src/threads/ops_conversion_tests.rs
index 430d8fc89f..5e39c6a645 100644
--- a/crates/openhuman-core/src/threads/ops_conversion_tests.rs
+++ b/crates/openhuman-core/src/threads/ops_conversion_tests.rs
@@ -481,7 +481,7 @@ async fn thread_update_title_rejects_empty_and_whitespace_only_titles() {
let _workspace_guard = EnvVarGuard::set("OPENHUMAN_WORKSPACE", workspace.path());
for title in ["", " "] {
- let err = thread_update_title(crate::memory::UpdateConversationThreadTitleRequest {
+ let err = thread_update_title(crate::threads::UpdateConversationThreadTitleRequest {
thread_id: "t-1".to_string(),
title: title.to_string(),
})
diff --git a/crates/openhuman-core/src/threads/ops_title_and_cancellation_tests.rs b/crates/openhuman-core/src/threads/ops_title_and_cancellation_tests.rs
index ddb1edd7b9..b95e709c4f 100644
--- a/crates/openhuman-core/src/threads/ops_title_and_cancellation_tests.rs
+++ b/crates/openhuman-core/src/threads/ops_title_and_cancellation_tests.rs
@@ -11,7 +11,7 @@ async fn thread_update_title_persists_new_title() {
let thread_id = "t-title";
create_thread_with_title(&workspace, thread_id, "Original title").await;
- let outcome = thread_update_title(crate::memory::UpdateConversationThreadTitleRequest {
+ let outcome = thread_update_title(crate::threads::UpdateConversationThreadTitleRequest {
thread_id: thread_id.to_string(),
title: " Invoice follow-up ".to_string(),
})
@@ -34,7 +34,7 @@ async fn thread_update_title_returns_error_for_missing_thread() {
let workspace = tempfile::tempdir().expect("workspace");
let _workspace_guard = EnvVarGuard::set("OPENHUMAN_WORKSPACE", workspace.path());
- let err = thread_update_title(crate::memory::UpdateConversationThreadTitleRequest {
+ let err = thread_update_title(crate::threads::UpdateConversationThreadTitleRequest {
thread_id: "nonexistent-thread".to_string(),
title: "New title".to_string(),
})