e643fc38 引入 pool_mode_retry_count 账号配置时,只覆盖了 OpenAI 族 handler 的内联重试循环;走 HandleFailoverError 的 Anthropic/ Antigravity/Gemini/通用转发路径仍硬编码同账号重试 3 次,配置不生效。 为 HandleFailoverError 增加 retryLimit 参数,由调用方传入 account.GetPoolModeRetryCount();未配置账号默认仍为 3 次,行为不变。
e643fc38
- Extract duplicated failover logic from gateway_handler.go (3 places) and gemini_v1beta_handler.go into shared failover_loop.go - Introduce FailoverState with HandleFailoverError and HandleSelectionExhausted - Move helper functions (needForceCacheBilling, sleepWithContext) into failover_loop.go - Add comprehensive unit tests (32+ test cases) - Delete redundant gateway_handler_single_account_retry_test.go