Skip to content

The open source coding agent.

TypeScript

ignore: read deleted files

Dax Raad9e75e3ed18c6
diff --git a/packages/opencode/src/file/index.ts b/packages/opencode/src/file/index.ts
index 9e269b43d23..d9e61fa5d8e 100644
--- a/packages/opencode/src/file/index.ts
+++ b/packages/opencode/src/file/index.ts
@@ -102,6 +102,7 @@ export namespace File {
const full = path.join(app.path.cwd, file)
const content = await Bun.file(full)
.text()
+ .catch(() => "")
.then((x) => x.trim())
if (app.git) {
const rel = path.relative(app.path.root, full)