From eb1d891d405b4d7bcc10802e1cd52d2b1f7defc4 Mon Sep 17 00:00:00 2001 From: Drew Date: Sun, 9 Aug 2026 04:34:31 -0400 Subject: [PATCH] Update snapshot documentation for clarity Clarified that snapshots are only recorded in Git projects and added information about their storage and pruning. --- packages/web/src/content/docs/config.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web/src/content/docs/config.mdx b/packages/web/src/content/docs/config.mdx index 318f013b4119..29d2042fde0e 100644 --- a/packages/web/src/content/docs/config.mdx +++ b/packages/web/src/content/docs/config.mdx @@ -631,6 +631,8 @@ OpenCode uses snapshots to track file changes during agent operations, enabling For large repositories or projects with many submodules, the snapshot system can cause slow indexing and significant disk usage as it tracks all changes using an internal git repository. You can disable snapshots using the `snapshot` option. +Snapshots are enabled by default, but are only recorded in projects that are Git repositories. In non-Git projects [ "/undo", "/redo" ] can't revert file changes. Snapshots are stored in an internal git repo and are pruned after 7 days. + ```json title="opencode.json" { "$schema": "https://opencode.ai/config.json",