Skip to content

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

fix(web_chat): include item details in run queue interrupted event

Steven Enamakel248632690081
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs
index de45cd11cf..68e740b1d9 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs
@@ -143,6 +143,7 @@ pub(crate) async fn stage_spawn_parallel_workers_from_defs(
parent: &ParentExecutionContext,
action_root: Option<&Path>,
parent_workspace_descriptor: Option<&WorkspaceDescriptor>,
+ parent_call_id: Option<&str>,
) -> (Vec<SpawnParallelWorker>, Vec<ParallelAgentResult>) {
let mut immediate_results = Vec::new();
let mut prepared = Vec::new();
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 186dc9303a..b3b298e203 100644
--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs
+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
@@ -328,8 +328,8 @@ pub async fn start_chat(
crate::core::bus::BUS.publish(DomainEvent::RunQueueInterrupted {
thread_id: thread_id.clone(),
cancelled_request_id: cancelled_id.clone(),
- item_id: None,
- text_preview: None,
+ item_id: Some(request_id.clone()),
+ text_preview: Some(crate::agent::queued_turn::text_preview(&message)),
});
publish_web_channel_event(WebChannelEvent {
event: "chat_error".to_string(),