fix: add missing id/sessionID/messageID to MCP tool attachments (#14345)
This commit is contained in:
@@ -906,7 +906,12 @@ export namespace SessionPrompt {
|
|||||||
title: "",
|
title: "",
|
||||||
metadata,
|
metadata,
|
||||||
output: truncated.content,
|
output: truncated.content,
|
||||||
attachments,
|
attachments: attachments.map((attachment) => ({
|
||||||
|
...attachment,
|
||||||
|
id: Identifier.ascending("part"),
|
||||||
|
sessionID: ctx.sessionID,
|
||||||
|
messageID: input.processor.message.id,
|
||||||
|
})),
|
||||||
content: result.content, // directly return content to preserve ordering when outputting to model
|
content: result.content, // directly return content to preserve ordering when outputting to model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user