This commit is contained in:
mbennett37 2026-01-29 21:53:31 -05:00 committed by GitHub
commit 253a408e8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -437,7 +437,10 @@ export async function prepareSlackMessage(params: {
});
}
const slackTo = isDirectMessage ? `user:${message.user}` : `channel:${message.channel}`;
// Always use channel ID for replies - user:X triggers conversations.open which
// creates a bot↔user DM (App Home) instead of posting to the original channel.
// This broke @mentions in DMs between two other users. See #2412.
const slackTo = `channel:${message.channel}`;
const channelDescription = [channelInfo?.topic, channelInfo?.purpose]
.map((entry) => entry?.trim())