test(cron): narrow delivery review to saved-chat routing
This commit is contained in:
1 parent
8691bdedd5
commit
61db036cee
32 files changed
+140
-774
No files matched your search
+10
-45
@@ -46,52 +46,17 @@ Write what the task should do, such as "Remind me to drink water". nanobot sends
|
||||
|
||||
For separate sends, specify the recipients in the instructions. The agent can still use `message` to send to other chats, send to several recipients, or attach files. Existing tasks that explicitly request this tool remain supported.
|
||||
|
||||
Writing "send to WhatsApp" in a task's instructions does not change its saved chat. If you create
|
||||
the task in a WebUI chat, its normal reply still returns there. A separate WhatsApp send requires
|
||||
the agent to call `message` with that destination. To make WhatsApp the normal reply destination,
|
||||
create the task in that WhatsApp chat, or change its saved chat in Automations.
|
||||
Writing "send to WhatsApp" in the instructions does not change the task's saved chat. Its normal
|
||||
reply still returns to that chat. A separate send requires the agent to call `message` with the
|
||||
other destination.
|
||||
For a fixed destination, create the task in that chat or use
|
||||
[Change the Chat for a Scheduled Task](#change-the-chat-for-a-scheduled-task). Keep explicit
|
||||
`message` instructions when you want separate sends or several recipients.
|
||||
|
||||
### Scheduled Result Delivery
|
||||
|
||||
Task completion and message delivery are separate. `Turn completed` and a successful task run
|
||||
mean that execution finished. They do not confirm that a chat service received the result.
|
||||
|
||||
The gateway saves final scheduled messages before it accepts them into the outgoing queue.
|
||||
This includes explicit `message` calls in existing tasks. Each recipient has a separate delivery
|
||||
record. Progress, reasoning, and streaming events do not enter this queue. WebUI streaming and
|
||||
saved chat history keep their existing behavior.
|
||||
The queue cannot recover a send that the agent never requested. If an expected recipient has no
|
||||
delivery record, check the task's saved chat and the run's `message` tool calls first.
|
||||
External channels receive one final scheduled reply instead of a streamed reply. Ordinary chat
|
||||
streaming is unchanged.
|
||||
|
||||
If a channel reports that it has not sent any part of a message, the gateway retries every
|
||||
30 seconds, for up to one hour after queue acceptance. It sends the saved message to the saved
|
||||
destination. It does not run the task or call the model again. A gateway restart resumes pending
|
||||
messages. Deleting or resetting the source chat cancels pending messages from that chat generation.
|
||||
Disabling a channel prevents its pending messages from being sent. Changing a task's chat affects
|
||||
future runs; it does not redirect an already queued result.
|
||||
|
||||
If a request times out after sending starts, or the gateway stops during a send, delivery is
|
||||
unknown. The gateway does not retry that message automatically: the service might already have
|
||||
accepted it. Check the destination before sending the result again. This is not an exactly-once
|
||||
delivery guarantee. Adapter or service-specific retries still follow their own protocol.
|
||||
|
||||
Look for `Channel delivery` in the gateway log. The run ID links execution to each delivery ID:
|
||||
|
||||
| Status | Meaning |
|
||||
|---|---|
|
||||
| `pending` | Saved locally; waiting for an attempt or a channel connection |
|
||||
| `sent` | The channel adapter completed its send; not a recipient read receipt |
|
||||
| `failed` | Not sent: expired, disabled channel, replaced source chat, or rejected destination/policy |
|
||||
| `unknown` | An interrupted or failed attempt might have reached the service; no automatic retry |
|
||||
|
||||
The queue is stored in `delivery/outbox.sqlite3`, beside the active config file. Include this
|
||||
directory in instance backups; stop the gateway before copying it. It holds at most 256 pending messages, with a 1 MiB serialized limit
|
||||
per message. A full queue or storage error rejects the enqueue operation instead of reporting it
|
||||
as accepted. Terminal records discard message text and keep status for up to seven days, capped
|
||||
at 1,000 records. Existing job and session files are not converted. Older versions ignore this
|
||||
queue; pending delivery resumes only when a version with queue support runs again.
|
||||
If a result does not arrive, check the saved chat and the run's `message` calls first. Then check
|
||||
the gateway's channel send errors. `Turn completed` confirms execution finished, not that the
|
||||
destination received a message. A successful `message` tool return confirms queue acceptance,
|
||||
not receipt by the chat service. Do not resend until you check whether the first send arrived.
|
||||
|
||||
For background checks that should stay quiet unless there is something useful to report, use heartbeat instead of a user-created scheduled automation.
|
||||
|
||||
|
||||
Reference in new issue
Block a user