The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix crypto payment UX and disable upgrades during plan load\n\nWhen crypto is selected, Coinbase charges annually regardless of the\ndisplayed interval. Auto-switch billingInterval to 'annual' on crypto\nselection so the price shown matches the charge created.\n\nBlock upgrade buttons (upgradesDisabled) while getCurrentPlan is in\nflight so an existing paid subscriber is not offered a re-upgrade at\nthe 'FREE' default before the real tier loads.\n
shanuaa3c8758a070
diff --git a/app/src/components/settings/panels/BillingPanel.tsx b/app/src/components/settings/panels/BillingPanel.tsxindex 7d2ab16657..711647df82 100644--- a/app/src/components/settings/panels/BillingPanel.tsx+++ b/app/src/components/settings/panels/BillingPanel.tsx@@ -21,15 +21,22 @@ const BillingPanel = () => {const [isPurchasing, setIsPurchasing] = useState(false);const [purchasingTier, setPurchasingTier] = useState<PlanTier | null>(null);const [error, setError] = useState<string | null>(null);+ const [planLoading, setPlanLoading] = useState(true);const paymentConfirmed = false;useEffect(() => {billingApi.getCurrentPlan().then(data => setCurrentTier(data.plan))- .catch(err => setError(err instanceof Error ? err.message : String(err)));+ .catch(err => setError(err instanceof Error ? err.message : String(err)))+ .finally(() => setPlanLoading(false));}, []);+ const handleSetPaymentMethod = (method: 'card' | 'crypto') => {+ setPaymentMethod(method);+ if (method === 'crypto') setBillingInterval('annual');+ };+const handleUpgrade = async (tier: PlanTier): Promise<void> => {setError(null);setIsPurchasing(true);@@ -60,10 +67,11 @@ const BillingPanel = () => {billingInterval={billingInterval}setBillingInterval={setBillingInterval}paymentMethod={paymentMethod}- setPaymentMethod={setPaymentMethod}+ setPaymentMethod={handleSetPaymentMethod}isPurchasing={isPurchasing}purchasingTier={purchasingTier}paymentConfirmed={paymentConfirmed}+ upgradesDisabled={planLoading}onUpgrade={handleUpgrade}/>diff --git a/app/src/components/settings/panels/billing/SubscriptionPlans.tsx b/app/src/components/settings/panels/billing/SubscriptionPlans.tsxindex 2838c811e9..bcf273b82a 100644--- a/app/src/components/settings/panels/billing/SubscriptionPlans.tsx+++ b/app/src/components/settings/panels/billing/SubscriptionPlans.tsx@@ -17,6 +17,7 @@ interface SubscriptionPlansProps {isPurchasing: boolean;purchasingTier: PlanTier | null;paymentConfirmed: boolean;+ upgradesDisabled?: boolean;onUpgrade: (tier: PlanTier) => void;}@@ -29,6 +30,7 @@ const SubscriptionPlans = ({isPurchasing,purchasingTier,paymentConfirmed,+ upgradesDisabled = false,onUpgrade,}: SubscriptionPlansProps) => {const { t } = useT();@@ -228,7 +230,7 @@ const SubscriptionPlans = ({size="sm"className="rounded-full"onClick={() => onUpgrade(plan.tier)}- disabled={isPurchasing}>+ disabled={isPurchasing || upgradesDisabled}>{isThisPurchasing? t('settings.billing.subscription.waiting'): t('settings.billing.subscription.upgrade')}