Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
merge: 同步 main 并解决计费页面冲突
liugaowei790203ee6d18
diff --cc apps/desktop/src/renderer/features/billing/BillingPage.tsxindex 126d300b9f,adff73ee94..9a4ed0723b--- a/apps/desktop/src/renderer/features/billing/BillingPage.tsx+++ b/apps/desktop/src/renderer/features/billing/BillingPage.tsx@@@ -19,9 -19,9 +19,10 @@@ import { extractIpcError } from '@/utilimport type {BillingCatalog,BillingCatalogOffer,+ BillingCatalogOfferUnavailableReason,BillingCatalogProduct,BillingPendingPlanChange,+ BillingPaymentOrder,BillingPurchaseOption,BillingSubscription,} from '../../../shared/billing';@@@ -301,15 -305,8 +326,15 @@@ export function BillingSettingsSection([loadBillingState, loadSubscription],);const planChange = usePlanChange(accountId, handlePlanChangeSettled);+ const hasRecoverableFailedIntent =+ !checkout.state.open &&+ checkout.state.phase === 'FAILED' &&+ checkout.state.error &&+ checkout.state.intent !== null &&+ checkout.state.order === null &&+ checkout.state.subscription === null;- const offers = useMemo<PurchasableOffer[]>(() => {+ const offers = useMemo<CatalogOfferEntry[]>(() => {if (!catalog) return [];return catalog.products.flatMap((product) =>diff --cc apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 06e1ca8f40,2e33bf760c..84d1e67974--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@@ -6928,8 -6975,8 +6975,7 @@@"sidebar": "Credits & plans","settings": {"title": "Usage and billing",- "subtitle": "Review your current subscription or purchase server-provided plans and credits.",- "loading": "Loading subscription status…",+ "subtitle": "Review your available credits and current plan, or buy more credits as needed.",- "loading": "Loading subscription status…","subscriptionCard": {"title": "Current plan","empty": "No active subscription",diff --cc apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex 8947096602,401b781aa5..edc0098fb8--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@@ -6917,8 -6964,8 +6964,7 @@@"sidebar": "クレジットとプラン","settings": {"title": "使用状況と請求",- "subtitle": "現在のサブスクリプションを確認し、サーバーから提供されるプランやクレジットを購入できます。",- "loading": "サブスクリプションの状態を取得中…",+ "subtitle": "利用可能なクレジットと現在のプランを確認し、必要に応じてクレジットを購入できます。",- "loading": "サブスクリプションの状態を取得中…","subscriptionCard": {"title": "現在のプラン","empty": "有効なサブスクリプションはありません",diff --cc apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex e9d3542bce,db206e20cf..f281401963--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@@ -6917,8 -6964,8 +6964,7 @@@"sidebar": "크레딧 및 요금제","settings": {"title": "사용량 및 결제",- "subtitle": "현재 구독을 확인하거나 서버에서 제공하는 구독 상품과 크레딧을 구매할 수 있습니다.",- "loading": "구독 상태를 불러오는 중…",+ "subtitle": "사용 가능한 크레딧과 현재 요금제를 확인하거나 필요할 때 크레딧을 구매할 수 있습니다.",- "loading": "구독 상태를 불러오는 중…","subscriptionCard": {"title": "현재 요금제","empty": "활성 구독이 없습니다",diff --cc apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 1c638a26ae,0db4520e37..d74d5abb7c--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@@ -6917,8 -6964,8 +6964,7 @@@"sidebar": "点数与订阅","settings": {"title": "使用情况和计费",- "subtitle": "查看当前订阅,或按需购买由服务端提供的订阅套餐和点数。",- "loading": "正在获取订阅状态…",+ "subtitle": "查看可用额度与当前套餐,或按需购买点数。",- "loading": "正在获取订阅状态…","subscriptionCard": {"title": "当前套餐","empty": "当前没有生效中的订阅",