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
fix(goals): set goal field to None in goal event payloads
Steven Enamakel32639b5f39c5
diff --git a/crates/openhuman-core/src/agent/goals/runtime.rs b/crates/openhuman-core/src/agent/goals/runtime.rsindex a72544db0c..ba0a531d29 100644--- a/crates/openhuman-core/src/agent/goals/runtime.rs+++ b/crates/openhuman-core/src/agent/goals/runtime.rs@@ -56,6 +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,});}Some(Some(goal))@@ -80,6 +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,});}}@@ -109,6 +111,7 @@ pub async fn complete_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,});}}@@ -208,6 +211,7 @@ pub async fn account_turn_against_goal(thread_id: updated.thread_id.clone(),goal_id: updated.goal_id.clone(),status: updated.status.as_str().to_string(),+ goal: None,});}}diff --git a/crates/openhuman-core/src/agent/goals/tools.rs b/crates/openhuman-core/src/agent/goals/tools.rsindex 00f02276af..ec54f8b165 100644--- a/crates/openhuman-core/src/agent/goals/tools.rs+++ b/crates/openhuman-core/src/agent/goals/tools.rs@@ -190,6 +190,7 @@ impl Tool for GoalSetTool {thread_id: goal.thread_id.clone(),goal_id: goal.goal_id.clone(),status: goal.status.as_str().to_string(),+ goal: None,},);Ok(ToolResult::success(goal_payload(Some(&goal), "Goal set.")))@@ -253,6 +254,7 @@ impl Tool for GoalCompleteTool {thread_id: goal.thread_id.clone(),goal_id: goal.goal_id.clone(),status: goal.status.as_str().to_string(),+ goal: None,},);Ok(ToolResult::success(goal_payload(diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rsindex f3f4464fb1..2f0a8ad444 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs@@ -463,6 +463,7 @@ pub(super) async fn run_context_scout_with_catalog_and_workspace(thread_id: goal.thread_id.clone(),goal_id: goal.goal_id.clone(),status: goal.status.as_str().to_string(),+ goal: None,});}Ok(None) => {