fix: add token refresh cooldown to prevent EGW00133 cascading failures (issue #54) #55
Reference in New Issue
Block a user
Delete Branch "feature/issue-54-token-refresh-cooldown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Problem
When token refresh fails with
EGW00133(1/minute limit), every subsequent API call triggers another refresh attempt, causing:Solution
Enforce cooldown period between refresh attempts:
Changes
Before/After
Before:
After:
Test Results
test_token_refresh_cooldown_prevents_rapid_retries- Verifies cooldown blocks rapid retriestest_token_refresh_allowed_after_cooldown- Verifies refresh works after cooldown expiresImplementation Details
Benefits
Closes #54
🤖 Generated with Claude Code