fix(trigger): recover interrupted deliveries

This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-07-02 13:32:46 +08:00
1 parent 55b550ee01
commit 1ed2c9a213
7 files changed
+133 -14

No files matched your search

+6
View File
@@ -81,6 +81,12 @@ to that same chat. Keep `nanobot gateway` running so trigger messages can be
delivered. The trigger message starts an automation turn; it is not shown in
the chat as a normal user message.
Trigger deliveries are stored in the workspace until the gateway consumes them.
If the gateway exits after claiming a delivery but before marking it complete,
the next gateway start requeues that delivery. This is an at-least-once local
queue: a delivery may run more than once if the process exits at the wrong time,
so external scripts should make repeated trigger messages safe.
For longer or generated content, omit the message argument and pipe stdin:
```bash