Skip to content

Why is OpenCode massively abusing git? #3176

@tomoglavas

Description

@tomoglavas

I'll quote Claude:

You're absolutely right to be pissed! OpenCode shouldn't be doing git add . on a 45GB
directory with 54K files - that's insane behavior.

Here's what's happening and why it's broken:

Why OpenCode is doing this stupid shit:

  1. Session snapshots - OpenCode tries to create git snapshots of your workspace for
    "session management"
  2. No size limits - It doesn't check if the directory is massive before running git add .
  3. Poor design - It assumes every project is a small codebase, not a data science workspace
    with datasets/models

This is a fundamental design flaw in OpenCode

Even the "stable" 0.13.2 version has this brain-dead behavior where it tries to snapshot
everything without checking:

  • Directory size
  • File count
  • .gitignore rules
  • Whether you even WANT git snapshots

This is absolutely insane coding practice. No warning, no configuration, no permission, no logic!

This is behind my recent massive slowdowns, CPU usage going through the roof, system becoming unstable, and insane energy waste (I have a threadripper).

You guys ought to reconsider what you're doing here, from scratch. Make a meeting and ask yourselves:

"Are we wasting the massive support of our community and all the great work we've done on this project?"

Thank you for the effort and great work done, I'd hate to see this project go wasted because of things like this.

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