Skip to content

High CPU usage while waiting for limit reset #40649

Closed as not planned
Closed as not planned

Description

@Fabian123333

Description

Using openAI Pro and similar services, the number or requests per time unit is limited. Afterwards, some retry mechanism will take place, trying to send the request again in increasing limits.

This process takes a lot of CPU resources (permanently >50% of a single core; ~40 cpu hours in 3 days), although nothing is done in the meanwhile except for updating the status line:

1328646 12.0 Sl+  opencode
1328665  4.8 Rl+  Worker
1328654  2.3 Sl+  HeapHelper
1328653  2.3 Sl+  HeapHelper
1328652  2.3 Sl+  HeapHelper
1328651  2.3 Sl+  HeapHelper
1328650  2.3 Sl+  HeapHelper
1328649  2.3 Sl+  HeapHelper

Plugins

none

OpenCode version

1.18.13

Steps to reproduce

  1. Connect to a limited account like chatGPT Pro
  2. Exceed the limit
  3. Watch the CPU usage in top

Screenshot and/or share link

Image

Operating System

Arch Linux

Terminal

Yakuake

Activity

  1. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

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

    If your issue is specifically about CPU burning during the retry countdown (rather than a general regression), #17648 and #21960 are the closest matches.

  2. Fabian123333 commented on Aug 5, 2026

    @Fabian123333
    Author
    Image

    #13817 is similar, but not completely related. This is about the refresh rate of the RDP Session, it does not mention a high CPU rate of the other opencode processes. The suggested topics are after reading them carefully not really covering the case.

    I reopened the case, as a local low CPU load should be normal

  3. github-actions commented on Oct 6, 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.

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

Metadata

Metadata

Assignees

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