Skip to content

OpenCode Desktop App is spending too much CPU power on animating progress indicators #34045

Description

@viktor-ferenczi

Description

Basic conversation is running. Waiting on super-slow Opus 4.8 to think up its answer. Yet, the CPU is burning in my notebook for no good reason.

Image

Since WebKitWebProcess is correlating in time for this kind of load, I suspect OpenCode spends a full CPU core animating a progress spinner (animated line at the top of the screen) and the shade of colors on the conversation's icon.

That's the problem with integrating a browser into a desktop app, then updating it continuously. It renders content from a DOM and it is expensive. Please replace it with once a second progress indication in a cheaper way, then OpenCode Desktop's CPU using should be fixed. At least this aspect of it.

Plugins

None

OpenCode version

v1.14.29

Steps to reproduce

  1. Run any conversation with a slow frontier model, which thinks a lot.
  2. Watch the process CPU loads while the conversation is getting processed.
  3. Observe the progress indication on screen.
  4. Log/measure the embedded browser update frequency and make your conclusion.

Screenshot and/or share link

Image

Operating System

Linux Min 22.3 (Zara) (roughly Ubuntu 24.04)

Terminal

None, desktop app

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions