Skip to content

[BUG] Usage limit reached on new MAX models #50

@paflopes

Description

@paflopes

Bug Description
Agent stops after receiving a "Usage limit reached [404]" error from OpenAI. Also, I'm getting this error even though I have >90% of usage remaining.

And finally, the error response is being added to the opencode input box, which messes it up

Image

Steps to Reproduce

  1. Select gpt-5.1-codex-max-high model
  2. Use it for a while

Expected Behavior
I think this is some kind of rate-limiting, so the expected behavior is to either retry it after a while, or just send the error as a message, and not print it in the input box.

Actual Behavior
The plugin does not retry.

Environment

  • opencode version: 1.0.119
  • Plugin version: 4.0.2
  • Operating System: MacOS
  • Node.js version: 24.9.0

Compliance Checklist
Please confirm:

  • I'm using this plugin for personal development only
  • I have an active ChatGPT Plus/Pro subscription
  • This issue is not related to attempting commercial use or TOS violations
  • I've reviewed the FAQ and Troubleshooting sections

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions