Skip to content

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

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

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