Bot Streaming Replies
Show live draft replies on Telegram/Discord/Slack as your agent thinks
Channel bots can post a quick placeholder message and progressively edit it in place as the agent’s answer streams in β replacing the old “stare at a typing indicator for 45s, then a wall of text lands in one burst” experience.
from praisonaiagents import Agent
agent = Agent(name="assistant", instructions="You are a helpful assistant.")
agent.start("Explain quantum computing in simple terms.")The user waits on Telegram, Discord, or Slack; a placeholder message updates in place as the agent streams its answer.
Quick Start
- Enable with one flag (CLI)
bash praisonai bot telegram --token $TELEGRAM_BOT_TOKEN --stream - Enable in YAML
yaml channels: telegram: token: ${TELEGRAM_BOT_TOKEN} streaming: true stream_edit_interval_ms: 700 discord: token: ${DISCORD_BOT_TOKEN} streaming: true stream_edit_interval_ms: 700 slack: token: ${SLACK_BOT_TOKEN} app_token: ${SLACK_APP_TOKEN} streaming: true stream_edit_interval_ms: 700 - Enable in Python
The API is identical across all three bots β create an
Agent, then pass it to the bot withstreaming=True.Telegram
python from praisonaiagents import Agent, BotConfig from praisonai.bots import TelegramBot agent = Agent(name="assistant", instructions="Be helpful and concise.") bot = TelegramBot( token="...", agent=agent, config=BotConfig( token="...", streaming=True, stream_edit_interval_ms=700, ), ) bot.start()Discord
python from praisonaiagents import Agent, BotConfig from praisonai.bots import DiscordBot agent = Agent(name="assistant", instructions="Be helpful and concise.") bot = DiscordBot( token="...", agent=agent, config=BotConfig( token="...", streaming=True, stream_edit_interval_ms=700, ), ) bot.start()Slack
python from praisonaiagents import Agent, BotConfig from praisonai.bots import SlackBot agent = Agent(name="assistant", instructions="Be helpful and concise.") bot = SlackBot( token="...", agent=agent, config=BotConfig( token="...", streaming=True, stream_edit_interval_ms=700, ), ) bot.start()
How It Works
| Component | Purpose | Responsibility |
|---|---|---|
DraftStreamer | Manages live updates | Coalesces edits, respects rate limits |
BotAdapter | Platform interface | Sends/edits messages |
StreamingConfig | User preferences | Timing, text, mode settings |
Works with recipe/YAML-backed agents too
Recipe-backed bots (praisonai serve recipe β¦ or a channel whose capabilities name a recipe:) stream identically to Python-Agent-backed ones β DraftStreamer edits, status phrases, and SSE chunks all apply.
praisonai serve recipe my_recipe --streamBind a channel to a recipe and streaming is on with no extra flag:
channels:
telegram:
token: ${TELEGRAM_BOT_TOKEN}
capabilities:
recipe: my_recipeTurning on streaming at the gateway is enough β the recipe surface participates automatically. See Recipe Serve for the async surface and the recipe-event mapping.
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
streaming | bool | False | Enable progressive streaming β bot sends a placeholder then edits it live as the agent produces tokens |
stream_edit_interval_ms | int | 700 | Minimum milliseconds between message edits (respects platform rate limits) |
Per-channel streaming support
| Channel | Live edits | Default edit interval | Text limit | Notes |
|---|---|---|---|---|
| Telegram | Yes | platform default | 4096 (UTF-16) | Replies over the cap auto-chunk: the placeholder is edited with chunk 1, the rest arrive as follow-on messages. |
| Slack | Yes | 1.0s | 40000 | Threaded replies (thread_ts set, or reply_in_thread: true) bypass streaming and use the standard thread-aware send path. |
| Discord | Yes | platform default | 2000 | Replies over the cap auto-chunk: the placeholder is edited with chunk 1, the rest arrive as follow-on messages (not reference=-tagged β the placeholder is already in the conversation). |
| No (single message) | β | 4096 | Single message. | |
| No (single message) | β | unlimited | Single message. |
See Channel Capabilities for the full matrix including reactions and typing.
Advanced configuration (StreamingConfig)
For progress mode, custom placeholder text, or fine-grained min_delta control, use the lower-level StreamingConfig API.
Streaming Modes
Four modes are available to match different use cases:
| Mode | Behavior | Best For |
|---|---|---|
off | Single final message after completion | Default behavior, zero impact |
draft | Progressive edits with growing answer | Long responses, platforms like Telegram |
progress | Tool status updates, then final answer. When activity_phrases is configured, the raw tool name is replaced with a curated phrase drawn only from that catalogue | Tool-heavy agents, user wants progress |
auto | Resolves to draft where the channel can edit, else status text when the channel declares supports_status_text, else off; other config fields are preserved | Multi-channel bots where you don’t want to hard-code per-channel modes |
Auto mode
auto picks the right mode per channel: it streams (draft) where the channel can edit and falls back to off where it can’t β one config, no per-channel branching.
The same StreamingConfig runs on both an editable and a non-editable channel. Telegram streams live; WhatsApp delivers a single final message.
from praisonaiagents import Agent, BotConfig
from praisonai.bots import TelegramBot, WhatsAppBot, StreamingConfig, StreamingMode
agent = Agent(name="assistant", instructions="Be helpful and concise.")
# Same StreamingConfig works on both channels β Telegram streams live,
# WhatsApp delivers a single final message. No per-channel branching.
cfg = StreamingConfig(mode=StreamingMode.AUTO, min_interval=1.0)
telegram = TelegramBot(token="...", agent=agent, config=BotConfig(token="..."))
telegram.configure_streaming(cfg)
whatsapp = WhatsAppBot(token="...", agent=agent, config=BotConfig(token="..."))
whatsapp.configure_streaming(cfg)The same YAML block drops onto every channel β each resolves on its own capabilities:
channels:
telegram: # live_edit=True β resolves to draft
token: ${TELEGRAM_BOT_TOKEN}
streaming:
mode: auto
min_interval: 1.0
whatsapp: # live_edit=False β resolves to off
token: ${WHATSAPP_BOT_TOKEN}
streaming:
mode: auto
min_interval: 1.0On Telegram the user sees a placeholder that edits in place; on WhatsApp the same agent replies with one final message. Tail the bot log to confirm: INFO ... 'auto' resolved to 'draft' for Telegram, WARNING ... 'auto' resolved to 'off' for WhatsApp.
At init time, auto resolves against the channel’s can_edit capability and logs the outcome:
Edit-less channels with status text
A channel that can’t edit or react can still show progress if its adapter sets supports_status_text=True and implements set_status_text. The activity line then goes to that status line instead of being dropped.
- Only
autoandprogressare routed to the status line.draftstill falls back tooffon channels that can’t edit. - If a status line hasn’t changed, it isn’t sent again, so there is no extra API cost.
finalize()sends the answer, then clears the line with an empty string. - No built-in adapter turns this on yet. See Textual Status Line to add it to a custom adapter.
StreamingConfig options
| Option | Type | Default | Description |
|---|---|---|---|
mode | StreamingMode | StreamingMode.OFF | Streaming mode: OFF, DRAFT, PROGRESS, or AUTO. AUTO uses DRAFT where the channel can edit, else status text when the channel declares supports_status_text, else OFF |
min_interval | float | 1.5 | Minimum seconds between message edits (rate-limit safe) |
min_delta | int | 120 | Minimum new characters in the buffer before an edit fires |
placeholder_text | str | "π€ Thinking..." | Initial message text sent before any content arrives |
progress_prefix | str | "π€ " | Prefix used in progress mode tool-status updates |
progress_style | str | "line" | Progress-mode rendering style: "line" (single overwritten tool label, unchanged default) or "feed" (bounded multi-line rolling status feed with per-step β³/β/β glyphs) |
progress_max_lines | int | 8 | Max trailing lines shown when progress_style="feed"; older lines scroll off the top of the window |
progress_max_line_chars | int | 120 | Per-line character cap in feed style (includes the leading glyph); words are truncated at a boundary with an ellipsis |
disable_progressive_edits_after | int | 3 | Consecutive recoverable edit failures before progressive editing is turned off for the rest of the stream β the completed answer is then delivered as a single final send |
flood_backoff_factor | float | 2.0 | Multiplier applied to the edit interval on each recoverable (flood / 429 / transient) failure |
max_interval | float | 30.0 | Cap in seconds for the adaptively widened edit interval β backoff stops growing past this |
strip_reasoning_tags | bool | True | Strip <think>β¦</think> and <reasoning>β¦</reasoning> spans from streamed and final output. Default ON β set to false to opt out |
activity_phrases | Optional[Dict[str, str]] | None | Opt-in privacy-safe activity surface for progress mode. When set, the progress line is drawn exclusively from this catalogue (keyed by tool category: web, search, shell, code, file, mcp, default). Tool names, args, command strings, URLs and file paths are never interpolated. Unset (default) preserves today’s Running <tool>... behaviour β see Privacy-safe activity surface |
Per-bot configure_streaming
configure_streaming has the same shape on every bot β pass a StreamingConfig and the override sticks.
Telegram
from praisonai.bots import TelegramBot, StreamingConfig, StreamingMode
bot = TelegramBot(token="...", agent=agent)
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.DRAFT,
min_interval=1.0,
min_delta=120,
))Discord
from praisonai.bots import DiscordBot, StreamingConfig, StreamingMode
bot = DiscordBot(token="...", agent=agent)
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.DRAFT,
min_interval=2.0, # Discord β stricter edit rate limits
min_delta=120,
))Slack
from praisonai.bots import SlackBot, StreamingConfig, StreamingMode
bot = SlackBot(token="...", agent=agent)
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.DRAFT,
min_interval=1.0, # Slack chat.update is more generous
min_delta=120,
))Long streamed replies auto-chunk (every channel)
Every platform caps message length (Telegram 4096 UTF-16 units, Discord 2000 characters). A streamed answer above the cap can’t be delivered by editing a single placeholder, so the shared DraftStreamer splits it automatically β the same way on Telegram, Discord, Slack, and any future adapter.
When the final answer, measured in the adapter’s length_unit, exceeds the channel’s text_limit, finalize():
- splits it with
chunk_message+enforce_hard_cap(paragraph β newline β sentence boundaries), - edits the placeholder with chunk 1 (falling back to a fresh
send_messageif the edit fails), and - sends chunks 2..N as follow-on messages through
adapter.send_message.
The user sees one coherent reply split across multiple messages, not a truncated or dropped answer. No config needed β this is on whenever streaming is enabled.
Follow-on chunks are not wrapped in deliver_with_retry β the adapter’s send_message already retries and parks exhausted sends in the DLQ, so wrapping again would re-send a parked chunk and duplicate it. A failing follow-on chunk is logged and the remaining chunks still ship.
Slack: threaded replies skip streaming (by design)
Slack’s shared DraftStreamer posts and edits a placeholder at the channel root, so a reply that must land in a thread bypasses streaming β streaming at the root would strand the answer in the main channel.
For a reply destined for a thread β either the inbound message was itself in a thread (thread_ts is set) or the bot is configured with reply_in_thread: true β the adapter falls back to the existing thread-aware single-message send path (_send_response_with_media), which honours thread_ts and uploads any MEDIA: attachments correctly. A threaded answer is never stranded in the main channel.
Slack: MEDIA: directives still upload audio
A MEDIA:/path/to/reply.mp3 directive still works in streamed Slack replies β the text is edited into the placeholder and the audio is uploaded afterwards.
The final content is parsed via split_media_from_output(...), the text portion is edited into the placeholder, and any audio files are uploaded via files_upload_v2(channel=..., file=...). The directive line itself is never written literally into the chat.
Progress feed style
Set progress_style: feed to render tool calls as a bounded rolling multi-line status view instead of a single overwritten label.
A research agent on Telegram chains web_search, fetch_url, and summarize. With the default progress_style="line", each tool overwrites the last, so a failed fetch_url vanishes. With feed, every step keeps its own line and outcome glyph:
from praisonaiagents import Agent
from praisonai.bots import TelegramBot, StreamingConfig, StreamingMode
from praisonaiagents import BotConfig
agent = Agent(
name="research-assistant",
instructions="Research the user's question with web tools and summarise.",
tools=[web_search, fetch_url, summarize],
)
bot = TelegramBot(
token="...",
agent=agent,
config=BotConfig(token="...", streaming=True),
)
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.PROGRESS,
progress_style="feed", # enable the multi-line rolling feed
progress_max_lines=6, # keep it short on mobile
progress_max_line_chars=100,
))
bot.start()The user’s Telegram message updates in place with a live per-step audit trail:
β web_search β 5 results
β fetch_url β timeout
β³ summarizeEach tool gets its own line with a state glyph β β³ running, β done, β error β instead of one label that overwrites itself.
When to use which style
How one tool flows through the feed
A tool’s start event and its matching finish event share one correlation id, so the line updates in place instead of duplicating.
Privacy-safe activity surface
During a long, output-silent tool run in progress mode, show a curated phrase like “Searching the web⦔ instead of the raw tool name (Running web_fetch...) β tool names, args, command strings, URLs and file paths are never surfaced.
Quick Start
- Enable in YAML
yaml channels: telegram: token: ${TELEGRAM_BOT_TOKEN} streaming: mode: progress activity_status: enabled: true phrases: web: "Searching the webβ¦" search: "Looking that upβ¦" shell: "Running a commandβ¦" code: "Writing and running codeβ¦" file: "Reading filesβ¦" mcp: "Talking to a toolβ¦" default: "Working on itβ¦"enabled: falsedisables the surface (yieldsactivity_phrases=None). An inlineactivity_phrases: {...}shorthand is also accepted in place of theactivity_statusblock. - Enable in Python
python from praisonaiagents import Agent, BotConfig from praisonai.bots import TelegramBot, StreamingConfig, StreamingMode agent = Agent(name="assistant", instructions="Be helpful and concise.") bot = TelegramBot(token="...", agent=agent, config=BotConfig(token="...")) bot.configure_streaming(StreamingConfig( mode=StreamingMode.PROGRESS, activity_phrases={ "web": "Searching the webβ¦", "shell": "Running a commandβ¦", "default": "Working on itβ¦", }, )) bot.start()
Category β phrase mapping
Each tool name is lowercased and matched by substring against these hints β the first match wins, and anything unmatched falls to default.
| Category | Substrings that map to it (lowercased tool name) |
|---|---|
web | web, browser, fetch, url, http, crawl, scrape |
search | search, google, duckduckgo, tavily, serper, wiki |
shell | shell, bash, command, terminal, exec, subprocess |
code | code, python, interpreter, repl, compile, script |
file | file, read, write, open, save, load, csv, pdf, doc |
mcp | mcp |
default | anything else (also the fallback when a matched category has no phrase) |
resolve_activity_category(None) and resolve_activity_category("") both return "default".
What the user sees
A tool named web_fetch_secret_url maps to web, so the user only ever sees the curated phrase β never the tool name.
Interaction flow
The tool name never reaches the chat surface when a catalogue is configured β the phrase is chosen from the category alone.
Which progress rendering to choose
Three renderings live on this page β pick per channel.
| Rendering | Shows | Choose when |
|---|---|---|
line (default) | Raw tool name β π€ Running web_searchβ¦ | Internal bot; tool names are safe to show |
feed | Per-step audit trail with β³/β/β glyphs | Internal ops bot; you want the full step history |
activity_status | Curated phrase only β Searching the webβ¦ | Public/support bot; tool identity must not leak |
Precedence with progress_style: feed
When activity_phrases is set, the raw feed is not rendered β showing it would fold tool names/summaries into the output and bypass the privacy guarantee. The curated single-line phrase is shown instead. Opting into the catalogue therefore disables the multi-line feed on that channel; choose one per channel.
Partial-catalogue safety
If a phrase for the matched category is missing and no default is configured, the surface falls back to the safe generic line Working on itβ¦ β never the raw tool name. A catalogue with only {"web": "Searching the webβ¦"} shows Working on itβ¦ for a shell tool, not Running bash....
Best practices
Always set a `default` phrase
default covers every unmapped tool with your own wording. Without it, unmatched categories fall back to the safe generic Working on itβ¦ β correct, but not your voice.
streaming:
mode: progress
activity_status:
enabled: true
phrases:
web: "Searching the webβ¦"
default: "Working on itβ¦" # covers everything elseKeep phrases generic β the whole point is not to leak
A phrase is broadcast to every user whose tool falls in that category. Never put a URL, filename, argument, or command name in a phrase β that reintroduces exactly the leak the surface prevents. Write "Reading filesβ¦", not "Reading /etc/secrets.envβ¦".
Use `activity_status` for public bots; `progress_style: feed` for internal ops
The curated surface hides tool identity β right for public and support bots. The feed style exposes a per-step audit trail β right for internal ops bots where operators want to see exactly which tool ran. They are mutually exclusive per channel.
Opting in disables the multi-line feed
When a catalogue is set, the SDK renders the curated single line, not the feed. If you need both a curated phrase and a feed, split them across channels/profiles β one per channel.
Where the tool events that trigger the activity line come from
Bot Status ReactionsThe emoji-reaction equivalent for run progress
Outbound Secret ScrubRelated privacy surface that scrubs outbound text
Channel CapabilitiesWhich channels support the live edits progress needs
Flood-control
Your Telegram bot is streaming a long answer during peak hours. Telegram starts returning 429 after the third edit. The streamer doubles its edit interval (1.5s β 3s β 6s β capped at max_interval). After disable_progressive_edits_after consecutive failures it stops editing entirely and waits β when finalize() fires it delivers the completed answer as a fresh message. The user never sees a stuck placeholder, never sees a partial reply, and the rest of your bot’s chats are unaffected because the backoff is per-stream.
| Event | What the streamer does |
|---|---|
| Recoverable edit failure (flood / 429 / transient) | fail_streak += 1; current_min_interval *= flood_backoff_factor (capped at max_interval). Per-stream β does not mutate the shared StreamingConfig |
fail_streak >= disable_progressive_edits_after | Progressive editing turns OFF for the rest of this stream. Subsequent token events skip _perform_update. The placeholder is left in place until finalize() |
| Non-recoverable edit failure | Logged at WARNING. Fail streak does NOT increment; progressive stays enabled |
| Successful edit | fail_streak resets to 0 (recovery) |
finalize(final_content) | Strip reasoning tags (if enabled), chunk if over text_limit, try edit-in-place, fall back to send_message if edit fails, then send any follow-on chunks |
Reasoning-tag filtering
Default ON. <think> and <reasoning> spans (case-insensitive, multi-line) are stripped from both streamed and final output. A trailing unclosed opening tag is also dropped so internal reasoning never leaks mid-stream while a block is still being produced. Set strip_reasoning_tags: false to opt out (for example, on a reasoning-transparency bot).
from praisonai.bots._streaming import strip_reasoning_tags
strip_reasoning_tags("Hi <think>secret</think> there") # -> "Hi there"
strip_reasoning_tags("a <REASONING>x\ny</REASONING> b") # -> "a b"
strip_reasoning_tags("Answer <think>still going") # -> "Answer "YAML vs Python vs CLI
YAML Configuration
Add to your bot.yaml under the channel configuration:
channels:
telegram:
token: ${TELEGRAM_BOT_TOKEN}
streaming:
mode: progress # off | draft | progress | auto (see Auto mode)
progress_style: feed # "line" (default) or "feed"
progress_max_lines: 8
progress_max_line_chars: 120
min_interval: 1.5
min_delta: 120
placeholder_text: "π€ Thinking..."
progress_prefix: "π€ "
# New in #2356
disable_progressive_edits_after: 3
flood_backoff_factor: 2.0
max_interval: 30.0
strip_reasoning_tags: true
# Privacy-safe activity surface (opt-in). Draws the progress line
# exclusively from these phrases; tool names/args/URLs never leak.
activity_status:
enabled: true
phrases:
web: "Searching the webβ¦"
search: "Looking that upβ¦"
shell: "Running a commandβ¦"
code: "Writing and running codeβ¦"
file: "Reading filesβ¦"
mcp: "Talking to a toolβ¦"
default: "Working on itβ¦"Python API
Configure streaming programmatically with the configure_streaming() method:
from praisonai.bots import TelegramBot, StreamingConfig, StreamingMode
bot = TelegramBot(token="...", agent=agent)
# Enable with defaults
bot.configure_streaming(StreamingConfig(mode=StreamingMode.DRAFT))
# Custom configuration
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.PROGRESS,
min_interval=2.0,
min_delta=200,
placeholder_text="Working...",
progress_prefix="β‘ "
))
# Multi-line feed style (per-step β³/β/β glyphs)
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.PROGRESS,
progress_style="feed",
progress_max_lines=6,
progress_max_line_chars=100,
))Manual Streamer Usage
For advanced use cases, you can use DraftStreamer directly:
from praisonai.bots import DraftStreamer, StreamingConfig, StreamingMode
streamer = DraftStreamer(
adapter=bot_adapter, # implements BotAdapter Protocol
channel_id="123456",
config=StreamingConfig(mode=StreamingMode.DRAFT, min_interval=1.5),
rate_limiter=None, # optional, defaults from platform
platform="telegram", # enables platform-specific recoverable-error classification
)
message_id = await streamer.start() # sends placeholder
# ... agent run subscribes streamer.on_event through agent.stream_emitter.add_callback(...) ...
await streamer.finalize(final_response_text) # final edit with full textBest Practices
Start with `–stream` β tune `stream_edit_interval_ms` only if needed
The default 700ms interval works well on Telegram. If you hit “message is not modified” or 429 errors on a shared/busy channel, raise it to 1000β2000. On Discord (stricter limits), prefer 2000 or use the advanced StreamingConfig form.
Tune min_interval to your platform's edit rate limit
Each platform has different edit rate limits. Telegram allows ~1 edit/sec/chat, while Slack’s chat_update API is more generous. Set min_interval to match your platform’s limits to avoid 429 errors.
# Telegram (liberal editing)
streaming:
mode: draft
min_interval: 1.0
# Discord (stricter limits)
streaming:
mode: draft
min_interval: 2.0Use progress mode for tool-heavy agents
When your agent frequently calls tools (web search, calculations, etc.), progress mode keeps users informed about what’s happening instead of showing a static “thinking” message.
# Good for agents that use many tools
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.PROGRESS,
progress_prefix="π§ "
))On a public or support bot, pair progress mode with the Privacy-safe activity surface so users see a curated phrase (Searching the webβ¦) instead of the raw tool name.
Use `feed` when your agent chains many tools
progress_style: feed turns a black-box “still thinking⦔ indicator into a live per-step audit trail. Every tool call keeps its own line with a β³/β/β glyph, so users see which step failed instead of watching one label overwrite itself. See the line-vs-feed comparison.
bot.configure_streaming(StreamingConfig(
mode=StreamingMode.PROGRESS,
progress_style="feed",
))Keep `progress_max_lines` small on mobile channels
Telegram mobile crops long messages. Set progress_max_lines to 4β6 so the feed stays readable β older lines scroll off the top of the window while the newest steps stay visible.
streaming:
mode: progress
progress_style: feed
progress_max_lines: 6Streaming is off by default β opt in per channel
The feature has zero impact on existing bots. Only channels with explicit streaming: configuration will use the new behavior. All other channels continue with the original single-message approach.
Final delivery is guaranteed even when edits are flooded
When finalize() runs, the streamer first measures the final answer against the channel’s text_limit in the adapter’s platform_capabilities.length_unit. If it fits, the placeholder is edited in place; if the edit fails (or progressive editing was already disabled by a flood-control strike), a fresh send_message delivers the full answer. If the answer is over the cap, it is split at paragraph/newline/sentence boundaries, the placeholder is edited with chunk 1 (falling back to send_message if the edit fails), and the remaining chunks are posted as follow-on messages. A failing follow-on chunk is logged and the rest still ship. No stale “π€ Thinking⦔ placeholder is left behind.
Troubleshooting
Fixed in PR #2356. The streamer now backs off on 429/flood, and after 3 consecutive failures falls back to a single final send so you always get the completed answer. Tune disable_progressive_edits_after / flood_backoff_factor / max_interval per channel if your platform’s rate limits differ.
My `progress_style: feed` config was rejected at startup
The schema validator only accepts "line" or "feed". Any other value raises Invalid progress_style '<v>'. Must be one of: feed, line at load time. Check for typos like feeds or multiline.
An errored tool still shows the β glyph
Impossible by design. Once a line reaches error (β) the compositor never downgrades it to done (β), and a late done event never overwrites an error. If you ever see this, please file a bug against praisonai.
Why is my channel not streaming even though I set `streaming: true`?
That channel probably can’t edit messages. draft/progress on a channel without live_edit support (WhatsApp, Email) degrades to off, now logged at WARNING: Channel <id> doesn't support live editing; degrading streaming mode '<mode>' to 'off'. Switch to mode: auto so the fallback is expected β auto resolves to off there without treating it as an error you configured wrong. Channels that can’t edit but declare supports_status_text and implement set_status_text route auto/progress to a textual status line instead of falling back to off.
How do I tell whether `auto` resolved to `draft` or `off`?
Check the bot log for Channel <id> streaming mode 'auto' resolved to '<mode>' (can_edit=<bool>). It’s logged at INFO when it resolves to draft (can_edit=True) and at WARNING when it resolves to off (can_edit=False).
Chat users are seeing tool names like `Running web_fetch…` β how do I hide them?
Enable activity_status under the channel’s streaming: block. Once set, the progress line is drawn exclusively from your curated phrases and the raw tool name never reaches the chat. See Privacy-safe activity surface.
I set `activity_status.enabled: true` but the placeholder still shows the tool name
Confirm mode: progress (the catalogue only applies to progress mode), confirm enabled is truthy, and confirm the YAML block reached the config. The schema validator retains activity_status (introduced in PR #5315); a typo above the block that fails validation can prevent it from loading.
My curated phrases work, but the multi-line feed disappeared
Expected. When a catalogue is set, the raw feed is not rendered β folding tool names/summaries into the feed would bypass the privacy-safe surface. Choose one per channel: curated activity_status or progress_style: feed.
Discord/Slack ignored `streaming: true` β one wall of text landed at the end
Before PR #5417 (merged 2026-10-02) the DraftStreamer was wired only into Telegram β Discord and Slack silently fell back to a single final message. Upgrade praisonai/praisonai-bot to pick up the fix. The YAML / Python surface is unchanged (streaming: true or BotConfig(streaming=True)); you just needed the newer package.
My Slack reply in a thread didn't stream
By design. The shared DraftStreamer posts/edits its placeholder at the channel root, so when the reply must land in a thread (thread_ts set, or reply_in_thread: true configured) the adapter falls back to the standard thread-aware send path. Streaming at the channel root would strand the threaded answer in the main channel. If you need streamed thread replies, open a feature request against praisonai.
My long Discord answer arrived as several messages instead of one live edit
Expected. Discord enforces a hard 2000-character cap per message. When a streamed answer exceeds the cap, the shared DraftStreamer edits the placeholder with chunk 1 and posts chunks 2..N as follow-on messages. Editing a single placeholder with >2000 chars would 400 and drop the whole reply. Before PraisonAI PR #6081 this chunking lived in the Discord adapter and deleted the placeholder; the shared streamer now does it the same way on every channel.
My long Telegram answer never arrived
Fixed in PraisonAI PR #6081. Previously a streamed Telegram reply over the 4096 UTF-16 cap failed the final edit and the send fallback, and was lost with only a DraftStreamer final send fallback also failed: ... warning in the log. The shared streamer now chunks over-cap answers (measured in UTF-16 units) with the same splitter the non-streamed path uses. Upgrade praisonai-bot to pick up the fix.
Related
What each platform supports β live edits, reactions, typing
Bot Status ReactionsShow run progress as emoji reactions
Streaming Tool EventsUnderstand tool-event details used in progress mode
Progress CompositorFold typed StreamEvents into your own multi-line status view
Bot GatewaySet up and run channel bots with gateway configuration
Messaging BotsComplete guide to messaging bot setup and features
Bot Platform CapabilitiesHow platform capabilities drive this feature
Recipe ServeStream recipe/YAML-backed gateway agents with the same pipeline