Skip to content

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

fix(running_subagents): reindent conditional block in register

Steven Enamakela70a69b80b31
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs
index f1acf14141..c73942c4e9 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs
@@ -127,20 +127,20 @@ pub(crate) fn register(
abort: AbortHandle,
status: watch::Receiver<SubagentStatus>,
) {
- if let Some(thread_id) = parent_thread_id.as_deref()
- && crate::agent::orchestration::background_completions::mark_stopped_task_if_thread_stopped(
+ if let Some(thread_id) = parent_thread_id.as_deref() {
+ if crate::agent::orchestration::background_completions::mark_stopped_task_if_thread_stopped(
thread_id, &task_id,
- )
- {
- // Stop landed after the child was spawned but before this registry
- // entry existed. The completion is tombstoned above; abort promptly so
- // the detached work does not keep consuming resources either.
- abort.abort();
- log::debug!(
- "[running_subagents] aborted late registration task_id={} thread_id={}",
- task_id,
- thread_id
- );
+ ) {
+ // Stop landed after the child was spawned but before this registry
+ // entry existed. The completion is tombstoned above; abort promptly
+ // so the detached work does not keep consuming resources either.
+ abort.abort();
+ log::debug!(
+ "[running_subagents] aborted late registration task_id={} thread_id={}",
+ task_id,
+ thread_id
+ );
+ }
}
// Typed lifecycle ledger: record the spawn and mirror the child's terminal