Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/web/src/content/docs/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading