Skip to content

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

refactor(attachments): clean up staged attachment imports and logic

Steven Enamakelaa041a4d3fcf
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_hosted_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_hosted_tests.rs
index 0ff86dcafd..de96908b6f 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_hosted_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_hosted_tests.rs
@@ -415,4 +415,3 @@ async fn hosted_target_projects_typed_media_and_voice_to_web_and_gateway_once()
);
}
}
-
diff --git a/crates/openhuman-core/src/threads/attachments/staged.rs b/crates/openhuman-core/src/threads/attachments/staged.rs
index 4b9cc59162..d73b110ed2 100644
--- a/crates/openhuman-core/src/threads/attachments/staged.rs
+++ b/crates/openhuman-core/src/threads/attachments/staged.rs
@@ -24,7 +24,11 @@ pub(super) struct StagedAttachmentClaim {
pub(super) canceled: bool,
}
-pub(crate) use native::{commit_native_channel_parts, discard_native_channel_parts, native_parts_in_committed_message, read_authorized_native_attachment, stage_native_channel_part, NativeStagedLease, ResolvedNativeAttachment};
+pub(crate) use native::{
+ commit_native_channel_parts, discard_native_channel_parts, native_parts_in_committed_message,
+ read_authorized_native_attachment, stage_native_channel_part, NativeStagedLease,
+ ResolvedNativeAttachment,
+};
#[path = "staged/native.rs"]
mod native;
pub(super) use native::read_staged_file_bounded;
diff --git a/crates/openhuman-core/src/threads/attachments/staged/native.rs b/crates/openhuman-core/src/threads/attachments/staged/native.rs
index eef73c887d..de1f4ed1bf 100644
--- a/crates/openhuman-core/src/threads/attachments/staged/native.rs
+++ b/crates/openhuman-core/src/threads/attachments/staged/native.rs
@@ -404,4 +404,3 @@ pub(crate) fn native_parts_in_committed_message(
.cloned()
.collect()
}
-
diff --git a/crates/openhuman-core/src/web_chat/turn_host.rs b/crates/openhuman-core/src/web_chat/turn_host.rs
index 9ab82cde45..852054e13d 100644
--- a/crates/openhuman-core/src/web_chat/turn_host.rs
+++ b/crates/openhuman-core/src/web_chat/turn_host.rs
@@ -48,7 +48,6 @@ use progress_helpers::{
settle_turn_snapshot, spawn_heartbeat, spawn_heartbeat_with_interval, tap_progress, AbortOnDrop,
};
-
/// How long a finished turn waits for its progress tap to forward every event
/// the turn queued before the terminal `chat_done`/`chat_error` is published.
/// Bounded: a detached sub-agent can hold a sender clone and keep the channel
diff --git a/crates/openhuman-core/src/web_chat/turn_host_progress.rs b/crates/openhuman-core/src/web_chat/turn_host_progress.rs
index c7d16530fd..039040f36d 100644
--- a/crates/openhuman-core/src/web_chat/turn_host_progress.rs
+++ b/crates/openhuman-core/src/web_chat/turn_host_progress.rs
@@ -3,10 +3,10 @@ use std::time::Duration;
use super::progress::{ProgressProjection, INFERENCE_HEARTBEAT_SECS};
use super::turn_activity::TurnActivity;
use super::types::WebChatTaskResult;
+use crate::agent::queued_turn::QueuedPayload;
use crate::core::runtime::DispatchCtx;
use tinyagents_harness::progress::AgentProgress;
use tinyagents_harness::turn_runner::TurnRequest;
-use crate::agent::queued_turn::QueuedPayload;
use tokio::sync::{mpsc, watch};
/// Aborts a task when dropped.
@@ -116,4 +116,3 @@ pub(super) fn spawn_heartbeat_with_interval(
}
})
}
-