Skip to content

High CPU usage in desktop app when terminal panel is open #56105

Open

Description

@balazs-endresz

Description

In version 2.0.31 the desktop app adds 20-30% extra CPU load on all cores (i5-8250U) when the terminal panel is open. I think when I tried 1.x it used to pin one core, so this is better, but still enough to continuously spin up the laptop fan.

Plugins

none

OpenCode version

2.0.31

Steps to reproduce

  1. open terminal panel
  2. observe high CPU usage

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

No response

Activity

  1. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    Thanks for the report! I couldn't reproduce this here, because it needs the desktop app running on a real Linux desktop and our sandbox has no display or GPU. A maintainer with a Linux desktop will need to look into it.

    If you get a chance, these would help:

    • Whether the extra CPU stays the same when the terminal is focused versus unfocused (for example, click into the chat input), since the blinking cursor may matter.
    • In top or htop, which OpenCode process uses the CPU: the renderer, the GPU process or the opencode-cli service.

    These related issues report similar desktop CPU problems, though none of them involves the terminal panel or Linux:

  2. balazs-endresz commented on Oct 16, 2026

    @balazs-endresz
    Author

    When the terminal panel is open it's ai.opencode.desktop and app.asar that both have much increased CPU usage, both about the same amount. And even xorg uses 2-3x more CPU then (still not a lot in comparison).

    It doesn't make a difference whether the opencode app is either in the foreground or the terminal is focused.

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

Metadata

Metadata

Assignees

No one assigned

    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