fix: include original filename in attachment prompt text

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.
This commit is contained in:
Eyejoker
2026-03-30 18:41:36 +09:00
parent ad34062dbc
commit 0bcfa72b6b

View File

@@ -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 },