Skip to content

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

fix(config): update agent schema to use correct field name

Steven Enamakelbe7987c4c7a8
diff --git a/crates/openhuman-core/src/config/schema/agent.rs b/crates/openhuman-core/src/config/schema/agent.rs
index 8a72d6d73d..1442b22be1 100644
--- a/crates/openhuman-core/src/config/schema/agent.rs
+++ b/crates/openhuman-core/src/config/schema/agent.rs
@@ -232,6 +232,21 @@ pub struct AgentConfig {
pub compact_context: bool,
#[serde(default = "default_agent_max_tool_iterations")]
pub max_tool_iterations: usize,
+ /// Agent the web-chat path (`channel_web_chat`, what the desktop composer
+ /// calls) routes a turn to. `None` — the default — means `orchestrator`,
+ /// which is what the shipped app runs.
+ ///
+ /// This is the only way to move that path off the orchestrator. A named
+ /// definition's `effective_max_iterations()` *overwrites*
+ /// `max_tool_iterations` at the single resolution point in
+ /// `session_host::builder::factory`, so raising the global cap cannot lift
+ /// an agent that declares its own — the choice has to be which definition
+ /// answers, not which number is larger. The RPC path already takes an
+ /// `agent_id` per call; web chat carries no such field, and adding one to
+ /// that wire contract to satisfy an operator preference would be the wrong
+ /// seam.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ pub chat_agent_id: Option<String>,
#[serde(default = "default_agent_max_history_messages")]
pub max_history_messages: usize,
#[serde(default)]