Skip to content

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

fix(web_chat): allow steer mode in queue validation

Steven Enamakel85834b61285a
diff --git a/crates/openhuman-core/src/web_chat/ops/start_chat.rs b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
index ebf39de912..fe7f14d903 100644
--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs
+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
@@ -194,9 +194,11 @@ fn validate_queue_mode_media(
has_stored_media: bool,
has_uploads: bool,
) -> Result<(), StartChatError> {
- if mode == QueueMode::Collect && (has_voice_note || has_stored_media || has_uploads) {
+ if matches!(mode, QueueMode::Collect | QueueMode::Steer)
+ && (has_voice_note || has_stored_media || has_uploads)
+ {
return Err(StartChatError::Other(
- "collect queue mode does not support typed attachments".to_string(),
+ "collect and steer queue modes do not support typed attachments".to_string(),
));
}
Ok(())