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(threads): remove unused thread store bus and related infrastructure
Steven Enamakel79eb9f122520
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex 2e753468e7..d6f6d38e21 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -438,11 +438,11 @@ fn persist_delivery_reply(content: String,success: bool,) -> Result<(), String> {- crate::memory::conversations::append_message(+ crate::threads::store::append_message(workspace_dir,thread_id,- crate::memory::conversations::ConversationMessage {- id: crate::memory::conversations::run_reply_message_id(run_id),+ crate::threads::store::ConversationMessage {+ id: crate::threads::store::run_reply_message_id(run_id),content,message_type: "text".to_string(),extra_metadata: json!({diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rsindex 8861e8d348..43fae43447 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs@@ -16,7 +16,7 @@ use crate::agent::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions, SubagentRunStatus,};-use crate::memory::conversations::{self as conversations, ConversationMessage};+use crate::threads::store::{self as conversations, ConversationMessage};use async_trait::async_trait;use serde_json::json;use std::sync::Arc;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex da87c32488..7632778a05 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -291,7 +291,7 @@ fn extract_workflow_proposal_ignores_non_proposal_history() {#[test]fn attach_workflow_proposal_persists_thread_message_and_extends_summary() {- use crate::memory::conversations::CreateConversationThread;+ use crate::threads::store::CreateConversationThread;let temp = tempfile::tempdir().expect("tempdir");conversations::ensure_thread(temp.path().to_path_buf(),diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rsindex 19772d0748..7c81bb9389 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs@@ -17,7 +17,7 @@ use crate::agent::progress::AgentProgress;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions, SubagentRunOutcome, SubagentRunStatus,};-use crate::memory::conversations::{+use crate::threads::store::{self as conversations, ConversationMessage, CreateConversationThread,};use async_trait::async_trait;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rsindex 259da5e47b..944af3c675 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs@@ -11,7 +11,7 @@use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions};-use crate::memory::conversations;+use crate::threads::store;use async_trait::async_trait;use serde_json::json;use std::sync::Arc;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rsindex b8acb7a5b8..9c213ec228 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::agent::harness::fork_context::with_parent_context;use crate::agent::harness::ParentExecutionContext;-use crate::memory::conversations::CreateConversationThread;+use crate::threads::store::CreateConversationThread;use std::path::PathBuf;use std::sync::Arc;use tempfile::TempDir;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex c34b1876f8..e85da043b6 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -2,7 +2,7 @@ use super::{ArchetypeDelegationTool, DelegationTarget, SpawnSubagentTool, SpawnWuse crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::{with_parent_context, ParentExecutionContext};use crate::agent::prompts::{ConnectedIntegration, ToolCallFormat};-use crate::memory::conversations;+use crate::threads::store;use crate::memory::test_support::NoopMemory;use async_trait::async_trait;use parking_lot::Mutex;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rs b/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rsindex 8546cdd5b7..4b2c6a4e6b 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rs@@ -14,7 +14,7 @@ use std::path::PathBuf;use serde_json::json;-use crate::memory::conversations::{+use crate::threads::store::{self as conversations, ConversationMessage, CreateConversationThread,};diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rsindex fc99e365ab..e83dc47755 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rs@@ -4,7 +4,7 @@use tinyagents_session::transcript::TranscriptMessage;use tinytools_agent::dialect::{DialectRole, TranscriptEntry};-/// Append a worker-thread [`StoredMessage`](crate::memory::conversations::ConversationMessage)+/// Append a worker-thread [`StoredMessage`](crate::threads::store::ConversationMessage)/// with the restored legacy [`SubagentObserver`] metadata (#4466): `scope`,/// `agent_id`, `task_id`, plus the per-message `iteration`, `final`, `mode`, and/// (for assistant tool rounds / tool results) `tool_calls` / `tool_call_id` /@@ -20,7 +20,7 @@ fn append_worker_message(sender: &str,metadata: serde_json::Value,) {- use crate::memory::conversations::{append_message, ConversationMessage as StoredMessage};+ use crate::threads::store::{append_message, ConversationMessage as StoredMessage};let mut extra = serde_json::json!({"scope": "worker_thread","agent_id": agent_id,diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rsindex 56a4a319b2..fb857c9dc5 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs@@ -206,7 +206,7 @@ async fn an_allowlist_that_readmits_a_spawn_tool_is_refused_loudly() {/// record stays in the log for the process rail; it just stops being chat.#[test]fn mirrored_tool_results_are_hidden_from_the_worker_thread_chat() {- use crate::memory::conversations::{self as store, CreateConversationThread};+ use crate::threads::store::{self as store, CreateConversationThread};let dir = std::env::temp_dir().join(format!("wt-5934-{}", uuid::Uuid::new_v4()));std::fs::create_dir_all(&dir).unwrap();diff --git a/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rs b/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rsindex a89cfb8797..cdc8f522d1 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rs@@ -499,7 +499,7 @@ impl AgentMemory for OpenHumanAgentMemory {/// "no summary" rather than concatenating recall output.///// TODO(phase4): if a real per-thread rollup lands (the natural home is a- // summary column on `crate::memory::conversations::ConversationThread`,+ // summary column on `crate::threads::store::ConversationThread`,// or a thread-scoped digest in `memory_tree::summarise`), return it here.async fn thread_summary(&self, _thread: &ThreadId) -> TaResult<Option<String>> {Ok(None)diff --git a/crates/openhuman-core/src/channels/host/adapters.rs b/crates/openhuman-core/src/channels/host/adapters.rsindex b323baa9cf..a757c7fa23 100644--- a/crates/openhuman-core/src/channels/host/adapters.rs+++ b/crates/openhuman-core/src/channels/host/adapters.rs@@ -181,7 +181,7 @@ impl ConversationStore for ConversationHistoryStore {limit: usize,) -> anyhow::Result<Vec<ConversationMessage>> {let messages =- crate::memory::conversations::get_messages(self.workspace_dir.clone(), session_key)+ crate::threads::store::get_messages(self.workspace_dir.clone(), session_key).map_err(|e| anyhow::anyhow!(e))?;let start = messages.len().saturating_sub(limit);Ok(messages[start..]@@ -197,9 +197,9 @@ impl ConversationStore for ConversationHistoryStore {async fn append(&self, session_key: &str, message: ConversationMessage) -> anyhow::Result<()> {let now = chrono::Utc::now().to_rfc3339();// `append_message` requires the thread to exist; create-or-noop first.- crate::memory::conversations::ensure_thread(+ crate::threads::store::ensure_thread(self.workspace_dir.clone(),- crate::memory::conversations::CreateConversationThread {+ crate::threads::store::CreateConversationThread {id: session_key.to_string(),title: session_key.to_string(),created_at: now.clone(),@@ -209,7 +209,7 @@ impl ConversationStore for ConversationHistoryStore {},).map_err(|e| anyhow::anyhow!(e))?;- let stored = crate::memory::conversations::ConversationMessage {+ let stored = crate::threads::store::ConversationMessage {id: uuid::Uuid::new_v4().to_string(),content: message.content,message_type: message.role.clone(),@@ -217,7 +217,7 @@ impl ConversationStore for ConversationHistoryStore {sender: message.role,created_at: now,};- crate::memory::conversations::append_message(+ crate::threads::store::append_message(self.workspace_dir.clone(),session_key,stored,diff --git a/crates/openhuman-core/src/channels/host/remote_control.rs b/crates/openhuman-core/src/channels/host/remote_control.rsindex a8c483f7a0..79a9791197 100644--- a/crates/openhuman-core/src/channels/host/remote_control.rs+++ b/crates/openhuman-core/src/channels/host/remote_control.rs@@ -12,7 +12,7 @@ use tinychannels::remote::{NewRemoteThread, RemoteControlHost, RemoteRoute, Remouse crate::channels::context::{clear_sender_history, ChannelRouteSelection, ChannelRuntimeContext,};-use crate::memory::conversations::{self as conversations, CreateConversationThread};+use crate::threads::store::{self as conversations, CreateConversationThread};/// Remote-control host state for one command, borrowed from the runtime.pub(crate) struct RuntimeRemoteControl<'a> {diff --git a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rsindex e7e3276249..151d005003 100644--- a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs@@ -63,7 +63,7 @@ async fn start_channels_inner(mut config: Config) -> Result<()> {let bus = crate::core::bus::BUS.get().expect("bus initialised");let _tracing_handle = bus.subscribe(Arc::new(crate::core::bus::TracingSubscriber));crate::platform::health::bus::register_health_subscriber();- crate::memory::conversations::register_conversation_persistence_subscriber(+ crate::threads::store::register_conversation_persistence_subscriber(config.workspace_dir.clone(),);crate::memory::sync_events_bridge::register_sync_stage_bridge(&config);diff --git a/crates/openhuman-core/src/channels/traits_tests.rs b/crates/openhuman-core/src/channels/traits_tests.rsindex 62a67f0ec8..da3d99b74e 100644--- a/crates/openhuman-core/src/channels/traits_tests.rs+++ b/crates/openhuman-core/src/channels/traits_tests.rs@@ -2,7 +2,7 @@//!//! `tinychannels` is `optional = true`; `tinychannels-bus` is not. Every//! always-on consumer — `cron::bus`, `security::pairing`,-//! `memory::conversations::bus`, `config::schema::channels` and the+//! `threads::store::bus`, `config::schema::channels` and the//! `DomainEvent` variant — must therefore name the *contract* crate. Point//! one of them back at `tinychannels` and a `channels`-less build stops//! resolving, which CI's `cargo check` smoke lane would catch only if itdiff --git a/crates/openhuman-core/src/core/runtime/subscribers.rs b/crates/openhuman-core/src/core/runtime/subscribers.rsindex f1d82ae6e1..ba5ec3be54 100644--- a/crates/openhuman-core/src/core/runtime/subscribers.rs+++ b/crates/openhuman-core/src/core/runtime/subscribers.rs@@ -443,7 +443,7 @@ pub(super) fn register_domain_subscribers(// Memory: conversation-persistence + sync-stage bridge.if plan.memory {if group_first_time(DomainGroup::Memory) {- crate::memory::conversations::register_conversation_persistence_subscriber(+ crate::threads::store::register_conversation_persistence_subscriber(workspace_dir.clone(),);crate::memory::sync_events_bridge::register_sync_stage_bridge(&config);diff --git a/crates/openhuman-core/src/security/credentials/ops/user_scope.rs b/crates/openhuman-core/src/security/credentials/ops/user_scope.rsindex abaf617ace..d13ce39e71 100644--- a/crates/openhuman-core/src/security/credentials/ops/user_scope.rs+++ b/crates/openhuman-core/src/security/credentials/ops/user_scope.rs@@ -11,7 +11,7 @@ use crate::config::{default_root_openhuman_dir, pre_login_user_dir, read_active_user_id, user_openhuman_dir,write_active_user_id, Config,};-use crate::memory::conversations;+use crate::threads::store;use super::gated_services::is_embedder_host;@@ -68,7 +68,7 @@ pub(super) fn activate_user_scope(user_id: &str) -> Result<Vec<String>, String>tracing::info!(user_id = %user_id, user_dir = %user_dir.display(), "{LOG_PREFIX} user-scoped directory activated");if previous_active.is_none() {- // Shares `memory::conversations`' process-wide mutex with+ // Shares `threads::store`' process-wide mutex with// `list_threads` / `purge_threads` on any workspace, so purge and// concurrent thread RPC in this process cannot interleave.let pre_ws = pre_login_user_dir(&root_dir).join("workspace");diff --git a/crates/openhuman-core/src/threads/ops.rs b/crates/openhuman-core/src/threads/ops.rsindex b37bcc75c9..ae38f60dd7 100644--- a/crates/openhuman-core/src/threads/ops.rs+++ b/crates/openhuman-core/src/threads/ops.rs@@ -35,7 +35,7 @@ pub use usage::{token_usage, SubagentUsageDto, ThreadTokenUsageRequest, ThreadTo// Test-only re-exports so `use super::*;` in the split-out test modules below// keeps resolving the shared helpers that now live in `support`.#[cfg(test)]-use crate::memory::conversations::{+use crate::threads::store::{ConversationMessage, ConversationThread, CreateConversationThread,};#[cfg(test)]diff --git a/crates/openhuman-core/src/threads/ops/crud.rs b/crates/openhuman-core/src/threads/ops/crud.rsindex 96257a32f8..90d1fa5399 100644--- a/crates/openhuman-core/src/threads/ops/crud.rs+++ b/crates/openhuman-core/src/threads/ops/crud.rs@@ -6,8 +6,8 @@ use super::support::{workspace_dir,};use crate::core::Outcome;-use crate::memory::conversations;-use crate::memory::conversations::{ConversationMessagePatch, CrossThreadHit};+use crate::threads::store;+use crate::threads::store::{ConversationMessagePatch, CrossThreadHit};use crate::memory::{ApiEnvelope, AppendConversationMessageRequest, ConversationMessageRecord,ConversationMessagesRequest, ConversationMessagesResponse, ConversationThreadSummary,diff --git a/crates/openhuman-core/src/threads/ops/edit.rs b/crates/openhuman-core/src/threads/ops/edit.rsindex 683ab7e7bc..524489badd 100644--- a/crates/openhuman-core/src/threads/ops/edit.rs+++ b/crates/openhuman-core/src/threads/ops/edit.rs@@ -12,9 +12,9 @@//! `TranscriptMessage::request_id`. The one place these two id spaces//! provably correlate is an **assistant reply**: its store id is minted//! deterministically as `agent:<request_id>`-//! ([`crate::memory::conversations::run_reply_message_id`], written by+//! ([`crate::threads::store::run_reply_message_id`], written by//! `web_chat::reply_persistence` before the `chat_done` that announces it),-//! so [`crate::memory::conversations::reply_run_id`] recovers the exact turn+//! so [`crate::threads::store::reply_run_id`] recovers the exact turn//! id the transcript recorded on every row of that turn.//!//! - `regenerate { message_id: Some(id) }` — `id` must be that deterministic@@ -47,7 +47,7 @@ use tinyagents_session::transcript::{};use crate::core::Outcome;-use crate::memory::conversations::{self, reply_run_id, run_reply_message_id};+use crate::threads::store::{self, reply_run_id, run_reply_message_id};use crate::threads::ThreadsError;use super::support::workspace_dir;diff --git a/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs b/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rsindex 3fb998ce14..49b828ae82 100644--- a/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs+++ b/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs@@ -6,7 +6,7 @@//! truncation tests do.use super::*;-use crate::memory::conversations::{self, run_reply_message_id, ConversationMessage};+use crate::threads::store::{self, run_reply_message_id, ConversationMessage};use serde_json::json;use tempfile::TempDir;use tinyagents_session::turn_state::store as turn_state_store;@@ -100,7 +100,7 @@ fn message(id: &str, content: &str, sender: &str) -> ConversationMessage {async fn seed_message_log(dir: &std::path::Path, thread_id: &str) {conversations::blocking::ensure_thread(dir.to_path_buf(),- crate::memory::conversations::CreateConversationThread {+ crate::threads::store::CreateConversationThread {id: thread_id.to_string(),title: "test thread".to_string(),created_at: "2026-09-24T00:00:00Z".to_string(),diff --git a/crates/openhuman-core/src/threads/ops/purge.rs b/crates/openhuman-core/src/threads/ops/purge.rsindex 143ae59145..b65fe7e22e 100644--- a/crates/openhuman-core/src/threads/ops/purge.rs+++ b/crates/openhuman-core/src/threads/ops/purge.rs@@ -2,7 +2,7 @@use super::support::{envelope, run_to_completion, workspace_dir};use crate::core::Outcome;-use crate::memory::conversations;+use crate::threads::store;use crate::memory::{ApiEnvelope, EmptyRequest, PurgeConversationThreadsResponse};use std::path::PathBuf;use tinyagents_session::turn_state;diff --git a/crates/openhuman-core/src/threads/ops/support.rs b/crates/openhuman-core/src/threads/ops/support.rsindex 59929ba82c..6ae078bfc2 100644--- a/crates/openhuman-core/src/threads/ops/support.rs+++ b/crates/openhuman-core/src/threads/ops/support.rs@@ -4,8 +4,8 @@use crate::config::Config;use crate::core::runtime::context::CoreContext;-use crate::memory::conversations;-use crate::memory::conversations::{ConversationMessage, ConversationThread};+use crate::threads::store;+use crate::threads::store::{ConversationMessage, ConversationThread};use crate::memory::{ConversationMessageRecord, ConversationThreadSummary};use crate::threads::THREAD_TITLE_LOG_PREFIX;use std::path::PathBuf;diff --git a/crates/openhuman-core/src/threads/ops/title_generation.rs b/crates/openhuman-core/src/threads/ops/title_generation.rsindex ab77b90320..28c435dcfc 100644--- a/crates/openhuman-core/src/threads/ops/title_generation.rs+++ b/crates/openhuman-core/src/threads/ops/title_generation.rs@@ -5,7 +5,7 @@ use super::support::{counts, envelope, thread_to_summary, update_thread_with_faluse crate::config::Config;use crate::core::Outcome;use crate::inference::provider;-use crate::memory::conversations;+use crate::threads::store;use crate::memory::{ApiEnvelope, ConversationThreadSummary, GenerateConversationThreadTitleRequest,};diff --git a/crates/openhuman-core/src/threads/ops_tests.rs b/crates/openhuman-core/src/threads/ops_tests.rsindex 058fb1a60b..972eb755ad 100644--- a/crates/openhuman-core/src/threads/ops_tests.rs+++ b/crates/openhuman-core/src/threads/ops_tests.rs@@ -6,7 +6,7 @@ use super::*;// Re-imported here rather than through `ops`: `ops` itself no longer names// these, so importing them there would be an unused import in a non-test build.use crate::config::test_env::EnvVarGuard;-use crate::memory::conversations as conversations_store;+use crate::threads::store as conversations_store;use crate::threads::turn_state::{ClearTurnStateRequest, GetTurnStateRequest};use crate::threads::ThreadsError;use serde_json::{json, Value};diff --git a/crates/openhuman-core/src/threads/store/bus.rs b/crates/openhuman-core/src/threads/store/bus.rsindex 2529ed17f4..84fd861d39 100644--- a/crates/openhuman-core/src/threads/store/bus.rs+++ b/crates/openhuman-core/src/threads/store/bus.rs@@ -103,7 +103,7 @@ impl ConversationPersistenceSubscriber {#[async_trait]impl EventHandler<DomainEvent> for ConversationPersistenceSubscriber {fn name(&self) -> &str {- "memory::conversations::persistence"+ "threads::store::persistence"}fn domains(&self) -> Option<&[&str]> {diff --git a/crates/openhuman-core/src/threads/welcome_migration.rs b/crates/openhuman-core/src/threads/welcome_migration.rsindex 5459aa2f70..8d9ddedf17 100644--- a/crates/openhuman-core/src/threads/welcome_migration.rs+++ b/crates/openhuman-core/src/threads/welcome_migration.rs@@ -18,7 +18,7 @@use std::fs;use std::path::Path;-use crate::memory::conversations;+use crate::threads::store;use serde_json::{json, Value};const MIGRATION_MARKER: &str = "state/migrations/welcome_to_orchestrator_v1.done";diff --git a/crates/openhuman-core/src/threads/welcome_migration_tests.rs b/crates/openhuman-core/src/threads/welcome_migration_tests.rsindex 107dc5a27d..4c9116a117 100644--- a/crates/openhuman-core/src/threads/welcome_migration_tests.rs+++ b/crates/openhuman-core/src/threads/welcome_migration_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::memory::conversations::{ensure_thread, list_threads, CreateConversationThread};+use crate::threads::store::{ensure_thread, list_threads, CreateConversationThread};use tempfile::TempDir;fn make_thread(id: &str, labels: Vec<String>) -> CreateConversationThread {diff --git a/crates/openhuman-core/src/web_chat/presentation_tests.rs b/crates/openhuman-core/src/web_chat/presentation_tests.rsindex f4abaac597..e4c3711ad9 100644--- a/crates/openhuman-core/src/web_chat/presentation_tests.rs+++ b/crates/openhuman-core/src/web_chat/presentation_tests.rs@@ -129,7 +129,7 @@ async fn chat_done_omits_timing_when_no_snapshot_is_supplied() {#[tokio::test]async fn delivery_stores_the_reply_before_announcing_it() {- use crate::memory::conversations::{self, CreateConversationThread};+ use crate::threads::store::{self, CreateConversationThread};let ws = std::env::temp_dir().join(format!("deliver-persist-{}", uuid::Uuid::new_v4()));std::fs::create_dir_all(&ws).unwrap();@@ -205,7 +205,7 @@ async fn delivery_still_announces_when_the_reply_cannot_be_stored() {// `get_messages` answers `Ok(vec![])` for a thread it has never seen — only// `append_message` refuses one — so absence is what proves the write was// rejected and swallowed rather than silently creating a thread.- let messages = crate::memory::conversations::get_messages(ws.clone(), "absent-thread")+ let messages = crate::threads::store::get_messages(ws.clone(), "absent-thread").expect("reading an unknown thread is not an error");assert!(messages.is_empty(),diff --git a/crates/openhuman-core/src/web_chat/reply_persistence.rs b/crates/openhuman-core/src/web_chat/reply_persistence.rsindex 06e9d29d8a..fb9191cfd1 100644--- a/crates/openhuman-core/src/web_chat/reply_persistence.rs+++ b/crates/openhuman-core/src/web_chat/reply_persistence.rs@@ -23,7 +23,7 @@ use std::path::Path;use serde_json::json;use crate::memory::agent::memory_loader::MemoryCitation;-use crate::memory::conversations::{self, run_reply_message_id, ConversationMessage};+use crate::threads::store::{self, run_reply_message_id, ConversationMessage};/// Metadata scope stamped on a reply persisted by the web-channel delivery path.///diff --git a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rsindex 639ae0387e..a0c36c0cdd 100644--- a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs+++ b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs@@ -2,7 +2,7 @@ use std::path::PathBuf;use super::persist_delivered_reply;use crate::memory::agent::memory_loader::MemoryCitation;-use crate::memory::conversations::{self, CreateConversationThread};+use crate::threads::store::{self, CreateConversationThread};fn temp_ws() -> PathBuf {let dir = std::env::temp_dir().join(format!("web-chat-reply-{}", uuid::Uuid::new_v4()));diff --git a/tests/in_process/transcript_search_e2e.rs b/tests/in_process/transcript_search_e2e.rsindex e1aab60927..d160ae1554 100644--- a/tests/in_process/transcript_search_e2e.rs+++ b/tests/in_process/transcript_search_e2e.rs@@ -15,7 +15,7 @@ use std::path::Path;use serde_json::json;use tempfile::tempdir;-use openhuman_core::memory::conversations::{+use openhuman_core::threads::store::{ConversationMessage, ConversationStore, CreateConversationThread,};use openhuman_core::threads::ops::transcript_search;