Commit 3b69a0c
fix(slack): pass recipient_team_id and recipient_user_id to chat.startStream
Slack's streaming API (chat.startStream) requires recipient_team_id and
recipient_user_id when streaming outside of DMs. Without these parameters,
the API returns a missing_recipient_team_id error, causing the stream to
fail entirely and no replies to be delivered.
This adds optional teamId and userId parameters to StartSlackStreamParams
and passes them through to client.chatStream() as recipient_team_id and
recipient_user_id. The call site in dispatch.ts now supplies ctx.teamId
(from auth.test) and message.user.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 2cd8200 commit 3b69a0c
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
0 commit comments