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
style(channels): reflow imports and test formatting
Steven Enamakel24a11d70fc26
diff --git a/crates/openhuman-core/src/channels/context.rs b/crates/openhuman-core/src/channels/context.rsindex c88e0394f7..6ad0ea165a 100644--- a/crates/openhuman-core/src/channels/context.rs+++ b/crates/openhuman-core/src/channels/context.rs@@ -11,11 +11,10 @@ use std::sync::{Arc, Mutex};use tinytools::Tool;pub(crate) use tinychannels_bus::context::{- clear_sender_history, compact_sender_history, ConversationHistoryMap,- ChannelRouteSelection, CHANNEL_HISTORY_COMPACT_CONTENT_CHARS,- CHANNEL_HISTORY_COMPACT_KEEP_MESSAGES, CHANNEL_MESSAGE_TIMEOUT_SECS,- CHANNEL_TYPING_REFRESH_INTERVAL_SECS, DEFAULT_CHANNEL_INITIAL_BACKOFF_SECS,- DEFAULT_CHANNEL_MAX_BACKOFF_SECS, MAX_CHANNEL_HISTORY,+ clear_sender_history, compact_sender_history, ChannelRouteSelection, ConversationHistoryMap,+ CHANNEL_HISTORY_COMPACT_CONTENT_CHARS, CHANNEL_HISTORY_COMPACT_KEEP_MESSAGES,+ CHANNEL_MESSAGE_TIMEOUT_SECS, CHANNEL_TYPING_REFRESH_INTERVAL_SECS,+ DEFAULT_CHANNEL_INITIAL_BACKOFF_SECS, DEFAULT_CHANNEL_MAX_BACKOFF_SECS, MAX_CHANNEL_HISTORY,};#[cfg(test)]diff --git a/crates/openhuman-core/src/channels/context_tests.rs b/crates/openhuman-core/src/channels/context_tests.rsindex 3dc9763786..3dbc00dfc6 100644--- a/crates/openhuman-core/src/channels/context_tests.rs+++ b/crates/openhuman-core/src/channels/context_tests.rs@@ -89,12 +89,10 @@ fn clear_and_compact_sender_history_update_cached_messages() {let ctx = runtime_context();let sender = "discord_alice_reply_thread:thread-1";let mut history = Vec::new();- history.push(tinychannels_bus::context::ChatMessage::user(- "short",- ));- history.extend((0..20).map(|idx| {- tinychannels_bus::context::ChatMessage::assistant("x".repeat(700 + idx))- }));+ history.push(tinychannels_bus::context::ChatMessage::user("short"));+ history.extend(+ (0..20).map(|idx| tinychannels_bus::context::ChatMessage::assistant("x".repeat(700 + idx))),+ );ctx.conversation_histories.lock().unwrap()