From 0bcfa72b6b57f28fb080bc5c823286dc79bcedf1 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Mon, 30 Mar 2026 18:41:36 +0900 Subject: [PATCH] fix: include original filename in attachment prompt text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agents receive `[Audio: original.wav → /path/to/saved.wav]` instead of just the path, so they know what file it is and where to find it. --- src/channels/discord.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/channels/discord.ts b/src/channels/discord.ts index 4e160d1..3294055 100644 --- a/src/channels/discord.ts +++ b/src/channels/discord.ts @@ -281,7 +281,8 @@ export class DiscordChannel implements Channel { const label = contentType.startsWith('image/') ? 'Image' : 'Audio'; - return `[${label}: ${filePath}]`; + const origName = att.name || 'file'; + return `[${label}: ${origName} → ${filePath}]`; } catch (err) { logger.error( { err, file: att.name },