merge upstream main

This commit is contained in:
song
2026-02-03 16:21:58 +08:00
7 changed files with 150 additions and 19 deletions

View File

@@ -1952,7 +1952,11 @@ func sleepAntigravityBackoffWithContext(ctx context.Context, attempt int) bool {
func antigravityUseScopeRateLimit() bool {
v := strings.ToLower(strings.TrimSpace(os.Getenv(antigravityScopeRateLimitEnv)))
return v == "1" || v == "true" || v == "yes" || v == "on"
// 默认开启按配额域限流,只有明确设置为禁用值时才关闭
if v == "0" || v == "false" || v == "no" || v == "off" {
return false
}
return true
}
func antigravityHasAccountSwitch(ctx context.Context) bool {