- Ported advanced error detection (`is_auth_error`, `is_transient_error`, `is_network_error`) from the daemon script to accurately classify exceptions. - Implemented `get_rate_limit_wait_seconds` to intelligently parse HTTP rate-limit headers (`retry-after`, `ratelimit-reset`) instead of relying on static backoffs. - Increased default login retry attempts to 5, with jitter and bounded delays. - Updated `login_with_backoff` to fail fast on invalid credentials while gracefully handling transient network issues and rate limits.
14 KiB
14 KiB