Skip to content

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

fix(agent_chat): pass headless flag to reply handler

Steven Enamakel254ebe78c4a9
diff --git a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
index c159f9bd52..fc206b64ca 100644
--- a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
+++ b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
@@ -138,7 +138,7 @@ fn handle_agent_chat(
Some(id) if !id.is_empty() => super::AgentChatTarget::AgentId(id),
_ => super::AgentChatTarget::Orchestrator,
};
- super::agent_chat_reply_for(
+ super::agent_chat_reply_for_with_headless(
&mut config,
target,
&params.common.message,
@@ -163,6 +163,7 @@ fn handle_agent_chat(
},
..Default::default()
},
+ ctx.is_headless_agent_chat(),
)
.await?
.into_rpc_json()