Skip to content

High CPU Utilization Due To Repeated Git Process Invocations #9059

Closed

Description

@markovejnovic

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

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Jan 17, 2026
  2. github-actions commented on Jan 17, 2026

    @github-actions
    Contributor

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

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

  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  4. artur-matkowski commented on Mar 25, 2026

    @artur-matkowski

    Same behaviour here, version 1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions