Skip to content

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

refactor(threads): expose validate_staged_files publicly

Steven Enamakel1fee3cb69603
diff --git a/crates/openhuman-core/src/threads/attachments/staged.rs b/crates/openhuman-core/src/threads/attachments/staged.rs
index 132f18afe8..54e650c021 100644
--- a/crates/openhuman-core/src/threads/attachments/staged.rs
+++ b/crates/openhuman-core/src/threads/attachments/staged.rs
@@ -298,7 +298,7 @@ pub(crate) async fn stage_queued_parts(
Ok(public)
}
-async fn validate_staged_files(
+pub(super) async fn validate_staged_files(
ctx: &crate::core::runtime::DispatchCtx,
thread_id: &str,
config: &crate::config::Config,
diff --git a/crates/openhuman-core/src/threads/ops/crud_queued_attachment_tests.rs b/crates/openhuman-core/src/threads/ops/crud_queued_attachment_tests.rs
index 2dcc217b2e..43e73ac157 100644
--- a/crates/openhuman-core/src/threads/ops/crud_queued_attachment_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/crud_queued_attachment_tests.rs
@@ -1,5 +1,6 @@
use crate::threads::ops::persist_queued_user_message;
use crate::threads::store as conversations;
+use base64::Engine as _;
async fn setup() -> (tempfile::TempDir, crate::config::Config) {
let temp = tempfile::tempdir().unwrap();