feat(#1106): transient wake for bash tasks — bypass broker sqlite
This commit is contained in:
parent
b9b58554e8
commit
a1c6736ba5
8 changed files with 102 additions and 19 deletions
|
|
@ -344,7 +344,18 @@ pub enum Request {
|
|||
/// implicit (this agent); `from` is caller-chosen. See
|
||||
/// `docs/conventions.md::Wake injection` for the trust model and
|
||||
/// typical callers.
|
||||
Wake { from: String, body: String },
|
||||
///
|
||||
/// When `transient` is `true` the server delivers the wake signal
|
||||
/// through an in-process channel only — no sqlite write, no
|
||||
/// redelivery on restart. Use this for ephemeral notifications (e.g.
|
||||
/// bash task completions) where persistence is unnecessary and would
|
||||
/// cause duplicate delivery after a harness restart.
|
||||
Wake {
|
||||
from: String,
|
||||
body: String,
|
||||
#[serde(default)]
|
||||
transient: bool,
|
||||
},
|
||||
/// Last `limit` messages addressed to this agent, newest-first.
|
||||
/// Non-mutating — pulls from the broker without delivering. The
|
||||
/// per-agent web UI uses this to render its own inbox section.
|
||||
|
|
|
|||
Loading…
Reference in a new issue