Wake agents from verified workflow mentions

Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
This commit is contained in:
Logan Johnson
2026-08-27 17:46:06 -04:00
parent d2a80d8199
commit af092ce97b
15 changed files with 1193 additions and 47 deletions

View File

@@ -18,6 +18,7 @@ use serde_json::Value as JsonValue;
use tracing::{debug, info, warn};
use uuid::Uuid;
use crate::action_sink::WorkflowMessageContext;
use crate::error::WorkflowError;
use crate::schema::{ActionDef, Step, WorkflowDef};
use crate::WorkflowEngine;
@@ -636,7 +637,12 @@ pub async fn dispatch_action(
let event_id = engine
.action_sink()?
.send_message(
community_id,
WorkflowMessageContext {
community_id,
run_id,
step_id: step_id.to_owned(),
definition_event_id: wf_run.definition_event_id.clone(),
},
&channel_id,
text,
authored_text,