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(threads): add working_dir field to conversation threads
Steven Enamakel1fbbc8637fb4
diff --git a/app/src/features/conversations/threadList/ThreadList.tsx b/app/src/features/conversations/threadList/ThreadList.tsxindex e343130614..a89b930dfc 100644--- a/app/src/features/conversations/threadList/ThreadList.tsx+++ b/app/src/features/conversations/threadList/ThreadList.tsx@@ -161,9 +161,7 @@ export function ThreadList({data-running={isThreadRunning?.(thread.id) ? 'true' : undefined}aria-busy={isThreadRunning?.(thread.id) || undefined}className={`truncate flex-1 text-[14px] ${- selectedThreadId === thread.id- ? 'font-semibold text-content'- : 'text-content-muted'+ selectedThreadId === thread.id ? 'font-semibold text-content' : 'text-content-muted'} ${running ? 'shimmer motion-reduce:animate-none' : ''}`}>{resolveTitle(thread.id)}</p>@@ -343,8 +341,18 @@ export function ThreadList({aria-label={t('chat.sidebar.clearSearch')}title={t('chat.sidebar.clearSearch')}className="absolute right-1.5 inline-flex h-5 w-5 items-center justify-center rounded text-content-faint transition-colors hover:bg-surface/60 hover:text-content-secondary">- <svg className="h-3 w-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />+ <svg+ className="h-3 w-3"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ aria-hidden="true">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M6 18L18 6M6 6l12 12"+ /></svg></button>)}diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex 785afa4de7..b354c22d6c 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -507,7 +507,7 @@ const messages: TranslationMap = {'chat.sidebar.clearSearch': 'Effacer la recherche','chat.sidebar.noMatches': 'Aucune conversation correspondante','chat.sidebar.group.pinned': 'Épinglées',- 'chat.sidebar.group.today': 'Aujourd\'hui',+ 'chat.sidebar.group.today': "Aujourd'hui",'chat.sidebar.group.yesterday': 'Hier','chat.sidebar.group.previous7Days': '7 derniers jours','chat.sidebar.group.previous30Days': '30 derniers jours',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 5e47ca87b6..ed3f6de03b 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@@ -301,6 +301,7 @@ fn attach_workflow_proposal_persists_thread_message_and_extends_summary() {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).expect("thread created");diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rsindex 5c2c5785d4..7ab0f07940 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs@@ -147,6 +147,7 @@ fn persist_worker_thread(parent_thread_id: None,labels: Some(vec!["tasks".to_string()]),personality_id: None,+ working_dir: None,},).map_err(|err| format!("ensure_thread: {err}"))?;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 b1527e04c7..c6fed7637e 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@@ -53,6 +53,7 @@ async fn rejects_if_already_worker_thread() {parent_thread_id: None,labels: Some(vec!["tasks".to_string()]),personality_id: None,+ working_dir: None,},).unwrap();@@ -78,6 +79,7 @@ async fn rejects_if_has_parent_thread_id() {parent_thread_id: Some("parent".into()),labels: None,personality_id: None,+ working_dir: None,},).unwrap();diff --git a/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rs b/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rsindex 5916cea440..b36a39f830 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/worker_thread.rs@@ -42,6 +42,7 @@ pub(crate) fn create_worker_thread(parent_thread_id: Some(parent_thread_id.to_string()),labels: Some(vec!["tasks".to_string()]),personality_id: None,+ working_dir: None,},)?;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 fb857c9dc5..af267ede4d 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@@ -221,6 +221,7 @@ fn mirrored_tool_results_are_hidden_from_the_worker_thread_chat() {parent_thread_id: Some("parent-1".to_string()),labels: Some(vec!["tasks".to_string()]),personality_id: None,+ working_dir: None,},).unwrap();diff --git a/crates/openhuman-core/src/channels/host/adapters.rs b/crates/openhuman-core/src/channels/host/adapters.rsindex b70246b795..f3b9a470b4 100644--- a/crates/openhuman-core/src/channels/host/adapters.rs+++ b/crates/openhuman-core/src/channels/host/adapters.rs@@ -205,6 +205,7 @@ impl ConversationStore for ConversationHistoryStore {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).map_err(|e| anyhow::anyhow!(e))?;diff --git a/crates/openhuman-core/src/channels/host/remote_control.rs b/crates/openhuman-core/src/channels/host/remote_control.rsindex 79a9791197..ea39374b57 100644--- a/crates/openhuman-core/src/channels/host/remote_control.rs+++ b/crates/openhuman-core/src/channels/host/remote_control.rs@@ -77,6 +77,7 @@ impl RemoteControlHost for RuntimeRemoteControl<'_> {parent_thread_id: None,labels: Some(thread.labels),personality_id: None,+ working_dir: None,},).map(drop)diff --git a/crates/openhuman-core/src/memory/backfill_tests.rs b/crates/openhuman-core/src/memory/backfill_tests.rsindex 7912b4babd..eda3952fb0 100644--- a/crates/openhuman-core/src/memory/backfill_tests.rs+++ b/crates/openhuman-core/src/memory/backfill_tests.rs@@ -29,6 +29,7 @@ async fn seed_thread(workspace: &Path, thread_id: &str, messages: &[(&str, &str)parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).awaitdiff --git a/crates/openhuman-core/src/threads/ops/crud.rs b/crates/openhuman-core/src/threads/ops/crud.rsindex 8ea7b39fd6..df8e837e33 100644--- a/crates/openhuman-core/src/threads/ops/crud.rs+++ b/crates/openhuman-core/src/threads/ops/crud.rs@@ -53,6 +53,7 @@ pub async fn thread_upsert(parent_thread_id: request.parent_thread_id,labels: request.labels,personality_id: request.personality_id,+ working_dir: None,},).await?;@@ -84,6 +85,7 @@ pub async fn thread_create_new(// of truth for default labels.labels: request.labels,personality_id: request.personality_id,+ working_dir: None,},).await?;diff --git a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rsindex 325ccfa319..65a0baec04 100644--- a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs+++ b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs@@ -15,6 +15,7 @@ async fn setup() -> (tempfile::TempDir, crate::config::Config) {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).await@@ -217,6 +218,7 @@ async fn append_uses_host_persistence_workspace_separate_from_rpc_config() {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).awaitdiff --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 a11f29c640..9e061a9e8f 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@@ -107,6 +107,7 @@ async fn seed_message_log(dir: &std::path::Path, thread_id: &str) {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).awaitdiff --git a/crates/openhuman-core/src/threads/ops/support.rs b/crates/openhuman-core/src/threads/ops/support.rsindex 8e1149c168..7512de0d24 100644--- a/crates/openhuman-core/src/threads/ops/support.rs+++ b/crates/openhuman-core/src/threads/ops/support.rs@@ -76,6 +76,7 @@ pub(super) fn thread_to_summary(thread: ConversationThread) -> ConversationThreaparent_thread_id: thread.parent_thread_id,labels: thread.labels,personality_id: thread.personality_id,+ working_dir: None,}}diff --git a/crates/openhuman-core/src/threads/ops_tests.rs b/crates/openhuman-core/src/threads/ops_tests.rsindex 972eb755ad..4febc8417c 100644--- a/crates/openhuman-core/src/threads/ops_tests.rs+++ b/crates/openhuman-core/src/threads/ops_tests.rs@@ -27,6 +27,7 @@ fn sample_thread() -> ConversationThread {parent_thread_id: None,labels: vec!["general".to_string()],personality_id: None,+ working_dir: None,}}@@ -55,6 +56,7 @@ async fn create_thread_with_title(_workspace: &tempfile::TempDir, thread_id: &stparent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).expect("ensure thread");diff --git a/crates/openhuman-core/src/threads/store/blocking_tests.rs b/crates/openhuman-core/src/threads/store/blocking_tests.rsindex d1f95f6b92..f11c3eb3c9 100644--- a/crates/openhuman-core/src/threads/store/blocking_tests.rs+++ b/crates/openhuman-core/src/threads/store/blocking_tests.rs@@ -31,6 +31,7 @@ fn create(id: &str) -> CreateConversationThread {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,}}diff --git a/crates/openhuman-core/src/threads/store/bus.rs b/crates/openhuman-core/src/threads/store/bus.rsindex 84fd861d39..dcc13d5271 100644--- a/crates/openhuman-core/src/threads/store/bus.rs+++ b/crates/openhuman-core/src/threads/store/bus.rs@@ -270,6 +270,7 @@ fn persist_channel_turn(parent_thread_id: None,labels: Some(vec!["general".to_string()]),personality_id: None,+ working_dir: None,},)?;diff --git a/crates/openhuman-core/src/threads/welcome_migration_tests.rs b/crates/openhuman-core/src/threads/welcome_migration_tests.rsindex 4c9116a117..e505932b99 100644--- a/crates/openhuman-core/src/threads/welcome_migration_tests.rs+++ b/crates/openhuman-core/src/threads/welcome_migration_tests.rs@@ -10,6 +10,7 @@ fn make_thread(id: &str, labels: Vec<String>) -> CreateConversationThread {parent_thread_id: None,labels: Some(labels),personality_id: None,+ working_dir: None,}}diff --git a/crates/openhuman-core/src/web_chat/presentation_tests.rs b/crates/openhuman-core/src/web_chat/presentation_tests.rsindex ce6bb344ca..a98b93365a 100644--- a/crates/openhuman-core/src/web_chat/presentation_tests.rs+++ b/crates/openhuman-core/src/web_chat/presentation_tests.rs@@ -142,6 +142,7 @@ async fn delivery_stores_the_reply_before_announcing_it() {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).expect("thread created");diff --git a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rsindex a01d984f4a..c6b8d707de 100644--- a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs+++ b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs@@ -20,6 +20,7 @@ fn seed_thread(ws: &Path, thread_id: &str) {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,},).expect("thread created");diff --git a/tests/in_process/transcript_search_e2e.rs b/tests/in_process/transcript_search_e2e.rsindex b579f82df4..00394b4156 100644--- a/tests/in_process/transcript_search_e2e.rs+++ b/tests/in_process/transcript_search_e2e.rs@@ -30,6 +30,7 @@ fn thread(id: &str, title: &str) -> CreateConversationThread {parent_thread_id: None,labels: None,personality_id: None,+ working_dir: None,}}diff --git a/vendor/tinyagents b/vendor/tinyagentsindex efea56c31d..81ed2e181b 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit efea56c31de684c2b408e7395e0655f9e4935b44+Subproject commit 81ed2e181b282b7f01060fae51537525daff86f1