fix: ensure parallel tool calls dont double load AGENTS.md

This commit is contained in:
Aiden Cline
2026-01-28 01:38:10 -05:00
parent d76e1448f0
commit 558590712d
4 changed files with 38 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ export const ReadTool = Tool.define("read", {
throw new Error(`File not found: ${filepath}`)
}
const instructions = await InstructionPrompt.resolve(ctx.messages, filepath)
const instructions = await InstructionPrompt.resolve(ctx.messages, filepath, ctx.messageID)
// Exclude SVG (XML-based) and vnd.fastbidsheet (.fbs extension, commonly FlatBuffers schema files)
const isImage =