Files
CLIProxyAPI/internal/runtime/executor
Luis Pater acb56c6cba fix(antigravity): apply Host, custom auth headers, and TOS_VIOLATION handling in credits query
- Set httpReq.Host from the resolved loadCodeAssist base URL and apply static credential-scoped header:* attributes without reading pooled caller Gin contexts or session IDs.
- Invoke applyAntigravityTOSState on bounded 403 responses in updateAntigravityCreditsBalanceForTask while reusing task/epoch and context cancellation guards so superseded refreshes cannot arm pool-wide TOS pauses.
- Add race-tested regression tests covering Host resolution and overrides, detached background header safety, and active versus superseded/canceled 403 TOS_VIOLATION handling.

Closes: #7820
2026-11-22 02:08:50 +08:00
..