Skip to content

Commit 2ecbf50

Browse files
committed
fix(slack): add preferSessionLookupForAnnounceTarget to Slack channel meta
In multi-account Slack setups, sessions_send announce replies use the default bot token instead of the target agent's token. This happens because the Slack channel plugin doesn't set preferSessionLookupForAnnounceTarget, so resolveAnnounceTarget() returns the key-parsed fallback which lacks accountId. WhatsApp already sets this flag (extensions/whatsapp/src/channel.ts:46). This one-line fix brings Slack in line. Fixes #30956
1 parent a374325 commit 2ecbf50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/slack/src/channel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const slackPlugin: ChannelPlugin<ResolvedSlackAccount> = {
6767
id: "slack",
6868
meta: {
6969
...meta,
70+
preferSessionLookupForAnnounceTarget: true,
7071
},
7172
onboarding: slackOnboardingAdapter,
7273
pairing: {

0 commit comments

Comments
 (0)