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
refactor(web_chat): clean up imports and dependencies
Steven Enamakel21c15bb87fd7
diff --git a/crates/openhuman-core/src/threads/attachments/staged.rs b/crates/openhuman-core/src/threads/attachments/staged.rsindex 238649dc5c..df7ecb85dc 100644--- a/crates/openhuman-core/src/threads/attachments/staged.rs+++ b/crates/openhuman-core/src/threads/attachments/staged.rs@@ -27,10 +27,10 @@ pub(super) struct StagedAttachmentClaim {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;+#[cfg(test)]pub(super) use native::read_staged_file_bounded;use native::{STAGED_COLLECTION, STAGED_DOMAIN, STAGED_TTL_SECS};diff --git a/crates/openhuman-core/src/web_chat/turn_host.rs b/crates/openhuman-core/src/web_chat/turn_host.rsindex 852054e13d..f5c84f2c0e 100644--- a/crates/openhuman-core/src/web_chat/turn_host.rs+++ b/crates/openhuman-core/src/web_chat/turn_host.rs@@ -25,14 +25,12 @@ use tinyinference_llm::failure::is_empty_provider_response_text;use tokio::sync::{mpsc, watch, Mutex as AsyncMutex};use super::ops::{self, BudgetCorrelation};-use super::progress::{ProgressProjection, INFERENCE_HEARTBEAT_SECS};+use super::progress::ProgressProjection;use super::runner::{Admission, Shared};use super::session::{checkin_session_agent, checkout_session_agent, normalize_model_override, CheckoutPolicy,};use super::surface::TurnIds;-use super::turn_activity::TurnActivity;-use super::types::WebChatTaskResult;use super::web_errors::{inference_budget_exceeded_user_message, is_inference_budget_exceeded_error,};@@ -44,9 +42,9 @@ use tinyagents_harness::progress::AgentProgress;#[path = "turn_host_progress.rs"]mod progress_helpers;-use progress_helpers::{- settle_turn_snapshot, spawn_heartbeat, spawn_heartbeat_with_interval, tap_progress, AbortOnDrop,-};+#[cfg(test)]+use progress_helpers::spawn_heartbeat_with_interval;+use progress_helpers::{settle_turn_snapshot, spawn_heartbeat, 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.diff --git a/crates/openhuman-core/src/web_chat/turn_host_progress.rs b/crates/openhuman-core/src/web_chat/turn_host_progress.rsindex 233bbfe88d..5e8f6cbbe9 100644--- a/crates/openhuman-core/src/web_chat/turn_host_progress.rs+++ b/crates/openhuman-core/src/web_chat/turn_host_progress.rs@@ -3,7 +3,6 @@ use std::time::Duration;use super::super::progress::{ProgressProjection, INFERENCE_HEARTBEAT_SECS};use super::super::turn_activity::TurnActivity;-use super::super::types::WebChatTaskResult;use super::{TurnSignal, WorkTracker};use crate::agent::queued_turn::QueuedPayload;use crate::core::runtime::DispatchCtx;