Skip to content

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

refactor(agent): collapse multi-line signatures in background completions

Steven Enamakel03e9c9c02258
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index bddeb52790..cc1555eb66 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -162,9 +162,7 @@ fn with_storage_context<R>(
if let Some(core_context) = ctx.resolved() {
return crate::core::runtime::CoreContext::sync_scope(core_context, open);
}
- if !crate::core::runtime::is_saas()
- && crate::core::runtime::CoreContext::scoped().is_none()
- {
+ if !crate::core::runtime::is_saas() && crate::core::runtime::CoreContext::scoped().is_none() {
return open();
}
Err(anyhow::anyhow!(
@@ -631,11 +629,7 @@ pub(crate) fn mark_collected(workspace_dir: &Path, task_id: &str) -> bool {
mark_collected_in_entry(entry, task_id)
}
-pub(crate) fn mark_collected_ctx(
- ctx: &DispatchCtx,
- workspace_dir: &Path,
- task_id: &str,
-) -> bool {
+pub(crate) fn mark_collected_ctx(ctx: &DispatchCtx, workspace_dir: &Path, task_id: &str) -> bool {
mark_collected_in_entry(entry_for_ctx(ctx, workspace_dir), task_id)
}