Skip to content

The open source coding agent.

TypeScript

do not snapshot nongit projects for now

Dax Raad733c9903ec61
diff --git a/packages/opencode/src/snapshot/index.ts b/packages/opencode/src/snapshot/index.ts
index b23de6e079a..f98909e9402 100644
--- a/packages/opencode/src/snapshot/index.ts
+++ b/packages/opencode/src/snapshot/index.ts
@@ -14,6 +14,7 @@ export namespace Snapshot {
// not a git repo, check if too big to snapshot
if (!app.git) {
+ return
const files = await Ripgrep.files({
cwd: app.path.cwd,
limit: 1000,