mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 14:30:29 +00:00
fix: add missing id/sessionID/messageID to MCP tool attachments (#14345)
This commit is contained in:
parent
8ad60b1ec2
commit
d2d7a37bca
1 changed files with 6 additions and 1 deletions
|
|
@ -906,7 +906,12 @@ export namespace SessionPrompt {
|
|||
title: "",
|
||||
metadata,
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue