Skip to content

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

fix(agent): handle missing user generation in parallel graph spawn

Steven Enamakel52bee1404727
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs
index e07a1c9c11..172a4eaa90 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs
@@ -35,9 +35,9 @@ mod workers;
pub(crate) use collect::{format_spawn_parallel_success, SpawnParallelGraphOutcome};
pub(crate) use graph::spawn_parallel_graph_topology;
pub(crate) use request::{ParallelAgentTask, SpawnParallelTaskValidationError};
-pub(crate) use run::run_spawn_parallel_graph_with_cancellation_and_workspace;
+pub(crate) use run::{
+ run_spawn_parallel_graph, run_spawn_parallel_graph_with_cancellation,
+ run_spawn_parallel_graph_with_cancellation_and_workspace,
+};
pub(crate) use staging::with_ownership_boundary;
pub(crate) use types::{ParallelAgentLineage, ParallelAgentResult};
-
-#[cfg(test)]
-pub(crate) use run::{run_spawn_parallel_graph, run_spawn_parallel_graph_with_cancellation};
diff --git a/crates/openhuman-core/src/desktop/app_state/ops/current_user_generation.rs b/crates/openhuman-core/src/desktop/app_state/ops/current_user_generation.rs
index 7d51c8f37c..6c1cda0674 100644
--- a/crates/openhuman-core/src/desktop/app_state/ops/current_user_generation.rs
+++ b/crates/openhuman-core/src/desktop/app_state/ops/current_user_generation.rs
@@ -40,7 +40,7 @@ pub static CURRENT_USER_SESSION_MUTATION_LOCK: Lazy<tokio::sync::Mutex<()>> =
/// The failure write itself, taking the guard rather than the lock, so a caller
/// that must decide *under* the lock can do so without re-entering it.
-fn record_current_user_failure_locked(
+pub(super) fn record_current_user_failure_locked(
failure: &mut Option<CurrentUserFailure>,
api_base: &str,
token: &str,