Skip to content

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

chore: restore unrelated files reformatted by a workspace-wide fmt run

Steven Enamakel233a32f0630f
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
index 501a3288db..d3778afb63 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs
@@ -27,10 +27,10 @@ mod journal_export;
mod span_export;
pub(crate) use environment::{environment_for_base, ingestion_url, skip_push};
-pub(crate) use journal_export::journal_push_ready;
#[cfg(test)]
pub(crate) use journal_export::push_observations;
pub(crate) use journal_export::root_subagent_observations;
+pub(crate) use journal_export::journal_push_ready;
#[cfg(test)]
pub(crate) use span_export::push_spans;
diff --git a/crates/openhuman-core/src/agent/progress_tracing/serialize.rs b/crates/openhuman-core/src/agent/progress_tracing/serialize.rs
index adecb827d3..5e266c5c8c 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/serialize.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/serialize.rs
@@ -38,10 +38,7 @@ pub(super) fn capture_model_content(value: &serde_json::Value) -> serde_json::Va
*content = serde_json::Value::String(format!(
"{}…[message content truncated]",
truncate_chars(
- &content
- .as_str()
- .map(str::to_owned)
- .unwrap_or_else(|| content.to_string()),
+ &content.as_str().map(str::to_owned).unwrap_or_else(|| content.to_string()),
MAX_MODEL_CONTENT_CHARS / 2
)
));
@@ -71,10 +68,7 @@ pub(super) fn capture_model_content(value: &serde_json::Value) -> serde_json::Va
let mut kept = fields.clone();
if let Some(content) = kept.get_mut("content") {
*content = serde_json::Value::String(truncate_chars(
- &content
- .as_str()
- .map(str::to_owned)
- .unwrap_or_else(|| content.to_string()),
+ &content.as_str().map(str::to_owned).unwrap_or_else(|| content.to_string()),
MAX_MODEL_CONTENT_CHARS / 2,
));
if serde_json::Value::Object(kept.clone())
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rs
index 399f4ec212..6bd0806f5c 100644
--- a/crates/openhuman-core/src/config/schema/mod.rs
+++ b/crates/openhuman-core/src/config/schema/mod.rs
@@ -123,10 +123,10 @@ pub use tools::{
BrowserComputerUseConfig, BrowserConfig, ComposioConfig, CurlConfig, GitbooksConfig,
HttpHeader, HttpRequestConfig, IntegrationToggle, IntegrationsConfig, McpAuthConfig,
McpClientConfig, McpClientIdentityConfig, McpServerConfig, MultimodalConfig,
- MultimodalFileConfig, SearchConfig, SearchEngine, SearchEngineCredentials, SearxngConfig,
+ MultimodalFileConfig, SearchConfig, SearchEngine, SearchEngineCredentials, SearxngConfig, SEARCH_PROVIDERS,
SecretsConfig, SeltzConfig, WebSearchConfig, COMPOSIO_MODE_BACKEND, COMPOSIO_MODE_DIRECT,
SEARCH_ENGINE_BRAVE, SEARCH_ENGINE_DISABLED, SEARCH_ENGINE_EXA, SEARCH_ENGINE_MANAGED,
- SEARCH_ENGINE_PARALLEL, SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY, SEARCH_PROVIDERS,
+ SEARCH_ENGINE_PARALLEL, SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY,
};
pub use update::{UpdateConfig, UpdateRestartStrategy};
pub use web_chat_config::WebChatConfig;
diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rs
index b3fd3d5b07..00cde7e03c 100644
--- a/crates/openhuman-embed/tests/common/mod.rs
+++ b/crates/openhuman-embed/tests/common/mod.rs
@@ -125,12 +125,9 @@ pub fn tool_results(request: &wiremock::Request) -> String {
Some("tool") => Some(content),
// The harness may prepend continuation guidance and
// the active user request before the tool-result block.
- Some("user") if content.contains(PROMPT_TOOL_RESULTS_PREFIX) => Some(
- content
- .split_once(PROMPT_TOOL_RESULTS_PREFIX)?
- .1
- .to_string(),
- ),
+ Some("user") if content.contains(PROMPT_TOOL_RESULTS_PREFIX) => {
+ Some(content.split_once(PROMPT_TOOL_RESULTS_PREFIX)?.1.to_string())
+ }
_ => None,
}
})