opencode-agent[bot] 2 недель назад
Родитель
Сommit
d9b4535d64
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/opencode/src/acp/agent.ts

+ 1 - 1
packages/opencode/src/acp/agent.ts

@@ -229,7 +229,7 @@ export namespace ACP {
                 const filepath = typeof metadata["filepath"] === "string" ? metadata["filepath"] : ""
                 const diff = typeof metadata["diff"] === "string" ? metadata["diff"] : ""
                 const file = Bun.file(filepath)
-                const content = await file.exists() ? await file.text() : ""
+                const content = (await file.exists()) ? await file.text() : ""
                 const newContent = getNewContent(content, diff)
 
                 if (newContent) {