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
chat_stream ignores username and icon_url override parameters (works in chat_postMessage) #1863
I'm currently using the new Slack chat_stream API to create an internal Slack bot for Airbnb employees. To repro this issue:
Create a Slack bot app with the necessary scopes (chat:write, chat:write.customize)
Send a message using chat.postMessage with username and icon_url parameters - observe that the message displays with the custom username and icon
Send a streaming message using chat_stream with the same username and icon_url parameters - observe that the message displays with the bot's default name/icon instead
Working call (chat.postMessage):
from slack_sdk.web.async_client import AsyncWebClient
client = AsyncWebClient(token="xoxb-...")
# This works - message displays as "Claude Code" with custom icon
response = await client.chat_postMessage(
channel="C1234567890",
thread_ts="1234567890.123456",
text="Hello from Claude Code!",
username="Claude Code",
icon_url="https://claude.ai/images/claude_app_icon.png",
)
Non-working call (chat_stream):
from slack_sdk.web.async_client import AsyncWebClient
client = AsyncWebClient(token="xoxb-...")
# This does NOT work - message displays with bot's default name, ignoring overrides
streamer = await client.chat_stream(
channel="C1234567890",
thread_ts="1234567890.123456",
username="Claude Code",
icon_url="https://claude.ai/images/claude_app_icon.png",
)
await streamer.append(markdown_text="Hello from Claude Code!")
await streamer.stop()
Expected result:
When passing username and icon_url (or icon_emoji) to chat_stream, the streaming message should display with the custom username and icon, just like chat.postMessage does.
The underlying chat.postMessage.stream API should support these parameters since regular chat.postMessage does.
Actual result:
The username and icon_url parameters are silently ignored when passed to chat_stream. The message displays with the bot's default identity (the name/icon configured in the Slack app settings) instead of the custom values.
This makes it impossible to use persona overrides (showing different display names/icons for different agents in a multi-agent bot) with the streaming API.
I just checked with the team behind the chat streaming API methods. They're aware of this issue and preparing to rollout an update that supports both username and icon_url. This is a fix that must be rolled out to all of Slack's surfaces (API, Web, iOS, and Android) and it should land on the API/Web first.
We'll keep this issue open and drop a comment when we see it's been released.
Reacted by Steve Cosenza, Elaine Vegeris, Eden Zimbelman and Kazuki Yamada
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
Activity
vegeris commentedon Dec 4, 2025
Hi there,
The chat_stream utility method doesn't accept those params as the underlying API methods don't support them
We'll take this to the team as a feature request; thanks for bringing this up!
mwbrooks commentedon Dec 5, 2025
Hi @scosenza,
I just checked with the team behind the chat streaming API methods. They're aware of this issue and preparing to rollout an update that supports both
usernameandicon_url. This is a fix that must be rolled out to all of Slack's surfaces (API, Web, iOS, and Android) and it should land on the API/Web first.We'll keep this issue open and drop a comment when we see it's been released.
github-actions commentedon Jan 5, 2026
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.