Skip to content

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

fix(goals): handle goal completion when no more steps remain

Steven Enamakel56e392ac87fa
diff --git a/crates/openhuman-core/src/agent/goals/runtime.rs b/crates/openhuman-core/src/agent/goals/runtime.rs
index c33f2de43e..a16151d365 100644
--- a/crates/openhuman-core/src/agent/goals/runtime.rs
+++ b/crates/openhuman-core/src/agent/goals/runtime.rs
@@ -81,7 +81,7 @@ pub async fn pause_for_thread(workspace_dir: &Path, thread_id: Option<&str>) {
thread_id: goal.thread_id.clone(),
goal_id: goal.goal_id.clone(),
status: goal.status.as_str().to_string(),
- goal: None,
+ goal: Some(super::goal_to_value(&goal)),
});
}
}