Skip to content

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

Merge upstream/main into feat/tiny-artifacts-service

Sanila3afc9b89ad8
diff --cc crates/openhuman-core/src/threads/store/blocking.rs
index 2210e68db7,a05c15346e..2adcdaaa00
--- a/crates/openhuman-core/src/threads/store/blocking.rs
+++ b/crates/openhuman-core/src/threads/store/blocking.rs
@@@ -121,22 -120,6 +121,22 @@@ pub async fn get_messages
.await
}
+/// [`super::backend::get_messages`] on the blocking pool, artifact rows included. Only
+/// for the UI's message list and the artifact-row writers.
+pub async fn get_messages_with_artifact_rows(
+ ctx: DispatchCtx,
+ workspace_dir: PathBuf,
+ thread_id: &str,
+) -> Result<Vec<ConversationMessage>, String> {
+ let thread_id = thread_id.to_string();
- // The backend's read keeps every row; `super::get_messages` (and
- // `store::get_messages`) drop the artifact rows.
- run("get_messages_with_artifact_rows", move || {
++ // The backend's read keeps every row; `store::get_messages` drops the
++ // artifact rows.
++ run(ctx.clone(), "get_messages_with_artifact_rows", move || {
+ super::backend::get_messages(&ctx, workspace_dir, &thread_id)
+ })
+ .await
+}
+
/// [`store::append_message`] on the blocking pool.
pub async fn append_message(
ctx: DispatchCtx,