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
chore: files changed crates/openhuman-core/src/flows/ops/builder.rs,crates/openhuman-core/src/flows/
Steven Enamakeldc957ddc8aa5
diff --git a/crates/openhuman-core/src/flows/ops/builder.rs b/crates/openhuman-core/src/flows/ops/builder.rsindex f826df29aa..c73a59c76b 100644--- a/crates/openhuman-core/src/flows/ops/builder.rs+++ b/crates/openhuman-core/src/flows/ops/builder.rs@@ -52,7 +52,8 @@ pub(crate) async fn flows_build_with_extra_hidden_tools() {if let Some(assistant_text) = req.error.as_deref().and_then(backend_repair_message) {if let Some(target) = &stream {- finalize_flow_stream(ctx, target, &Ok(assistant_text.clone()), &prompt).await;+ finalize_flow_stream(ctx, target, &Ok(assistant_text.clone()), &prompt, config)+ .await;}return Ok(Outcome::single_log(json!({@@ -315,7 +316,7 @@ pub(crate) async fn flows_build_with_extra_hidden_tools(if cancelled {if let Some(target) = &stream {let terminal: Result<String, String> = Ok(assistant_text.clone());- finalize_flow_stream(ctx, target, &terminal, &prompt).await;+ finalize_flow_stream(ctx, target, &terminal, &prompt, config).await;}tracing::info!(target: "flows",@@ -341,7 +342,7 @@ pub(crate) async fn flows_build_with_extra_hidden_tools(if let Some(err) = &run_error {if let Some(target) = &stream {let terminal: Result<String, String> = Err(err.clone());- finalize_flow_stream(ctx, target, &terminal, &prompt).await;+ finalize_flow_stream(ctx, target, &terminal, &prompt, config).await;}return Err(format!("workflow_builder produced no proposal: {err}"));}@@ -398,7 +399,7 @@ pub(crate) async fn flows_build_with_extra_hidden_tools(None => Ok(assistant_text.clone()),Some(err) => Err(err.clone()),};- finalize_flow_stream(ctx, target, &terminal, &prompt).await;+ finalize_flow_stream(ctx, target, &terminal, &prompt, config).await;}tracing::info!(diff --git a/crates/openhuman-core/src/flows/ops/definitions.rs b/crates/openhuman-core/src/flows/ops/definitions.rsindex 8f0b70835f..c524640479 100644--- a/crates/openhuman-core/src/flows/ops/definitions.rs+++ b/crates/openhuman-core/src/flows/ops/definitions.rs@@ -242,7 +242,7 @@ pub(super) async fn flows_delete_with_remove() -> Result<Outcome<Value>, String> {let flow = match store::get_flow(config, id) {Ok(Some(flow)) => Some(flow),- Ok(None) => {}+ Ok(None) => None,Err(e) => {tracing::warn!(target: "flows", flow_id = %id, error = %e, "[flows] flows_delete: failed to load flow before unbind — proceeding with delete anyway");Nonediff --git a/crates/openhuman-core/src/flows/ops/discovery.rs b/crates/openhuman-core/src/flows/ops/discovery.rsindex a1a6afd31b..ff243ece8c 100644--- a/crates/openhuman-core/src/flows/ops/discovery.rs+++ b/crates/openhuman-core/src/flows/ops/discovery.rs@@ -110,7 +110,7 @@ pub async fn flows_discover(// Emit the terminal chat event so a client viewing the thread finalizes the// assistant bubble instead of spinning (the bridge only streams deltas).if let Some(target) = &stream {- finalize_flow_stream(ctx, target, &outcome, FLOW_DISCOVER_PROMPT).await;+ finalize_flow_stream(ctx, target, &outcome, FLOW_DISCOVER_PROMPT, config).await;}let suggestions = store::list_suggestions(config, Some(SuggestionStatus::New), 50)diff --git a/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs b/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rsindex a27393be7e..f47a423979 100644--- a/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs+++ b/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs@@ -73,6 +73,7 @@ async fn streamed_flow_finalizer_settles_the_bridge_workspace_turn_state() {&target,&Err("fixture agent failure".to_string()),"fixture prompt",+ &config_b,).await;diff --git a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rsindex cd2971dcca..deb1e3a361 100644--- a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs+++ b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs@@ -293,9 +293,18 @@ async fn flows_build_copilot_toolset_unhides_the_live_run_tools() {restrict_builder_toolset_for_copilot(&mut agent);let log = String::from_utf8(capture.0.lock().unwrap().clone()).unwrap();- assert!(log.contains("cancel_flow_run"), "trace should name the hidden tool: {log}");- assert!(log.contains("only the unrelated legacy"), "trace should explain the restriction: {log}");- assert!(!log.contains("stay visible"), "trace contradicts the actual hidden toolset: {log}");+ assert!(+ log.contains("cancel_flow_run"),+ "trace should name the hidden tool: {log}"+ );+ assert!(+ log.contains("only the unrelated legacy"),+ "trace should explain the restriction: {log}"+ );+ assert!(+ !log.contains("stay visible"),+ "trace contradicts the actual hidden toolset: {log}"+ );let visible = agent.visible_tool_names_for_test();for still_reachable in ["run_flow", "resume_flow_run"] {diff --git a/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs b/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rsindex ad13184ea1..647e671046 100644--- a/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs+++ b/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs@@ -94,7 +94,9 @@ async fn failed_flow_removal_preserves_the_schedule_binding() {assert!(result.is_err(), "the storage failure must be returned");assert!(- store::get_flow(&config, &created.value.id).unwrap().is_some(),+ store::get_flow(&config, &created.value.id)+ .unwrap()+ .is_some(),"the failed delete must leave its flow definition in place");assert!(