qwen-code/docs/users/features/channels
tanzhenxin 7251da0152 feat(channels): add dispatch modes and prompt lifecycle hooks
Add three dispatch modes for handling concurrent messages:
- steer (default): cancel current prompt and start new one
- collect: buffer messages and coalesce into follow-up prompt
- followup: queue messages for sequential processing

Introduce onPromptStart/onPromptEnd lifecycle hooks for working
indicators. These fire only when a prompt actually begins processing,
not for buffered (collect mode) or gated/blocked messages.

Refactor Telegram, WeChat, and DingTalk adapters to use the new hooks
instead of overriding handleInbound, simplifying the working indicator
pattern and ensuring correct behavior with dispatch modes.

This enables better UX for async workflows and prevents indicator
leaks when messages are buffered or cancelled.
2026-03-28 06:19:02 +00:00
..
_meta.ts docs(channels): add plugin developer guide and rename mock to plugin-example 2026-03-27 03:19:34 +00:00
dingtalk.md docs(channels): add DingTalk channel documentation 2026-03-26 09:14:31 +00:00
overview.md feat(channels): add dispatch modes and prompt lifecycle hooks 2026-03-28 06:19:02 +00:00
plugins.md docs(channels): add plugin developer guide and rename mock to plugin-example 2026-03-27 03:19:34 +00:00
telegram.md feat(channels): add shared slash command system 2026-03-26 03:24:44 +00:00
weixin.md feat(channels): add crash recovery and gateway mode support 2026-03-26 02:55:18 +00:00