anomalyco / anomalyco/opencode
High CPU usage while waiting for limit reset
Open
@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
- Connect to a limited account like chatGPT Pro
- Exceed the limit
- Watch the CPU usage in
top
Screenshot and/or share link
Operating System
Arch Linux
Terminal
Yakuake
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.