Skip to content

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

fix(config): avoid moving the chat agent id on update

Steven Enamakel9296c491270f
diff --git a/crates/openhuman-core/src/config/ops/agent.rs b/crates/openhuman-core/src/config/ops/agent.rs
index dd4159bb29..bfa213d295 100644
--- a/crates/openhuman-core/src/config/ops/agent.rs
+++ b/crates/openhuman-core/src/config/ops/agent.rs
@@ -229,7 +229,7 @@ pub async fn apply_agent_settings(
}
}
- if let Some(chat_agent_id) = update.chat_agent_id {
+ if let Some(chat_agent_id) = update.chat_agent_id.as_deref() {
let trimmed = chat_agent_id.trim();
if !trimmed.is_empty()
&& !crate::agent::OpenHumanSessionHost::is_runnable_agent_id(config, trimmed)