v3.10.12: sticky endpoint, parallel discovery, anti-stall, smart errors, missing headers

This commit is contained in:
Roman | RyzenAdvanced
2026-05-26 00:57:16 +04:00
Unverified
parent fced1653f2
commit 0896ba5e55
6 changed files with 245 additions and 36 deletions

View File

@@ -1,5 +1,27 @@
# Changelog
## v3.10.12 (2026-05-26)
**Sticky Endpoint, Parallel Discovery, Smart Errors, Anti-Stall**
### New Features
- **Sticky endpoint caching**: remembers which endpoint last succeeded, reuses it on every subsequent request (zero probe overhead)
- **Parallel endpoint discovery**: probes ALL endpoints simultaneously, first 200 wins and is cached
- **Automatic re-probe**: if the sticky endpoint fails (429/502/503), cache is cleared and all endpoints are probed in parallel again
- **Endpoint order swapped**: `daily-cloudcode-pa` tried first (matches agy-core behavior), `cloudcode-pa` as fallback
- **Anti-stall engine**: kills stale proxy processes and clears `__pycache__` on every new session start
- **Smart error classification**: distinguishes `quota_exhausted` vs `capacity_exhausted` vs `account_banned` vs `validation_required` vs `service_disabled` vs `auth_permanent`
- **Rate limit reset time parsing**: extracts cooldown from error body (`quotaResetDelay`, `Resets in ~1h27m`, etc.) for accurate cooldown
- **Missing Antigravity headers**: `X-Client-Name`, `X-Client-Version`, `x-goog-api-client`, platform-aware `User-Agent`
- **Session ID**: added `sessionId` to request wrapper for proper session tracking
### How It Works
1. First request: parallel probe → daily-cloudcode-pa and cloudcode-pa hit simultaneously → first 200 wins, cached
2. All subsequent requests: goes straight to cached endpoint (no probing)
3. If cached endpoint returns 429: cache cleared, parallel re-probe
4. If cached endpoint returns 400/403: error returned to client immediately
5. On startup: anti-stall kills all stale translate-proxy processes, clears pycache
## v3.10.11 (2026-05-26)
**Hybrid Endpoint Fallback — Redundant Antigravity Endpoints**