Skip to content

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

feat(web_chat): add run_mode field to WebChatParams

Steven Enamakelb40f975c1f65
diff --git a/crates/openhuman-core/src/web_chat/types.rs b/crates/openhuman-core/src/web_chat/types.rs
index 0219265c52..2433ded6e8 100644
--- a/crates/openhuman-core/src/web_chat/types.rs
+++ b/crates/openhuman-core/src/web_chat/types.rs
@@ -171,6 +171,12 @@ pub(crate) struct WebChatParams {
/// `followup`, or `collect`.
#[serde(default)]
pub(super) queue_mode: Option<String>,
+ /// Optional `"plan"` | `"build"` — lets the caller start this turn with
+ /// the thread already in the requested run mode, mirroring the socket
+ /// `chat:start` payload's `run_mode` field. Unrecognized values are
+ /// ignored (logged), not rejected.
+ #[serde(default)]
+ pub(super) run_mode: Option<String>,
}
#[derive(Debug, Deserialize)]