feat(#1106): transient wake for bash tasks — bypass broker sqlite

This commit is contained in:
damocles 2026-06-03 10:40:33 +02:00 committed by mara
commit a1c6736ba5
8 changed files with 102 additions and 19 deletions

View file

@ -465,6 +465,11 @@ async fn send_wake(socket: &Path, id: &str, summary: &str, output: Option<(&str,
let req = hive_sh4re::AgentRequest::Wake {
from: format!("bash-task-{id}"),
body,
// Transient: do not persist to the message broker. Bash task
// completions are fire-and-forget — the output is already on disk
// in harness/bash-tasks/; persisting would cause duplicate delivery
// after a harness restart (issue #1103).
transient: true,
};
match crate::client::request::<_, hive_sh4re::AgentResponse>(socket, &req).await {
Ok(_) => tracing::info!(id = %id, "bash_runner: wake delivered"),