Git snapshots take minutes to initialize on a large repo #1126

Closed
opened 2026-02-16 17:29:33 -05:00 by yindo · 3 comments
Owner

Originally created by @cvzakharchenko on GitHub (Aug 6, 2025).

Originally assigned to: @thdxr on GitHub.

INFO  2025-08-06T06:28:59 +109ms service=snapshot initialized
INFO  2025-08-06T06:30:06 +66070ms service=server duration=95601 response
INFO  2025-08-06T06:38:58 +532681ms service=session session=ses_781ee7d82fferKai0d02nsrevB type=text-start part

Please implement an option to disable the snapshots. If the repo is large, the snapshots logic makes opencode unresponsive for many minutes, until the snapshot is initialized. If I switch checkouts often, it's unbearable to wait that long each time.

Originally created by @cvzakharchenko on GitHub (Aug 6, 2025). Originally assigned to: @thdxr on GitHub. ``` INFO 2025-08-06T06:28:59 +109ms service=snapshot initialized INFO 2025-08-06T06:30:06 +66070ms service=server duration=95601 response INFO 2025-08-06T06:38:58 +532681ms service=session session=ses_781ee7d82fferKai0d02nsrevB type=text-start part ``` Please implement an option to disable the snapshots. If the repo is large, the snapshots logic makes opencode unresponsive for many minutes, until the snapshot is initialized. If I switch checkouts often, it's unbearable to wait that long each time.
yindo closed this issue 2026-02-16 17:29:33 -05:00
Author
Owner

@thdxr commented on GitHub (Aug 6, 2025):

woah that's bad - i'll add an option to disable

@thdxr commented on GitHub (Aug 6, 2025): woah that's bad - i'll add an option to disable
Author
Owner

@thdxr commented on GitHub (Aug 6, 2025):

added snapshot: false in config in 0.3.132

@thdxr commented on GitHub (Aug 6, 2025): added `snapshot: false` in config in 0.3.132
Author
Owner

@cvzakharchenko commented on GitHub (Aug 8, 2025):

Thank you! Tried it, it's all good now.

@cvzakharchenko commented on GitHub (Aug 8, 2025): Thank you! Tried it, it's all good now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1126