From 63a46a85f641c4438375834c5e07ee559c4ba474 Mon Sep 17 00:00:00 2001 From: Shadow Date: Thu, 1 Jan 2026 23:30:03 -0600 Subject: [PATCH 1/2] feat: pass discord id to clawd so it can ping users --- src/discord/monitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/monitor.ts b/src/discord/monitor.ts index 880e0f8cc..68be47c0e 100644 --- a/src/discord/monitor.ts +++ b/src/discord/monitor.ts @@ -224,7 +224,7 @@ 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}]`; + combinedBody = `${combinedBody}\n[from: ${message.member ? `${message.member.displayName} - ${message.member.user.id}` : `${message.author.username} - ${message.author.id}`}]`; shouldClearHistory = true; } From 30b5955f22857af08b2651a5df616065e3a6c0e3 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 2 Jan 2026 11:26:09 +0100 Subject: [PATCH 2/2] fix(discord): add tag/id to from label --- CHANGELOG.md | 1 + src/discord/monitor.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5385b7c70..4b314ced8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,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). - Skills: switch imsg installer to brew tap formula. - Skills: gate macOS-only skills by OS and surface block reasons in the Skills UI. - Onboarding: show skill descriptions in the macOS setup flow and surface clearer Gateway/skills error messages. diff --git a/src/discord/monitor.ts b/src/discord/monitor.ts index 68be47c0e..42c459aae 100644 --- a/src/discord/monitor.ts +++ b/src/discord/monitor.ts @@ -224,7 +224,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 ? `${message.member.displayName} - ${message.member.user.id}` : `${message.author.username} - ${message.author.id}`}]`; + const name = message.author.tag; + const id = message.author.id; + combinedBody = `${combinedBody}\n[from: ${name} id:${id}]`; shouldClearHistory = true; }