anomalyco / anomalyco/opencode

High CPU usage while waiting for limit reset

Open
#40,649 2 comments 1 reaction 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 5, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.