Skip to content

Opencode Web - Terminal uses 100% CPU #13899

@jmagder

Description

@jmagder

Description

I noticed on my Linux machine with its 240 fps monitor that chrome was using 100% CPU whenever a terminal was open. The terminal wasn't doing anything, it was just sitting there. This results in the CPU running at a higher power profile than necessary and wasting battery.

Plugins

None

OpenCode version

1.2.6

Steps to reproduce

  1. Visit open code in a browser
  2. Open a terminal (non mobile)
  3. Run btop or whatever tool you like to look at your CPU usage. Notice chromium is using 100%.
  4. Close the terminal, CPU usage goes down to a few percentage.

Screenshot and/or share link

Here is a view of the chrome browser profiler when the terminal is open. Notice the 100% cpu usage.

Image

Here is a view of the profiler on my own branch where I added a configuration and set the frame rate to 15 fps

Image

Operating System

Linux

Terminal

n/a

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates a performance issue or need for optimizationwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions