diff --git a/packages/opencode/src/snapshot/index.ts b/packages/opencode/src/snapshot/index.ts index 4da9bc3ca864..881a3eaa5e16 100644 --- a/packages/opencode/src/snapshot/index.ts +++ b/packages/opencode/src/snapshot/index.ts @@ -188,8 +188,12 @@ const layer: Layer.Layer + Effect.logWarning("failed to ensure snapshot info dir", err) + )) + yield* fs.writeFileString(target, text ? `${text}\n` : "").pipe(Effect.catch((err) => + Effect.logWarning("failed to write snapshot excludes", err) + )) }) // Reuse the hashes for the git storage between the original repo and snapshot