Running opencode causes a git diff that consumes all memory #1500

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

Originally created by @raiscan on GitHub (Aug 26, 2025).

Originally assigned to: @thdxr on GitHub.

When running the latest version of opencode on npm, a git diff runs in the background that consumes all memory on the machine and causes the kernel to kill opencode

Originally created by @raiscan on GitHub (Aug 26, 2025). Originally assigned to: @thdxr on GitHub. When running the latest version of opencode on npm, a git diff runs in the background that consumes all memory on the machine and causes the kernel to kill opencode
yindo closed this issue 2026-02-16 17:31:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 26, 2025):

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

  • #996: Large git operation triggered when starting opencode in home directory - describes the exact same issue where opencode triggers large git operations that consume substantial memory and resources

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

@github-actions[bot] commented on GitHub (Aug 26, 2025): This issue might be a duplicate of existing issues. Please check: - #996: Large git operation triggered when starting opencode in home directory - describes the exact same issue where opencode triggers large git operations that consume substantial memory and resources Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 26, 2025):

where are you running it? In a home dir? a large repo?

@rekram1-node commented on GitHub (Aug 26, 2025): where are you running it? In a home dir? a large repo?
Author
Owner

@raiscan commented on GitHub (Aug 26, 2025):

Just checked. There is a single metrics file that seems to have grown insanely large which is likely causing the git diff to consume all the memory.

I have ensured it's in .gitignore and removed it from the repo and the problem has stopped. Guess this isn't a problem with opencode so I'm closing..

@raiscan commented on GitHub (Aug 26, 2025): Just checked. There is a single metrics file that seems to have grown insanely large which is likely causing the git diff to consume all the memory. I have ensured it's in .gitignore and removed it from the repo and the problem has stopped. Guess this isn't a problem with opencode so I'm closing..
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1500