opencode
opencode copied to clipboard
High CPU Utilization Due To Repeated Git Process Invocations
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
Operating System
Darwin 25.2.0 arm64 arm
Terminal
Ghostty