mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 18:17:26 +00:00
Proactively refreshes OAuth tokens before expiry to prevent "context canceled" errors during long requests. - Add TokenRefreshWorker with configurable interval/retries - Add token-expiry-checker for multi-provider token inspection - Add provider-refreshers abstraction (Gemini implemented) - Integrate with service-manager lifecycle (start/stop) - Add config schema in unified-config-types - Include edge case protections: - expiry_date/refresh_token validation - File size limits (1MB) - Process exit handlers - Timeout wrapper - Config sanitization - Unrecoverable error detection