diff --git a/packages/core/src/session/runner/llm.ts b/packages/core/src/session/runner/llm.ts index c125f07bcb..b98a2e0ef5 100644 --- a/packages/core/src/session/runner/llm.ts +++ b/packages/core/src/session/runner/llm.ts @@ -400,9 +400,11 @@ const layer = Layer.effect( const snapshot = yield* snapshots.capture() const files = startSnapshot && snapshot - ? yield* snapshots - .files({ from: startSnapshot, to: snapshot }) - .pipe(Effect.catch(() => Effect.succeed(undefined))) + ? startSnapshot === snapshot + ? [] + : yield* snapshots + .files({ from: startSnapshot, to: snapshot }) + .pipe(Effect.catch(() => Effect.succeed(undefined))) : undefined return { snapshot, files } })