kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

OpenAI "usage limit exceeded" error

Open surya-gorla opened this issue 9 months ago • 5 comments

Plugin Type

Kilo Code CLI

App Version

1.0.22

Description

KiloCode CLI caches/persists an OpenAI "usage limit exceeded" error state that never clears, even after the OpenAI usage limit has reset on the server side.

Expected Behavior: KiloCode CLI should re-check with OpenAI's API after the limit resets, not persist the error state locally.

Actual Behavior: KiloCode CLI continues to display the usage limit error indefinitely (tested after 12+ hours), even when:

  • ChatGPT.com works correctly with the same account
  • Other CLI tools (OpenCode) work correctly with the same OpenAI login

Additional Context:

  • I am NOT using the Kilo free gateway, I logged in directly with my OpenAI account
  • The issue persisted across multiple attempts over 12+ hours

Reproduction steps

  1. Log into KiloCode CLI using OpenAI account
  2. Use OpenAI models until hitting the usage limit
  3. Wait for the usage limit to reset
  4. Verify the limit has reset by testing on chatgpt.com
  5. Try using KiloCode CLI again - it continues to show: The usage limit has exceeded. retrying in 1s...

Provider

OpenAI

Model

Every GPT model

System Information

OS: Windows 11 Kilcode CLI version: 1.0.22

surya-gorla avatar Feb 17 '26 07:02 surya-gorla

@surya-gorla this is when using the ChatGPT provider, correct? Not the Kilo Gateway?

emilieschario avatar Feb 17 '26 14:02 emilieschario

@emilieschario Yes, I have been using OpenAI provider from the very start. Not Kilo Gateway. This bug is still in my Kilocode. If needed I can submit a simple screenrecording of the bug.

surya-gorla avatar Feb 17 '26 19:02 surya-gorla

The same problem

SlimRG avatar Mar 23 '26 21:03 SlimRG

I see the same thing on Gemini and Cerebras. Once it gets a retelimiting error, looks like it gets fixated on that, and can't forget about it?..

dark-penguin avatar Jun 06 '26 12:06 dark-penguin

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

github-actions[bot] avatar Aug 06 '26 06:08 github-actions[bot]