Skip to content

Very slow session due to 98GB of git snapshots #3182

Closed
ariane-emory/opencode
#157

Description

@kanaka

I'm using opencode with sonnet 4.5 (aws bedrock) to make some relatively small changes to a Go program. I've sent it two prompts: one to create an AGENTS.md with guidance for future sessions, and a second to make two smallish changes to the main.go. The process has now been running for 2.5 hours. I looked at my AWS cloudwatch logs for Bedrock and I can see that there are 5-8 minutes between API requests. Then I remembered that I forgot to put a opencode.jsonc in this directory to disable git snapshots (yes, this has happened before). This isn't a particular big repo but it does download a lot of deps (about 1GB) for the go build. Seems like opencode's git snapshotting algorithm isn't very smart about avoiding generated binary files.

Adding an opencode.jsonc to deactivate git snapshots, removing the snapshot data, and restarting the session and the task completed in less than 60 seconds. So something is pessimal with how github snapshots are being handled.

Activity

  1. github-actions commented on Oct 14, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Collaborator

    @kanaka we are going to do some major optimizations around this soon, sorry about that

  3. taylorjonl commented on Feb 8, 2026

    @taylorjonl

    Do you know when these optimizations around this are going to happen? I am likely going to have to stop using opencode because it just keeps spawning git commands and consuming disk space in my repo. I tried disabling snapshot with this in my config:

    {
      "$schema": "https://opencode.ai/config.json",
      "snapshot": false
    }
    

    I put this in a file at the root of the repo and at my ~/.config/opencode/opencode.json, but it still just keeps spawning git. I can't even use my computer with opencode running.

  4. itlackey commented on Feb 10, 2026

    @itlackey

    Snapshots are filling my hard drive to 0% free space. Please add a free space check to the optimizations

  5. taylorjonl commented on Feb 10, 2026

    @taylorjonl

    I found out that you have to disable snapshots in the config, then you have to delete the snapshots folder cache that opencode has, or it just keeps doing the bad thing.

  6. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions