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:
@@ -281,7 +281,8 @@ export class DiscordChannel implements Channel {
|
|||||||
const label = contentType.startsWith('image/')
|
const label = contentType.startsWith('image/')
|
||||||
? 'Image'
|
? 'Image'
|
||||||
: 'Audio';
|
: 'Audio';
|
||||||
return `[${label}: ${filePath}]`;
|
const origName = att.name || 'file';
|
||||||
|
return `[${label}: ${origName} → ${filePath}]`;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(
|
logger.error(
|
||||||
{ err, file: att.name },
|
{ err, file: att.name },
|
||||||
|
|||||||
Reference in New Issue
Block a user