Skip to content

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

chore: files changed src/openhuman/flows/builder_tools.rs,src/openhuman/flows/ops.rs,src/openhuman/f

Steven Enamakel877cd499cbfe
diff --git a/src/openhuman/flows/builder_tools.rs b/src/openhuman/flows/builder_tools.rs
index b6f3eab068..4a68202a61 100644
--- a/src/openhuman/flows/builder_tools.rs
+++ b/src/openhuman/flows/builder_tools.rs
@@ -3706,7 +3706,17 @@ impl Tool for SaveWorkflowTool {
"[flows] save_workflow: agent-initiated save to existing flow"
);
- match ops::flows_update(&self.config, &flow_id, name, Some(graph_json), None, None).await {
+ match ops::flows_update(
+ &self.config,
+ &flow_id,
+ name,
+ description,
+ Some(graph_json),
+ None,
+ None,
+ )
+ .await
+ {
Ok(outcome) => {
let flow = outcome.value;
tracing::info!(
diff --git a/src/openhuman/flows/ops.rs b/src/openhuman/flows/ops.rs
index 549adbf764..f716310932 100644
--- a/src/openhuman/flows/ops.rs
+++ b/src/openhuman/flows/ops.rs
@@ -3966,6 +3966,7 @@ pub(crate) async fn flows_update_disarming_automatic(
config,
id,
name,
+ description,
graph_json,
require_approval,
expected_version,
@@ -4156,6 +4157,10 @@ pub async fn flows_rollback(
config,
id,
Some(rev.name),
+ // Revisions capture the graph, not the catalogue description, so a
+ // rollback restores the shape and leaves the description as-is rather
+ // than blanking it from a record that never held one.
+ None,
Some(rev.graph),
Some(rev.require_approval),
expected_version,
@@ -8114,6 +8119,9 @@ pub async fn flows_draft_promote(
config,
flow_id,
Some(draft.name.clone()),
+ // Drafts carry no description; promoting one must not clear
+ // the description the live flow already has.
+ None,
Some(draft.graph.clone()),
require_approval,
None,
diff --git a/src/openhuman/flows/schemas.rs b/src/openhuman/flows/schemas.rs
index e598af83b7..6eac534d44 100644
--- a/src/openhuman/flows/schemas.rs
+++ b/src/openhuman/flows/schemas.rs
@@ -1526,6 +1526,11 @@ fn handle_update(params: Map<String, Value>) -> ControllerFuture {
&config,
id.trim(),
name,
+ // Absent means "not part of this edit". `Some("")` clears it.
+ params
+ .get("description")
+ .and_then(Value::as_str)
+ .map(str::to_string),
graph,
require_approval,
expected_version,