fix: adjust resolve parts so that when messages with multiple @ references occur, the tool calls are properly ordered

This commit is contained in:
Aiden Cline
2026-01-30 15:55:00 -06:00
committed by Dax Raad
parent cb6ec0a564
commit 612b656d36
5 changed files with 60 additions and 33 deletions

View File

@@ -6,7 +6,6 @@ import { LSP } from "../lsp"
import { FileTime } from "../file/time"
import DESCRIPTION from "./read.txt"
import { Instance } from "../project/instance"
import { Identifier } from "../id/id"
import { assertExternalDirectory } from "./external-directory"
import { InstructionPrompt } from "../session/instruction"
@@ -79,9 +78,6 @@ export const ReadTool = Tool.define("read", {
},
attachments: [
{
id: Identifier.ascending("part"),
sessionID: ctx.sessionID,
messageID: ctx.messageID,
type: "file",
mime,
url: `data:${mime};base64,${Buffer.from(await file.bytes()).toString("base64")}`,