You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac36eba
Browse filesBrowse the repository at this point in the historyBrowse files
Incoming user messages are queued while the agent is streaming. The queue is checked **after each tool call**. If a queued message is present, remaining tool calls from the current assistant message are skipped (error tool results with "Skipped due to queued user message."), then the queued user message is injected before the next assistant response.
73
+
When queue mode is `steer`, inbound messages are injected into the current run.
74
+
The queue is checked **after each tool call**; if a queued message is present,
75
+
remaining tool calls from the current assistant message are skipped (error tool
76
+
results with "Skipped due to queued user message."), then the queued user
77
+
message is injected before the next assistant response.
78
+
79
+
When queue mode is `followup` or `collect`, inbound messages are held until the
80
+
current turn ends, then a new agent turn starts with the queued payloads. See
81
+
`docs/queue.md` for mode + debounce/cap behavior.
82
+
74
83
Block streaming sends completed assistant blocks as soon as they finish; disable
75
84
via `agent.blockStreamingDefault: "off"` if you only want the final response.
76
85
Tune the boundary via `agent.blockStreamingBreak` (`text_end` vs `message_end`).
We now serialize command-based auto-replies (WhatsApp Web listener) through a tiny in-process queue to prevent multiple commands from running at once, while allowing safe parallelism across sessions.
9
9
@@ -19,30 +19,46 @@ We now serialize command-based auto-replies (WhatsApp Web listener) through a ti
19
19
- Typing indicators (`onReplyStart`) still fire immediately on enqueue so user experience is unchanged while we wait our turn.
20
20
21
21
## Queue modes (per surface)
22
-
Inbound messages can either queue or interrupt when a run is already active:
23
-
-`queue`: serialize per session; if the agent is streaming, the new message is appended to the current run.
24
-
-`interrupt`: abort the active run for that session, then run the newest message.
22
+
Inbound messages can steer the current run, wait for a followup turn, or do both:
23
+
-`steer`: inject immediately into the current run (cancels pending tool calls after the next tool boundary). If not streaming, falls back to followup.
24
+
-`followup`: enqueue for the next agent turn after the current run ends.
25
+
-`collect`: coalesce all queued messages into a **single** followup turn (default).
26
+
-`steer-backlog` (aka `steer+backlog`): steer now **and** preserve the message for a followup turn.
27
+
-`interrupt` (legacy): abort the active run for that session, then run the newest message.
28
+
-`queue` (legacy alias): same as `steer`.
25
29
26
30
Defaults (when unset in config):
27
-
- WhatsApp + Telegram → `interrupt`
28
-
- Discord + WebChat → `queue`
31
+
- All surfaces → `collect`
29
32
30
33
Configure globally or per surface via `routing.queue`:
0 commit comments