Skip to content

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

feat(web_chat): conditionally spawn follow-up suggestions

Steven Enamakel73ee761e96a0
diff --git a/crates/openhuman-core/src/web_chat/presentation.rs b/crates/openhuman-core/src/web_chat/presentation.rs
index 7ac3f98da3..be60a0204c 100644
--- a/crates/openhuman-core/src/web_chat/presentation.rs
+++ b/crates/openhuman-core/src/web_chat/presentation.rs
@@ -146,6 +146,15 @@ pub(crate) async fn deliver_response(
usage_payload,
timing_payload,
);
+ if suggest_follow_ups {
+ super::suggestions::spawn_follow_up_suggestions(
+ client_id.to_string(),
+ thread_id.to_string(),
+ request_id.to_string(),
+ user_message.to_string(),
+ full_response.to_string(),
+ );
+ }
return;
}