Skip to content

fix: add 'usage limit' to rate limit detection patterns#687

Merged
steipete merged 2 commits intoopenclaw:mainfrom
evalexpr:fix/usage-limit-fallback
Jan 10, 2026
Merged

fix: add 'usage limit' to rate limit detection patterns#687
steipete merged 2 commits intoopenclaw:mainfrom
evalexpr:fix/usage-limit-fallback

Conversation

@evalexpr
Copy link
Contributor

Summary

  • Add "usage limit" to the rate limit error detection patterns in ERROR_PATTERNS.rateLimit
  • OpenAI/ChatGPT returns "You have hit your ChatGPT usage limit (plus plan)" when users exceed their plan quota
  • This error wasn't being recognized as a rate limit, so fallback to alternative models wasn't triggering

Test plan

  • Added test case in pi-embedded-helpers.test.ts for the new pattern
  • All 50 tests in pi-embedded-helpers.test.ts pass

🤖 Generated with Claude Code

@evalexpr evalexpr force-pushed the fix/usage-limit-fallback branch from a765e41 to 560f684 Compare January 10, 2026 21:58
@steipete steipete self-assigned this Jan 10, 2026
@evalexpr
Copy link
Contributor Author

Looks like CI issues are unrelated (?) and exist on main too.

evalexpr and others added 2 commits January 10, 2026 23:11
OpenAI/ChatGPT returns "You have hit your ChatGPT usage limit (plus plan)"
when users exceed their plan quota. This error wasn't being recognized as a
rate limit, so fallback to alternative models wasn't triggering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@steipete steipete force-pushed the fix/usage-limit-fallback branch from 560f684 to 5a47d6f Compare January 10, 2026 22:13
@steipete steipete merged commit 4eb6aec into openclaw:main Jan 10, 2026
7 of 20 checks passed
@steipete
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: 5a47d6f
  • Merge commit: 4eb6aec

Thanks @evalexpr!

@evalexpr evalexpr deleted the fix/usage-limit-fallback branch January 10, 2026 22:14
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
fix: add 'usage limit' to rate limit detection patterns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants