Description
Snapshot.patch() runs git diff --name-only with no file count cap. When a worktree has unignored test artifacts (e.g. .test-tmp with 99K+ files from test runs), the diff returns all file paths — stored as a 17 MB JSON patch part in the DB and sent to the browser.
Steps to reproduce
- Run tests in a project that creates temp files not covered by .gitignore
- Start a session with snapshot enabled
- Observe patch parts with thousands of file entries
OpenCode version
latest (dev)
OS
Linux
Description
Snapshot.patch()runsgit diff --name-onlywith no file count cap. When a worktree has unignored test artifacts (e.g..test-tmpwith 99K+ files from test runs), the diff returns all file paths — stored as a 17 MB JSON patch part in the DB and sent to the browser.Steps to reproduce
OpenCode version
latest (dev)
OS
Linux