diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d5c765c6..541a99a78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ - Auto-reply: strip stray leading/trailing `HEARTBEAT_OK` from normal replies; drop short (≤ 30 chars) heartbeat acks. - Logging: trim provider prefix duplication in Discord/Signal/Telegram runtime log lines. - Discord: include recent guild context when replying to mentions and add `discord.historyLimit` to tune how many messages are captured. +- Discord: include author tag + id in group context `[from:]` lines for ping-ready replies (thanks @thewilloftheshadow). - Gateway: fix TypeScript build by aligning hook mapping `channel` types and removing a dead Group DM branch in Discord monitor. - Skills: switch imsg installer to brew tap formula. - Skills: gate macOS-only skills by OS and surface block reasons in the Skills UI. diff --git a/src/discord/monitor.ts b/src/discord/monitor.ts index 904e2755c..08b376597 100644 --- a/src/discord/monitor.ts +++ b/src/discord/monitor.ts @@ -301,7 +301,9 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) { .join("\n"); combinedBody = `[Chat messages since your last reply - for context]\n${historyText}\n\n[Current message - respond to this]\n${combinedBody}`; } - combinedBody = `${combinedBody}\n[from: ${message.member?.displayName ?? message.author.tag}]`; + const name = message.author.tag; + const id = message.author.id; + combinedBody = `${combinedBody}\n[from: ${name} id:${id}]`; shouldClearHistory = true; }