Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

Reduce Claude subscription cooldown to 10 minutes

Dane Schneiderccc1f8d56549
diff --git a/app/shared/org_user_config.go b/app/shared/org_user_config.go
index 30c23a54..70e78c88 100644
--- a/app/shared/org_user_config.go
+++ b/app/shared/org_user_config.go
@@ -7,7 +7,9 @@ import (
"time"
)
-const claudeSubscriptionCooldownDuration = 1 * time.Hour
+// Claude pro and max use time-based cooldowns (4 hours, 8 hours, etc.) after reaching quota
+// However, we still use a relatively short cooldown so that we find out fairly quickly if the quota has reset
+const claudeSubscriptionCooldownDuration = 10 * time.Minute
type OrgUserConfig struct {
PromptedClaudeMax bool `json:"promptedClaudeMax"`