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_task module for web chat task execution

Steven Enamakel8dd712314614
diff --git a/crates/openhuman-core/src/web_chat/run_task.rs b/crates/openhuman-core/src/web_chat/run_task.rs
index d10871f1b5..340dafb57a 100644
--- a/crates/openhuman-core/src/web_chat/run_task.rs
+++ b/crates/openhuman-core/src/web_chat/run_task.rs
@@ -216,7 +216,7 @@ pub(crate) async fn run_chat_task(
// any stale budget-exhausted signal before it could mislabel a
// later genuine empty response. See #3386.
super::ops::clear_budget_signal(ctx, thread_id).await;
- let citations = crate::memory::tools::take_turn_citations(thread_id);
+ let citations = crate::memory::tools::take_turn_citations(ctx, thread_id);
let usage = agent.take_last_turn_usage_totals();
Ok(WebChatTaskResult {
full_response: response,