Skip to content

refactor: use sayStream helper instead of client.chatStream#129

Open
zimeg wants to merge 2 commits into
mainfrom
use-say-stream-helper
Open

refactor: use sayStream helper instead of client.chatStream#129
zimeg wants to merge 2 commits into
mainfrom
use-say-stream-helper

Conversation

@zimeg

@zimeg zimeg commented May 19, 2026

Copy link
Copy Markdown
Member

Summary

Replace manual client.chatStream() calls with the sayStream context utility, which automatically injects channel, thread_ts, recipient_team_id, and recipient_user_id from the listener context.

export const message = async ({ logger, message, say, sayStream, setStatus }) => {
  await setStatus({ status: 'thinking...' });
  const streamer = sayStream({ task_display_mode: 'plan' });
  await streamer.append({ chunks: [{ type: 'markdown_text', text: 'Hello!' }] });
  await streamer.stop();
};

Requirements

Replace manual client.chatStream() calls with the sayStream context
utility, which automatically injects channel, thread_ts, recipient IDs.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg requested a review from a team as a code owner May 19, 2026 04:46
@zimeg zimeg self-assigned this May 19, 2026
@zimeg zimeg added the enhancement New feature or request label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant