Skip to content

Opencode Web - Terminal uses 100% CPU #13899

Closed

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

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    webRelates to opencode on web / desktop
    on Feb 16, 2026
  2. github-actions commented on Feb 16, 2026

    @github-actions
    Contributor

    Thanks for the detailed report! This is a great find with the performance profiler screenshots.

    For context, there's a related feature request #13817 that proposes configurable FPS rate limiting, which directly addresses this issue. The ability to limit refresh rate would be useful for scenarios like yours where constant 240 fps rendering is unnecessary and wastes battery/CPU on idle terminals.

  3. Arsalankhan315 commented on Feb 16, 2026

    @Arsalankhan315

    13899

  4. jmagder commented on Feb 16, 2026

    @jmagder
    Author

    PR is open that implements just that! #13901

  5. github-actions commented on Apr 22, 2026

    @github-actions
    Contributor

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

  6. jmagder commented on Apr 22, 2026

    @jmagder
    Author

    These are closing after 60 days? There is an open PR. 😅

  7. ahmad-rahimi commented on Jul 21, 2026

    @ahmad-rahimi

    i have the same problem too. but another interesting thing is that even opencode.ai website uses 100% cpu. Are they doing mining or something like that.

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 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