Skip to content

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

refactor(core): use config for workspace directory

Steven Enamakel1c03d626d0f9
diff --git a/crates/openhuman-core/src/threads/ops/crud.rs b/crates/openhuman-core/src/threads/ops/crud.rs
index 436cfeaf4f..6d01c732d3 100644
--- a/crates/openhuman-core/src/threads/ops/crud.rs
+++ b/crates/openhuman-core/src/threads/ops/crud.rs
@@ -192,7 +192,7 @@ pub async fn message_append(
.load_config()
.await
.map_err(|error| ThreadsError::Message(format!("load config: {error}")))?;
- let persistence_dir = workspace_dir().await.map_err(ThreadsError::Message)?;
+ let persistence_dir = config.workspace_dir.clone();
message_append_with_config(ctx, request, &config, origin.as_ref(), &persistence_dir).await
}