Usage Limit Interrupts Workflow

Resolved 💬 6 comments Opened Sep 17, 2025 by REtoolsx Closed Oct 1, 2025

What version of Codex is running?

visual stuido code extension 0.5.11

Which model were you using?

gpt-5-codex

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

This issue occurs when GPT reaches its usage limits while continuing its workflow. More specifically, if the limit is exceeded during a patch or code modification, GPT may leave faulty code fragments in different parts of the project.

What is the expected behavior?

Usage limits should not interrupt GPT while it continues its workflow. The limit check should only occur when the user submits a new request. This way, edits to the project will not be abruptly stopped, and potential errors can be avoided.

What do you see instead?

When GPT runs in automatic mode, hitting the usage limit interrupts the process mid-function, causing the operation to end up incomplete, partial, or erroneous.

Additional information

_No response_

View original on GitHub ↗

6 Comments

wbdb · 11 months ago

I agree with you, and there have been several suggestions here for some time now, such as an API fallback, etc.

  1. https://github.com/openai/codex/issues/2992 (upvote here)
  2. https://github.com/openai/codex/issues/3551
  3. https://github.com/openai/codex/issues/2478
jacko555 · 11 months ago

Same issue or similar.

I have it connect to openai account on pro.

But i get this issue stream disconnected before completion: Your input exceeds the context window of this model. Please adjust your input and try again..

Then doesn't let me continue working within chat.

baran312 · 11 months ago

stream disconnected before completion: Your input exceeds the context window of this model. Please adjust your input and try again

jacko555 · 11 months ago

Its likely because the addon in sidebar forgets to compact conversion like what cursor does. I haven't used terminal too much yet but i assume it auto compacts like cc?

wbdb · 11 months ago

@jacko555 I mean, with gpt-5, it did compact automatically. With gpt-5-codex, I haven't experienced that in the CLI even with < 30% context.

Edit: checked the code no default auto compact actually. But can set via config.toml.

jacko555 · 11 months ago

I think its just in the chat add on them in ide