Skip to content

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

fix(agent): handle empty goal list in runtime

Steven Enamakel083d777d805f
diff --git a/crates/openhuman-core/src/agent/goals/runtime.rs b/crates/openhuman-core/src/agent/goals/runtime.rs
index ba0a531d29..c33f2de43e 100644
--- a/crates/openhuman-core/src/agent/goals/runtime.rs
+++ b/crates/openhuman-core/src/agent/goals/runtime.rs
@@ -56,7 +56,7 @@ pub async fn resume_for_thread(
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)),
});
}
Some(Some(goal))