opencode icon indicating copy to clipboard operation
opencode copied to clipboard

High CPU Utilization Due To Repeated Git Process Invocations

Open markovejnovic opened this issue 23 hours ago • 1 comments

Description

Opencode appears to be invoking git in a loop which has caused very high CPU usage. The program was sitting idle waiting for further input on my end.

It seems it's making a bunch of git show calls -- each of which individually seems really cheap (as per btop reporting they only use 0.0% CPU) and ephemeral but it appears that many thousands of git calls were made.

I am, indeed, working in a monorepo, fwiw.

If the bug happens again, I'll try to get a lower bound for how many git show calls were made.

Plugins

No response

OpenCode version

1.15

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Darwin 25.2.0 arm64 arm

Terminal

Ghostty

markovejnovic avatar Jan 17 '26 09:01 markovejnovic