Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(ui): show submit errors inline with next steps (#23674)

YuTengjing415cc045c8f4
diff --git a/.agents/skills/ux/SKILL.md b/.agents/skills/ux/SKILL.md
index b54aecd16ef..d924cf7a87e 100644
--- a/.agents/skills/ux/SKILL.md
+++ b/.agents/skills/ux/SKILL.md
@@ -151,6 +151,7 @@ Use this scan to identify applicable checks, then read the linked module for its
- [ ] Dependent-fetch gates release on settled data, absence, or error; error/not-found branches remain reachable.
- [ ] Failed awaited writes release busy controls; autosave exposes saving, saved, and failed states with retry.
- [ ] Write localized, human-readable errors; keep internal IDs in structured inspection fields and lead with the remedy for deterministic failures.
+- [ ] Show submit failures of a form or dialog that stays open beside the field or submit button with the next step, not as a toast.
- [ ] Capability warnings are reactive and wait for resolved configuration; distinguish model choices from platform limitations.
**Grow — discoverability & progressive disclosure** ([grow.md](references/grow.md))
diff --git a/.agents/skills/ux/references/feedback.md b/.agents/skills/ux/references/feedback.md
index 27a9a90a37c..c82a9a6007c 100644
--- a/.agents/skills/ux/references/feedback.md
+++ b/.agents/skills/ux/references/feedback.md
@@ -521,3 +521,31 @@ of the smells above, and localize the _cause_ too where it maps to a known error
- [ ] No log / stack framing in the copy — drop `Execution failed:` / `Error:` / `[Module]` prefixes; state what happened as a plain clause. _(Meaningful)_
- [ ] The message doesn't repeat identity the surface's meta row already shows (task ref, agent name) — the body carries the _new_ info (what failed, why). _(Certainty)_
- [ ] Error framing is **localized** through i18n at the view; any server-assembled stored string is a clean English fallback (no id / no log prefix), and a known error _cause_ is localized too. _(Meaningful・Certainty)_
+
+## 4.6 Submit errors sit next to the action that caused them・Certainty・Meaningful
+
+A failure caused by submitting a form, dialog, or inline editor that **stays open** is shown
+**on that surface**: under the field the user must change, or next to the submit button
+when no single field is at fault. A corner toast is far from the action, disappears in
+seconds, and leaves the user re-reading the form to guess what to fix. Toasts stay right for
+outcomes with no open form: menu and row actions, background jobs, copy-to-clipboard.
+
+The message names the next step ("use a different email", "sign in instead", "check your
+network and try again"), not just the failure. Map known server codes to that copy; never
+show the raw server message, which is untranslated and often a bare code such as
+`BLOCKED_DOMAIN`. Clear the error when the user edits the related input or resubmits.
+
+With `@lobehub/ui/form`, put field errors through `form.setErrors({ email: message })`,
+which clears when the user edits that field; render other errors as
+`<Alert showIcon title={error} type="error" />` directly above the submit button.
+
+> ✅ Sign-up maps a deleted-account email to the email field, telling the user when it can be
+> reused or to pick another address now (`features/Auth/SignUp/resolveSignUpError.ts`).
+> ❌ Its prior form toasted "This email is still in the account deletion cooldown period" in
+> the bottom-right corner, away from the email field and with no way forward.
+
+**Checklist**
+
+- [ ] A submit failure on a form / dialog / inline editor that stays open renders on that surface (under the field to change, or beside the submit button), not as a toast. _(Certainty)_
+- [ ] The message names the next step, maps known server codes to localized copy, and never shows the raw server message. _(Meaningful)_
+- [ ] The inline error clears when the user edits the related input or resubmits. _(Certainty)_
diff --git a/locales/ar/auth.json b/locales/ar/auth.json
index d7eb965e0f9..e67a63759f5 100644
--- a/locales/ar/auth.json
+++ b/locales/ar/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "لم يكتمل التحقق. يرجى محاولة التحدي مرة أخرى.",
"betterAuth.captcha.title": "مطلوب التحقق الأمني",
"betterAuth.errors.confirmPasswordRequired": "يرجى تأكيد كلمة المرور",
- "betterAuth.errors.emailExists": "هذا البريد الإلكتروني مسجل بالفعل. يرجى تسجيل الدخول بدلاً من ذلك",
"betterAuth.errors.emailInvalid": "يرجى إدخال بريد إلكتروني أو اسم مستخدم صالح",
"betterAuth.errors.emailNotRegistered": "هذا البريد الإلكتروني أو اسم المستخدم غير مسجل",
"betterAuth.errors.emailNotVerified": "البريد الإلكتروني غير مفعل، يرجى تفعيله أولاً",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "يجب أن تتكون كلمة المرور من 8 أحرف على الأقل",
"betterAuth.errors.passwordMismatch": "كلمتا المرور غير متطابقتين",
"betterAuth.errors.passwordRequired": "يرجى إدخال كلمة المرور",
- "betterAuth.errors.usernameNotRegistered": "اسم المستخدم هذا غير مسجل",
"betterAuth.errors.usernameRequired": "يرجى إدخال اسم المستخدم",
"betterAuth.resetPassword.backToSignIn": "العودة لتسجيل الدخول",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "تأكيد كلمة المرور الجديدة",
"betterAuth.resetPassword.confirmPasswordRequired": "يرجى تأكيد كلمة المرور الجديدة",
"betterAuth.resetPassword.description": "يرجى إدخال كلمة المرور الجديدة",
- "betterAuth.resetPassword.error": "فشل في إعادة تعيين كلمة المرور، يرجى المحاولة مرة أخرى",
- "betterAuth.resetPassword.invalidToken": "رابط إعادة التعيين غير صالح أو منتهي الصلاحية",
"betterAuth.resetPassword.newPasswordPlaceholder": "أدخل كلمة المرور الجديدة",
"betterAuth.resetPassword.passwordMismatch": "كلمتا المرور غير متطابقتين",
"betterAuth.resetPassword.submit": "إعادة تعيين كلمة المرور",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "تسجيل الدخول",
"betterAuth.signin.error": "فشل تسجيل الدخول، يرجى التحقق من البريد الإلكتروني وكلمة المرور",
"betterAuth.signin.forgotPassword": "هل نسيت كلمة المرور؟",
- "betterAuth.signin.forgotPasswordError": "فشل في إرسال رابط إعادة تعيين كلمة المرور",
"betterAuth.signin.forgotPasswordSent": "تم إرسال رابط إعادة تعيين كلمة المرور، يرجى التحقق من بريدك الإلكتروني",
"betterAuth.signin.invalidReferralCodeContent": "رمز الإحالة \"{{code}}\" الذي استخدمته غير صالح أو منتهي الصلاحية. هل ترغب في المتابعة؟",
"betterAuth.signin.invalidReferralCodeTitle": "رمز إحالة غير صالح",
"betterAuth.signin.lastUsed": "آخر استخدام",
"betterAuth.signin.magicLinkButton": "إرسال رابط تسجيل الدخول",
- "betterAuth.signin.magicLinkError": "فشل في إرسال رابط تسجيل الدخول، يرجى المحاولة لاحقًا",
"betterAuth.signin.magicLinkSent": "تم إرسال رابط تسجيل الدخول، يرجى التحقق من بريدك الإلكتروني",
"betterAuth.signin.nextStep": "التالي",
"betterAuth.signin.noAccount": "ليس لديك حساب؟",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "انتهت صلاحية جلستك. قم بتسجيل الدخول مرة أخرى للمتابعة.",
"betterAuth.signin.setPassword": "قم بتعيين كلمة مرور",
"betterAuth.signin.signupLink": "سجّل الآن",
- "betterAuth.signin.socialError": "فشل تسجيل الدخول الاجتماعي، يرجى المحاولة مرة أخرى",
"betterAuth.signin.socialOnlyHint": "تم تسجيل هذا البريد الإلكتروني عبر حساب اجتماعي تابع لطرف ثالث. سجّل الدخول باستخدام ذلك المزود، أو",
"betterAuth.signin.ssoOnlyNoProviders": "تم تعطيل التسجيل عبر البريد الإلكتروني ولم يتم تكوين أي موفري تسجيل دخول موحد (SSO). يرجى التواصل مع المسؤول.",
"betterAuth.signin.submit": "تسجيل الدخول",
"betterAuth.signup.cardTitle": "إنشاء حساب {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "تأكيد كلمة المرور",
"betterAuth.signup.emailPlaceholder": "أدخل عنوان بريدك الإلكتروني",
- "betterAuth.signup.error": "فشل التسجيل، يرجى المحاولة مرة أخرى",
"betterAuth.signup.firstNamePlaceholder": "الاسم الأول",
"betterAuth.signup.hasAccount": "هل لديك حساب بالفعل؟",
"betterAuth.signup.invalidReferralCodeContent": "رمز الإحالة \"{{code}}\" الذي أدخلته غير صالح أو منتهي الصلاحية. هل ترغب في المتابعة؟",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "إذا لم يصلك البريد الإلكتروني، يرجى التحقق من مجلد الرسائل غير المرغوب فيها",
"betterAuth.verifyEmail.description": "تم إرسال رسالة تحقق إلى {{email}}",
"betterAuth.verifyEmail.resend.button": "إعادة إرسال رسالة التحقق",
- "betterAuth.verifyEmail.resend.error": "فشل الإرسال. يرجى المحاولة لاحقًا.",
- "betterAuth.verifyEmail.resend.noEmail": "عنوان البريد الإلكتروني مفقود",
"betterAuth.verifyEmail.resend.success": "تمت إعادة إرسال رسالة التحقق. يرجى التحقق من بريدك الوارد.",
"betterAuth.verifyEmail.title": "تحقق من بريدك الإلكتروني",
"date.prevMonth": "الشهر الماضي",
diff --git a/locales/ar/authError.json b/locales/ar/authError.json
index bc4199e4a2b..ac21686e5d2 100644
--- a/locales/ar/authError.json
+++ b/locales/ar/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "هذا الحساب مرتبط بالفعل بمستخدم آخر",
"codes.ACCOUNT_NOT_FOUND": "لم يتم العثور على الحساب",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "حساب بيانات الاعتماد غير موجود",
- "codes.DELETED_ACCOUNT_EMAIL": "هذا البريد الإلكتروني لا يزال في فترة التهدئة لحذف الحساب. يمكنك التسجيل مرة أخرى بعد 31 يومًا من اكتمال الحذف.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "هذا البريد الإلكتروني لا يزال في فترة التهدئة لحذف الحساب. يمكنك التسجيل مرة أخرى بعد حوالي {{count}} يوم.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "هذا البريد الإلكتروني لا يزال في فترة التهدئة لحذف الحساب. يمكنك التسجيل مرة أخرى بعد حوالي {{count}} أيام.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "لا يمكن تحديث البريد الإلكتروني لهذا الحساب",
- "codes.EMAIL_NOT_ALLOWED": "هذا البريد الإلكتروني غير مسموح به للتسجيل",
"codes.EMAIL_NOT_FOUND": "لا يوجد بريد إلكتروني مرتبط بهذا الحساب. يرجى التحقق مما إذا كان حسابك مرتبطًا ببريد إلكتروني.",
"codes.EMAIL_NOT_VERIFIED": "يرجى التحقق من بريدك الإلكتروني أولاً",
"codes.FAILED_TO_CREATE_SESSION": "فشل في إنشاء الجلسة",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "حدث خطأ غير متوقع، يرجى المحاولة مرة أخرى",
"codes.UNKNOWN": "حدث خطأ غير معروف، يرجى المحاولة مرة أخرى أو التواصل مع الدعم",
"codes.USER_ALREADY_EXISTS": "المستخدم موجود بالفعل",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "البريد الإلكتروني مستخدم بالفعل، يرجى تجربة بريد آخر",
"codes.USER_ALREADY_HAS_PASSWORD": "هذا الحساب يحتوي بالفعل على كلمة مرور",
"codes.USER_BANNED": "تم حظر هذا المستخدم",
"codes.USER_EMAIL_NOT_FOUND": "لم يتم العثور على البريد الإلكتروني",
diff --git a/locales/ar/chat.json b/locales/ar/chat.json
index e2418675496..28fb4e8322f 100644
--- a/locales/ar/chat.json
+++ b/locales/ar/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "يتوقف بمجرد أن يصل الإنفاق الإجمالي إلى هذا المبلغ؛ اتركه فارغًا لعدم وجود حد.",
"createGoal.costBudgetLabel": "ميزانية التكلفة",
"createGoal.costBudgetPlaceholder": "لا يوجد حد",
- "createGoal.createFailed": "فشل إنشاء الهدف",
"createGoal.criteriaHint": "راجع هذه المعايير وقم بتحريرها قبل بدء الهدف",
"createGoal.criteriaTitle": "معايير القبول",
"createGoal.criterionPlaceholder": "وصف نتيجة يمكن التحقق منها بوضوح",
@@ -366,7 +365,6 @@
"createModal.title": "ما الذي ينبغي أن يقوم به وكيلك؟",
"createTask.assignee": "المكلّف",
"createTask.collapse": "إخفاء الإدخال",
- "createTask.createFailed": "فشل في إنشاء المهمة",
"createTask.discardConfirm.cancel": "متابعة التحرير",
"createTask.discardConfirm.content": "سيتم فقدان العنوان والتعليمات والمرفقات التي أضفتها.",
"createTask.discardConfirm.ok": "تجاهل",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "منجز",
"goalProcess.nodeStatus.retired": "متوقف",
"goalProcess.nodeStatus.waiting": "في انتظار",
- "goalProcess.northStar.declare.failed": "فشل في إعلان المقياس",
"goalProcess.northStar.declare.keyLabel": "مفتاح المقياس",
"goalProcess.northStar.declare.keyPlaceholder": "مثل المتابعين / security.open_issues",
"goalProcess.northStar.declare.opLabel": "الشرط",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "فشل في تسجيل الملاحظة",
"goalProcess.northStar.record.submit": "تسجيل",
"goalProcess.northStar.record.title": "تسجيل الملاحظة",
"goalProcess.northStar.record.valueLabel": "القيمة الحالية لـ {{key}}",
diff --git a/locales/ar/discover.json b/locales/ar/discover.json
index 611246103d9..ab760569f31 100644
--- a/locales/ar/discover.json
+++ b/locales/ar/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "يجب أن يكون المعرف بين 3-32 حرفًا",
"user.workspaceProfile.errors.namespace.pattern": "استخدم الأحرف الصغيرة، الأرقام، والشرطات. ابدأ وانتهِ بحرف أو رقم.",
"user.workspaceProfile.errors.namespace.required": "أدخل معرف المجتمع",
- "user.workspaceProfile.errors.uploadFailed": "فشل في تحميل الصورة الرمزية",
"user.workspaceProfile.errors.url": "أدخل عنوان URL صالحًا",
"user.workspaceProfile.failed": "فشل في تحديث ملف تعريف مساحة العمل",
"user.workspaceProfile.fields.avatar": "الصورة الرمزية",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "مسؤول",
"user.workspaceProfile.settings.members.role.member": "عضو",
"user.workspaceProfile.settings.members.sync": "مزامنة الأعضاء",
- "user.workspaceProfile.settings.members.syncFailed": "فشل في مزامنة الأعضاء",
"user.workspaceProfile.settings.members.syncHint": "قم بمزامنة أعضاء مساحة العمل الحالية مع منظمة المجتمع.",
"user.workspaceProfile.settings.members.syncSuccess": "تمت مزامنة الأعضاء",
"user.workspaceProfile.settings.members.title": "أعضاء المجتمع",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "الأعضاء",
"user.workspaceProfile.settings.tabs.profile": "الملف الشخصي",
"user.workspaceProfile.settings.title": "إعدادات ملف تعريف المجتمع",
- "user.workspaceProfile.settings.updateFailed": "فشل في تحديث ملف تعريف المجتمع",
"user.workspaceProfile.settings.updateSuccess": "تم تحديث ملف تعريف المجتمع",
"user.workspaceProfile.settings.website.description": "أضف موقعًا إلكترونيًا يظهر في ملف تعريف المجتمع.",
"user.workspaceProfile.settings.website.hint": "استخدم عنوان URL عام http(s).",
diff --git a/locales/ar/electron.json b/locales/ar/electron.json
index c077f5c4113..14a9952b370 100644
--- a/locales/ar/electron.json
+++ b/locales/ar/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "المنفذ",
"proxy.resetButton": "إعادة تعيين",
"proxy.saveButton": "حفظ",
- "proxy.saveFailed": "فشل الحفظ: {{error}}",
"proxy.saveSuccess": "تم حفظ إعدادات البروكسي بنجاح",
"proxy.server": "عنوان الخادم",
"proxy.testButton": "اختبار الاتصال",
diff --git a/locales/ar/memory.json b/locales/ar/memory.json
index 781c94faeea..b40dbadbba0 100644
--- a/locales/ar/memory.json
+++ b/locales/ar/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "المادة طويلة؛ تم قراءة بدايتها فقط.",
"rules.distill.untitled": "بدون عنوان",
"rules.distill.upload": "تحميل ملف",
- "rules.distill.uploadFailed": "تعذر تحميل الملف.",
"rules.distill.uploadHint": "Markdown، PDF، Word، PowerPoint أو نص عادي",
"rules.enforcement.block": "حظر",
"rules.enforcement.blockDesc": "سيوقف التسليم حتى تسمح بمروره. ليس قيد التنفيذ بعد: حاليًا ينبه فقط",
diff --git a/locales/ar/plugin.json b/locales/ar/plugin.json
index 225b52f91e9..bdf85bc8d90 100644
--- a/locales/ar/plugin.json
+++ b/locales/ar/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "MCP من نوع HTTP لا يحتوي على متغيرات بيئة للإعداد",
"settings.indexUrl.title": "فهرس المجتمع",
"settings.indexUrl.tooltip": "قم بالتعديل عبر متغيرات بيئة النشر",
- "settings.messages.connectionUpdateFailed": "فشل تحديث الاتصال",
"settings.messages.connectionUpdateSuccess": "تم تحديث الاتصال",
- "settings.messages.envUpdateFailed": "فشل حفظ متغيرات البيئة",
"settings.messages.envUpdateSuccess": "تم حفظ متغيرات البيئة",
"settings.modalDesc": "قم بإعداد رابط المجتمع لاستخدام مجتمع مهارات مخصص.",
"settings.rules.argsRequired": "أدخل المعلمات",
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index c7b1ca2e5d3..86da18476d5 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "بيانات اعتماد مساحة العمل الخاصة غير متاحة بعد. حاول مرة أخرى لاحقًا.",
"creds.errors.publicCredExists": "تشارك مساحة العمل هذه بالفعل بيانات اعتماد بهذا المفتاح. أزلها قبل نشر هذه.",
"creds.file.authRequired": "يرجى تسجيل الدخول إلى السوق أولاً",
- "creds.file.uploadFailed": "فشل تحميل الملف",
"creds.file.uploadSuccess": "تم تحميل الملف بنجاح",
"creds.file.uploading": "جارٍ التحميل...",
"creds.form.cancel": "إلغاء",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "يذهب تعريفها، متغيراتها، مجلد نسختها واللقطة المحفوظة معها، ولا يمكن استردادها.",
"environments.removeConfirmTitle": "حذف البيئة {{name}}؟",
"environments.removeFailed": "تعذر حذف هذه البيئة",
- "environments.saveFailed": "تعذر حفظ هذا التغيير",
"environments.sessions.activeBuild": "{{instance}} يتم بناؤه الآن",
"environments.sessions.activeSession": "يعمل صندوق الرمل في {{instance}} الآن",
"environments.sessions.desc": "الجلسات الأخيرة التي تم تشغيلها في هذه النسخ وإنشائها، الأحدث أولاً، مع كيفية انتهاء كل منها وما إذا كان ما تم تثبيته قد تم حفظه.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "اضغط على مفتاح لتسجيل الاختصار",
"hotkey.reset": "إعادة تعيين الاختصارات إلى الوضع الافتراضي",
"hotkey.title": "الاختصارات",
- "hotkey.updateError": "فشل تحديث الاختصار: خطأ في الشبكة أو النظام",
"hotkey.updateSuccess": "تم تحديث الاختصار بنجاح",
"llm.aesGcm": "سيتم تشفير مفاتيحك وعنوان الوكيل باستخدام خوارزمية التشفير <1>AES-GCM</1>",
"llm.apiKey.desc": "يرجى إدخال مفتاح API الخاص بـ {{name}}",
diff --git a/locales/ar/tool.json b/locales/ar/tool.json
index 50878397268..266c8e5e4a3 100644
--- a/locales/ar/tool.json
+++ b/locales/ar/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "إضافة عنصر",
"updateArgs.form.key": "مفتاح الحقل",
"updateArgs.form.value": "قيمة الحقل",
- "updateArgs.formValidationFailed": "فشل التحقق من صحة النموذج، يرجى التحقق من تنسيق المعلمات",
"updateArgs.keyRequired": "لا يمكن أن يكون مفتاح الحقل فارغًا",
"updateArgs.stringifyError": "تعذر تحويل المعلمات إلى سلسلة، يرجى التحقق من تنسيق المعلمات"
}
diff --git a/locales/bg-BG/auth.json b/locales/bg-BG/auth.json
index 5c7a2dd7f84..8d52c52d38d 100644
--- a/locales/bg-BG/auth.json
+++ b/locales/bg-BG/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "Проверката не беше завършена. Моля, опитайте предизвикателството отново.",
"betterAuth.captcha.title": "Изисква се проверка за сигурност",
"betterAuth.errors.confirmPasswordRequired": "Моля, потвърдете паролата си",
- "betterAuth.errors.emailExists": "Този имейл вече е регистриран. Моля, влезте в профила си",
"betterAuth.errors.emailInvalid": "Моля, въведете валиден имейл адрес или потребителско име",
"betterAuth.errors.emailNotRegistered": "Този имейл или потребителско име не е регистрирано",
"betterAuth.errors.emailNotVerified": "Имейлът не е потвърден, моля, потвърдете го първо",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Паролата трябва да е поне 8 символа",
"betterAuth.errors.passwordMismatch": "Паролите не съвпадат",
"betterAuth.errors.passwordRequired": "Моля, въведете паролата си",
- "betterAuth.errors.usernameNotRegistered": "Това потребителско име не е регистрирано",
"betterAuth.errors.usernameRequired": "Моля, въведете потребителско име",
"betterAuth.resetPassword.backToSignIn": "Обратно към вход",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Потвърдете новата парола",
"betterAuth.resetPassword.confirmPasswordRequired": "Моля, потвърдете новата си парола",
"betterAuth.resetPassword.description": "Моля, въведете новата си парола",
- "betterAuth.resetPassword.error": "Неуспешно нулиране на паролата, опитайте отново",
- "betterAuth.resetPassword.invalidToken": "Невалиден или изтекъл линк за нулиране",
"betterAuth.resetPassword.newPasswordPlaceholder": "Въведете нова парола",
"betterAuth.resetPassword.passwordMismatch": "Паролите не съвпадат",
"betterAuth.resetPassword.submit": "Нулирай паролата",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Вход",
"betterAuth.signin.error": "Неуспешен вход, моля, проверете имейла и паролата си",
"betterAuth.signin.forgotPassword": "Забравена парола?",
- "betterAuth.signin.forgotPasswordError": "Неуспешно изпращане на линк за нулиране на парола",
"betterAuth.signin.forgotPasswordSent": "Линк за нулиране на парола е изпратен, моля, проверете имейла си",
"betterAuth.signin.invalidReferralCodeContent": "Поканата „{{code}}“ е невалидна или изтекла. Искате ли да продължите с входа?",
"betterAuth.signin.invalidReferralCodeTitle": "Невалиден код за покана",
"betterAuth.signin.lastUsed": "Последно използвано",
"betterAuth.signin.magicLinkButton": "Изпрати линк за вход",
- "betterAuth.signin.magicLinkError": "Неуспешно изпращане на линк за вход, опитайте отново по-късно",
"betterAuth.signin.magicLinkSent": "Линк за вход е изпратен, моля, проверете имейла си",
"betterAuth.signin.nextStep": "Напред",
"betterAuth.signin.noAccount": "Нямате акаунт?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Вашата сесия е изтекла. Влезте отново, за да продължите.",
"betterAuth.signin.setPassword": "създайте парола",
"betterAuth.signin.signupLink": "Регистрирайте се сега",
- "betterAuth.signin.socialError": "Неуспешен вход чрез социална мрежа, опитайте отново",
"betterAuth.signin.socialOnlyHint": "Този имейл е регистриран чрез акаунт в социална мрежа. Влезте чрез този доставчик или",
"betterAuth.signin.ssoOnlyNoProviders": "Регистрация с имейл е деактивирана и няма конфигурирани SSO доставчици. Моля, свържете се с вашия администратор.",
"betterAuth.signin.submit": "Вход",
"betterAuth.signup.cardTitle": "Създайте акаунт в {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Потвърдете паролата си",
"betterAuth.signup.emailPlaceholder": "Въведете имейл адрес",
- "betterAuth.signup.error": "Неуспешна регистрация, опитайте отново",
"betterAuth.signup.firstNamePlaceholder": "Собствено име",
"betterAuth.signup.hasAccount": "Вече имате акаунт?",
"betterAuth.signup.invalidReferralCodeContent": "Кодът за покана „{{code}}“ е невалиден или изтекъл. Искате ли да продължите с регистрацията?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Ако не получите имейл, проверете папката със спам",
"betterAuth.verifyEmail.description": "Имейл за потвърждение е изпратен до {{email}}",
"betterAuth.verifyEmail.resend.button": "Изпрати отново имейл за потвърждение",
- "betterAuth.verifyEmail.resend.error": "Изпращането не бе успешно. Опитайте отново по-късно.",
- "betterAuth.verifyEmail.resend.noEmail": "Липсва имейл адрес",
"betterAuth.verifyEmail.resend.success": "Имейлът за потвърждение е изпратен отново. Моля, проверете пощата си.",
"betterAuth.verifyEmail.title": "Потвърдете имейла си",
"date.prevMonth": "Миналия месец",
diff --git a/locales/bg-BG/authError.json b/locales/bg-BG/authError.json
index fe2b6ea98b5..607fafcb652 100644
--- a/locales/bg-BG/authError.json
+++ b/locales/bg-BG/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Този акаунт вече е свързан с друг потребител",
"codes.ACCOUNT_NOT_FOUND": "Акаунтът не е намерен",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Акаунтът с тези идентификационни данни не съществува",
- "codes.DELETED_ACCOUNT_EMAIL": "Този имейл все още е в периода на изчакване за изтриване на акаунта. Можете да се регистрирате отново 31 дни след завършване на изтриването.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Този имейл все още е в периода на изчакване за изтриване на акаунта. Можете да се регистрирате отново след около {{count}} ден.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Този имейл все още е в периода на изчакване за изтриване на акаунта. Можете да се регистрирате отново след около {{count}} дни.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "Имейлът не може да бъде променен за този акаунт",
- "codes.EMAIL_NOT_ALLOWED": "Имейл адресът не е разрешен за регистрация",
"codes.EMAIL_NOT_FOUND": "Няма имейл, свързан с този акаунт. Моля, проверете дали акаунтът ви има свързан имейл.",
"codes.EMAIL_NOT_VERIFIED": "Моля, първо потвърдете имейла си",
"codes.FAILED_TO_CREATE_SESSION": "Неуспешно създаване на сесия",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Възникна неочаквана грешка, моля опитайте отново",
"codes.UNKNOWN": "Възникна неизвестна грешка, моля опитайте отново или се свържете с поддръжката",
"codes.USER_ALREADY_EXISTS": "Потребителят вече съществува",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Имейлът вече се използва, моля опитайте с друг",
"codes.USER_ALREADY_HAS_PASSWORD": "Този акаунт вече има зададена парола",
"codes.USER_BANNED": "Този потребител е блокиран",
"codes.USER_EMAIL_NOT_FOUND": "Имейлът не е намерен",
diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.json
index 332788d794c..4456d7d186d 100644
--- a/locales/bg-BG/chat.json
+++ b/locales/bg-BG/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Спира, когато общите разходи достигнат тази сума; оставете празно за без лимит.",
"createGoal.costBudgetLabel": "Бюджет за разходи",
"createGoal.costBudgetPlaceholder": "Без лимит",
- "createGoal.createFailed": "Неуспешно създаване на цел",
"createGoal.criteriaHint": "Прегледайте и редактирайте тези критерии преди стартиране на целта",
"createGoal.criteriaTitle": "Критерии за приемане",
"createGoal.criterionPlaceholder": "Опишете резултат, който може ясно да бъде проверен",
@@ -366,7 +365,6 @@
"createModal.title": "Какво трябва да прави вашият агент?",
"createTask.assignee": "Изпълнител",
"createTask.collapse": "Скрий полето",
- "createTask.createFailed": "Неуспешно създаване на задача",
"createTask.discardConfirm.cancel": "Продължаване на редактирането",
"createTask.discardConfirm.content": "Заглавието, инструкцията и прикачените файлове, които добавихте, ще бъдат загубени.",
"createTask.discardConfirm.ok": "Отхвърляне",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Завършено",
"goalProcess.nodeStatus.retired": "Пенсионирано",
"goalProcess.nodeStatus.waiting": "Чака",
- "goalProcess.northStar.declare.failed": "Неуспешно деклариране на метриката",
"goalProcess.northStar.declare.keyLabel": "Ключ на метриката",
"goalProcess.northStar.declare.keyPlaceholder": "напр. followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Условие",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Неуспешно записване на наблюдението",
"goalProcess.northStar.record.submit": "Запиши",
"goalProcess.northStar.record.title": "Запиши наблюдение",
"goalProcess.northStar.record.valueLabel": "Текуща стойност на {{key}}",
diff --git a/locales/bg-BG/discover.json b/locales/bg-BG/discover.json
index 4d7e22f803a..3557848ae12 100644
--- a/locales/bg-BG/discover.json
+++ b/locales/bg-BG/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Името трябва да бъде между 3 и 32 символа",
"user.workspaceProfile.errors.namespace.pattern": "Използвайте малки букви, цифри и тирета. Започнете и завършете с буква или цифра.",
"user.workspaceProfile.errors.namespace.required": "Въведете име за общността",
- "user.workspaceProfile.errors.uploadFailed": "Неуспешно качване на аватар",
"user.workspaceProfile.errors.url": "Въведете валиден URL",
"user.workspaceProfile.failed": "Неуспешно актуализиране на профила на работното пространство",
"user.workspaceProfile.fields.avatar": "Аватар",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Администратор",
"user.workspaceProfile.settings.members.role.member": "Член",
"user.workspaceProfile.settings.members.sync": "Синхронизиране на членове",
- "user.workspaceProfile.settings.members.syncFailed": "Неуспешно синхронизиране на членове",
"user.workspaceProfile.settings.members.syncHint": "Синхронизирайте текущите членове на работното пространство с организацията на общността.",
"user.workspaceProfile.settings.members.syncSuccess": "Членовете са синхронизирани",
"user.workspaceProfile.settings.members.title": "Членове на общността",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Членове",
"user.workspaceProfile.settings.tabs.profile": "Профил",
"user.workspaceProfile.settings.title": "Настройки на профила на общността",
- "user.workspaceProfile.settings.updateFailed": "Неуспешно актуализиране на профила на общността",
"user.workspaceProfile.settings.updateSuccess": "Профилът на общността е актуализиран",
"user.workspaceProfile.settings.website.description": "Добавете уебсайт, който се показва в профила на общността.",
"user.workspaceProfile.settings.website.hint": "Използвайте публичен http(s) URL.",
diff --git a/locales/bg-BG/electron.json b/locales/bg-BG/electron.json
index ca09ff65f08..6c67abf59b0 100644
--- a/locales/bg-BG/electron.json
+++ b/locales/bg-BG/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Порт",
"proxy.resetButton": "Нулирай",
"proxy.saveButton": "Запази",
- "proxy.saveFailed": "Неуспешно запазване: {{error}}",
"proxy.saveSuccess": "Настройките на проксито са запазени успешно",
"proxy.server": "Адрес на сървъра",
"proxy.testButton": "Тествай връзката",
diff --git a/locales/bg-BG/memory.json b/locales/bg-BG/memory.json
index 3389151b3fb..1a79cb9b825 100644
--- a/locales/bg-BG/memory.json
+++ b/locales/bg-BG/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Материалът е дълъг; прочетено е само началото му.",
"rules.distill.untitled": "Без заглавие",
"rules.distill.upload": "Качете файл",
- "rules.distill.uploadFailed": "Не можа да се качи файлът.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint или обикновен текст",
"rules.enforcement.block": "Блокиране",
"rules.enforcement.blockDesc": "Ще задържи доставката, докато не я одобрите. Все още не е в сила: засега само напомня",
diff --git a/locales/bg-BG/plugin.json b/locales/bg-BG/plugin.json
index cdb21873cf6..078f5e11959 100644
--- a/locales/bg-BG/plugin.json
+++ b/locales/bg-BG/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP MCP няма променливи на средата за конфигуриране",
"settings.indexUrl.title": "Индекс на общността",
"settings.indexUrl.tooltip": "Редактира се чрез променливи на средата при внедряване",
- "settings.messages.connectionUpdateFailed": "Неуспешно обновяване на връзката",
"settings.messages.connectionUpdateSuccess": "Връзката е обновена",
- "settings.messages.envUpdateFailed": "Неуспешно запазване на променливите на средата",
"settings.messages.envUpdateSuccess": "Променливите на средата са запазени",
"settings.modalDesc": "Конфигурирайте URL на общността, за да използвате потребителски умения.",
"settings.rules.argsRequired": "Въведете аргументи",
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index 7a171096bfc..6b4babda6d7 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Частните удостоверения за достъп на работното пространство все още не са налични. Опитайте отново по-късно.",
"creds.errors.publicCredExists": "Това работно пространство вече споделя удостоверение за достъп с този ключ. Премахнете го, преди да публикувате това.",
"creds.file.authRequired": "Моля, влезте в Market първо",
- "creds.file.uploadFailed": "Качването на файла не бе успешно",
"creds.file.uploadSuccess": "Файлът беше качен успешно",
"creds.file.uploading": "Качване...",
"creds.form.cancel": "Отказ",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Неговата спецификация, променливи, папката на копието и запазената снимка ще бъдат изтрити и не могат да бъдат възстановени.",
"environments.removeConfirmTitle": "Изтриване на среда {{name}}?",
"environments.removeFailed": "Не може да се изтрие тази среда",
- "environments.saveFailed": "Не може да се запази тази промяна",
"environments.sessions.activeBuild": "{{instance}} се изгражда в момента",
"environments.sessions.activeSession": "Пясъчна среда работи в {{instance}} в момента",
"environments.sessions.desc": "Най-скорошните сесии, които са се изпълнявали в тези копия и техните изграждания, подредени от най-новите, с информация за това как са завършили и дали това, което е било инсталирано, е запазено.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Натиснете клавиш за запис на комбинацията",
"hotkey.reset": "Възстанови стандартните клавишни комбинации",
"hotkey.title": "Клавишни комбинации",
- "hotkey.updateError": "Неуспешна актуализация на клавишната комбинация: мрежова или системна грешка",
"hotkey.updateSuccess": "Клавишната комбинация е успешно актуализирана",
"llm.aesGcm": "Вашите ключове и прокси адрес ще бъдат криптирани с алгоритъма <1>AES-GCM</1>",
"llm.apiKey.desc": "Моля, въведете вашия {{name}} API ключ",
diff --git a/locales/bg-BG/tool.json b/locales/bg-BG/tool.json
index c2e92040327..d9d60ccc6a3 100644
--- a/locales/bg-BG/tool.json
+++ b/locales/bg-BG/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Добави елемент",
"updateArgs.form.key": "Ключ на полето",
"updateArgs.form.value": "Стойност на полето",
- "updateArgs.formValidationFailed": "Валидирането на формата не бе успешно, моля проверете формата на параметрите",
"updateArgs.keyRequired": "Ключът на полето не може да бъде празен",
"updateArgs.stringifyError": "Неуспешно сериализиране на параметрите, моля проверете формата на параметрите"
}
diff --git a/locales/de-DE/auth.json b/locales/de-DE/auth.json
index 3a240bbb812..363cf3a6f87 100644
--- a/locales/de-DE/auth.json
+++ b/locales/de-DE/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "Die Überprüfung wurde nicht abgeschlossen. Bitte versuchen Sie die Aufgabe erneut.",
"betterAuth.captcha.title": "Sicherheitsüberprüfung erforderlich",
"betterAuth.errors.confirmPasswordRequired": "Bitte bestätigen Sie Ihr Passwort",
- "betterAuth.errors.emailExists": "Diese E-Mail ist bereits registriert. Bitte melden Sie sich stattdessen an",
"betterAuth.errors.emailInvalid": "Bitte geben Sie eine gültige E-Mail-Adresse oder einen Benutzernamen ein",
"betterAuth.errors.emailNotRegistered": "Diese E-Mail oder dieser Benutzername ist nicht registriert",
"betterAuth.errors.emailNotVerified": "E-Mail nicht verifiziert, bitte verifizieren Sie zuerst Ihre E-Mail",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Das Passwort muss mindestens 8 Zeichen lang sein",
"betterAuth.errors.passwordMismatch": "Die Passwörter stimmen nicht überein",
"betterAuth.errors.passwordRequired": "Bitte geben Sie Ihr Passwort ein",
- "betterAuth.errors.usernameNotRegistered": "Dieser Benutzername ist nicht registriert",
"betterAuth.errors.usernameRequired": "Bitte geben Sie Ihren Benutzernamen ein",
"betterAuth.resetPassword.backToSignIn": "Zurück zur Anmeldung",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Neues Passwort bestätigen",
"betterAuth.resetPassword.confirmPasswordRequired": "Bitte bestätigen Sie Ihr neues Passwort",
"betterAuth.resetPassword.description": "Bitte geben Sie Ihr neues Passwort ein",
- "betterAuth.resetPassword.error": "Passwort zurücksetzen fehlgeschlagen, bitte versuchen Sie es erneut",
- "betterAuth.resetPassword.invalidToken": "Ungültiger oder abgelaufener Zurücksetzungslink",
"betterAuth.resetPassword.newPasswordPlaceholder": "Neues Passwort eingeben",
"betterAuth.resetPassword.passwordMismatch": "Passwörter stimmen nicht überein",
"betterAuth.resetPassword.submit": "Passwort zurücksetzen",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Anmelden",
"betterAuth.signin.error": "Anmeldung fehlgeschlagen, bitte überprüfen Sie Ihre E-Mail und Ihr Passwort",
"betterAuth.signin.forgotPassword": "Passwort vergessen?",
- "betterAuth.signin.forgotPasswordError": "Link zum Zurücksetzen des Passworts konnte nicht gesendet werden",
"betterAuth.signin.forgotPasswordSent": "Link zum Zurücksetzen des Passworts gesendet, bitte überprüfen Sie Ihre E-Mail",
"betterAuth.signin.invalidReferralCodeContent": "Der von Ihnen verwendete Empfehlungscode „{{code}}“ ist ungültig oder abgelaufen. Möchten Sie sich trotzdem anmelden?",
"betterAuth.signin.invalidReferralCodeTitle": "Ungültiger Empfehlungscode",
"betterAuth.signin.lastUsed": "Zuletzt verwendet",
"betterAuth.signin.magicLinkButton": "Anmeldelink senden",
- "betterAuth.signin.magicLinkError": "Anmeldelink konnte nicht gesendet werden, bitte versuchen Sie es später erneut",
"betterAuth.signin.magicLinkSent": "Anmeldelink gesendet, bitte überprüfen Sie Ihre E-Mail",
"betterAuth.signin.nextStep": "Weiter",
"betterAuth.signin.noAccount": "Noch kein Konto?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Ihre Sitzung ist abgelaufen. Melden Sie sich erneut an, um fortzufahren.",
"betterAuth.signin.setPassword": "Passwort festlegen",
"betterAuth.signin.signupLink": "Jetzt registrieren",
- "betterAuth.signin.socialError": "Soziale Anmeldung fehlgeschlagen, bitte versuchen Sie es erneut",
"betterAuth.signin.socialOnlyHint": "Diese E-Mail wurde über ein Drittanbieter-Konto registriert. Melden Sie sich mit diesem Anbieter an oder",
"betterAuth.signin.ssoOnlyNoProviders": "Die Registrierung per E-Mail ist deaktiviert und es sind keine SSO-Anbieter konfiguriert. Bitte wenden Sie sich an Ihre Administratorin oder Ihren Administrator.",
"betterAuth.signin.submit": "Anmelden",
"betterAuth.signup.cardTitle": "Erstellen Sie ein {{appName}}-Konto",
"betterAuth.signup.confirmPasswordPlaceholder": "Passwort bestätigen",
"betterAuth.signup.emailPlaceholder": "E-Mail-Adresse eingeben",
- "betterAuth.signup.error": "Registrierung fehlgeschlagen, bitte versuchen Sie es erneut",
"betterAuth.signup.firstNamePlaceholder": "Vorname",
"betterAuth.signup.hasAccount": "Bereits ein Konto?",
"betterAuth.signup.invalidReferralCodeContent": "Der eingegebene Empfehlungscode „{{code}}“ ist ungültig oder abgelaufen. Möchten Sie sich trotzdem registrieren?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Wenn Sie die E-Mail nicht erhalten, überprüfen Sie bitte Ihren Spam-Ordner",
"betterAuth.verifyEmail.description": "Eine Bestätigungs-E-Mail wurde an {{email}} gesendet",
"betterAuth.verifyEmail.resend.button": "Bestätigungs-E-Mail erneut senden",
- "betterAuth.verifyEmail.resend.error": "Senden fehlgeschlagen. Bitte versuchen Sie es später erneut.",
- "betterAuth.verifyEmail.resend.noEmail": "E-Mail-Adresse fehlt",
"betterAuth.verifyEmail.resend.success": "Bestätigungs-E-Mail erneut gesendet. Bitte überprüfen Sie Ihren Posteingang.",
"betterAuth.verifyEmail.title": "E-Mail bestätigen",
"date.prevMonth": "Letzter Monat",
diff --git a/locales/de-DE/authError.json b/locales/de-DE/authError.json
index 8958ca79c5b..90bd48e4e9e 100644
--- a/locales/de-DE/authError.json
+++ b/locales/de-DE/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Dieses Konto ist bereits mit einem anderen Benutzer verknüpft",
"codes.ACCOUNT_NOT_FOUND": "Konto nicht gefunden",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Anmeldekonto existiert nicht",
- "codes.DELETED_ACCOUNT_EMAIL": "Diese E-Mail befindet sich noch in der Abkühlungsphase für die Kontolöschung. Sie können sich 31 Tage nach Abschluss der Löschung erneut registrieren.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Diese E-Mail befindet sich noch in der Abkühlungsphase für die Kontolöschung. Sie können sich in etwa {{count}} Tag erneut registrieren.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Diese E-Mail befindet sich noch in der Abkühlungsphase für die Kontolöschung. Sie können sich in etwa {{count}} Tagen erneut registrieren.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "E-Mail-Adresse kann für dieses Konto nicht aktualisiert werden",
- "codes.EMAIL_NOT_ALLOWED": "Diese E-Mail-Adresse ist für die Registrierung nicht zugelassen",
"codes.EMAIL_NOT_FOUND": "Keine E-Mail mit diesem Konto verknüpft. Bitte überprüfen Sie, ob Ihrem Konto eine E-Mail-Adresse zugeordnet ist.",
"codes.EMAIL_NOT_VERIFIED": "Bitte verifiziere zuerst deine E-Mail-Adresse",
"codes.FAILED_TO_CREATE_SESSION": "Sitzung konnte nicht erstellt werden",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Ein unerwarteter Fehler ist aufgetreten, bitte versuche es erneut",
"codes.UNKNOWN": "Ein unbekannter Fehler ist aufgetreten, bitte versuche es erneut oder kontaktiere den Support",
"codes.USER_ALREADY_EXISTS": "Benutzer existiert bereits",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "E-Mail-Adresse wird bereits verwendet, bitte verwende eine andere",
"codes.USER_ALREADY_HAS_PASSWORD": "Für dieses Konto wurde bereits ein Passwort festgelegt",
"codes.USER_BANNED": "Dieser Benutzer wurde gesperrt",
"codes.USER_EMAIL_NOT_FOUND": "E-Mail-Adresse nicht gefunden",
diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.json
index 1e2f3929636..646aabc618b 100644
--- a/locales/de-DE/chat.json
+++ b/locales/de-DE/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Stoppt, sobald die Gesamtausgaben diesen Betrag erreichen; leer lassen für keine Begrenzung.",
"createGoal.costBudgetLabel": "Kostenbudget",
"createGoal.costBudgetPlaceholder": "Keine Begrenzung",
- "createGoal.createFailed": "Ziel konnte nicht erstellt werden",
"createGoal.criteriaHint": "Überprüfen und bearbeiten Sie diese, bevor das Ziel startet",
"createGoal.criteriaTitle": "Akzeptanzkriterien",
"createGoal.criterionPlaceholder": "Beschreiben Sie ein Ergebnis, das klar überprüft werden kann",
@@ -366,7 +365,6 @@
"createModal.title": "Was soll Ihr Agent tun?",
"createTask.assignee": "Zuständige Person",
"createTask.collapse": "Eingabe ausblenden",
- "createTask.createFailed": "Aufgabe konnte nicht erstellt werden",
"createTask.discardConfirm.cancel": "Weiter bearbeiten",
"createTask.discardConfirm.content": "Der von Ihnen hinzugefügte Titel, die Anweisung und die Anhänge gehen verloren.",
"createTask.discardConfirm.ok": "Verwerfen",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Erledigt",
"goalProcess.nodeStatus.retired": "Archiviert",
"goalProcess.nodeStatus.waiting": "Wartet",
- "goalProcess.northStar.declare.failed": "Fehler beim Deklarieren der Metrik",
"goalProcess.northStar.declare.keyLabel": "Metrikschlüssel",
"goalProcess.northStar.declare.keyPlaceholder": "z. B. followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Bedingung",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Fehler beim Aufzeichnen der Beobachtung",
"goalProcess.northStar.record.submit": "Aufzeichnen",
"goalProcess.northStar.record.title": "Beobachtung aufzeichnen",
"goalProcess.northStar.record.valueLabel": "Aktueller Wert von {{key}}",
diff --git a/locales/de-DE/discover.json b/locales/de-DE/discover.json
index fd9a3e225ec..ac47776ba27 100644
--- a/locales/de-DE/discover.json
+++ b/locales/de-DE/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Der Handle muss 3-32 Zeichen lang sein",
"user.workspaceProfile.errors.namespace.pattern": "Verwenden Sie Kleinbuchstaben, Zahlen und Bindestriche. Beginnen und enden Sie mit einem Buchstaben oder einer Zahl.",
"user.workspaceProfile.errors.namespace.required": "Geben Sie einen Community-Handle ein",
- "user.workspaceProfile.errors.uploadFailed": "Avatar konnte nicht hochgeladen werden",
"user.workspaceProfile.errors.url": "Geben Sie eine gültige URL ein",
"user.workspaceProfile.failed": "Das Arbeitsbereichsprofil konnte nicht aktualisiert werden",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Admin",
"user.workspaceProfile.settings.members.role.member": "Mitglied",
"user.workspaceProfile.settings.members.sync": "Mitglieder synchronisieren",
- "user.workspaceProfile.settings.members.syncFailed": "Mitglieder konnten nicht synchronisiert werden",
"user.workspaceProfile.settings.members.syncHint": "Synchronisieren Sie die aktuellen Arbeitsbereichsmitglieder mit der Community-Organisation.",
"user.workspaceProfile.settings.members.syncSuccess": "Mitglieder synchronisiert",
"user.workspaceProfile.settings.members.title": "Community-Mitglieder",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Mitglieder",
"user.workspaceProfile.settings.tabs.profile": "Profil",
"user.workspaceProfile.settings.title": "Community-Profil-Einstellungen",
- "user.workspaceProfile.settings.updateFailed": "Community-Profil konnte nicht aktualisiert werden",
"user.workspaceProfile.settings.updateSuccess": "Community-Profil aktualisiert",
"user.workspaceProfile.settings.website.description": "Fügen Sie eine Website hinzu, die im Community-Profil angezeigt wird.",
"user.workspaceProfile.settings.website.hint": "Verwenden Sie eine öffentliche http(s)-URL.",
diff --git a/locales/de-DE/electron.json b/locales/de-DE/electron.json
index 3d4988799fa..6c26467934f 100644
--- a/locales/de-DE/electron.json
+++ b/locales/de-DE/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Port",
"proxy.resetButton": "Zurücksetzen",
"proxy.saveButton": "Speichern",
- "proxy.saveFailed": "Speichern fehlgeschlagen: {{error}}",
"proxy.saveSuccess": "Proxy-Einstellungen erfolgreich gespeichert",
"proxy.server": "Serveradresse",
"proxy.testButton": "Verbindung testen",
diff --git a/locales/de-DE/memory.json b/locales/de-DE/memory.json
index f7b509256ff..360f802370e 100644
--- a/locales/de-DE/memory.json
+++ b/locales/de-DE/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Das Material ist lang; nur der Anfang wurde gelesen.",
"rules.distill.untitled": "Ohne Titel",
"rules.distill.upload": "Datei hochladen",
- "rules.distill.uploadFailed": "Die Datei konnte nicht hochgeladen werden.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint oder reiner Text",
"rules.enforcement.block": "Blockieren",
"rules.enforcement.blockDesc": "Hält die Lieferung zurück, bis Sie sie freigeben. Noch nicht aktiv: Derzeit wird nur erinnert",
diff --git a/locales/de-DE/plugin.json b/locales/de-DE/plugin.json
index f4411ab3c58..2b169f676e8 100644
--- a/locales/de-DE/plugin.json
+++ b/locales/de-DE/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP-MCP hat keine konfigurierbaren Umgebungsvariablen",
"settings.indexUrl.title": "Community-Index",
"settings.indexUrl.tooltip": "Über Bereitstellungs-Umgebungsvariablen bearbeiten",
- "settings.messages.connectionUpdateFailed": "Verbindung konnte nicht aktualisiert werden",
"settings.messages.connectionUpdateSuccess": "Verbindung aktualisiert",
- "settings.messages.envUpdateFailed": "Umgebungsvariablen konnten nicht gespeichert werden",
"settings.messages.envUpdateSuccess": "Umgebungsvariablen gespeichert",
"settings.modalDesc": "Community-URL konfigurieren, um benutzerdefinierte Skill-Community zu verwenden.",
"settings.rules.argsRequired": "Argumente eingeben",
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index fb1b9c6065e..0064251a135 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Private Zugangsdaten für Arbeitsbereiche sind noch nicht verfügbar. Bitte versuche es später erneut.",
"creds.errors.publicCredExists": "Dieser Arbeitsbereich teilt bereits Zugangsdaten mit diesem Schlüssel. Entferne sie, bevor du diese veröffentlichst.",
"creds.file.authRequired": "Bitte melden Sie sich zuerst im Market an",
- "creds.file.uploadFailed": "Datei-Upload fehlgeschlagen",
"creds.file.uploadSuccess": "Datei erfolgreich hochgeladen",
"creds.file.uploading": "Hochladen...",
"creds.form.cancel": "Abbrechen",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Seine Spezifikation, Variablen, der Ordner der Kopie und der gespeicherte Snapshot werden mit entfernt und können nicht wiederhergestellt werden.",
"environments.removeConfirmTitle": "Umgebung {{name}} löschen?",
"environments.removeFailed": "Diese Umgebung konnte nicht gelöscht werden",
- "environments.saveFailed": "Diese Änderung konnte nicht gespeichert werden",
"environments.sessions.activeBuild": "{{instance}} wird gerade erstellt",
"environments.sessions.activeSession": "Eine Sandbox läuft gerade in {{instance}}",
"environments.sessions.desc": "Die neuesten Sitzungen, die in diesen Kopien und deren Aufbauten ausgeführt wurden, von den neuesten bis zu den ältesten, mit dem jeweiligen Ende und ob das Installierte gespeichert wurde.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Taste drücken, um Tastenkombination aufzuzeichnen",
"hotkey.reset": "Tastenkombinationen zurücksetzen",
"hotkey.title": "Tastenkombinationen",
- "hotkey.updateError": "Aktualisierung der Tastenkombination fehlgeschlagen: Netzwerk- oder Systemfehler",
"hotkey.updateSuccess": "Tastenkombination erfolgreich aktualisiert",
"llm.aesGcm": "Deine Schlüssel und Proxy-Adresse werden mit dem <1>AES-GCM</1>-Verschlüsselungsalgorithmus gesichert",
"llm.apiKey.desc": "Bitte gib deinen {{name}} API-Schlüssel ein",
diff --git a/locales/de-DE/tool.json b/locales/de-DE/tool.json
index 111856ce449..0f9a0c5bf39 100644
--- a/locales/de-DE/tool.json
+++ b/locales/de-DE/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Eintrag hinzufügen",
"updateArgs.form.key": "Feldschlüssel",
"updateArgs.form.value": "Feldwert",
- "updateArgs.formValidationFailed": "Formularvalidierung fehlgeschlagen. Bitte überprüfen Sie das Parameterformat.",
"updateArgs.keyRequired": "Feldschlüssel darf nicht leer sein",
"updateArgs.stringifyError": "Parameter konnten nicht serialisiert werden. Bitte überprüfen Sie das Format."
}
diff --git a/locales/en-US/agent.json b/locales/en-US/agent.json
index 6163d42c7b0..24f37de9943 100644
--- a/locales/en-US/agent.json
+++ b/locales/en-US/agent.json
@@ -321,7 +321,9 @@
"channel.imessage.bridgeTest": "Test BlueBubbles",
"channel.imessage.bridgeTestDisabledHint": "Enable the bridge service first.",
"channel.imessage.bridgeTestFailed": "BlueBubbles test failed",
+ "channel.imessage.bridgeTestFailedRetry": "Couldn't reach BlueBubbles. Check the server URL and password, then test again.",
"channel.imessage.bridgeTestSuccess": "BlueBubbles connection passed",
+ "channel.imessage.bridgeToggleFailedRetry": "Couldn't change the bridge status. Check the BlueBubbles server URL and password, then try again.",
"channel.imessage.description": "Connect this agent to iMessage through the local LobeHub Desktop BlueBubbles bridge.",
"channel.imessage.desktopBridge": "Desktop Bridge",
"channel.imessage.desktopDeviceId": "Desktop Device ID",
@@ -343,6 +345,7 @@
"channel.line.destinationUserIdPlaceholder": "e.g. U1234567890abcdef1234567890abcdef",
"channel.line.fetchBotInfo": "Fetch from LINE",
"channel.line.fetchBotInfoFailed": "Failed to fetch bot info",
+ "channel.line.fetchBotInfoFailedRetry": "Couldn't fetch the bot info. Check the Channel Access Token and try again.",
"channel.line.fetchBotInfoMissingToken": "Enter the Channel Access Token first, then click \"Fetch from LINE\".",
"channel.line.fetchBotInfoSuccess": "Destination User ID fetched",
"channel.line.webhookManualSetup": "LINE does not allow programmatic webhook registration. Copy this URL into the LINE Developers Console (Messaging API → Webhook URL), click \"Verify\", and enable \"Use webhook\".",
@@ -655,6 +658,7 @@
"channel.testFailedHint": "Check the credentials and try again.",
"channel.testSuccess": "Connection test passed",
"channel.updateFailed": "Failed to update status",
+ "channel.updateFailedRetry": "Couldn't save this change. Check your network and try again.",
"channel.userId": "Your Platform User ID",
"channel.userIdHint": "Lets AI tools reach you proactively (e.g. reminders); auto-trusted by the global allowlist",
"channel.userIdHint.dingtalk": "Your DingTalk user ID (staff ID). Find it in the DingTalk admin console → Contacts → member details, or send /whoami to the bot in a direct message.",
diff --git a/locales/en-US/auth.json b/locales/en-US/auth.json
index be6842c0989..0efe1e44179 100644
--- a/locales/en-US/auth.json
+++ b/locales/en-US/auth.json
@@ -94,10 +94,10 @@
"betterAuth.captcha.pendingDescription": "Verification did not complete. Please try the challenge again.",
"betterAuth.captcha.title": "Security verification required",
"betterAuth.errors.confirmPasswordRequired": "Please confirm your password",
- "betterAuth.errors.emailExists": "This email is already registered. Please sign in instead",
"betterAuth.errors.emailInvalid": "Please enter a valid email address or username",
"betterAuth.errors.emailNotRegistered": "This email or username is not registered",
"betterAuth.errors.emailNotVerified": "Email not verified, please verify your email first",
+ "betterAuth.errors.emailRegistered": "This email is already registered. Sign in with it instead; if you forgot the password, choose \"Forgot password?\" after entering your email.",
"betterAuth.errors.emailRequired": "Please enter your email address or username",
"betterAuth.errors.firstNameRequired": "Please enter your first name",
"betterAuth.errors.lastNameRequired": "Please enter your last name",
@@ -107,14 +107,16 @@
"betterAuth.errors.passwordMinLength": "Password must be at least 8 characters",
"betterAuth.errors.passwordMismatch": "The passwords do not match",
"betterAuth.errors.passwordRequired": "Please enter your password",
- "betterAuth.errors.usernameNotRegistered": "This username is not registered",
+ "betterAuth.errors.requestFailed": "Could not reach the server. Check your network connection and try again.",
+ "betterAuth.errors.signupEmailInvalid": "Please enter a valid email address, such as [email protected]",
+ "betterAuth.errors.usernameNotFound": "This username is not registered. Check the spelling, or sign in with your email address instead.",
"betterAuth.errors.usernameRequired": "Please enter your username",
"betterAuth.resetPassword.backToSignIn": "Back to Sign In",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Confirm new password",
"betterAuth.resetPassword.confirmPasswordRequired": "Please confirm your new password",
"betterAuth.resetPassword.description": "Please enter your new password",
- "betterAuth.resetPassword.error": "Failed to reset password, please try again",
- "betterAuth.resetPassword.invalidToken": "Invalid or expired reset link",
+ "betterAuth.resetPassword.failed": "Could not reset your password. Check your network connection and try again.",
+ "betterAuth.resetPassword.linkExpired": "This reset link is invalid or has expired. Go back to sign in, enter your email and choose \"Forgot password?\" to get a new link.",
"betterAuth.resetPassword.newPasswordPlaceholder": "Enter new password",
"betterAuth.resetPassword.passwordMismatch": "Passwords do not match",
"betterAuth.resetPassword.submit": "Reset Password",
@@ -149,13 +151,12 @@
"betterAuth.signin.emailStep.title": "Sign In",
"betterAuth.signin.error": "Sign in failed, please check your email and password",
"betterAuth.signin.forgotPassword": "Forgot password?",
- "betterAuth.signin.forgotPasswordError": "Failed to send password reset link",
"betterAuth.signin.forgotPasswordSent": "Password reset link sent, please check your email",
"betterAuth.signin.invalidReferralCodeContent": "The referral code \"{{code}}\" you used is invalid or expired. Do you want to continue signing in?",
"betterAuth.signin.invalidReferralCodeTitle": "Invalid Referral Code",
"betterAuth.signin.lastUsed": "Last used",
"betterAuth.signin.magicLinkButton": "Send sign-in link",
- "betterAuth.signin.magicLinkError": "Failed to send sign-in link, please try again later",
+ "betterAuth.signin.magicLinkFailed": "Could not send the sign-in link. Check that the email address is correct and try again in a minute.",
"betterAuth.signin.magicLinkSent": "Sign-in link sent, please check your email",
"betterAuth.signin.nextStep": "Next",
"betterAuth.signin.noAccount": "Don't have an account?",
@@ -163,17 +164,18 @@
"betterAuth.signin.passwordPlaceholder": "Enter your password",
"betterAuth.signin.passwordStep.subtitle": "Enter your password to continue",
"betterAuth.signin.passwordStep.title": "Enter your password",
+ "betterAuth.signin.resetEmailFailed": "Could not send the password reset email. Try again in a minute; if it keeps failing, check your network connection.",
"betterAuth.signin.sessionExpired": "Your session has expired. Sign in again to continue.",
"betterAuth.signin.setPassword": "set a password",
"betterAuth.signin.signupLink": "Sign up now",
- "betterAuth.signin.socialError": "Social sign in failed, please try again",
+ "betterAuth.signin.socialFailed": "Could not continue with {{provider}}. Try again, or sign in with your email instead.",
"betterAuth.signin.socialOnlyHint": "This email was registered via a third-party social account. Sign in with that provider, or",
"betterAuth.signin.ssoOnlyNoProviders": "Email registration is disabled and no SSO providers are configured. Please contact your administrator.",
"betterAuth.signin.submit": "Sign In",
"betterAuth.signup.cardTitle": "Create a {{appName}} Account",
"betterAuth.signup.confirmPasswordPlaceholder": "Confirm your password",
"betterAuth.signup.emailPlaceholder": "Enter your email address",
- "betterAuth.signup.error": "Sign up failed, please try again",
+ "betterAuth.signup.failed": "Sign up failed. Check your network connection and try again.",
"betterAuth.signup.firstNamePlaceholder": "First Name",
"betterAuth.signup.hasAccount": "Already have an account?",
"betterAuth.signup.invalidReferralCodeContent": "The referral code \"{{code}}\" you entered is invalid or expired. Do you want to continue signing up?",
@@ -191,8 +193,8 @@
"betterAuth.verifyEmail.checkSpam": "If you don't receive the email, please check your spam folder",
"betterAuth.verifyEmail.description": "A verification email has been sent to {{email}}",
"betterAuth.verifyEmail.resend.button": "Resend Verification Email",
- "betterAuth.verifyEmail.resend.error": "Failed to send. Please try again later.",
- "betterAuth.verifyEmail.resend.noEmail": "Email address is missing",
+ "betterAuth.verifyEmail.resend.failed": "Could not resend the verification email. Try again in a minute, and check your spam folder for the earlier one.",
+ "betterAuth.verifyEmail.resend.missingEmail": "We do not know which email to send to. Go back and sign up again with your email address.",
"betterAuth.verifyEmail.resend.success": "Verification email resent. Please check your inbox.",
"betterAuth.verifyEmail.title": "Verify Your Email",
"date.prevMonth": "Last Month",
diff --git a/locales/en-US/authError.json b/locales/en-US/authError.json
index 058196ee0e1..b1b3822b84a 100644
--- a/locales/en-US/authError.json
+++ b/locales/en-US/authError.json
@@ -4,12 +4,14 @@
"actions.retry": "Sign in Again",
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "This account is already linked to another user",
"codes.ACCOUNT_NOT_FOUND": "Account not found",
+ "codes.BLOCKED_DOMAIN": "Sign-ups from this email domain are not supported. Please use a mainstream email provider, such as Gmail or Outlook.",
+ "codes.BLOCKED_MULTI_LEVEL_DOMAIN": "Sign-ups from this email domain are not supported. Please use a mainstream email provider, such as Gmail or Outlook.",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Credential account does not exist",
- "codes.DELETED_ACCOUNT_EMAIL": "This email is still in the account deletion cooldown period. You can sign up again 31 days after deletion is complete.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "This email is still in the account deletion cooldown period. You can sign up again in about {{count}} day.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "This email is still in the account deletion cooldown period. You can sign up again in about {{count}} days.",
+ "codes.DELETED_ACCOUNT_EMAIL": "This email belongs to a recently deleted account and can be used again 31 days after the deletion completes. To sign up now, use a different email.",
+ "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "This email belongs to a recently deleted account and can be used again in about {{count}} day. To sign up now, use a different email.",
+ "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "This email belongs to a recently deleted account and can be used again in about {{count}} days. To sign up now, use a different email.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "Email cannot be updated for this account",
- "codes.EMAIL_NOT_ALLOWED": "Email not allowed for registration",
+ "codes.EMAIL_NOT_ALLOWED": "This email cannot be used to sign up. Please use a different email address.",
"codes.EMAIL_NOT_FOUND": "No email associated with this account. Please check if your account has an email bound.",
"codes.EMAIL_NOT_VERIFIED": "Please verify your email first",
"codes.FAILED_TO_CREATE_SESSION": "Failed to create session",
@@ -28,12 +30,13 @@
"codes.PROVIDER_NOT_FOUND": "Identity provider configuration not found",
"codes.RATE_LIMIT_EXCEEDED": "Too many requests, please try again later",
"codes.SESSION_EXPIRED": "Session has expired, please sign in again",
+ "codes.SIGNUP_IP_BURST": "Too many sign-ups from your network recently. Please wait a while and try again.",
"codes.SOCIAL_ACCOUNT_ALREADY_LINKED": "This social account is already linked to another user",
"codes.TEMPORARY_EMAIL_NOT_ALLOWED": "Temporary email addresses are not supported. Please use a regular email address. Repeated attempts may block this network.",
"codes.UNEXPECTED_ERROR": "An unexpected error occurred, please try again",
"codes.UNKNOWN": "An unknown error occurred, please try again or contact support",
"codes.USER_ALREADY_EXISTS": "User already exists",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Email is already in use, please try another one",
+ "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "This email matches an existing account (addresses that differ only by dots or a \"+\" suffix count as the same). Sign in to that account, or use a different email.",
"codes.USER_ALREADY_HAS_PASSWORD": "This account already has a password set",
"codes.USER_BANNED": "This user has been banned",
"codes.USER_EMAIL_NOT_FOUND": "Email not found",
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.json
index 9cfc0d81201..a36030ce5c2 100644
--- a/locales/en-US/chat.json
+++ b/locales/en-US/chat.json
@@ -337,7 +337,7 @@
"createGoal.costBudgetHint": "Stops once total spend reaches this amount; leave blank for no cap.",
"createGoal.costBudgetLabel": "Cost budget",
"createGoal.costBudgetPlaceholder": "No cap",
- "createGoal.createFailed": "Failed to create goal",
+ "createGoal.createFailedRetry": "Couldn't create the goal. Your plan is kept, check your connection and try again.",
"createGoal.criteriaHint": "Review and edit these before the goal starts",
"createGoal.criteriaTitle": "Acceptance criteria",
"createGoal.criterionPlaceholder": "Describe a result that can be clearly checked",
@@ -390,7 +390,7 @@
"createModal.title": "What should this Agent do?",
"createTask.assignee": "Agent",
"createTask.collapse": "Hide input",
- "createTask.createFailed": "Failed to create task",
+ "createTask.createFailedRetry": "Couldn't create the task. Your draft is kept, check your connection and try again.",
"createTask.discardConfirm.cancel": "Keep editing",
"createTask.discardConfirm.content": "The title, instruction and attachments you added will be lost.",
"createTask.discardConfirm.ok": "Discard",
@@ -1156,7 +1156,7 @@
"goalProcess.nodeStatus.resolved": "Done",
"goalProcess.nodeStatus.retired": "Retired",
"goalProcess.nodeStatus.waiting": "Waiting",
- "goalProcess.northStar.declare.failed": "Failed to declare the metric",
+ "goalProcess.northStar.declare.failedRetry": "Couldn't declare the metric. Check the key and target, then try again.",
"goalProcess.northStar.declare.keyLabel": "Metric key",
"goalProcess.northStar.declare.keyPlaceholder": "e.g. followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Condition",
@@ -1185,7 +1185,7 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Failed to record the observation",
+ "goalProcess.northStar.record.failedRetry": "Couldn't record the observation. Check the value and try again.",
"goalProcess.northStar.record.submit": "Record",
"goalProcess.northStar.record.title": "Record observation",
"goalProcess.northStar.record.valueLabel": "Current value of {{key}}",
@@ -1522,6 +1522,7 @@
"heteroAgent.claudeQuota.manage.labelField": "Display name",
"heteroAgent.claudeQuota.manage.labelPlaceholder": "Defaults to the account email",
"heteroAgent.claudeQuota.manage.loginFailed": "Sign-in didn't finish. Try again.",
+ "heteroAgent.claudeQuota.manage.loginFailedRetry": "Sign-in didn't finish. Click Add account to try again.",
"heteroAgent.claudeQuota.manage.loginSuccess": "Signed in as {{account}}",
"heteroAgent.claudeQuota.manage.loginWaiting": "Finish signing in in your browser…",
"heteroAgent.claudeQuota.manage.modeAuto": "Auto balance",
@@ -1534,6 +1535,7 @@
"heteroAgent.claudeQuota.manage.remove": "Remove account",
"heteroAgent.claudeQuota.manage.signIn": "Sign in",
"heteroAgent.claudeQuota.manage.switchFailed": "Couldn't switch the account. Try again.",
+ "heteroAgent.claudeQuota.manage.switchFailedRetry": "Couldn't switch the account. Check your network and try again.",
"heteroAgent.claudeQuota.manage.title": "Claude Code accounts",
"heteroAgent.claudeQuota.manage.use": "Use",
"heteroAgent.claudeQuota.manage.weeklyLeft": "{{percent}}% weekly",
@@ -2225,6 +2227,7 @@
"resource.artifacts.history.previewHint": "Select a revision to preview.",
"resource.artifacts.history.restore": "Restore",
"resource.artifacts.history.restoreError": "Failed to restore revision",
+ "resource.artifacts.history.restoreFailedRetry": "Couldn't restore this revision. Check your network and try again.",
"resource.artifacts.history.restoreSuccess": "Switched to v{{from}}",
"resource.artifacts.history.restoreTo": "Restore to v{{revision}}",
"resource.artifacts.history.revisionCount": "{{count}} revisions",
@@ -2365,6 +2368,7 @@
"sessionGroup.createAgentPinFailed": "Agent created, but pinning failed. You can pin it from the list.",
"sessionGroup.createAgentRefreshFailed": "Agent created, but the list couldn't refresh. Refresh the list to see it.",
"sessionGroup.createAgentSuccess": "Agent created successfully",
+ "sessionGroup.createFailedRetry": "Couldn't create the category. Check your network and try again.",
"sessionGroup.createGroup": "Add New Category",
"sessionGroup.createGroupFailed": "Failed to create category",
"sessionGroup.createGroupSuccess": "Category created successfully",
@@ -2399,6 +2403,7 @@
"shareModal.copyLinkSuccess": "Share link copied to clipboard",
"shareModal.download": "Download Screenshot",
"shareModal.downloadError": "Download failed",
+ "shareModal.downloadFailedRetry": "Couldn't download the PDF. Check your network and try again.",
"shareModal.downloadFile": "Download File",
"shareModal.downloadPdf": "Download PDF",
"shareModal.downloadSuccess": "Download successful",
@@ -2421,6 +2426,7 @@
"shareModal.generation.loadError": "Couldn't load the share settings",
"shareModal.generation.title": "Share this creation",
"shareModal.generation.updateError": "Couldn't update the link. Try again.",
+ "shareModal.generation.updateFailedRetry": "Couldn't update the share link. Check your network and try again.",
"shareModal.imageType": "Image Format",
"shareModal.includeTool": "Include Skill messages",
"shareModal.includeUser": "Include User Messages",
@@ -2818,6 +2824,7 @@
"taskDetail.status.running": "In progress",
"taskDetail.status.scheduled": "Scheduled",
"taskDetail.statusCascade.applyFailed": "Could not update the task status. Try again.",
+ "taskDetail.statusCascade.applyFailedRetry": "Couldn't update the task status. Check your network and try again.",
"taskDetail.statusCascade.cancel": "Cancel",
"taskDetail.statusCascade.description": "This task still has {{count}} open subtask(s). Update them to {{status}} too?",
"taskDetail.statusCascade.loadFailed": "Could not check the subtask statuses. Try again.",
diff --git a/locales/en-US/components.json b/locales/en-US/components.json
index 3f6d5f0a473..5e1b3a96e16 100644
--- a/locales/en-US/components.json
+++ b/locales/en-US/components.json
@@ -37,6 +37,7 @@
"FileManager.actions.copyUrlError": "Failed to copy the file link",
"FileManager.actions.copyUrlSuccess": "File url copied successfully.",
"FileManager.actions.createChunkingTask": "Preparing...",
+ "FileManager.actions.createFolderFailedRetry": "Couldn't create the folder. Check your network and try again.",
"FileManager.actions.deleteAll": "Delete All Items",
"FileManager.actions.deleteAllOwn": "Delete All Items I Created",
"FileManager.actions.deleteSuccess": "File deleted successfully.",
diff --git a/locales/en-US/dashboard.json b/locales/en-US/dashboard.json
index 4d3aba68a03..749b7774756 100644
--- a/locales/en-US/dashboard.json
+++ b/locales/en-US/dashboard.json
@@ -69,6 +69,7 @@
"error.showDetails": "Show details",
"form.descriptionLabel": "Description",
"form.descriptionPlaceholder": "What this dashboard keeps an eye on (optional)",
+ "form.saveFailedRetry": "Couldn't save the dashboard. Check your network and try again.",
"form.titleLabel": "Name",
"form.titlePlaceholder": "e.g. Open-source project health",
"layout.cancel": "Discard changes",
@@ -177,6 +178,7 @@
"widget.lastAttemptAt": "Last attempt {{time}}",
"widget.refresh.action": "Refresh now",
"widget.refresh.failed": "Refresh failed: {{message}}. The last successful result is still shown.",
+ "widget.saveFailedRetry": "Couldn't save the widget. Check your network and try again.",
"widget.state.failedNoOutput": "No successful result yet — the last run failed.",
"widget.state.firstRun": "Running for the first time…",
"widget.state.noRun": "Not run yet. Refresh to fetch data.",
diff --git a/locales/en-US/device.json b/locales/en-US/device.json
index 18a73125ba6..81aa057a593 100644
--- a/locales/en-US/device.json
+++ b/locales/en-US/device.json
@@ -67,6 +67,7 @@
"workingDirectory.drive.initializeWith": "Initialize with",
"workingDirectory.drive.moreActions": "More actions",
"workingDirectory.drive.pickFailed": "Could not switch to this folder. Try again.",
+ "workingDirectory.drive.pickFailedRetry": "Couldn't switch to this folder. Check your network and try again.",
"workingDirectory.drive.pickFolderFirst": "Choose a folder first",
"workingDirectory.drive.privateBlocked": "Private environment — a shared agent can’t use it",
"workingDirectory.drive.readOnly": "Environment directories are read-only here.",
diff --git a/locales/en-US/discover.json b/locales/en-US/discover.json
index 8cb58b43288..5de99b53b90 100644
--- a/locales/en-US/discover.json
+++ b/locales/en-US/discover.json
@@ -814,7 +814,8 @@
"user.workspaceProfile.errors.namespace.length": "Handle must be 3-32 characters",
"user.workspaceProfile.errors.namespace.pattern": "Use lowercase letters, numbers, and hyphens. Start and end with a letter or number.",
"user.workspaceProfile.errors.namespace.required": "Enter a Community handle",
- "user.workspaceProfile.errors.uploadFailed": "Failed to upload avatar",
+ "user.workspaceProfile.errors.saveFailed": "Couldn't save your profile. Check your network and try again.",
+ "user.workspaceProfile.errors.uploadFailedRetry": "Upload failed. Check your network and try again.",
"user.workspaceProfile.errors.url": "Enter a valid URL",
"user.workspaceProfile.failed": "Failed to update workspace profile",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -833,7 +834,7 @@
"user.workspaceProfile.fields.namespace.available": "This URL is available",
"user.workspaceProfile.fields.namespace.checking": "Checking availability…",
"user.workspaceProfile.fields.namespace.placeholder": "workspace-handle",
- "user.workspaceProfile.fields.namespace.taken": "This URL is already taken",
+ "user.workspaceProfile.fields.namespace.taken": "This URL is already taken. Try a different handle.",
"user.workspaceProfile.fields.websiteUrl": "Website",
"user.workspaceProfile.fields.websiteUrl.placeholder": "Workspace website link",
"user.workspaceProfile.optional.toggle": "More settings",
@@ -851,7 +852,7 @@
"user.workspaceProfile.settings.members.role.admin": "Admin",
"user.workspaceProfile.settings.members.role.member": "Member",
"user.workspaceProfile.settings.members.sync": "Sync members",
- "user.workspaceProfile.settings.members.syncFailed": "Failed to sync members",
+ "user.workspaceProfile.settings.members.syncFailedRetry": "Couldn't sync members. Check your network and click Sync members again.",
"user.workspaceProfile.settings.members.syncHint": "Sync the current workspace members to the Community organization.",
"user.workspaceProfile.settings.members.syncSuccess": "Members synced",
"user.workspaceProfile.settings.members.title": "Community Members",
@@ -864,7 +865,7 @@
"user.workspaceProfile.settings.tabs.members": "Members",
"user.workspaceProfile.settings.tabs.profile": "Profile",
"user.workspaceProfile.settings.title": "Community Profile Settings",
- "user.workspaceProfile.settings.updateFailed": "Failed to update Community profile",
+ "user.workspaceProfile.settings.updateFailedRetry": "Couldn't save. Check your network and click Save again.",
"user.workspaceProfile.settings.updateSuccess": "Community profile updated",
"user.workspaceProfile.settings.website.description": "Add a website shown on the Community profile.",
"user.workspaceProfile.settings.website.hint": "Use a public http(s) URL.",
diff --git a/locales/en-US/electron.json b/locales/en-US/electron.json
index 315e4b270b6..ff6e978309d 100644
--- a/locales/en-US/electron.json
+++ b/locales/en-US/electron.json
@@ -106,12 +106,13 @@
"proxy.port": "Port",
"proxy.resetButton": "Reset",
"proxy.saveButton": "Save",
- "proxy.saveFailed": "Save failed: {{error}}",
+ "proxy.saveFailedRetry": "Couldn't save the proxy settings. Check them and try again.",
"proxy.saveSuccess": "Proxy settings saved successfully",
"proxy.server": "Server Address",
"proxy.testButton": "Test Connection",
"proxy.testDescription": "Test the connection using the current proxy configuration to verify if it works properly",
"proxy.testFailed": "Connection failed",
+ "proxy.testFailedHint": "Check the proxy server, port, and credentials, then test again.",
"proxy.testSuccessWithTime": "Connection test succeeded, took {{time}} ms",
"proxy.testUrl": "Test URL",
"proxy.testUrlPlaceholder": "Please enter the URL to test",
diff --git a/locales/en-US/eval.json b/locales/en-US/eval.json
index 0788a9cc401..77a1b577cd5 100644
--- a/locales/en-US/eval.json
+++ b/locales/en-US/eval.json
@@ -26,6 +26,7 @@
"benchmark.create.description.label": "Description",
"benchmark.create.description.placeholder": "Benchmark description (optional)",
"benchmark.create.error": "Failed to create benchmark",
+ "benchmark.create.failedRetry": "Couldn't create the benchmark. Check your network and try again.",
"benchmark.create.identifier.label": "Identifier",
"benchmark.create.identifier.placeholder": "benchmark-identifier",
"benchmark.create.identifierRequired": "Please enter an identifier",
@@ -65,6 +66,7 @@
"benchmark.detail.tabs.runs": "Runs",
"benchmark.edit.confirm": "Save",
"benchmark.edit.error": "Failed to update benchmark",
+ "benchmark.edit.failedRetry": "Couldn't save the benchmark. Check your network and try again.",
"benchmark.edit.success": "Benchmark updated successfully",
"benchmark.edit.title": "Edit Benchmark",
"benchmark.empty": "No benchmarks yet. Create one to get started.",
@@ -189,6 +191,7 @@
"dataset.create.description.label": "Description",
"dataset.create.description.placeholder": "Dataset description (optional)",
"dataset.create.error": "Failed to create dataset",
+ "dataset.create.failedRetry": "Couldn't create the dataset. Check that the identifier isn't already used, then try again.",
"dataset.create.fork.filter.hint": "Leave empty to include all categories from the source dataset.",
"dataset.create.fork.filter.label": "Filter",
"dataset.create.fork.filter.placeholder": "Select categories",
@@ -226,6 +229,7 @@
"dataset.detail.testCases": "Test Cases",
"dataset.detail.viewDetail": "View Details",
"dataset.edit.error": "Failed to update dataset",
+ "dataset.edit.failedRetry": "Couldn't save the dataset. Check your network and try again.",
"dataset.edit.success": "Dataset updated successfully",
"dataset.edit.title": "Edit Dataset",
"dataset.empty": "No datasets",
@@ -333,6 +337,7 @@
"experiment.create.description.label": "Description",
"experiment.create.description.placeholder": "Experiment description (optional)",
"experiment.create.error": "Failed to create experiment",
+ "experiment.create.failedRetry": "Couldn't create the experiment. Check your network and try again.",
"experiment.create.name.label": "Name",
"experiment.create.name.placeholder": "Enter experiment name",
"experiment.create.nameRequired": "Please enter an experiment name",
@@ -353,6 +358,7 @@
"experiment.detail.stats.branches": "Branches",
"experiment.detail.stats.runs": "Runs",
"experiment.edit.error": "Failed to update experiment",
+ "experiment.edit.failedRetry": "Couldn't save the experiment. Check your network and try again.",
"experiment.edit.success": "Experiment updated successfully",
"experiment.edit.title": "Edit Experiment",
"experiment.empty": "No experiments yet",
@@ -371,6 +377,7 @@
"lobeBench.benchmark.create.description": "Description",
"lobeBench.benchmark.create.description.placeholder": "Optional: what this benchmark measures",
"lobeBench.benchmark.create.failed": "Could not create the benchmark",
+ "lobeBench.benchmark.create.failedRetry": "Couldn't create the benchmark. Check your network and try again.",
"lobeBench.benchmark.create.judge": "Judge model",
"lobeBench.benchmark.create.judge.hint": "Every run on this benchmark is graded by this model, so its scores stay comparable. It cannot be changed later.",
"lobeBench.benchmark.create.judge.placeholder": "Choose the judge model",
@@ -637,6 +644,7 @@
"lobeBench.experiment.delete.done": "Experiment deleted",
"lobeBench.experiment.delete.failed": "Could not delete the experiment",
"lobeBench.experiment.edit.failed": "Could not update the experiment",
+ "lobeBench.experiment.edit.failedRetry": "Couldn't save the experiment. Check your network and try again.",
"lobeBench.experiment.edit.saved": "Experiment updated",
"lobeBench.experiment.edit.title": "Edit experiment",
"lobeBench.experiment.line_one": "{{count}} contender · {{dataset}} · {{k}}× per case",
@@ -772,6 +780,7 @@
"lobeBench.overview.runningLine": "{{done}}/{{total}} cases · {{cost}} so far",
"lobeBench.picks.clear": "Clear",
"lobeBench.picks.create": "Create dataset",
+ "lobeBench.picks.createFailedRetry": "Couldn't create the dataset. Check your network and try again.",
"lobeBench.picks.created_one": "Made {{dataset}} with {{count}} case",
"lobeBench.picks.created_other": "Made {{dataset}} with {{count}} cases",
"lobeBench.picks.defaultName": "My dataset",
@@ -783,6 +792,7 @@
"lobeBench.picks.name": "Dataset name",
"lobeBench.picks.name.placeholder": "e.g. Finance L2",
"lobeBench.picks.rename": "Rename",
+ "lobeBench.picks.renameFailedRetry": "Couldn't rename the dataset. Check your network and try again.",
"lobeBench.picks.run": "Run experiment",
"lobeBench.picks.selected": "{{count}} selected",
"lobeBench.picks.title_one": "Make a dataset of {{count}} case",
@@ -915,6 +925,7 @@
"run.create.dataset.placeholder": "Select a dataset",
"run.create.dataset.required": "Please select a dataset",
"run.create.error": "Failed to create run",
+ "run.create.failedRetry": "Couldn't create the run. Check your network and try again.",
"run.create.forkSummary.agent": "Agent: {{agent}}",
"run.create.forkSummary.dataset": "Dataset: {{dataset}}",
"run.create.forkSummary.snapshot": "A fresh snapshot will be generated from the current agent configuration.",
@@ -945,6 +956,7 @@
"run.detail.progressCases": "cases",
"run.detail.report": "Evaluation Summary",
"run.edit.error": "Failed to update evaluation",
+ "run.edit.failedRetry": "Couldn't save the run. Check your network and try again.",
"run.edit.success": "Evaluation updated successfully",
"run.edit.title": "Edit Evaluation",
"run.empty.description": "Start your first evaluation run on this dataset",
@@ -1018,6 +1030,7 @@
"testCase.create.expected.label": "Expected Output",
"testCase.create.expected.placeholder": "Enter the expected answer",
"testCase.create.expected.required": "Please enter the expected output",
+ "testCase.create.failedRetry": "Couldn't create the test case. Check your network and try again.",
"testCase.create.input.label": "Input",
"testCase.create.input.placeholder": "Enter the test case input or question",
"testCase.create.success": "Test case added successfully",
@@ -1028,6 +1041,7 @@
"testCase.delete.error": "Failed to delete test case",
"testCase.delete.success": "Test case deleted",
"testCase.edit.error": "Failed to update test case",
+ "testCase.edit.failedRetry": "Couldn't save the test case. Check your network and try again.",
"testCase.edit.success": "Test case updated successfully",
"testCase.edit.title": "Edit Test Case",
"testCase.empty.description": "Import or manually add test cases to this dataset",
diff --git a/locales/en-US/marketAuth.json b/locales/en-US/marketAuth.json
index fe1fc62a62f..e602c1ea43c 100644
--- a/locales/en-US/marketAuth.json
+++ b/locales/en-US/marketAuth.json
@@ -27,6 +27,7 @@
"claimResources.claim": "Claim Selected",
"claimResources.description": "We found resources linked to your account that you can claim:",
"claimResources.error": "Failed to claim resources. Please try again.",
+ "claimResources.failedRetry": "Couldn't claim these resources. Check your network and try again.",
"claimResources.mcpSection": "MCP Servers",
"claimResources.selectedCount": "{{count}} item(s) selected",
"claimResources.skillSection": "Skills",
diff --git a/locales/en-US/memory.json b/locales/en-US/memory.json
index 3039c13b65b..b7e9301911b 100644
--- a/locales/en-US/memory.json
+++ b/locales/en-US/memory.json
@@ -237,7 +237,7 @@
"rules.distill.truncated": "The material is long; only its beginning was read.",
"rules.distill.untitled": "Untitled",
"rules.distill.upload": "Upload a file",
- "rules.distill.uploadFailed": "Could not upload the file.",
+ "rules.distill.uploadFailedRetry": "Couldn't upload the file. Try again or choose a different file.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint or plain text",
"rules.enforcement.block": "Block",
"rules.enforcement.blockDesc": "Will hold the delivery until you let it through. Not in effect yet: for now it only reminds",
@@ -339,6 +339,7 @@
"rules.runs.none": "Not checked yet",
"rules.runs.overruled": "you overruled it {{count}} times",
"rules.saveFailed": "Could not save that change. The page now shows what is actually saved.",
+ "rules.saveFailedRetry": "Couldn't save. Your input is kept, check your connection and try again.",
"rules.scope.agent": "agent {{title}}",
"rules.scope.project": "project {{title}}",
"rules.scope.user": "all your runs",
diff --git a/locales/en-US/plugin.json b/locales/en-US/plugin.json
index a50fc9d3d62..fe2fc459174 100644
--- a/locales/en-US/plugin.json
+++ b/locales/en-US/plugin.json
@@ -1056,7 +1056,9 @@
"dev.preview.mcp.tools_other": "{{count}} tools",
"dev.preview.title": "Skill name preview",
"dev.saveError": "Install failed, please try again",
+ "dev.saveFailedRetry": "Couldn't save the connector. Check your network and try again.",
"dev.saveSuccess": "Settings saved",
+ "dev.ssrfBlockedRetry": "This server address isn't allowed. Use a public address, or open details to see how to allow it.",
"dev.tabs.manifest": "Manifest",
"dev.tabs.meta": "Meta info",
"dev.title.connectorSettings": "Connector settings",
@@ -1187,6 +1189,7 @@
"protocolInstall.marketplace.verified": "Verified",
"protocolInstall.messages.connectionTestFailed": "Connection test failed",
"protocolInstall.messages.installError": "Install failed, retry",
+ "protocolInstall.messages.installFailedRetry": "Couldn't install this plugin. Check your network and try again.",
"protocolInstall.messages.installSuccess": "{{name}} installed. Enable now or configure later.",
"protocolInstall.messages.manifestError": "Failed to fetch Skill info. Check network or retry later.",
"protocolInstall.messages.manifestNotFound": "Manifest not found",
@@ -1235,9 +1238,9 @@
"settings.httpTypeNotice": "HTTP MCP has no env vars to configure",
"settings.indexUrl.title": "Community index",
"settings.indexUrl.tooltip": "Edit via deployment env vars",
- "settings.messages.connectionUpdateFailed": "Failed to update connection",
+ "settings.messages.connectionUpdateFailedRetry": "Couldn't update the connection. Check the URL or command, then try again.",
"settings.messages.connectionUpdateSuccess": "Connection updated",
- "settings.messages.envUpdateFailed": "Failed to save env vars",
+ "settings.messages.envUpdateFailedRetry": "Couldn't save the environment variables. Check your connection and try again.",
"settings.messages.envUpdateSuccess": "Env vars saved",
"settings.modalDesc": "Configure community URL to use custom Skill community.",
"settings.rules.argsRequired": "Enter arguments",
diff --git a/locales/en-US/project.json b/locales/en-US/project.json
index dd8b57576c0..25af7a860a4 100644
--- a/locales/en-US/project.json
+++ b/locales/en-US/project.json
@@ -208,6 +208,7 @@
"create.avatarInvalidType": "Use a JPG, PNG, GIF, or WEBP image.",
"create.avatarUploadFailed": "Couldn't upload the image. Try again.",
"create.blank": "Blank project",
+ "create.failedRetry": "Couldn't create the project. Check your network and try again.",
"create.fromGithub": "From GitHub repository",
"create.identifierDescription": "Replaces the task number prefix for this project, for example ACE. Leave it empty to use the default prefix.",
"create.identifierInvalid": "Use 3–6 uppercase letters or numbers, starting with a letter.",
@@ -327,6 +328,7 @@
"goals.title": "Goals",
"knowledgeBases.add": "Link",
"knowledgeBases.addFailed": "Could not link the library",
+ "knowledgeBases.addFailedRetry": "Couldn't add this library. Check your network and try again.",
"knowledgeBases.addTitle": "Link libraries",
"knowledgeBases.added": "Linked",
"knowledgeBases.description": "Agents can search these libraries while working on this project's tasks.",
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 740f4083b1c..09b1d0facbe 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -33,6 +33,7 @@
"accountDeletion.reasonOption.too_expensive": "Too expensive",
"accountDeletion.requestButton": "Request Account Deletion",
"accountDeletion.requestFailed": "Failed to request account deletion",
+ "accountDeletion.requestFailedRetry": "Couldn't submit your deletion request. Check your connection and try again.",
"accountDeletion.requestSuccess": "Deletion request submitted",
"accountDeletion.reregisterNotice": "After deletion completes, the same email cannot be used to sign up again for {{days}} days.",
"accountDeletion.sectionTitle": "Account Deletion",
@@ -212,6 +213,7 @@
"agentSkillModal.github.clearSearch": "Clear search",
"agentSkillModal.github.complete_one": "{{count}} skill is ready to use",
"agentSkillModal.github.complete_other": "{{count}} skills are ready to use",
+ "agentSkillModal.github.connectFailedRetry": "Couldn't connect GitHub. Check your network and try again.",
"agentSkillModal.github.connectionSettings": "Open GitHub connection settings",
"agentSkillModal.github.desc": "Choose a GitHub repository or folder containing a SKILL.md file.",
"agentSkillModal.github.empty": "No SKILL.md found at this URL. Try another repository or directory.",
@@ -484,7 +486,7 @@
"creds.errors.privateCredsDisabled": "Private workspace credentials are not available yet. Please try again later.",
"creds.errors.publicCredExists": "This workspace already shares a credential with this key. Remove it before publishing this one.",
"creds.file.authRequired": "Please sign in to the Market first",
- "creds.file.uploadFailed": "File upload failed",
+ "creds.file.uploadFailedRetry": "File upload failed. Check the file and try again.",
"creds.file.uploadSuccess": "File uploaded successfully",
"creds.file.uploading": "Uploading...",
"creds.form.addEnvVar": "Add variable",
@@ -758,6 +760,7 @@
"devices.share.detailLabel": "Shared to workspaces",
"devices.share.done": "Done",
"devices.share.empty": "You haven't joined any workspace yet.",
+ "devices.share.failedRetry": "Couldn't share this device to {{name}}. Make sure the device is online, then try again.",
"devices.share.goToTarget": "Go to {{name}}",
"devices.share.menu": "Share to Workspace…",
"devices.share.modalDesc": "Pick a workspace to share this device into. Members can dispatch agent runs to it while it stays online.",
@@ -1110,7 +1113,7 @@
"environments.removeConfirmContent": "Its specification and variables are deleted and cannot be recovered. Folders it initialized keep their files; copies built by an earlier version are removed with it.",
"environments.removeConfirmTitle": "Delete environment {{name}}?",
"environments.removeFailed": "Could not delete this environment",
- "environments.saveFailed": "Could not save this change",
+ "environments.saveFailedRetry": "Could not save this change. Check your network and try again.",
"environments.sessions.activeBuild": "{{instance}} is being built right now",
"environments.sessions.activeSession": "A sandbox is running in {{instance}} right now",
"environments.sessions.desc": "The most recent sessions that ran in these copies and the builds of them, newest first, with how each ended and whether what it installed was saved.",
@@ -1277,7 +1280,7 @@
"hotkey.sendMessage.desc": "The other key combination inserts a line break",
"hotkey.sendMessage.title": "Send Message",
"hotkey.title": "Hotkeys",
- "hotkey.updateError": "Failed to update hotkey: Network or system error",
+ "hotkey.updateErrorRetry": "Couldn't save this hotkey. Try recording it again.",
"hotkey.updateSuccess": "Hotkey updated successfully",
"identity.add": "Add mailbox",
"identity.copy": "Copy address",
@@ -1749,6 +1752,7 @@
"settingAgent.artwork.uploadFailed": "Could not upload the image. Try again.",
"settingAgent.avatar.sizeExceeded": "Image size exceeds 1MB limit, please choose a smaller image",
"settingAgent.avatar.title": "Avatar",
+ "settingAgent.avatar.uploadFailed": "Couldn't upload the image. Check your network and choose it again.",
"settingAgent.backgroundColor.title": "Background Color",
"settingAgent.description.desc": "A brief introduction to your agent, not for character setting",
"settingAgent.description.hint": "Other agents read this when they look up who to hand work to.",
@@ -2341,6 +2345,7 @@
"storage.used": "Storage Usage",
"storageOverage.addPaymentMethod": "Add payment method",
"storageOverage.capUpdateFailed": "Failed to update monthly cap.",
+ "storageOverage.capUpdateFailedRetry": "Couldn't save the monthly cap. Check the amount and try again.",
"storageOverage.capUpdated": "Monthly cap updated.",
"storageOverage.capped": "Monthly spending cap reached. Overage uploads are paused.",
"storageOverage.consent.billedMonthlyForYearly": "Storage overage is billed monthly, separate from your yearly plan renewal",
@@ -2360,8 +2365,10 @@
"storageOverage.disableConfirm.existingCharges": "Charges already incurred in this billing cycle will still be included on your subscription invoice.",
"storageOverage.disableConfirm.title": "Disable storage pay-as-you-go?",
"storageOverage.disableFailed": "Failed to disable storage pay-as-you-go.",
+ "storageOverage.disableFailedRetry": "Couldn't disable storage pay-as-you-go. Try again.",
"storageOverage.disabled": "Storage pay-as-you-go disabled.",
"storageOverage.enableFailed": "Failed to enable storage pay-as-you-go.",
+ "storageOverage.enableFailedRetry": "Couldn't enable storage pay-as-you-go. Try again.",
"storageOverage.enabled": "Storage pay-as-you-go enabled.",
"storageOverage.mobileManaged.desc": "Your plan was purchased in an app store, so storage pay-as-you-go cannot be enabled here. Manage this subscription where you bought it.",
"storageOverage.monthlyCap": "Monthly spending cap",
@@ -2618,6 +2625,7 @@
"taskLabels.form.name": "Name",
"taskLabels.form.namePlaceholder": "e.g. Bug",
"taskLabels.form.noGroup": "No group",
+ "taskLabels.form.saveFailedRetry": "Couldn't save the label. Check your network and try again.",
"taskLabels.groupBadge": "Group",
"taskLabels.loadFailed": "Failed to load labels",
"taskLabels.tabs.agent": "Agent labels",
@@ -3171,6 +3179,7 @@
"workspace.billing.paymentMethods.expires": "Expires {{date}}",
"workspace.billing.paymentMethods.managePortalCta": "Manage in Stripe portal",
"workspace.billing.paymentMethods.portalFailed": "Failed to open billing portal",
+ "workspace.billing.paymentMethods.portalFailedRetry": "Couldn't open the billing portal. Check your network and try again.",
"workspace.billing.paymentMethods.remove": "Remove",
"workspace.billing.paymentMethods.removeConfirmContent": "This card will no longer be used to pay for this workspace.",
"workspace.billing.paymentMethods.removeConfirmTitle": "Remove this card?",
@@ -3272,6 +3281,7 @@
"workspace.billingPage.billing.change.seatReductionHint": "Reducing seats takes effect on the next billing cycle. The current cycle is not refunded.",
"workspace.billingPage.billing.change.title": "Adjust plan",
"workspace.billingPage.billing.changeFailed": "Failed to update subscription.",
+ "workspace.billingPage.billing.changeFailedRetry": "Couldn't update the subscription. Check your connection and try again.",
"workspace.billingPage.billing.changeSuccess": "Subscription update saved.",
"workspace.billingPage.billing.currentPlan.descBasic": "Basic workspace for up to 3 members",
"workspace.billingPage.billing.currentPlan.descBusiness": "Business workspace with expanded usage and larger teams",
@@ -3417,12 +3427,14 @@
"workspace.billingPage.credits.autoTopUp.pausedTitle": "Auto top-up paused",
"workspace.billingPage.credits.autoTopUp.purchaseCredits": "Top up",
"workspace.billingPage.credits.autoTopUp.save": "Save",
+ "workspace.billingPage.credits.autoTopUp.saveFailed": "Couldn't save auto top-up settings. Check your connection and try again.",
"workspace.billingPage.credits.autoTopUp.saveSuccess": "Auto top-up settings updated.",
"workspace.billingPage.credits.autoTopUp.setupPaymentMethod": "Set up payment method",
"workspace.billingPage.credits.autoTopUp.subtitle": "Keep your balance topped up automatically so the team is never blocked.",
"workspace.billingPage.credits.autoTopUp.target": "Target balance",
"workspace.billingPage.credits.autoTopUp.threshold": "Trigger threshold",
"workspace.billingPage.credits.autoTopUp.title": "Auto top-up",
+ "workspace.billingPage.credits.autoTopUp.toggleFailed": "Couldn't change auto top-up. Try again.",
"workspace.billingPage.credits.autoTopUp.validation.targetMustExceedThreshold": "Target balance must be greater than the trigger threshold.",
"workspace.billingPage.credits.balance.basicDesc": "Basic workspaces do not include monthly usage — top up below or upgrade to Pro.",
"workspace.billingPage.credits.balance.freeDesc": "Free workspaces do not include monthly usage — top up below or upgrade to Pro.",
@@ -3482,6 +3494,7 @@
"workspace.billingPage.credits.title": "Usage",
"workspace.billingPage.credits.topUp.custom": "Custom",
"workspace.billingPage.credits.topUp.maxAmountError": "Purchase amount cannot exceed ${{max}} per transaction.",
+ "workspace.billingPage.credits.topUp.purchaseFailed": "Couldn't complete the top-up. Check your connection and try again.",
"workspace.billingPage.credits.topUp.purchaseNow": "Purchase now",
"workspace.billingPage.credits.topUp.purchaseSuccess": "Purchase successful.",
"workspace.billingPage.credits.topUp.selectPackage": "Select a top-up pack",
@@ -4309,6 +4322,7 @@
"workspace.upgradeModal.noFreeHint": "You don't own any Free workspaces to upgrade.",
"workspace.upgradeModal.ownerTag": "Owner",
"workspace.upgradeModal.payFailed": "Failed to start checkout",
+ "workspace.upgradeModal.payFailedRetry": "Couldn't start checkout. Check your connection and try again.",
"workspace.upgradeModal.pickerLabel": "Select a workspace",
"workspace.upgradeModal.proTag": "Pro",
"workspace.upgradeModal.subtitle": "Unlock collaboration, more usage, and higher rate limits.",
@@ -4419,6 +4433,7 @@
"workspace.wizard.step2.confirmPurchase": "Confirm purchase",
"workspace.wizard.step2.createBasic": "Create workspace",
"workspace.wizard.step2.createFailed": "Failed to create workspace",
+ "workspace.wizard.step2.createFailedRetry": "Couldn't create the workspace. Check your connection and try again.",
"workspace.wizard.step2.createFree": "Create workspace",
"workspace.wizard.step2.createdToast": "Workspace {{name}} created.",
"workspace.wizard.step2.details.description": "See what's included in your selected plan.",
@@ -4453,6 +4468,7 @@
"workspace.wizard.step2.left.proTagline": "${{fee}}/seat/month. Extra usage is billed on demand.",
"workspace.wizard.step2.left.proTopUpHint": "Top up when balance runs low: ${{price}} per $1 ({{percent}}% off the standard rate)",
"workspace.wizard.step2.payFailed": "Failed to start checkout",
+ "workspace.wizard.step2.payFailedRetry": "Couldn't start checkout. Check your connection and try again.",
"workspace.wizard.step2.pill.basic": "Basic",
"workspace.wizard.step2.pill.basicUsed": "{{used}}/{{limit}} used",
"workspace.wizard.step2.pill.free": "Free",
@@ -4501,6 +4517,7 @@
"workspaceSetting.labels.actions.create": "New label",
"workspaceSetting.labels.actions.unarchive": "Restore",
"workspaceSetting.labels.archive.desc": "This label will no longer be available to apply to agents. Agents with the label already applied will remain unchanged.",
+ "workspaceSetting.labels.archive.failedRetry": "Couldn't archive the label. Check your network and try again.",
"workspaceSetting.labels.archive.success": "Label archived",
"workspaceSetting.labels.archive.title": "Archive \"{{name}}\"?",
"workspaceSetting.labels.archivedEmpty": "No archived labels",
@@ -4512,6 +4529,7 @@
"workspaceSetting.labels.delete.confirmHint": "To confirm, type \"delete\" below:",
"workspaceSetting.labels.delete.desc": "Deletion cannot be undone.",
"workspaceSetting.labels.delete.descUsed": "This label will be removed from {{count}} agents. Deletion cannot be undone.",
+ "workspaceSetting.labels.delete.failedRetry": "Couldn't delete the label. Check your network and try again.",
"workspaceSetting.labels.delete.success": "Label deleted",
"workspaceSetting.labels.delete.title": "Delete the label \"{{name}}\"?",
"workspaceSetting.labels.empty": "No labels yet. Create one to organize your agents.",
@@ -4526,6 +4544,7 @@
"workspaceSetting.labels.form.name": "Name",
"workspaceSetting.labels.form.namePlaceholder": "Label name",
"workspaceSetting.labels.form.restoreTitle": "Rename to restore",
+ "workspaceSetting.labels.form.saveFailedRetry": "Couldn't save the label. Check your network and try again.",
"workspaceSetting.labels.loadFailed": "Couldn't load labels",
"workspaceSetting.labels.manageBlocked": "Only workspace admins can manage labels",
"workspaceSetting.labels.scope.archived": "Archived",
diff --git a/locales/en-US/subscription.json b/locales/en-US/subscription.json
index 0adda1f55ca..df0d3de9563 100644
--- a/locales/en-US/subscription.json
+++ b/locales/en-US/subscription.json
@@ -49,6 +49,7 @@
"cancelPlan.billingRecovery.desc": "This subscription is past due. Cancellation takes effect immediately and cannot be restored.",
"cancelPlan.confirmCountdown": "Cancel subscription ({{seconds}})",
"cancelPlan.desc": "After cancellation, you will be downgraded to the free version when the current plan expires.",
+ "cancelPlan.failed": "Couldn't cancel the subscription. Check your connection and try again.",
"cancelPlan.keep": "Keep subscription",
"cancelPlan.nextStep": "Next",
"cancelPlan.prevStep": "Back",
@@ -94,6 +95,7 @@
"credits.agentShareBudget.limitHint": "Leave blank for no Workspace-wide cap. Set 0 to pause all visitor runs. These charges use the Workspace balance and never consume a member quota.",
"credits.agentShareBudget.save": "Save",
"credits.agentShareBudget.saveError": "Failed to save the Agent Share budget policy",
+ "credits.agentShareBudget.saveFailed": "Couldn't save the Agent Share budget. Check your connection and try again.",
"credits.agentShareBudget.saveSuccess": "Agent Share budget policy saved",
"credits.agentShareBudget.title": "External agent sharing",
"credits.agentShareBudget.unlimited": "No workspace-wide cap",
@@ -115,6 +117,7 @@
"credits.autoTopUp.enable.limitReachedNow": "Your balance is {{balance}}, at or below {{threshold}}, but this month's limit is used up, so nothing is charged now.",
"credits.autoTopUp.enable.noChargeNow": "Your balance is {{balance}}, above {{threshold}}, so nothing is charged now. Auto top-up runs once it drops to {{threshold}}.",
"credits.autoTopUp.enable.noPaymentMethod": "Add a card first",
+ "credits.autoTopUp.enable.openSetupFailed": "Couldn't open payment method setup. Check your connection and try again.",
"credits.autoTopUp.enable.overflowNote": "This also turns on \"{{overflow}}\". Without it, requests stop at your plan limits and auto top-up never runs.",
"credits.autoTopUp.enable.paymentMethod": "Payment method",
"credits.autoTopUp.enable.submit": "Turn on auto top-up",
@@ -132,6 +135,7 @@
"credits.autoTopUp.purchaseCredits": "Top up",
"credits.autoTopUp.recommended": "Recommended",
"credits.autoTopUp.saveError": "Failed to save auto top-up settings",
+ "credits.autoTopUp.saveFailed": "Couldn't save auto top-up settings. Check your connection and try again.",
"credits.autoTopUp.saveSuccess": "Auto top-up settings saved",
"credits.autoTopUp.setupAndEnable": "Add card and turn on",
"credits.autoTopUp.setupPaymentMethod": "Add payment method",
@@ -145,6 +149,7 @@
"credits.autoTopUp.thresholdDesc": "Auto top-up triggers when your balance falls to or below this level",
"credits.autoTopUp.title": "Auto top-up",
"credits.autoTopUp.toggle": "Enable auto top-up",
+ "credits.autoTopUp.turnOffFailed": "Couldn't turn off auto top-up. Try again.",
"credits.autoTopUp.upgradeHint": "Subscribe to a paid plan to enable auto top-up",
"credits.autoTopUp.validation.targetMustExceedThreshold": "Target balance must be greater than threshold",
"credits.budgetPage.allocate.desc": "Set aside allowances for groups or teams. Members use them before their personal allowance.",
@@ -153,6 +158,7 @@
"credits.budgetPage.limit.title": "Spending limits",
"credits.costEstimateHint.desc": "Before you send a message, warn above the chat input if its estimated model cost reaches this amount",
"credits.costEstimateHint.saveError": "Failed to save cost estimate alert settings",
+ "credits.costEstimateHint.saveFailedRetry": "Couldn't save the alert threshold. Check your connection and try again.",
"credits.costEstimateHint.saveSuccess": "Cost estimate alert settings saved",
"credits.costEstimateHint.threshold": "Warning threshold",
"credits.costEstimateHint.title": "Cost estimate alert",
@@ -202,6 +208,7 @@
"credits.dedicatedBudget.rules.removeConfirm.title": "Remove the limit for {{name}}?",
"credits.dedicatedBudget.rules.title": "Member limits · {{name}}",
"credits.dedicatedBudget.saveError": "Failed to save the dedicated budget",
+ "credits.dedicatedBudget.saveFailed": "Couldn't save the dedicated budget. Check your connection and try again.",
"credits.dedicatedBudget.saveSuccess": "Dedicated budget saved",
"credits.dedicatedBudget.title": "Dedicated budgets",
"credits.dedicatedBudget.userPanel.label": "Dedicated budget",
@@ -227,6 +234,7 @@
"credits.memberBudget.ruleLimit": "Budget limit",
"credits.memberBudget.ruleTarget": "Rule target",
"credits.memberBudget.saveError": "Failed to save member budget settings",
+ "credits.memberBudget.saveFailed": "Couldn't save the member budget. Check your connection and try again.",
"credits.memberBudget.saveSuccess": "Member budget settings saved",
"credits.memberBudget.status.custom": "Custom",
"credits.memberBudget.status.inherit": "Inherits default",
@@ -283,6 +291,7 @@
"credits.teamBudget.removeConfirm.desc": "Team members will no longer draw from this budget. The team itself is kept.",
"credits.teamBudget.removeConfirm.title": "Remove this team budget?",
"credits.teamBudget.saveError": "Failed to save the team budget",
+ "credits.teamBudget.saveFailed": "Couldn't save the team budget. Check your connection and try again.",
"credits.teamBudget.saveSuccess": "Team budget saved",
"credits.teamBudget.team": "Team",
"credits.teamBudget.teamPlaceholder": "Select a team",
diff --git a/locales/en-US/tool.json b/locales/en-US/tool.json
index 315fe054632..47cc648d36a 100644
--- a/locales/en-US/tool.json
+++ b/locales/en-US/tool.json
@@ -155,6 +155,7 @@
"connector.add.clientSecret": "OAuth Client Secret (optional)",
"connector.add.confirm": "Add",
"connector.add.editTitle": "Edit Connector",
+ "connector.add.failedRetry": "Couldn't save the connector. Check the server URL and your network, then try again.",
"connector.add.name": "Name",
"connector.add.namePlaceholder": "My connector",
"connector.add.popupBlocked": "Please allow popups for this site and try again.",
@@ -379,7 +380,7 @@
"updateArgs.form.add": "Add an Item",
"updateArgs.form.key": "Field Key",
"updateArgs.form.value": "Field Value",
- "updateArgs.formValidationFailed": "Form validation failed, please check the parameter format",
"updateArgs.keyRequired": "Field key cannot be empty",
+ "updateArgs.saveFailed": "Couldn't save the parameters. Check your network and try again.",
"updateArgs.stringifyError": "Unable to serialize parameters, please check the parameter format"
}
diff --git a/locales/en-US/topic.json b/locales/en-US/topic.json
index 7001701dc0e..40f495d8e02 100644
--- a/locales/en-US/topic.json
+++ b/locales/en-US/topic.json
@@ -60,6 +60,7 @@
"doctor.notRepairable": "This cannot be undone — the content was never saved.",
"doctor.repair": "Repair",
"doctor.repairFailed": "Repair failed. Nothing was changed.",
+ "doctor.repairFailedRetry": "Couldn't repair this topic. Check your network and try again.",
"doctor.repaired_one": "Restored {{count}} message.",
"doctor.repaired_other": "Restored {{count}} messages.",
"doctor.summary_one": "{{count}} message exists in this topic but is not being shown.",
@@ -235,6 +236,7 @@
"management.moveModal.done_other": "{{count}} topics moved",
"management.moveModal.error": "Move failed, please try again",
"management.moveModal.goToTarget": "Go to “{{title}}”",
+ "management.moveModal.moveFailedRetry": "Couldn't move the topics. Check your network and try again.",
"management.moveModal.moving": "Moving…",
"management.moveModal.title": "Move topics",
"management.searchPlaceholder": "Search this agent's topics…",
diff --git a/locales/en-US/verify.json b/locales/en-US/verify.json
index fa30bc904d9..cd661652ea5 100644
--- a/locales/en-US/verify.json
+++ b/locales/en-US/verify.json
@@ -151,6 +151,7 @@
"acceptance.comments.copyLink": "Copy link",
"acceptance.comments.copyLinkHint": "{{time}} · click to copy this comment’s link",
"acceptance.comments.createFailed": "Failed to post the comment. Please try again.",
+ "acceptance.comments.createFailedRetry": "Couldn't post the comment. Check your network and try again.",
"acceptance.comments.delete": "Delete",
"acceptance.comments.deleteConfirm": "Delete this comment?",
"acceptance.comments.deleteFailed": "Failed to delete the comment. Please try again.",
diff --git a/locales/es-ES/auth.json b/locales/es-ES/auth.json
index 3328313c45a..faa34eaa598 100644
--- a/locales/es-ES/auth.json
+++ b/locales/es-ES/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "La verificación no se completó. Vuelva a intentar el desafío.",
"betterAuth.captcha.title": "Se requiere verificación de seguridad",
"betterAuth.errors.confirmPasswordRequired": "Por favor, confirme su contraseña",
- "betterAuth.errors.emailExists": "Este correo ya está registrado. Por favor, inicie sesión",
"betterAuth.errors.emailInvalid": "Por favor, ingrese un correo electrónico o nombre de usuario válido",
"betterAuth.errors.emailNotRegistered": "Este correo electrónico o nombre de usuario no está registrado",
"betterAuth.errors.emailNotVerified": "Correo no verificado, por favor verifique su correo primero",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "La contraseña debe tener al menos 8 caracteres",
"betterAuth.errors.passwordMismatch": "Las contraseñas no coinciden",
"betterAuth.errors.passwordRequired": "Por favor, ingrese su contraseña",
- "betterAuth.errors.usernameNotRegistered": "Este nombre de usuario no está registrado",
"betterAuth.errors.usernameRequired": "Por favor, ingrese su nombre de usuario",
"betterAuth.resetPassword.backToSignIn": "Volver a iniciar sesión",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Confirmar nueva contraseña",
"betterAuth.resetPassword.confirmPasswordRequired": "Por favor, confirme su nueva contraseña",
"betterAuth.resetPassword.description": "Por favor, ingrese su nueva contraseña",
- "betterAuth.resetPassword.error": "Error al restablecer la contraseña, intente nuevamente",
- "betterAuth.resetPassword.invalidToken": "Enlace de restablecimiento inválido o expirado",
"betterAuth.resetPassword.newPasswordPlaceholder": "Ingrese nueva contraseña",
"betterAuth.resetPassword.passwordMismatch": "Las contraseñas no coinciden",
"betterAuth.resetPassword.submit": "Restablecer contraseña",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Iniciar sesión",
"betterAuth.signin.error": "Error al iniciar sesión, verifique su correo y contraseña",
"betterAuth.signin.forgotPassword": "¿Olvidó su contraseña?",
- "betterAuth.signin.forgotPasswordError": "Error al enviar el enlace de restablecimiento",
"betterAuth.signin.forgotPasswordSent": "Enlace de restablecimiento enviado, revise su correo",
"betterAuth.signin.invalidReferralCodeContent": "El código de referido \"{{code}}\" que usó no es válido o ha expirado. ¿Desea continuar con el inicio de sesión?",
"betterAuth.signin.invalidReferralCodeTitle": "Código de referido inválido",
"betterAuth.signin.lastUsed": "Último uso",
"betterAuth.signin.magicLinkButton": "Enviar enlace de inicio de sesión",
- "betterAuth.signin.magicLinkError": "Error al enviar el enlace de inicio de sesión, intente más tarde",
"betterAuth.signin.magicLinkSent": "Enlace de inicio de sesión enviado, revise su correo",
"betterAuth.signin.nextStep": "Siguiente",
"betterAuth.signin.noAccount": "¿No tiene una cuenta?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Tu sesión ha expirado. Inicia sesión nuevamente para continuar.",
"betterAuth.signin.setPassword": "establecer una contraseña",
"betterAuth.signin.signupLink": "Regístrese ahora",
- "betterAuth.signin.socialError": "Error al iniciar sesión con red social, intente nuevamente",
"betterAuth.signin.socialOnlyHint": "Este correo electrónico fue registrado a través de una cuenta social de terceros. Inicia sesión con ese proveedor o",
"betterAuth.signin.ssoOnlyNoProviders": "El registro por correo electrónico está deshabilitado y no hay proveedores SSO configurados. Por favor, contacta con tu administrador.",
"betterAuth.signin.submit": "Iniciar sesión",
"betterAuth.signup.cardTitle": "Crea una cuenta de {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Confirme su contraseña",
"betterAuth.signup.emailPlaceholder": "Ingrese su correo electrónico",
- "betterAuth.signup.error": "Error al registrarse, intente nuevamente",
"betterAuth.signup.firstNamePlaceholder": "Nombre",
"betterAuth.signup.hasAccount": "¿Ya tiene una cuenta?",
"betterAuth.signup.invalidReferralCodeContent": "El código de referido \"{{code}}\" que ingresó no es válido o ha expirado. ¿Desea continuar con el registro?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Si no recibe el correo, revise su carpeta de spam",
"betterAuth.verifyEmail.description": "Se ha enviado un correo de verificación a {{email}}",
"betterAuth.verifyEmail.resend.button": "Reenviar correo de verificación",
- "betterAuth.verifyEmail.resend.error": "Error al enviar. Intente nuevamente más tarde.",
- "betterAuth.verifyEmail.resend.noEmail": "Falta la dirección de correo",
"betterAuth.verifyEmail.resend.success": "Correo de verificación reenviado. Revise su bandeja de entrada.",
"betterAuth.verifyEmail.title": "Verifique su correo electrónico",
"date.prevMonth": "Mes pasado",
diff --git a/locales/es-ES/authError.json b/locales/es-ES/authError.json
index cad8e3f9b29..20c8072a224 100644
--- a/locales/es-ES/authError.json
+++ b/locales/es-ES/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Esta cuenta ya está vinculada a otro usuario",
"codes.ACCOUNT_NOT_FOUND": "Cuenta no encontrada",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "La cuenta de credenciales no existe",
- "codes.DELETED_ACCOUNT_EMAIL": "Este correo electrónico todavía está en el período de enfriamiento de eliminación de cuenta. Puedes registrarte nuevamente 31 días después de que se complete la eliminación.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Este correo electrónico todavía está en el período de enfriamiento de eliminación de cuenta. Puedes registrarte nuevamente en aproximadamente {{count}} día.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Este correo electrónico todavía está en el período de enfriamiento de eliminación de cuenta. Puedes registrarte nuevamente en aproximadamente {{count}} días.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "No se puede actualizar el correo electrónico de esta cuenta",
- "codes.EMAIL_NOT_ALLOWED": "Correo electrónico no permitido para el registro",
"codes.EMAIL_NOT_FOUND": "No hay ningún correo electrónico asociado a esta cuenta. Por favor, verifica si tu cuenta tiene un correo electrónico vinculado.",
"codes.EMAIL_NOT_VERIFIED": "Por favor, verifica tu correo electrónico primero",
"codes.FAILED_TO_CREATE_SESSION": "No se pudo crear la sesión",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Ocurrió un error inesperado, por favor intenta de nuevo",
"codes.UNKNOWN": "Ocurrió un error desconocido, intenta de nuevo o contacta con soporte",
"codes.USER_ALREADY_EXISTS": "El usuario ya existe",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "El correo electrónico ya está en uso, por favor prueba con otro",
"codes.USER_ALREADY_HAS_PASSWORD": "Esta cuenta ya tiene una contraseña establecida",
"codes.USER_BANNED": "Este usuario ha sido suspendido",
"codes.USER_EMAIL_NOT_FOUND": "Correo electrónico no encontrado",
diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.json
index 69d8c209f62..b8821f0cad7 100644
--- a/locales/es-ES/chat.json
+++ b/locales/es-ES/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Se detiene una vez que el gasto total alcanza esta cantidad; déjalo en blanco para no establecer un límite.",
"createGoal.costBudgetLabel": "Presupuesto de costo",
"createGoal.costBudgetPlaceholder": "Sin límite",
- "createGoal.createFailed": "No se pudo crear el objetivo",
"createGoal.criteriaHint": "Revisa y edita estos antes de que comience el objetivo",
"createGoal.criteriaTitle": "Criterios de aceptación",
"createGoal.criterionPlaceholder": "Describe un resultado que pueda verificarse claramente",
@@ -366,7 +365,6 @@
"createModal.title": "¿Qué debería hacer tu agente?",
"createTask.assignee": "Asignado a",
"createTask.collapse": "Ocultar entrada",
- "createTask.createFailed": "Error al crear la tarea",
"createTask.discardConfirm.cancel": "Seguir editando",
"createTask.discardConfirm.content": "El título, la instrucción y los archivos adjuntos que añadiste se perderán.",
"createTask.discardConfirm.ok": "Descartar",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Hecho",
"goalProcess.nodeStatus.retired": "Retirado",
"goalProcess.nodeStatus.waiting": "En espera",
- "goalProcess.northStar.declare.failed": "No se pudo declarar la métrica",
"goalProcess.northStar.declare.keyLabel": "Clave de métrica",
"goalProcess.northStar.declare.keyPlaceholder": "p. ej. followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Condición",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "No se pudo registrar la observación",
"goalProcess.northStar.record.submit": "Registrar",
"goalProcess.northStar.record.title": "Registrar observación",
"goalProcess.northStar.record.valueLabel": "Valor actual de {{key}}",
diff --git a/locales/es-ES/discover.json b/locales/es-ES/discover.json
index dd0a1db5765..33265a265b6 100644
--- a/locales/es-ES/discover.json
+++ b/locales/es-ES/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "El identificador debe tener entre 3 y 32 caracteres",
"user.workspaceProfile.errors.namespace.pattern": "Usa letras minúsculas, números y guiones. Comienza y termina con una letra o número.",
"user.workspaceProfile.errors.namespace.required": "Introduce un identificador para la comunidad",
- "user.workspaceProfile.errors.uploadFailed": "Error al subir el avatar",
"user.workspaceProfile.errors.url": "Introduce una URL válida",
"user.workspaceProfile.failed": "Error al actualizar el perfil del espacio de trabajo",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Administrador",
"user.workspaceProfile.settings.members.role.member": "Miembro",
"user.workspaceProfile.settings.members.sync": "Sincronizar miembros",
- "user.workspaceProfile.settings.members.syncFailed": "Error al sincronizar miembros",
"user.workspaceProfile.settings.members.syncHint": "Sincroniza los miembros actuales del espacio de trabajo con la organización comunitaria.",
"user.workspaceProfile.settings.members.syncSuccess": "Miembros sincronizados",
"user.workspaceProfile.settings.members.title": "Miembros de la comunidad",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Miembros",
"user.workspaceProfile.settings.tabs.profile": "Perfil",
"user.workspaceProfile.settings.title": "Configuración del perfil comunitario",
- "user.workspaceProfile.settings.updateFailed": "Error al actualizar el perfil comunitario",
"user.workspaceProfile.settings.updateSuccess": "Perfil comunitario actualizado",
"user.workspaceProfile.settings.website.description": "Añade un sitio web que se mostrará en el perfil comunitario.",
"user.workspaceProfile.settings.website.hint": "Usa una URL pública http(s).",
diff --git a/locales/es-ES/electron.json b/locales/es-ES/electron.json
index a665bbaff3e..bdd4dce17df 100644
--- a/locales/es-ES/electron.json
+++ b/locales/es-ES/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Puerto",
"proxy.resetButton": "Restablecer",
"proxy.saveButton": "Guardar",
- "proxy.saveFailed": "Error al guardar: {{error}}",
"proxy.saveSuccess": "Configuración del proxy guardada correctamente",
"proxy.server": "Dirección del servidor",
"proxy.testButton": "Probar conexión",
diff --git a/locales/es-ES/memory.json b/locales/es-ES/memory.json
index 5985e925180..5650f2a93aa 100644
--- a/locales/es-ES/memory.json
+++ b/locales/es-ES/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "El material es largo; solo se leyó el principio.",
"rules.distill.untitled": "Sin título",
"rules.distill.upload": "Subir un archivo",
- "rules.distill.uploadFailed": "No se pudo subir el archivo.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint o texto plano",
"rules.enforcement.block": "Bloquear",
"rules.enforcement.blockDesc": "Retendrá la entrega hasta que la permitas. Aún no en efecto: por ahora solo recuerda",
diff --git a/locales/es-ES/plugin.json b/locales/es-ES/plugin.json
index 51279f5a902..f1737b5648d 100644
--- a/locales/es-ES/plugin.json
+++ b/locales/es-ES/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "El MCP HTTP no tiene variables de entorno para configurar",
"settings.indexUrl.title": "Índice de la comunidad",
"settings.indexUrl.tooltip": "Editar mediante variables de entorno de despliegue",
- "settings.messages.connectionUpdateFailed": "Error al actualizar la conexión",
"settings.messages.connectionUpdateSuccess": "Conexión actualizada",
- "settings.messages.envUpdateFailed": "Error al guardar las variables de entorno",
"settings.messages.envUpdateSuccess": "Variables de entorno guardadas",
"settings.modalDesc": "Configura la URL de la comunidad para usar una comunidad de Skills personalizada.",
"settings.rules.argsRequired": "Introduce los argumentos",
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index e1c7105f545..05f0c736253 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Las credenciales privadas del espacio de trabajo aún no están disponibles. Inténtalo de nuevo más tarde.",
"creds.errors.publicCredExists": "Este espacio de trabajo ya comparte una credencial con esta clave. Elimínala antes de publicar esta.",
"creds.file.authRequired": "Por favor, inicie sesión en el Mercado primero",
- "creds.file.uploadFailed": "Error al cargar el archivo",
"creds.file.uploadSuccess": "Archivo cargado con éxito",
"creds.file.uploading": "Cargando...",
"creds.form.cancel": "Cancelar",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Su especificación, variables, la carpeta de su copia y la instantánea guardada se eliminan con ella, y no se pueden recuperar.",
"environments.removeConfirmTitle": "¿Eliminar entorno {{name}}?",
"environments.removeFailed": "No se pudo eliminar este entorno",
- "environments.saveFailed": "No se pudo guardar este cambio",
"environments.sessions.activeBuild": "{{instance}} se está construyendo en este momento",
"environments.sessions.activeSession": "Un sandbox se está ejecutando en {{instance}} en este momento",
"environments.sessions.desc": "Las sesiones más recientes que se ejecutaron en estas copias y las construcciones de ellas, de más nuevas a más antiguas, con cómo terminó cada una y si lo que instaló fue guardado.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Presiona una tecla para grabar el atajo",
"hotkey.reset": "Restablecer atajos predeterminados",
"hotkey.title": "Atajos de Teclado",
- "hotkey.updateError": "Error al actualizar el atajo: Error de red o del sistema",
"hotkey.updateSuccess": "Atajo actualizado con éxito",
"llm.aesGcm": "Tus claves y dirección proxy serán cifradas usando el algoritmo de cifrado <1>AES-GCM</1>",
"llm.apiKey.desc": "Por favor, introduce tu clave API de {{name}}",
diff --git a/locales/es-ES/tool.json b/locales/es-ES/tool.json
index e2d95c1d294..a9b5ec6e2a4 100644
--- a/locales/es-ES/tool.json
+++ b/locales/es-ES/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Agregar un Elemento",
"updateArgs.form.key": "Clave del Campo",
"updateArgs.form.value": "Valor del Campo",
- "updateArgs.formValidationFailed": "La validación del formulario falló, por favor revisa el formato de los parámetros",
"updateArgs.keyRequired": "La clave del campo no puede estar vacía",
"updateArgs.stringifyError": "No se pueden serializar los parámetros, por favor revisa el formato"
}
diff --git a/locales/fa-IR/auth.json b/locales/fa-IR/auth.json
index 29579ca5476..2480ceaf154 100644
--- a/locales/fa-IR/auth.json
+++ b/locales/fa-IR/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "تأیید کامل نشد. لطفاً چالش را دوباره امتحان کنید.",
"betterAuth.captcha.title": "نیاز به تأیید امنیتی",
"betterAuth.errors.confirmPasswordRequired": "لطفاً رمز عبور را تأیید کنید",
- "betterAuth.errors.emailExists": "این ایمیل قبلاً ثبت شده است. لطفاً وارد شوید",
"betterAuth.errors.emailInvalid": "لطفاً یک ایمیل یا نام کاربری معتبر وارد کنید",
"betterAuth.errors.emailNotRegistered": "این ایمیل یا نام کاربری ثبت نشده است",
"betterAuth.errors.emailNotVerified": "ایمیل تأیید نشده است، لطفاً ابتدا ایمیل خود را تأیید کنید",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "رمز عبور باید حداقل ۸ کاراکتر باشد",
"betterAuth.errors.passwordMismatch": "رمزهای عبور مطابقت ندارند",
"betterAuth.errors.passwordRequired": "لطفاً رمز عبور خود را وارد کنید",
- "betterAuth.errors.usernameNotRegistered": "این نام کاربری ثبت نشده است",
"betterAuth.errors.usernameRequired": "لطفاً نام کاربری خود را وارد کنید",
"betterAuth.resetPassword.backToSignIn": "بازگشت به ورود",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "تأیید رمز عبور جدید",
"betterAuth.resetPassword.confirmPasswordRequired": "لطفاً رمز عبور جدید را تأیید کنید",
"betterAuth.resetPassword.description": "لطفاً رمز عبور جدید خود را وارد کنید",
- "betterAuth.resetPassword.error": "بازنشانی رمز عبور ناموفق بود، لطفاً دوباره تلاش کنید",
- "betterAuth.resetPassword.invalidToken": "لینک بازنشانی نامعتبر یا منقضی شده است",
"betterAuth.resetPassword.newPasswordPlaceholder": "رمز عبور جدید را وارد کنید",
"betterAuth.resetPassword.passwordMismatch": "رمزهای عبور مطابقت ندارند",
"betterAuth.resetPassword.submit": "بازنشانی رمز عبور",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "ورود",
"betterAuth.signin.error": "ورود ناموفق بود، لطفاً ایمیل و رمز عبور خود را بررسی کنید",
"betterAuth.signin.forgotPassword": "رمز عبور را فراموش کرده‌اید؟",
- "betterAuth.signin.forgotPasswordError": "ارسال لینک بازنشانی رمز عبور ناموفق بود",
"betterAuth.signin.forgotPasswordSent": "لینک بازنشانی رمز عبور ارسال شد، لطفاً ایمیل خود را بررسی کنید",
"betterAuth.signin.invalidReferralCodeContent": "کد معرف «{{code}}» نامعتبر یا منقضی شده است. آیا می‌خواهید به ورود ادامه دهید؟",
"betterAuth.signin.invalidReferralCodeTitle": "کد معرف نامعتبر",
"betterAuth.signin.lastUsed": "آخرین استفاده",
"betterAuth.signin.magicLinkButton": "ارسال لینک ورود",
- "betterAuth.signin.magicLinkError": "ارسال لینک ورود ناموفق بود، لطفاً بعداً دوباره تلاش کنید",
"betterAuth.signin.magicLinkSent": "لینک ورود ارسال شد، لطفاً ایمیل خود را بررسی کنید",
"betterAuth.signin.nextStep": "مرحله بعد",
"betterAuth.signin.noAccount": "حساب کاربری ندارید؟",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "جلسه شما منقضی شده است. دوباره وارد شوید تا ادامه دهید.",
"betterAuth.signin.setPassword": "رمز عبور تعیین کنید",
"betterAuth.signin.signupLink": "همین حالا ثبت‌نام کنید",
- "betterAuth.signin.socialError": "ورود اجتماعی ناموفق بود، لطفاً دوباره تلاش کنید",
"betterAuth.signin.socialOnlyHint": "این ایمیل از طریق یک حساب کاربری شبکه اجتماعی ثبت شده است. لطفاً با همان ارائه‌دهنده وارد شوید یا",
"betterAuth.signin.ssoOnlyNoProviders": "ثبت‌نام با ایمیل غیرفعال است و هیچ ارائه‌دهنده SSO پیکربندی نشده است. لطفاً با مدیر سیستم تماس بگیرید.",
"betterAuth.signin.submit": "ورود",
"betterAuth.signup.cardTitle": "ایجاد حساب کاربری {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "تأیید رمز عبور",
"betterAuth.signup.emailPlaceholder": "آدرس ایمیل خود را وارد کنید",
- "betterAuth.signup.error": "ثبت‌نام ناموفق بود، لطفاً دوباره تلاش کنید",
"betterAuth.signup.firstNamePlaceholder": "نام",
"betterAuth.signup.hasAccount": "قبلاً حساب دارید؟",
"betterAuth.signup.invalidReferralCodeContent": "کد معرف «{{code}}» نامعتبر یا منقضی شده است. آیا می‌خواهید به ثبت‌نام ادامه دهید؟",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "اگر ایمیل را دریافت نکردید، لطفاً پوشه اسپم را بررسی کنید",
"betterAuth.verifyEmail.description": "ایمیل تأیید به {{email}} ارسال شد",
"betterAuth.verifyEmail.resend.button": "ارسال مجدد ایمیل تأیید",
- "betterAuth.verifyEmail.resend.error": "ارسال ناموفق بود. لطفاً بعداً دوباره تلاش کنید.",
- "betterAuth.verifyEmail.resend.noEmail": "آدرس ایمیل موجود نیست",
"betterAuth.verifyEmail.resend.success": "ایمیل تأیید مجدداً ارسال شد. لطفاً صندوق ورودی خود را بررسی کنید.",
"betterAuth.verifyEmail.title": "تأیید ایمیل شما",
"date.prevMonth": "ماه گذشته",
diff --git a/locales/fa-IR/authError.json b/locales/fa-IR/authError.json
index 8a543a1133e..c4e7d270e60 100644
--- a/locales/fa-IR/authError.json
+++ b/locales/fa-IR/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "این حساب قبلاً به کاربر دیگری متصل شده است",
"codes.ACCOUNT_NOT_FOUND": "حساب کاربری یافت نشد",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "حساب کاربری با این اطلاعات وجود ندارد",
- "codes.DELETED_ACCOUNT_EMAIL": "این ایمیل هنوز در دوره انتظار حذف حساب کاربری است. شما می‌توانید ۳۱ روز پس از تکمیل حذف دوباره ثبت‌نام کنید.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "این ایمیل هنوز در دوره انتظار حذف حساب کاربری است. شما می‌توانید حدود {{count}} روز دیگر دوباره ثبت‌نام کنید.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "این ایمیل هنوز در دوره انتظار حذف حساب کاربری است. شما می‌توانید حدود {{count}} روز دیگر دوباره ثبت‌نام کنید.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "امکان به‌روزرسانی ایمیل برای این حساب وجود ندارد",
- "codes.EMAIL_NOT_ALLOWED": "استفاده از این ایمیل برای ثبت‌نام مجاز نیست",
"codes.EMAIL_NOT_FOUND": "هیچ ایمیلی با این حساب کاربری مرتبط نیست. لطفاً بررسی کنید که آیا حساب شما به یک ایمیل متصل شده است یا خیر.",
"codes.EMAIL_NOT_VERIFIED": "لطفاً ابتدا ایمیل خود را تأیید کنید",
"codes.FAILED_TO_CREATE_SESSION": "ایجاد نشست با خطا مواجه شد",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "خطای غیرمنتظره‌ای رخ داد، لطفاً دوباره تلاش کنید",
"codes.UNKNOWN": "خطای ناشناخته‌ای رخ داد، لطفاً دوباره تلاش کنید یا با پشتیبانی تماس بگیرید",
"codes.USER_ALREADY_EXISTS": "کاربر از قبل وجود دارد",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "این ایمیل قبلاً استفاده شده است، لطفاً ایمیل دیگری وارد کنید",
"codes.USER_ALREADY_HAS_PASSWORD": "این حساب قبلاً دارای رمز عبور است",
"codes.USER_BANNED": "این کاربر مسدود شده است",
"codes.USER_EMAIL_NOT_FOUND": "ایمیل یافت نشد",
diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.json
index c63ac0b9619..554bc9baa41 100644
--- a/locales/fa-IR/chat.json
+++ b/locales/fa-IR/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "زمانی که هزینه کل به این مقدار برسد متوقف می‌شود؛ برای بدون محدودیت خالی بگذارید.",
"createGoal.costBudgetLabel": "بودجه هزینه",
"createGoal.costBudgetPlaceholder": "بدون محدودیت",
- "createGoal.createFailed": "ایجاد هدف ناموفق بود",
"createGoal.criteriaHint": "قبل از شروع هدف این موارد را بررسی و ویرایش کنید",
"createGoal.criteriaTitle": "معیارهای پذیرش",
"createGoal.criterionPlaceholder": "نتیجه‌ای را توصیف کنید که بتوان به وضوح بررسی کرد",
@@ -366,7 +365,6 @@
"createModal.title": "عامل شما باید چه کاری انجام دهد؟",
"createTask.assignee": "مسئول",
"createTask.collapse": "پنهان کردن ورودی",
- "createTask.createFailed": "ایجاد وظیفه ناموفق بود",
"createTask.discardConfirm.cancel": "ادامه ویرایش",
"createTask.discardConfirm.content": "عنوان، دستورالعمل و پیوست‌هایی که افزوده‌اید از دست خواهند رفت.",
"createTask.discardConfirm.ok": "صرف‌نظر کردن",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "انجام شده",
"goalProcess.nodeStatus.retired": "بازنشسته",
"goalProcess.nodeStatus.waiting": "در انتظار",
- "goalProcess.northStar.declare.failed": "اعلام معیار ناموفق بود",
"goalProcess.northStar.declare.keyLabel": "کلید معیار",
"goalProcess.northStar.declare.keyPlaceholder": "مثال: followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "شرط",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "ثبت مشاهده ناموفق بود",
"goalProcess.northStar.record.submit": "ثبت",
"goalProcess.northStar.record.title": "ثبت مشاهده",
"goalProcess.northStar.record.valueLabel": "مقدار فعلی {{key}}",
diff --git a/locales/fa-IR/discover.json b/locales/fa-IR/discover.json
index 314df3742d5..e90ea5537b4 100644
--- a/locales/fa-IR/discover.json
+++ b/locales/fa-IR/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "شناسه باید بین ۳ تا ۳۲ کاراکتر باشد",
"user.workspaceProfile.errors.namespace.pattern": "از حروف کوچک، اعداد و خط تیره استفاده کنید. با حرف یا عدد شروع و پایان دهید.",
"user.workspaceProfile.errors.namespace.required": "شناسه انجمن را وارد کنید",
- "user.workspaceProfile.errors.uploadFailed": "آپلود آواتار ناموفق بود",
"user.workspaceProfile.errors.url": "یک URL معتبر وارد کنید",
"user.workspaceProfile.failed": "به‌روزرسانی پروفایل فضای کاری ناموفق بود",
"user.workspaceProfile.fields.avatar": "آواتار",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "مدیر",
"user.workspaceProfile.settings.members.role.member": "عضو",
"user.workspaceProfile.settings.members.sync": "همگام‌سازی اعضا",
- "user.workspaceProfile.settings.members.syncFailed": "همگام‌سازی اعضا ناموفق بود",
"user.workspaceProfile.settings.members.syncHint": "اعضای فعلی فضای کاری را با سازمان انجمن همگام‌سازی کنید.",
"user.workspaceProfile.settings.members.syncSuccess": "اعضا همگام‌سازی شدند",
"user.workspaceProfile.settings.members.title": "اعضای انجمن",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "اعضا",
"user.workspaceProfile.settings.tabs.profile": "پروفایل",
"user.workspaceProfile.settings.title": "تنظیمات پروفایل انجمن",
- "user.workspaceProfile.settings.updateFailed": "به‌روزرسانی پروفایل انجمن ناموفق بود",
"user.workspaceProfile.settings.updateSuccess": "پروفایل انجمن به‌روزرسانی شد",
"user.workspaceProfile.settings.website.description": "یک وب‌سایت که در پروفایل انجمن نمایش داده می‌شود اضافه کنید.",
"user.workspaceProfile.settings.website.hint": "از یک URL عمومی http(s) استفاده کنید.",
diff --git a/locales/fa-IR/electron.json b/locales/fa-IR/electron.json
index 8fbda37e15e..6f6d37563db 100644
--- a/locales/fa-IR/electron.json
+++ b/locales/fa-IR/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "پورت",
"proxy.resetButton": "بازنشانی",
"proxy.saveButton": "ذخیره",
- "proxy.saveFailed": "ذخیره‌سازی ناموفق بود: {{error}}",
"proxy.saveSuccess": "تنظیمات پروکسی با موفقیت ذخیره شد",
"proxy.server": "آدرس سرور",
"proxy.testButton": "آزمایش اتصال",
diff --git a/locales/fa-IR/memory.json b/locales/fa-IR/memory.json
index 959bdcc7ec2..2f45e9eaf60 100644
--- a/locales/fa-IR/memory.json
+++ b/locales/fa-IR/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "ماده طولانی است؛ فقط ابتدای آن خوانده شد.",
"rules.distill.untitled": "بدون عنوان",
"rules.distill.upload": "بارگذاری یک فایل",
- "rules.distill.uploadFailed": "فایل بارگذاری نشد.",
"rules.distill.uploadHint": "Markdown، PDF، Word، PowerPoint یا متن ساده",
"rules.enforcement.block": "مسدود کردن",
"rules.enforcement.blockDesc": "تحویل را متوقف می‌کند تا زمانی که اجازه دهید. هنوز در اثر نیست: فعلاً فقط یادآوری می‌کند",
diff --git a/locales/fa-IR/plugin.json b/locales/fa-IR/plugin.json
index 19e1d5c3056..1a6f2d7329e 100644
--- a/locales/fa-IR/plugin.json
+++ b/locales/fa-IR/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "MCP از نوع HTTP متغیر محیطی برای پیکربندی ندارد",
"settings.indexUrl.title": "فهرست جامعه",
"settings.indexUrl.tooltip": "از طریق متغیرهای محیطی در زمان استقرار ویرایش کنید",
- "settings.messages.connectionUpdateFailed": "به‌روزرسانی اتصال ناموفق بود",
"settings.messages.connectionUpdateSuccess": "اتصال به‌روزرسانی شد",
- "settings.messages.envUpdateFailed": "ذخیره متغیرهای محیطی ناموفق بود",
"settings.messages.envUpdateSuccess": "متغیرهای محیطی ذخیره شدند",
"settings.modalDesc": "برای استفاده از جامعه مهارت سفارشی، آدرس URL جامعه را پیکربندی کنید.",
"settings.rules.argsRequired": "آرگومان‌ها را وارد کنید",
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index 2efe812b824..a9013235323 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "اعتبارنامه‌های خصوصی فضای کاری هنوز در دسترس نیستند. لطفاً بعداً دوباره تلاش کنید.",
"creds.errors.publicCredExists": "این فضای کاری از قبل یک اعتبارنامه با این کلید را به اشتراک گذاشته است. قبل از انتشار این یکی، آن را حذف کنید.",
"creds.file.authRequired": "لطفاً ابتدا وارد بازار شوید",
- "creds.file.uploadFailed": "بارگذاری فایل ناموفق بود",
"creds.file.uploadSuccess": "فایل با موفقیت بارگذاری شد",
"creds.file.uploading": "در حال بارگذاری...",
"creds.form.cancel": "لغو",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "مشخصات آن، متغیرها، پوشه کپی آن و اسنپ‌شات ذخیره شده با آن حذف می‌شوند و قابل بازیابی نیستند.",
"environments.removeConfirmTitle": "محیط {{name}} حذف شود؟",
"environments.removeFailed": "امکان حذف این محیط وجود ندارد",
- "environments.saveFailed": "امکان ذخیره این تغییر وجود ندارد",
"environments.sessions.activeBuild": "{{instance}} در حال ساخت است",
"environments.sessions.activeSession": "یک سندباکس در حال اجرا در {{instance}} است",
"environments.sessions.desc": "آخرین جلساتی که در این کپی‌ها و ساخت‌های آن‌ها اجرا شده‌اند، از جدیدترین به قدیمی‌ترین، با نحوه پایان هر یک و اینکه آیا آنچه نصب شده ذخیره شده است یا خیر.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "برای ضبط کلید میانبر، کلیدی را فشار دهید",
"hotkey.reset": "بازنشانی به کلیدهای پیش‌فرض",
"hotkey.title": "کلیدهای میانبر",
- "hotkey.updateError": "به‌روزرسانی کلید میانبر ناموفق بود: خطای شبکه یا سیستم",
"hotkey.updateSuccess": "کلید میانبر با موفقیت به‌روزرسانی شد",
"llm.aesGcm": "کلیدها و آدرس پراکسی شما با استفاده از الگوریتم رمزنگاری <1>AES-GCM</1> رمزگذاری خواهند شد",
"llm.apiKey.desc": "لطفاً کلید API {{name}} خود را وارد کنید",
diff --git a/locales/fa-IR/tool.json b/locales/fa-IR/tool.json
index 5e3a73df9bf..0038751e560 100644
--- a/locales/fa-IR/tool.json
+++ b/locales/fa-IR/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "افزودن مورد",
"updateArgs.form.key": "کلید فیلد",
"updateArgs.form.value": "مقدار فیلد",
- "updateArgs.formValidationFailed": "اعتبارسنجی فرم ناموفق بود، لطفاً قالب پارامترها را بررسی کنید",
"updateArgs.keyRequired": "کلید فیلد نمی‌تواند خالی باشد",
"updateArgs.stringifyError": "امکان سریال‌سازی پارامترها وجود ندارد، لطفاً قالب پارامترها را بررسی کنید"
}
diff --git a/locales/fr-FR/auth.json b/locales/fr-FR/auth.json
index 904e5a76607..84ee654964d 100644
--- a/locales/fr-FR/auth.json
+++ b/locales/fr-FR/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "La vérification n’a pas abouti. Veuillez réessayer le défi.",
"betterAuth.captcha.title": "Vérification de sécurité requise",
"betterAuth.errors.confirmPasswordRequired": "Veuillez confirmer votre mot de passe",
- "betterAuth.errors.emailExists": "Cet e-mail est déjà enregistré. Veuillez vous connecter",
"betterAuth.errors.emailInvalid": "Veuillez saisir une adresse e-mail ou un nom d'utilisateur valide",
"betterAuth.errors.emailNotRegistered": "Cet e-mail ou nom d'utilisateur n'est pas enregistré",
"betterAuth.errors.emailNotVerified": "E-mail non vérifié, veuillez vérifier votre e-mail d'abord",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Le mot de passe doit contenir au moins 8 caractères",
"betterAuth.errors.passwordMismatch": "Les mots de passe ne correspondent pas",
"betterAuth.errors.passwordRequired": "Veuillez saisir votre mot de passe",
- "betterAuth.errors.usernameNotRegistered": "Ce nom d'utilisateur n'est pas enregistré",
"betterAuth.errors.usernameRequired": "Veuillez saisir votre nom d'utilisateur",
"betterAuth.resetPassword.backToSignIn": "Retour à la connexion",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Confirmez le nouveau mot de passe",
"betterAuth.resetPassword.confirmPasswordRequired": "Veuillez confirmer votre nouveau mot de passe",
"betterAuth.resetPassword.description": "Veuillez saisir votre nouveau mot de passe",
- "betterAuth.resetPassword.error": "Échec de la réinitialisation du mot de passe, veuillez réessayer",
- "betterAuth.resetPassword.invalidToken": "Lien de réinitialisation invalide ou expiré",
"betterAuth.resetPassword.newPasswordPlaceholder": "Saisissez un nouveau mot de passe",
"betterAuth.resetPassword.passwordMismatch": "Les mots de passe ne correspondent pas",
"betterAuth.resetPassword.submit": "Réinitialiser le mot de passe",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Connexion",
"betterAuth.signin.error": "Échec de la connexion, veuillez vérifier votre e-mail et mot de passe",
"betterAuth.signin.forgotPassword": "Mot de passe oublié ?",
- "betterAuth.signin.forgotPasswordError": "Échec de l'envoi du lien de réinitialisation",
"betterAuth.signin.forgotPasswordSent": "Lien de réinitialisation envoyé, veuillez vérifier votre e-mail",
"betterAuth.signin.invalidReferralCodeContent": "Le code de parrainage « {{code}} » est invalide ou expiré. Voulez-vous continuer la connexion ?",
"betterAuth.signin.invalidReferralCodeTitle": "Code de parrainage invalide",
"betterAuth.signin.lastUsed": "Dernière utilisation",
"betterAuth.signin.magicLinkButton": "Envoyer le lien de connexion",
- "betterAuth.signin.magicLinkError": "Échec de l'envoi du lien de connexion, veuillez réessayer plus tard",
"betterAuth.signin.magicLinkSent": "Lien de connexion envoyé, veuillez vérifier votre e-mail",
"betterAuth.signin.nextStep": "Suivant",
"betterAuth.signin.noAccount": "Vous n'avez pas de compte ?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Votre session a expiré. Veuillez vous reconnecter pour continuer.",
"betterAuth.signin.setPassword": "définir un mot de passe",
"betterAuth.signin.signupLink": "Inscrivez-vous maintenant",
- "betterAuth.signin.socialError": "Échec de la connexion sociale, veuillez réessayer",
"betterAuth.signin.socialOnlyHint": "Cet e-mail a été enregistré via un compte social tiers. Connectez-vous avec ce fournisseur, ou",
"betterAuth.signin.ssoOnlyNoProviders": "L'inscription par e-mail est désactivée et aucun fournisseur SSO n'est configuré. Veuillez contacter votre administrateur.",
"betterAuth.signin.submit": "Se connecter",
"betterAuth.signup.cardTitle": "Créer un compte {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Confirmez votre mot de passe",
"betterAuth.signup.emailPlaceholder": "Saisissez votre adresse e-mail",
- "betterAuth.signup.error": "Échec de l'inscription, veuillez réessayer",
"betterAuth.signup.firstNamePlaceholder": "Prénom",
"betterAuth.signup.hasAccount": "Vous avez déjà un compte ?",
"betterAuth.signup.invalidReferralCodeContent": "Le code de parrainage « {{code}} » est invalide ou expiré. Voulez-vous continuer l'inscription ?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Si vous ne recevez pas l'e-mail, vérifiez votre dossier spam",
"betterAuth.verifyEmail.description": "Un e-mail de vérification a été envoyé à {{email}}",
"betterAuth.verifyEmail.resend.button": "Renvoyer l'e-mail de vérification",
- "betterAuth.verifyEmail.resend.error": "Échec de l'envoi. Veuillez réessayer plus tard.",
- "betterAuth.verifyEmail.resend.noEmail": "Adresse e-mail manquante",
"betterAuth.verifyEmail.resend.success": "E-mail de vérification renvoyé. Veuillez vérifier votre boîte de réception.",
"betterAuth.verifyEmail.title": "Vérifiez votre e-mail",
"date.prevMonth": "Mois dernier",
diff --git a/locales/fr-FR/authError.json b/locales/fr-FR/authError.json
index a441a462eb4..be4574494e1 100644
--- a/locales/fr-FR/authError.json
+++ b/locales/fr-FR/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Ce compte est déjà lié à un autre utilisateur",
"codes.ACCOUNT_NOT_FOUND": "Compte introuvable",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Le compte d'identifiants n'existe pas",
- "codes.DELETED_ACCOUNT_EMAIL": "Cet e-mail est encore dans la période de refroidissement de suppression de compte. Vous pouvez vous réinscrire 31 jours après la fin de la suppression.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Cet e-mail est encore dans la période de refroidissement de suppression de compte. Vous pouvez vous réinscrire dans environ {{count}} jour.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Cet e-mail est encore dans la période de refroidissement de suppression de compte. Vous pouvez vous réinscrire dans environ {{count}} jours.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "L'adresse e-mail ne peut pas être mise à jour pour ce compte",
- "codes.EMAIL_NOT_ALLOWED": "Adresse e-mail non autorisée pour l'inscription",
"codes.EMAIL_NOT_FOUND": "Aucune adresse e-mail n’est associée à ce compte. Veuillez vérifier si une adresse e-mail y est liée.",
"codes.EMAIL_NOT_VERIFIED": "Veuillez d'abord vérifier votre adresse e-mail",
"codes.FAILED_TO_CREATE_SESSION": "Échec de la création de la session",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Une erreur inattendue est survenue, veuillez réessayer",
"codes.UNKNOWN": "Une erreur inconnue est survenue, veuillez réessayer ou contacter le support",
"codes.USER_ALREADY_EXISTS": "L'utilisateur existe déjà",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Cette adresse e-mail est déjà utilisée, veuillez en essayer une autre",
"codes.USER_ALREADY_HAS_PASSWORD": "Ce compte a déjà un mot de passe défini",
"codes.USER_BANNED": "Cet utilisateur a été banni",
"codes.USER_EMAIL_NOT_FOUND": "Adresse e-mail introuvable",
diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.json
index 2cf9a1f669d..a8cd3baf7a4 100644
--- a/locales/fr-FR/chat.json
+++ b/locales/fr-FR/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "S'arrête une fois que les dépenses totales atteignent ce montant ; laissez vide pour aucun plafond.",
"createGoal.costBudgetLabel": "Budget de coût",
"createGoal.costBudgetPlaceholder": "Pas de plafond",
- "createGoal.createFailed": "Échec de la création de l'objectif",
"createGoal.criteriaHint": "Examinez et modifiez ces critères avant de commencer l'objectif",
"createGoal.criteriaTitle": "Critères d'acceptation",
"createGoal.criterionPlaceholder": "Décrivez un résultat qui peut être clairement vérifié",
@@ -366,7 +365,6 @@
"createModal.title": "Que doit faire votre agent ?",
"createTask.assignee": "Attribué à",
"createTask.collapse": "Masquer le champ",
- "createTask.createFailed": "Échec de la création de la tâche",
"createTask.discardConfirm.cancel": "Continuer la modification",
"createTask.discardConfirm.content": "Le titre, l'instruction et les pièces jointes que vous avez ajoutés seront perdus.",
"createTask.discardConfirm.ok": "Abandonner",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Terminé",
"goalProcess.nodeStatus.retired": "Retiré",
"goalProcess.nodeStatus.waiting": "En attente",
- "goalProcess.northStar.declare.failed": "Échec de la déclaration de la métrique",
"goalProcess.northStar.declare.keyLabel": "Clé de la métrique",
"goalProcess.northStar.declare.keyPlaceholder": "ex. abonnés / sécurité.open_issues",
"goalProcess.northStar.declare.opLabel": "Condition",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Échec de l'enregistrement de l'observation",
"goalProcess.northStar.record.submit": "Enregistrer",
"goalProcess.northStar.record.title": "Enregistrer une observation",
"goalProcess.northStar.record.valueLabel": "Valeur actuelle de {{key}}",
diff --git a/locales/fr-FR/discover.json b/locales/fr-FR/discover.json
index e8ce5cba0a2..3c23ac7f376 100644
--- a/locales/fr-FR/discover.json
+++ b/locales/fr-FR/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Le handle doit comporter entre 3 et 32 caractères",
"user.workspaceProfile.errors.namespace.pattern": "Utilisez des lettres minuscules, des chiffres et des tirets. Commencez et terminez par une lettre ou un chiffre.",
"user.workspaceProfile.errors.namespace.required": "Entrez un handle communautaire",
- "user.workspaceProfile.errors.uploadFailed": "Échec du téléchargement de l’avatar",
"user.workspaceProfile.errors.url": "Entrez une URL valide",
"user.workspaceProfile.failed": "Échec de la mise à jour du profil de l’espace de travail",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Administrateur",
"user.workspaceProfile.settings.members.role.member": "Membre",
"user.workspaceProfile.settings.members.sync": "Synchroniser les membres",
- "user.workspaceProfile.settings.members.syncFailed": "Échec de la synchronisation des membres",
"user.workspaceProfile.settings.members.syncHint": "Synchronisez les membres actuels de l’espace de travail avec l’organisation communautaire.",
"user.workspaceProfile.settings.members.syncSuccess": "Membres synchronisés",
"user.workspaceProfile.settings.members.title": "Membres de la communauté",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Membres",
"user.workspaceProfile.settings.tabs.profile": "Profil",
"user.workspaceProfile.settings.title": "Paramètres du profil communautaire",
- "user.workspaceProfile.settings.updateFailed": "Échec de la mise à jour du profil communautaire",
"user.workspaceProfile.settings.updateSuccess": "Profil communautaire mis à jour",
"user.workspaceProfile.settings.website.description": "Ajoutez un site web affiché sur le profil communautaire.",
"user.workspaceProfile.settings.website.hint": "Utilisez une URL publique http(s).",
diff --git a/locales/fr-FR/electron.json b/locales/fr-FR/electron.json
index 78e4c764ba7..33dc5accdf2 100644
--- a/locales/fr-FR/electron.json
+++ b/locales/fr-FR/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Port",
"proxy.resetButton": "Réinitialiser",
"proxy.saveButton": "Enregistrer",
- "proxy.saveFailed": "Échec de l'enregistrement : {{error}}",
"proxy.saveSuccess": "Paramètres du proxy enregistrés avec succès",
"proxy.server": "Adresse du serveur",
"proxy.testButton": "Tester la connexion",
diff --git a/locales/fr-FR/memory.json b/locales/fr-FR/memory.json
index 5c388441c7b..dcb20297d5b 100644
--- a/locales/fr-FR/memory.json
+++ b/locales/fr-FR/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Le matériel est long ; seul son début a été lu.",
"rules.distill.untitled": "Sans titre",
"rules.distill.upload": "Télécharger un fichier",
- "rules.distill.uploadFailed": "Impossible de télécharger le fichier.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint ou texte brut",
"rules.enforcement.block": "Bloquer",
"rules.enforcement.blockDesc": "Retiendra la livraison jusqu'à ce que vous la validiez. Pas encore en vigueur : pour l'instant, cela ne fait que rappeler",
diff --git a/locales/fr-FR/plugin.json b/locales/fr-FR/plugin.json
index a43ff29c292..44806261e9e 100644
--- a/locales/fr-FR/plugin.json
+++ b/locales/fr-FR/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "Le MCP HTTP n’a pas de variables d’environnement à configurer",
"settings.indexUrl.title": "Index communautaire",
"settings.indexUrl.tooltip": "Modifier via les variables d’environnement de déploiement",
- "settings.messages.connectionUpdateFailed": "Échec de la mise à jour de la connexion",
"settings.messages.connectionUpdateSuccess": "Connexion mise à jour",
- "settings.messages.envUpdateFailed": "Échec de l’enregistrement des variables d’environnement",
"settings.messages.envUpdateSuccess": "Variables d’environnement enregistrées",
"settings.modalDesc": "Configurer l’URL communautaire pour utiliser une communauté de compétences personnalisée.",
"settings.rules.argsRequired": "Saisir les arguments",
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index ec1fa2dd46a..c8bf36eeff7 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Les identifiants privés d'espace de travail ne sont pas encore disponibles. Veuillez réessayer plus tard.",
"creds.errors.publicCredExists": "Cet espace de travail partage déjà un identifiant avec cette clé. Retirez-le avant de publier celui-ci.",
"creds.file.authRequired": "Veuillez d'abord vous connecter au Marché",
- "creds.file.uploadFailed": "Échec du téléchargement du fichier",
"creds.file.uploadSuccess": "Fichier téléchargé avec succès",
"creds.file.uploading": "Téléchargement en cours...",
"creds.form.cancel": "Annuler",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Sa spécification, ses variables, le dossier de sa copie et l'instantané sauvegardé partent avec, et ne peuvent pas être récupérés.",
"environments.removeConfirmTitle": "Supprimer l'environnement {{name}} ?",
"environments.removeFailed": "Impossible de supprimer cet environnement",
- "environments.saveFailed": "Impossible d'enregistrer cette modification",
"environments.sessions.activeBuild": "{{instance}} est en cours de construction",
"environments.sessions.activeSession": "Un sandbox est en cours d'exécution dans {{instance}}",
"environments.sessions.desc": "Les sessions les plus récentes qui se sont exécutées dans ces copies et leurs constructions, des plus récentes aux plus anciennes, avec comment chacune s'est terminée et si ce qu'elle a installé a été sauvegardé.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Appuyez sur une touche pour enregistrer le raccourci",
"hotkey.reset": "Réinitialiser les raccourcis par défaut",
"hotkey.title": "Raccourcis clavier",
- "hotkey.updateError": "Échec de la mise à jour du raccourci : erreur réseau ou système",
"hotkey.updateSuccess": "Raccourci mis à jour avec succès",
"llm.aesGcm": "Vos clés et l'adresse du proxy seront chiffrées à l'aide de l'algorithme <1>AES-GCM</1>",
"llm.apiKey.desc": "Veuillez saisir votre clé API {{name}}",
diff --git a/locales/fr-FR/tool.json b/locales/fr-FR/tool.json
index fefcf961380..27889700a27 100644
--- a/locales/fr-FR/tool.json
+++ b/locales/fr-FR/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Ajouter un élément",
"updateArgs.form.key": "Clé du champ",
"updateArgs.form.value": "Valeur du champ",
- "updateArgs.formValidationFailed": "Échec de la validation du formulaire, veuillez vérifier le format des paramètres",
"updateArgs.keyRequired": "La clé du champ ne peut pas être vide",
"updateArgs.stringifyError": "Impossible de sérialiser les paramètres, veuillez vérifier le format des paramètres"
}
diff --git a/locales/it-IT/auth.json b/locales/it-IT/auth.json
index 22181caba47..cd2d6acbae6 100644
--- a/locales/it-IT/auth.json
+++ b/locales/it-IT/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "La verifica non è stata completata. Riprova la sfida.",
"betterAuth.captcha.title": "Verifica di sicurezza richiesta",
"betterAuth.errors.confirmPasswordRequired": "Conferma la tua password",
- "betterAuth.errors.emailExists": "Questa email è già registrata. Effettua l'accesso",
"betterAuth.errors.emailInvalid": "Inserisci un indirizzo email o nome utente valido",
"betterAuth.errors.emailNotRegistered": "Questa email o nome utente non è registrato",
"betterAuth.errors.emailNotVerified": "Email non verificata, verifica prima la tua email",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "La password deve contenere almeno 8 caratteri",
"betterAuth.errors.passwordMismatch": "Le password non corrispondono",
"betterAuth.errors.passwordRequired": "Inserisci la tua password",
- "betterAuth.errors.usernameNotRegistered": "Questo nome utente non è registrato",
"betterAuth.errors.usernameRequired": "Inserisci il tuo nome utente",
"betterAuth.resetPassword.backToSignIn": "Torna all'accesso",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Conferma nuova password",
"betterAuth.resetPassword.confirmPasswordRequired": "Conferma la tua nuova password",
"betterAuth.resetPassword.description": "Inserisci la tua nuova password",
- "betterAuth.resetPassword.error": "Reimpostazione password non riuscita, riprova",
- "betterAuth.resetPassword.invalidToken": "Link di reimpostazione non valido o scaduto",
"betterAuth.resetPassword.newPasswordPlaceholder": "Inserisci nuova password",
"betterAuth.resetPassword.passwordMismatch": "Le password non corrispondono",
"betterAuth.resetPassword.submit": "Reimposta password",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Accedi",
"betterAuth.signin.error": "Accesso non riuscito, controlla email e password",
"betterAuth.signin.forgotPassword": "Password dimenticata?",
- "betterAuth.signin.forgotPasswordError": "Invio link di reimpostazione non riuscito",
"betterAuth.signin.forgotPasswordSent": "Link di reimpostazione inviato, controlla la tua email",
"betterAuth.signin.invalidReferralCodeContent": "Il codice invito \"{{code}}\" non è valido o è scaduto. Vuoi continuare con l'accesso?",
"betterAuth.signin.invalidReferralCodeTitle": "Codice invito non valido",
"betterAuth.signin.lastUsed": "Ultimo utilizzo",
"betterAuth.signin.magicLinkButton": "Invia link di accesso",
- "betterAuth.signin.magicLinkError": "Invio link di accesso non riuscito, riprova più tardi",
"betterAuth.signin.magicLinkSent": "Link di accesso inviato, controlla la tua email",
"betterAuth.signin.nextStep": "Avanti",
"betterAuth.signin.noAccount": "Non hai un account?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "La tua sessione è scaduta. Accedi nuovamente per continuare.",
"betterAuth.signin.setPassword": "imposta una password",
"betterAuth.signin.signupLink": "Registrati ora",
- "betterAuth.signin.socialError": "Accesso social non riuscito, riprova",
"betterAuth.signin.socialOnlyHint": "Questa email è stata registrata tramite un account social di terze parti. Accedi con quel provider oppure",
"betterAuth.signin.ssoOnlyNoProviders": "La registrazione via email è disabilitata e non sono configurati provider SSO. Contatta l'amministratore.",
"betterAuth.signin.submit": "Accedi",
"betterAuth.signup.cardTitle": "Crea un account {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Conferma la tua password",
"betterAuth.signup.emailPlaceholder": "Inserisci il tuo indirizzo email",
- "betterAuth.signup.error": "Registrazione non riuscita, riprova",
"betterAuth.signup.firstNamePlaceholder": "Nome",
"betterAuth.signup.hasAccount": "Hai già un account?",
"betterAuth.signup.invalidReferralCodeContent": "Il codice invito \"{{code}}\" non è valido o è scaduto. Vuoi continuare con la registrazione?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Se non ricevi l'email, controlla la cartella spam",
"betterAuth.verifyEmail.description": "Un'email di verifica è stata inviata a {{email}}",
"betterAuth.verifyEmail.resend.button": "Invia di nuovo email di verifica",
- "betterAuth.verifyEmail.resend.error": "Invio non riuscito. Riprova più tardi.",
- "betterAuth.verifyEmail.resend.noEmail": "Indirizzo email mancante",
"betterAuth.verifyEmail.resend.success": "Email di verifica inviata di nuovo. Controlla la tua casella di posta.",
"betterAuth.verifyEmail.title": "Verifica la tua Email",
"date.prevMonth": "Mese scorso",
diff --git a/locales/it-IT/authError.json b/locales/it-IT/authError.json
index 906243073a9..12c3cb59bfd 100644
--- a/locales/it-IT/authError.json
+++ b/locales/it-IT/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Questo account è già collegato a un altro utente",
"codes.ACCOUNT_NOT_FOUND": "Account non trovato",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "L'account delle credenziali non esiste",
- "codes.DELETED_ACCOUNT_EMAIL": "Questa email è ancora nel periodo di attesa per l'eliminazione dell'account. Puoi registrarti nuovamente 31 giorni dopo il completamento dell'eliminazione.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Questa email è ancora nel periodo di attesa per l'eliminazione dell'account. Puoi registrarti nuovamente tra circa {{count}} giorno.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Questa email è ancora nel periodo di attesa per l'eliminazione dell'account. Puoi registrarti nuovamente tra circa {{count}} giorni.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "L'email non può essere aggiornata per questo account",
- "codes.EMAIL_NOT_ALLOWED": "Email non consentita per la registrazione",
"codes.EMAIL_NOT_FOUND": "Nessuna email associata a questo account. Verifica se al tuo account è collegata un'email.",
"codes.EMAIL_NOT_VERIFIED": "Verifica prima la tua email",
"codes.FAILED_TO_CREATE_SESSION": "Creazione della sessione non riuscita",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Si è verificato un errore imprevisto, riprova",
"codes.UNKNOWN": "Si è verificato un errore sconosciuto, riprova o contatta il supporto",
"codes.USER_ALREADY_EXISTS": "L'utente esiste già",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Email già in uso, prova con un'altra",
"codes.USER_ALREADY_HAS_PASSWORD": "Questo account ha già una password impostata",
"codes.USER_BANNED": "Questo utente è stato bannato",
"codes.USER_EMAIL_NOT_FOUND": "Email non trovata",
diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.json
index 9fe0717baa6..2a791ab3e34 100644
--- a/locales/it-IT/chat.json
+++ b/locales/it-IT/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Si interrompe una volta raggiunta la spesa totale; lascia vuoto per nessun limite.",
"createGoal.costBudgetLabel": "Budget di costo",
"createGoal.costBudgetPlaceholder": "Nessun limite",
- "createGoal.createFailed": "Creazione obiettivo fallita",
"createGoal.criteriaHint": "Rivedi e modifica questi criteri prima che l'obiettivo inizi",
"createGoal.criteriaTitle": "Criteri di accettazione",
"createGoal.criterionPlaceholder": "Descrivi un risultato che può essere chiaramente verificato",
@@ -366,7 +365,6 @@
"createModal.title": "Cosa dovrebbe fare il tuo agente?",
"createTask.assignee": "Assegnatario",
"createTask.collapse": "Nascondi input",
- "createTask.createFailed": "Impossibile creare l'attività",
"createTask.discardConfirm.cancel": "Continua a modificare",
"createTask.discardConfirm.content": "Il titolo, le istruzioni e gli allegati che hai aggiunto andranno persi.",
"createTask.discardConfirm.ok": "Scarta",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Completato",
"goalProcess.nodeStatus.retired": "Ritirato",
"goalProcess.nodeStatus.waiting": "In attesa",
- "goalProcess.northStar.declare.failed": "Impossibile dichiarare la metrica",
"goalProcess.northStar.declare.keyLabel": "Chiave metrica",
"goalProcess.northStar.declare.keyPlaceholder": "es. followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Condizione",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Impossibile registrare l'osservazione",
"goalProcess.northStar.record.submit": "Registra",
"goalProcess.northStar.record.title": "Registra osservazione",
"goalProcess.northStar.record.valueLabel": "Valore attuale di {{key}}",
diff --git a/locales/it-IT/discover.json b/locales/it-IT/discover.json
index 4225021e899..b1b45ff82a0 100644
--- a/locales/it-IT/discover.json
+++ b/locales/it-IT/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Il nome deve essere lungo 3-32 caratteri",
"user.workspaceProfile.errors.namespace.pattern": "Usa lettere minuscole, numeri e trattini. Inizia e termina con una lettera o un numero.",
"user.workspaceProfile.errors.namespace.required": "Inserisci un handle per la Comunità",
- "user.workspaceProfile.errors.uploadFailed": "Caricamento avatar fallito",
"user.workspaceProfile.errors.url": "Inserisci un URL valido",
"user.workspaceProfile.failed": "Aggiornamento del profilo dello spazio di lavoro fallito",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Amministratore",
"user.workspaceProfile.settings.members.role.member": "Membro",
"user.workspaceProfile.settings.members.sync": "Sincronizza membri",
- "user.workspaceProfile.settings.members.syncFailed": "Sincronizzazione membri fallita",
"user.workspaceProfile.settings.members.syncHint": "Sincronizza i membri attuali dello spazio di lavoro con l'organizzazione della Comunità.",
"user.workspaceProfile.settings.members.syncSuccess": "Membri sincronizzati",
"user.workspaceProfile.settings.members.title": "Membri della Comunità",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Membri",
"user.workspaceProfile.settings.tabs.profile": "Profilo",
"user.workspaceProfile.settings.title": "Impostazioni Profilo Comunità",
- "user.workspaceProfile.settings.updateFailed": "Aggiornamento del profilo della Comunità fallito",
"user.workspaceProfile.settings.updateSuccess": "Profilo della Comunità aggiornato",
"user.workspaceProfile.settings.website.description": "Aggiungi un sito web mostrato sul profilo della Comunità.",
"user.workspaceProfile.settings.website.hint": "Usa un URL pubblico http(s).",
diff --git a/locales/it-IT/electron.json b/locales/it-IT/electron.json
index 108219ab4c7..242b87fab8f 100644
--- a/locales/it-IT/electron.json
+++ b/locales/it-IT/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Porta",
"proxy.resetButton": "Reimposta",
"proxy.saveButton": "Salva",
- "proxy.saveFailed": "Salvataggio non riuscito: {{error}}",
"proxy.saveSuccess": "Impostazioni proxy salvate con successo",
"proxy.server": "Indirizzo del server",
"proxy.testButton": "Testa connessione",
diff --git a/locales/it-IT/memory.json b/locales/it-IT/memory.json
index a5546e10af1..02e59bba1bf 100644
--- a/locales/it-IT/memory.json
+++ b/locales/it-IT/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Il materiale è lungo; è stato letto solo l'inizio.",
"rules.distill.untitled": "Senza titolo",
"rules.distill.upload": "Carica un file",
- "rules.distill.uploadFailed": "Impossibile caricare il file.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint o testo semplice",
"rules.enforcement.block": "Blocca",
"rules.enforcement.blockDesc": "Tratterrà la consegna fino a quando non la autorizzi. Non ancora in vigore: per ora avvisa solo",
diff --git a/locales/it-IT/plugin.json b/locales/it-IT/plugin.json
index c849a1069d4..76320b6be79 100644
--- a/locales/it-IT/plugin.json
+++ b/locales/it-IT/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "Il tipo HTTP MCP non ha variabili d'ambiente da configurare",
"settings.indexUrl.title": "Indice della community",
"settings.indexUrl.tooltip": "Modifica tramite variabili d'ambiente di deployment",
- "settings.messages.connectionUpdateFailed": "Aggiornamento della connessione fallito",
"settings.messages.connectionUpdateSuccess": "Connessione aggiornata",
- "settings.messages.envUpdateFailed": "Salvataggio delle variabili d'ambiente fallito",
"settings.messages.envUpdateSuccess": "Variabili d'ambiente salvate",
"settings.modalDesc": "Configura l'URL della community per usare una Skill community personalizzata.",
"settings.rules.argsRequired": "Inserisci gli argomenti",
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 94780caf1f7..81f44f52f0a 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Le credenziali private dello spazio di lavoro non sono ancora disponibili. Riprova più tardi.",
"creds.errors.publicCredExists": "Questo spazio di lavoro condivide già una credenziale con questa chiave. Rimuovila prima di pubblicare questa.",
"creds.file.authRequired": "Effettua prima l'accesso al Market",
- "creds.file.uploadFailed": "Caricamento del file fallito",
"creds.file.uploadSuccess": "File caricato con successo",
"creds.file.uploading": "Caricamento in corso...",
"creds.form.cancel": "Annulla",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "La sua specifica, le variabili, la cartella della copia e lo snapshot salvato vanno con essa, e non possono essere recuperati.",
"environments.removeConfirmTitle": "Eliminare l'ambiente {{name}}?",
"environments.removeFailed": "Impossibile eliminare questo ambiente",
- "environments.saveFailed": "Impossibile salvare questa modifica",
"environments.sessions.activeBuild": "{{instance}} è in costruzione in questo momento",
"environments.sessions.activeSession": "Una sandbox è in esecuzione in {{instance}} in questo momento",
"environments.sessions.desc": "Le sessioni più recenti eseguite in queste copie e le loro costruzioni, dalla più recente, con come ciascuna è terminata e se ciò che ha installato è stato salvato.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Premi un tasto per registrare la scorciatoia",
"hotkey.reset": "Ripristina scorciatoie predefinite",
"hotkey.title": "Scorciatoie",
- "hotkey.updateError": "Aggiornamento scorciatoia fallito: errore di rete o di sistema",
"hotkey.updateSuccess": "Scorciatoia aggiornata con successo",
"llm.aesGcm": "Le tue chiavi e l'indirizzo proxy saranno criptati usando l'algoritmo <1>AES-GCM</1>",
"llm.apiKey.desc": "Inserisci la tua API Key di {{name}}",
diff --git a/locales/it-IT/tool.json b/locales/it-IT/tool.json
index 09ce1eb5db2..05c56e4ac0d 100644
--- a/locales/it-IT/tool.json
+++ b/locales/it-IT/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Aggiungi un elemento",
"updateArgs.form.key": "Chiave del Campo",
"updateArgs.form.value": "Valore del Campo",
- "updateArgs.formValidationFailed": "Validazione del modulo fallita, controlla il formato dei parametri",
"updateArgs.keyRequired": "La chiave del campo non può essere vuota",
"updateArgs.stringifyError": "Impossibile serializzare i parametri, controlla il formato dei parametri"
}
diff --git a/locales/ja-JP/auth.json b/locales/ja-JP/auth.json
index d03a8cd3421..6d17364f7d3 100644
--- a/locales/ja-JP/auth.json
+++ b/locales/ja-JP/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "確認が完了しませんでした。もう一度チャレンジをお試しください。",
"betterAuth.captcha.title": "セキュリティ確認が必要です",
"betterAuth.errors.confirmPasswordRequired": "パスワードの確認を入力してください",
- "betterAuth.errors.emailExists": "このメールアドレスは既に登録されています。ログインしてください。",
"betterAuth.errors.emailInvalid": "有効なメールアドレスを入力してください",
"betterAuth.errors.emailNotRegistered": "このメールアドレスは未登録です",
"betterAuth.errors.emailNotVerified": "メールアドレスが未確認です。まず確認してください",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "パスワードは8文字以上で入力してください",
"betterAuth.errors.passwordMismatch": "入力されたパスワードが一致しません",
"betterAuth.errors.passwordRequired": "パスワードを入力してください",
- "betterAuth.errors.usernameNotRegistered": "このユーザー名は未登録です",
"betterAuth.errors.usernameRequired": "ユーザー名を入力してください",
"betterAuth.resetPassword.backToSignIn": "ログインに戻る",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "新しいパスワードを確認",
"betterAuth.resetPassword.confirmPasswordRequired": "新しいパスワードを確認してください",
"betterAuth.resetPassword.description": "新しいパスワードを入力してください",
- "betterAuth.resetPassword.error": "パスワードのリセットに失敗しました。もう一度お試しください",
- "betterAuth.resetPassword.invalidToken": "無効または期限切れのリセットリンクです",
"betterAuth.resetPassword.newPasswordPlaceholder": "新しいパスワードを入力",
"betterAuth.resetPassword.passwordMismatch": "パスワードが一致しません",
"betterAuth.resetPassword.submit": "パスワードをリセット",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "ログイン",
"betterAuth.signin.error": "ログインに失敗しました。メールアドレスとパスワードをご確認ください",
"betterAuth.signin.forgotPassword": "パスワードをお忘れですか?",
- "betterAuth.signin.forgotPasswordError": "パスワードリセットリンクの送信に失敗しました",
"betterAuth.signin.forgotPasswordSent": "パスワードリセットリンクを送信しました。メールをご確認ください",
"betterAuth.signin.invalidReferralCodeContent": "ご利用の紹介コード「{{code}}」は無効か、期限切れです。サインインを続けますか?",
"betterAuth.signin.invalidReferralCodeTitle": "無効な紹介コード",
"betterAuth.signin.lastUsed": "最終使用",
"betterAuth.signin.magicLinkButton": "ログインリンクを送信",
- "betterAuth.signin.magicLinkError": "ログインリンクの送信に失敗しました。しばらくしてから再試行してください",
"betterAuth.signin.magicLinkSent": "ログインリンクを送信しました。メールをご確認ください",
"betterAuth.signin.nextStep": "次へ",
"betterAuth.signin.noAccount": "アカウントをお持ちでない方",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "セッションの有効期限が切れました。続行するには再度サインインしてください。",
"betterAuth.signin.setPassword": "パスワードを設定する",
"betterAuth.signin.signupLink": "今すぐ登録",
- "betterAuth.signin.socialError": "ソーシャルログインに失敗しました。もう一度お試しください",
"betterAuth.signin.socialOnlyHint": "このメールアドレスは外部のソーシャルアカウントで登録されています。該当のサービスでサインインするか、",
"betterAuth.signin.ssoOnlyNoProviders": "メール登録は無効になっており、SSOプロバイダーも設定されていません。管理者にお問い合わせください。",
"betterAuth.signin.submit": "ログイン",
"betterAuth.signup.cardTitle": "{{appName}}アカウントを作成",
"betterAuth.signup.confirmPasswordPlaceholder": "パスワードの確認を入力してください",
"betterAuth.signup.emailPlaceholder": "メールアドレスを入力してください",
- "betterAuth.signup.error": "登録に失敗しました。もう一度お試しください",
"betterAuth.signup.firstNamePlaceholder": "名",
"betterAuth.signup.hasAccount": "すでにアカウントをお持ちですか?",
"betterAuth.signup.invalidReferralCodeContent": "入力された紹介コード「{{code}}」は無効か、期限切れです。サインアップを続けますか?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "メールが届かない場合は、迷惑メールフォルダをご確認ください",
"betterAuth.verifyEmail.description": "{{email}} に確認メールを送信しました",
"betterAuth.verifyEmail.resend.button": "確認メールを再送信",
- "betterAuth.verifyEmail.resend.error": "送信に失敗しました。しばらくしてから再試行してください",
- "betterAuth.verifyEmail.resend.noEmail": "メールアドレスが見つかりません",
"betterAuth.verifyEmail.resend.success": "確認メールを再送信しました。メールをご確認ください",
"betterAuth.verifyEmail.title": "メールアドレスを確認",
"date.prevMonth": "先月",
diff --git a/locales/ja-JP/authError.json b/locales/ja-JP/authError.json
index 2f505f22f2a..e5552a5171d 100644
--- a/locales/ja-JP/authError.json
+++ b/locales/ja-JP/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "このアカウントは他のユーザーにすでにリンクされています",
"codes.ACCOUNT_NOT_FOUND": "該当するアカウントが見つかりません",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "認証情報のアカウントが存在しません",
- "codes.DELETED_ACCOUNT_EMAIL": "このメールアドレスは、アカウント削除のクールダウン期間中です。削除が完了してから31日後に再登録できます。",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "このメールアドレスは、アカウント削除のクールダウン期間中です。約{{count}}日後に再登録できます。",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "このメールアドレスは、アカウント削除のクールダウン期間中です。約{{count}}日後に再登録できます。",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "このアカウントのメールアドレスは変更できません",
- "codes.EMAIL_NOT_ALLOWED": "このメールアドレスでは登録できません",
"codes.EMAIL_NOT_FOUND": "このアカウントにはメールアドレスが登録されていません。アカウントにメールアドレスが紐付けられているかご確認ください。",
"codes.EMAIL_NOT_VERIFIED": "メールアドレスの確認を完了してください",
"codes.FAILED_TO_CREATE_SESSION": "セッションの作成に失敗しました",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "予期しないエラーが発生しました。再試行してください",
"codes.UNKNOWN": "不明なエラーが発生しました。再試行するかサポートにお問い合わせください",
"codes.USER_ALREADY_EXISTS": "ユーザーはすでに存在します",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "このメールアドレスはすでに使用されています。別のメールアドレスをお試しください",
"codes.USER_ALREADY_HAS_PASSWORD": "このアカウントにはすでにパスワードが設定されています",
"codes.USER_BANNED": "このユーザーは利用停止されています",
"codes.USER_EMAIL_NOT_FOUND": "該当するメールアドレスが見つかりません",
diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.json
index 511d01fabb9..717e2d6c607 100644
--- a/locales/ja-JP/chat.json
+++ b/locales/ja-JP/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "総支出がこの金額に達すると停止します。制限なしの場合は空白のままにしてください。",
"createGoal.costBudgetLabel": "コスト予算",
"createGoal.costBudgetPlaceholder": "制限なし",
- "createGoal.createFailed": "目標の作成に失敗しました",
"createGoal.criteriaHint": "目標が開始される前にこれらを確認して編集してください",
"createGoal.criteriaTitle": "受け入れ基準",
"createGoal.criterionPlaceholder": "明確に確認できる結果を記述してください",
@@ -366,7 +365,6 @@
"createModal.title": "エージェントは何をすべきですか?",
"createTask.assignee": "担当者",
"createTask.collapse": "入力を隠す",
- "createTask.createFailed": "タスクの作成に失敗しました",
"createTask.discardConfirm.cancel": "編集を続ける",
"createTask.discardConfirm.content": "追加したタイトル、指示、添付ファイルは失われます。",
"createTask.discardConfirm.ok": "破棄",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "完了",
"goalProcess.nodeStatus.retired": "引退済み",
"goalProcess.nodeStatus.waiting": "待機中",
- "goalProcess.northStar.declare.failed": "メトリックの宣言に失敗しました",
"goalProcess.northStar.declare.keyLabel": "メトリックキー",
"goalProcess.northStar.declare.keyPlaceholder": "例: followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "条件",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "観測の記録に失敗しました",
"goalProcess.northStar.record.submit": "記録する",
"goalProcess.northStar.record.title": "観測を記録する",
"goalProcess.northStar.record.valueLabel": "{{key}}の現在値",
diff --git a/locales/ja-JP/discover.json b/locales/ja-JP/discover.json
index 4c00a53b2f8..d49bb967e23 100644
--- a/locales/ja-JP/discover.json
+++ b/locales/ja-JP/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "ハンドルは3~32文字である必要があります",
"user.workspaceProfile.errors.namespace.pattern": "小文字の英字、数字、ハイフンを使用してください。英字または数字で始め、終わる必要があります。",
"user.workspaceProfile.errors.namespace.required": "コミュニティハンドルを入力してください",
- "user.workspaceProfile.errors.uploadFailed": "アバターのアップロードに失敗しました",
"user.workspaceProfile.errors.url": "有効なURLを入力してください",
"user.workspaceProfile.failed": "ワークスペースプロフィールの更新に失敗しました",
"user.workspaceProfile.fields.avatar": "アバター",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "管理者",
"user.workspaceProfile.settings.members.role.member": "メンバー",
"user.workspaceProfile.settings.members.sync": "メンバーを同期",
- "user.workspaceProfile.settings.members.syncFailed": "メンバーの同期に失敗しました",
"user.workspaceProfile.settings.members.syncHint": "現在のワークスペースメンバーをコミュニティ組織に同期します。",
"user.workspaceProfile.settings.members.syncSuccess": "メンバーが同期されました",
"user.workspaceProfile.settings.members.title": "コミュニティメンバー",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "メンバー",
"user.workspaceProfile.settings.tabs.profile": "プロフィール",
"user.workspaceProfile.settings.title": "コミュニティプロフィール設定",
- "user.workspaceProfile.settings.updateFailed": "コミュニティプロフィールの更新に失敗しました",
"user.workspaceProfile.settings.updateSuccess": "コミュニティプロフィールが更新されました",
"user.workspaceProfile.settings.website.description": "コミュニティプロフィールに表示されるウェブサイトを追加します。",
"user.workspaceProfile.settings.website.hint": "公開されたhttp(s) URLを使用してください。",
diff --git a/locales/ja-JP/electron.json b/locales/ja-JP/electron.json
index 09f5ffa0a0b..7ee40dfd287 100644
--- a/locales/ja-JP/electron.json
+++ b/locales/ja-JP/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "ポート",
"proxy.resetButton": "リセット",
"proxy.saveButton": "保存",
- "proxy.saveFailed": "保存に失敗しました:{{error}}",
"proxy.saveSuccess": "プロキシ設定が正常に保存されました",
"proxy.server": "サーバーアドレス",
"proxy.testButton": "接続テスト",
diff --git a/locales/ja-JP/memory.json b/locales/ja-JP/memory.json
index 3b2da26f6e3..17938524fa1 100644
--- a/locales/ja-JP/memory.json
+++ b/locales/ja-JP/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "素材が長いため、冒頭部分のみが読み取られました。",
"rules.distill.untitled": "無題",
"rules.distill.upload": "ファイルをアップロード",
- "rules.distill.uploadFailed": "ファイルをアップロードできませんでした。",
"rules.distill.uploadHint": "Markdown、PDF、Word、PowerPoint、またはプレーンテキスト",
"rules.enforcement.block": "ブロック",
"rules.enforcement.blockDesc": "配信を保留します。まだ有効ではありません: 現時点では通知のみ",
diff --git a/locales/ja-JP/plugin.json b/locales/ja-JP/plugin.json
index 094c17fe2d7..fa559593553 100644
--- a/locales/ja-JP/plugin.json
+++ b/locales/ja-JP/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTPタイプのMCPスキルは現在設定すべき環境変数はありません",
"settings.indexUrl.title": "コミュニティインデックス",
"settings.indexUrl.tooltip": "オンライン編集は未対応です。デプロイ時の環境変数で設定してください",
- "settings.messages.connectionUpdateFailed": "接続情報の更新に失敗しました",
"settings.messages.connectionUpdateSuccess": "接続情報が正常に更新されました",
- "settings.messages.envUpdateFailed": "環境変数の保存に失敗しました",
"settings.messages.envUpdateSuccess": "環境変数が正常に保存されました",
"settings.modalDesc": "スキルコミュニティのアドレスを設定すると、カスタムのスキルコミュニティを利用できます。",
"settings.rules.argsRequired": "起動パラメータを入力してください",
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index 713455fa625..640d0201e1c 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "プライベートなワークスペース認証情報はまだ利用できません。しばらくしてからもう一度お試しください。",
"creds.errors.publicCredExists": "このワークスペースには、このキーを持つ認証情報がすでに共有されています。これを公開する前に削除してください。",
"creds.file.authRequired": "まずマーケットにサインインしてください",
- "creds.file.uploadFailed": "ファイルのアップロードに失敗しました",
"creds.file.uploadSuccess": "ファイルが正常にアップロードされました",
"creds.file.uploading": "アップロード中...",
"creds.form.cancel": "キャンセル",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "その仕様、変数、コピーのフォルダ、および保存されたスナップショットが一緒に削除され、復元できません。",
"environments.removeConfirmTitle": "環境 {{name}} を削除しますか?",
"environments.removeFailed": "この環境を削除できませんでした",
- "environments.saveFailed": "この変更を保存できませんでした",
"environments.sessions.activeBuild": "{{instance}} が現在ビルド中です",
"environments.sessions.activeSession": "{{instance}} で現在サンドボックスが実行されています",
"environments.sessions.desc": "これらのコピーで実行された最新のセッションとそのビルドを、新しい順に表示します。各セッションの終了方法と、インストールされた内容が保存されたかどうかが含まれます。",
@@ -1007,7 +1005,6 @@
"hotkey.record": "ショートカットキーを録音するにはキーを押してください",
"hotkey.reset": "デフォルトのショートカットキーにリセット",
"hotkey.title": "ショートカットキー",
- "hotkey.updateError": "ホットキーの更新に失敗しました:ネットワークまたはシステムエラー",
"hotkey.updateSuccess": "ホットキーが正常に更新されました",
"llm.aesGcm": "キーとプロキシアドレスなどは <1>AES-GCM</1> 暗号化アルゴリズムを使用して暗号化されます",
"llm.apiKey.desc": "あなたの {{name}} API キーを入力してください",
diff --git a/locales/ja-JP/tool.json b/locales/ja-JP/tool.json
index afd984932ff..681c385a335 100644
--- a/locales/ja-JP/tool.json
+++ b/locales/ja-JP/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "項目を追加",
"updateArgs.form.key": "フィールドキー",
"updateArgs.form.value": "フィールド値",
- "updateArgs.formValidationFailed": "フォームの検証に失敗しました。パラメータの形式を確認してください。",
"updateArgs.keyRequired": "フィールドキーは空にできません。",
"updateArgs.stringifyError": "パラメータをシリアライズできません。パラメータの形式を確認してください。"
}
diff --git a/locales/ko-KR/auth.json b/locales/ko-KR/auth.json
index 0bc2da9832f..06cf51e7a10 100644
--- a/locales/ko-KR/auth.json
+++ b/locales/ko-KR/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "인증이 완료되지 않았습니다. 챌린지를 다시 시도하세요.",
"betterAuth.captcha.title": "보안 인증 필요",
"betterAuth.errors.confirmPasswordRequired": "비밀번호 확인이 필요합니다",
- "betterAuth.errors.emailExists": "이 이메일은 이미 등록되어 있습니다. 바로 로그인해 주세요.",
"betterAuth.errors.emailInvalid": "유효한 이메일 주소를 입력하세요",
"betterAuth.errors.emailNotRegistered": "이 이메일은 아직 등록되지 않았습니다",
"betterAuth.errors.emailNotVerified": "이메일이 인증되지 않았습니다. 먼저 이메일을 인증하세요",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "비밀번호는 최소 8자 이상이어야 합니다",
"betterAuth.errors.passwordMismatch": "입력한 비밀번호가 일치하지 않습니다",
"betterAuth.errors.passwordRequired": "비밀번호를 입력하세요",
- "betterAuth.errors.usernameNotRegistered": "해당 사용자 이름은 등록되어 있지 않습니다",
"betterAuth.errors.usernameRequired": "사용자 이름을 입력하세요",
"betterAuth.resetPassword.backToSignIn": "로그인으로 돌아가기",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "새 비밀번호 확인",
"betterAuth.resetPassword.confirmPasswordRequired": "새 비밀번호를 확인하세요",
"betterAuth.resetPassword.description": "새 비밀번호를 입력하세요",
- "betterAuth.resetPassword.error": "비밀번호 재설정에 실패했습니다. 다시 시도하세요",
- "betterAuth.resetPassword.invalidToken": "유효하지 않거나 만료된 재설정 링크입니다",
"betterAuth.resetPassword.newPasswordPlaceholder": "새 비밀번호 입력",
"betterAuth.resetPassword.passwordMismatch": "비밀번호가 일치하지 않습니다",
"betterAuth.resetPassword.submit": "비밀번호 재설정",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "로그인",
"betterAuth.signin.error": "로그인에 실패했습니다. 이메일과 비밀번호를 확인하세요",
"betterAuth.signin.forgotPassword": "비밀번호를 잊으셨나요?",
- "betterAuth.signin.forgotPasswordError": "비밀번호 재설정 링크 전송에 실패했습니다",
"betterAuth.signin.forgotPasswordSent": "비밀번호 재설정 링크가 전송되었습니다. 이메일을 확인하세요",
"betterAuth.signin.invalidReferralCodeContent": "사용하신 추천 코드 \"{{code}}\"는 유효하지 않거나 만료되었습니다. 계속해서 로그인하시겠습니까?",
"betterAuth.signin.invalidReferralCodeTitle": "유효하지 않은 추천 코드",
"betterAuth.signin.lastUsed": "마지막 사용",
"betterAuth.signin.magicLinkButton": "로그인 링크 보내기",
- "betterAuth.signin.magicLinkError": "로그인 링크 전송에 실패했습니다. 잠시 후 다시 시도하세요",
"betterAuth.signin.magicLinkSent": "로그인 링크가 전송되었습니다. 이메일을 확인하세요",
"betterAuth.signin.nextStep": "다음 단계",
"betterAuth.signin.noAccount": "계정이 없으신가요?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "세션이 만료되었습니다. 계속하려면 다시 로그인하세요.",
"betterAuth.signin.setPassword": "비밀번호 설정",
"betterAuth.signin.signupLink": "지금 가입하기",
- "betterAuth.signin.socialError": "소셜 로그인에 실패했습니다. 다시 시도하세요",
"betterAuth.signin.socialOnlyHint": "이 이메일은 제3자 소셜 계정을 통해 등록되었습니다. 해당 제공업체로 로그인하거나,",
"betterAuth.signin.ssoOnlyNoProviders": "이메일 등록이 비활성화되어 있으며 설정된 SSO 공급자가 없습니다. 관리자에게 문의해 주세요.",
"betterAuth.signin.submit": "로그인",
"betterAuth.signup.cardTitle": "{{appName}} 계정 생성",
"betterAuth.signup.confirmPasswordPlaceholder": "비밀번호를 다시 입력해 주세요",
"betterAuth.signup.emailPlaceholder": "이메일 주소를 입력하세요",
- "betterAuth.signup.error": "회원가입에 실패했습니다. 다시 시도하세요",
"betterAuth.signup.firstNamePlaceholder": "이름",
"betterAuth.signup.hasAccount": "이미 계정이 있으신가요?",
"betterAuth.signup.invalidReferralCodeContent": "입력하신 추천 코드 \"{{code}}\"는 유효하지 않거나 만료되었습니다. 계속해서 가입하시겠습니까?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "이메일을 받지 못하셨다면 스팸 메일함을 확인하세요",
"betterAuth.verifyEmail.description": "{{email}} 주소로 인증 메일을 보냈습니다",
"betterAuth.verifyEmail.resend.button": "인증 메일 다시 보내기",
- "betterAuth.verifyEmail.resend.error": "전송에 실패했습니다. 잠시 후 다시 시도하세요",
- "betterAuth.verifyEmail.resend.noEmail": "이메일 주소가 없습니다",
"betterAuth.verifyEmail.resend.success": "인증 메일이 다시 전송되었습니다. 이메일을 확인하세요",
"betterAuth.verifyEmail.title": "이메일 인증",
"date.prevMonth": "지난달",
diff --git a/locales/ko-KR/authError.json b/locales/ko-KR/authError.json
index 95c671cc4e0..14b91839152 100644
--- a/locales/ko-KR/authError.json
+++ b/locales/ko-KR/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "해당 계정은 이미 다른 사용자와 연결되어 있습니다",
"codes.ACCOUNT_NOT_FOUND": "해당 계정을 찾을 수 없습니다",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "자격 증명 계정을 찾을 수 없습니다",
- "codes.DELETED_ACCOUNT_EMAIL": "이 이메일은 계정 삭제 대기 기간 중입니다. 삭제가 완료된 후 31일 후에 다시 가입할 수 있습니다.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "이 이메일은 계정 삭제 대기 기간 중입니다. 약 {{count}}일 후에 다시 가입할 수 있습니다.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "이 이메일은 계정 삭제 대기 기간 중입니다. 약 {{count}}일 후에 다시 가입할 수 있습니다.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "현재 계정의 이메일은 수정할 수 없습니다",
- "codes.EMAIL_NOT_ALLOWED": "이 이메일은 회원가입에 사용할 수 없습니다",
"codes.EMAIL_NOT_FOUND": "이 계정에 연결된 이메일이 없습니다. 계정에 이메일이 등록되어 있는지 확인해 주세요.",
"codes.EMAIL_NOT_VERIFIED": "이메일 인증을 먼저 완료해 주세요",
"codes.FAILED_TO_CREATE_SESSION": "세션 생성에 실패했습니다",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "알 수 없는 오류가 발생했습니다. 다시 시도해 주세요",
"codes.UNKNOWN": "알 수 없는 오류가 발생했습니다. 다시 시도하거나 지원팀에 문의해 주세요",
"codes.USER_ALREADY_EXISTS": "이미 존재하는 사용자입니다",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "이메일이 이미 사용 중입니다. 다른 이메일을 사용해 주세요",
"codes.USER_ALREADY_HAS_PASSWORD": "해당 계정은 이미 비밀번호가 설정되어 있습니다",
"codes.USER_BANNED": "해당 사용자는 차단되었습니다",
"codes.USER_EMAIL_NOT_FOUND": "해당 이메일을 찾을 수 없습니다",
diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.json
index 9924739d45d..9ff518973d5 100644
--- a/locales/ko-KR/chat.json
+++ b/locales/ko-KR/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "총 지출이 이 금액에 도달하면 중지됩니다. 제한이 없으려면 빈칸으로 두세요.",
"createGoal.costBudgetLabel": "비용 예산",
"createGoal.costBudgetPlaceholder": "제한 없음",
- "createGoal.createFailed": "목표 생성 실패",
"createGoal.criteriaHint": "목표가 시작되기 전에 이를 검토하고 수정하세요",
"createGoal.criteriaTitle": "수락 기준",
"createGoal.criterionPlaceholder": "명확히 확인할 수 있는 결과를 설명하세요",
@@ -366,7 +365,6 @@
"createModal.title": "에이전트는 어떤 일을 해야 하나요?",
"createTask.assignee": "담당자",
"createTask.collapse": "입력 숨기기",
- "createTask.createFailed": "작업 생성 실패",
"createTask.discardConfirm.cancel": "계속 편집",
"createTask.discardConfirm.content": "추가한 제목, 지침 및 첨부 파일이 손실됩니다.",
"createTask.discardConfirm.ok": "버리기",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "완료됨",
"goalProcess.nodeStatus.retired": "종료됨",
"goalProcess.nodeStatus.waiting": "대기 중",
- "goalProcess.northStar.declare.failed": "지표 선언에 실패했습니다",
"goalProcess.northStar.declare.keyLabel": "지표 키",
"goalProcess.northStar.declare.keyPlaceholder": "예: 팔로워 / security.open_issues",
"goalProcess.northStar.declare.opLabel": "조건",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "관찰 기록에 실패했습니다",
"goalProcess.northStar.record.submit": "기록",
"goalProcess.northStar.record.title": "관찰 기록",
"goalProcess.northStar.record.valueLabel": "{{key}}의 현재 값",
diff --git a/locales/ko-KR/discover.json b/locales/ko-KR/discover.json
index 7bb251bb498..cd1a572e954 100644
--- a/locales/ko-KR/discover.json
+++ b/locales/ko-KR/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "핸들은 3~32자여야 합니다",
"user.workspaceProfile.errors.namespace.pattern": "소문자, 숫자, 하이픈을 사용하세요. 문자 또는 숫자로 시작하고 끝내야 합니다.",
"user.workspaceProfile.errors.namespace.required": "커뮤니티 핸들을 입력하세요",
- "user.workspaceProfile.errors.uploadFailed": "아바타 업로드에 실패했습니다",
"user.workspaceProfile.errors.url": "유효한 URL을 입력하세요",
"user.workspaceProfile.failed": "작업 공간 프로필 업데이트에 실패했습니다",
"user.workspaceProfile.fields.avatar": "아바타",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "관리자",
"user.workspaceProfile.settings.members.role.member": "멤버",
"user.workspaceProfile.settings.members.sync": "멤버 동기화",
- "user.workspaceProfile.settings.members.syncFailed": "멤버 동기화에 실패했습니다",
"user.workspaceProfile.settings.members.syncHint": "현재 작업 공간 멤버를 커뮤니티 조직에 동기화하세요.",
"user.workspaceProfile.settings.members.syncSuccess": "멤버가 동기화되었습니다",
"user.workspaceProfile.settings.members.title": "커뮤니티 멤버",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "멤버",
"user.workspaceProfile.settings.tabs.profile": "프로필",
"user.workspaceProfile.settings.title": "커뮤니티 프로필 설정",
- "user.workspaceProfile.settings.updateFailed": "커뮤니티 프로필 업데이트에 실패했습니다",
"user.workspaceProfile.settings.updateSuccess": "커뮤니티 프로필이 업데이트되었습니다",
"user.workspaceProfile.settings.website.description": "커뮤니티 프로필에 표시할 웹사이트를 추가하세요.",
"user.workspaceProfile.settings.website.hint": "공개된 http(s) URL을 사용하세요.",
diff --git a/locales/ko-KR/electron.json b/locales/ko-KR/electron.json
index c5633457b5b..197bc60fc1d 100644
--- a/locales/ko-KR/electron.json
+++ b/locales/ko-KR/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "포트",
"proxy.resetButton": "재설정",
"proxy.saveButton": "저장",
- "proxy.saveFailed": "저장 실패: {{error}}",
"proxy.saveSuccess": "프록시 설정이 성공적으로 저장되었습니다",
"proxy.server": "서버 주소",
"proxy.testButton": "연결 테스트",
diff --git a/locales/ko-KR/memory.json b/locales/ko-KR/memory.json
index aced9afb6cd..16f5ad2da92 100644
--- a/locales/ko-KR/memory.json
+++ b/locales/ko-KR/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "자료가 길어서 시작 부분만 읽었습니다.",
"rules.distill.untitled": "제목 없음",
"rules.distill.upload": "파일 업로드",
- "rules.distill.uploadFailed": "파일을 업로드하지 못했습니다.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint 또는 일반 텍스트",
"rules.enforcement.block": "차단",
"rules.enforcement.blockDesc": "전달을 보류합니다. 아직 적용되지 않음: 현재는 알림만 제공",
diff --git a/locales/ko-KR/plugin.json b/locales/ko-KR/plugin.json
index 22a41836364..15a01443357 100644
--- a/locales/ko-KR/plugin.json
+++ b/locales/ko-KR/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP 유형의 MCP 기능은 별도의 환경 변수 설정이 필요하지 않습니다",
"settings.indexUrl.title": "커뮤니티 인덱스",
"settings.indexUrl.tooltip": "온라인 편집은 지원되지 않으며, 배포 시 환경 변수로 설정해 주세요",
- "settings.messages.connectionUpdateFailed": "연결 정보 업데이트 실패",
"settings.messages.connectionUpdateSuccess": "연결 정보 업데이트 성공",
- "settings.messages.envUpdateFailed": "환경 변수 저장 실패",
"settings.messages.envUpdateSuccess": "환경 변수 저장 성공",
"settings.modalDesc": "기능 커뮤니티의 주소를 설정하면 사용자 정의 커뮤니티를 사용할 수 있습니다.",
"settings.rules.argsRequired": "시작 매개변수를 입력해 주세요",
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index a369303676c..ac52feee257 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "개인 워크스페이스 자격 증명은 아직 사용할 수 없습니다. 나중에 다시 시도하세요.",
"creds.errors.publicCredExists": "이 워크스페이스는 이미 이 키의 자격 증명을 공유하고 있습니다. 이 자격 증명을 게시하기 전에 기존 항목을 제거하세요.",
"creds.file.authRequired": "먼저 마켓에 로그인하세요",
- "creds.file.uploadFailed": "파일 업로드 실패",
"creds.file.uploadSuccess": "파일 업로드 성공",
"creds.file.uploading": "업로드 중...",
"creds.form.cancel": "취소",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "사양, 변수, 복사본의 폴더 및 저장된 스냅샷이 함께 삭제되며 복구할 수 없습니다.",
"environments.removeConfirmTitle": "환경 {{name}}을(를) 삭제하시겠습니까?",
"environments.removeFailed": "이 환경을 삭제할 수 없습니다",
- "environments.saveFailed": "이 변경 사항을 저장할 수 없습니다",
"environments.sessions.activeBuild": "{{instance}}이(가) 현재 빌드 중입니다",
"environments.sessions.activeSession": "샌드박스가 {{instance}}에서 실행 중입니다",
"environments.sessions.desc": "이 복사본들에서 실행된 가장 최근의 세션과 생성 기록, 최신 순으로, 각 종료 방식과 설치된 내용이 저장되었는지 여부를 보여줍니다.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "단축키를 녹음하려면 키를 누르세요",
"hotkey.reset": "기본 단축키로 재설정",
"hotkey.title": "단축키",
- "hotkey.updateError": "단축키 업데이트 실패: 네트워크 또는 시스템 오류",
"hotkey.updateSuccess": "단축키가 성공적으로 업데이트되었습니다",
"llm.aesGcm": "<1>AES-GCM</1> 암호화 알고리즘을 사용하여 API 키 및 프록시 주소 등을 암호화합니다",
"llm.apiKey.desc": "{{name}} API 키를 입력하세요",
diff --git a/locales/ko-KR/tool.json b/locales/ko-KR/tool.json
index c7cb1d14938..47731545702 100644
--- a/locales/ko-KR/tool.json
+++ b/locales/ko-KR/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "항목 추가",
"updateArgs.form.key": "필드 키",
"updateArgs.form.value": "필드 값",
- "updateArgs.formValidationFailed": "양식 검증에 실패했습니다. 매개변수 형식을 확인하세요.",
"updateArgs.keyRequired": "필드 키는 비워둘 수 없습니다.",
"updateArgs.stringifyError": "매개변수를 직렬화할 수 없습니다. 형식을 확인하세요."
}
diff --git a/locales/nl-NL/auth.json b/locales/nl-NL/auth.json
index 3e73b05e287..ed1e8d787f1 100644
--- a/locales/nl-NL/auth.json
+++ b/locales/nl-NL/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "De verificatie is niet voltooid. Probeer de uitdaging opnieuw.",
"betterAuth.captcha.title": "Beveiligingsverificatie vereist",
"betterAuth.errors.confirmPasswordRequired": "Bevestig je wachtwoord",
- "betterAuth.errors.emailExists": "Dit e-mailadres is al geregistreerd. Log in in plaats daarvan",
"betterAuth.errors.emailInvalid": "Voer een geldig e-mailadres of gebruikersnaam in",
"betterAuth.errors.emailNotRegistered": "Dit e-mailadres of gebruikersnaam is niet geregistreerd",
"betterAuth.errors.emailNotVerified": "E-mailadres niet geverifieerd, verifieer eerst je e-mailadres",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Wachtwoord moet minimaal 8 tekens bevatten",
"betterAuth.errors.passwordMismatch": "Wachtwoorden komen niet overeen",
"betterAuth.errors.passwordRequired": "Voer je wachtwoord in",
- "betterAuth.errors.usernameNotRegistered": "Deze gebruikersnaam is niet geregistreerd",
"betterAuth.errors.usernameRequired": "Voer je gebruikersnaam in",
"betterAuth.resetPassword.backToSignIn": "Terug naar inloggen",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Bevestig nieuw wachtwoord",
"betterAuth.resetPassword.confirmPasswordRequired": "Bevestig je nieuwe wachtwoord",
"betterAuth.resetPassword.description": "Voer je nieuwe wachtwoord in",
- "betterAuth.resetPassword.error": "Wachtwoord opnieuw instellen mislukt, probeer het opnieuw",
- "betterAuth.resetPassword.invalidToken": "Ongeldige of verlopen resetlink",
"betterAuth.resetPassword.newPasswordPlaceholder": "Voer nieuw wachtwoord in",
"betterAuth.resetPassword.passwordMismatch": "Wachtwoorden komen niet overeen",
"betterAuth.resetPassword.submit": "Wachtwoord opnieuw instellen",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Inloggen",
"betterAuth.signin.error": "Inloggen mislukt, controleer je e-mailadres en wachtwoord",
"betterAuth.signin.forgotPassword": "Wachtwoord vergeten?",
- "betterAuth.signin.forgotPasswordError": "Verzenden van resetlink mislukt",
"betterAuth.signin.forgotPasswordSent": "Resetlink verzonden, controleer je e-mail",
"betterAuth.signin.invalidReferralCodeContent": "De door jou gebruikte verwijzingscode \"{{code}}\" is ongeldig of verlopen. Wil je doorgaan met inloggen?",
"betterAuth.signin.invalidReferralCodeTitle": "Ongeldige verwijzingscode",
"betterAuth.signin.lastUsed": "Laatst gebruikt",
"betterAuth.signin.magicLinkButton": "Verzend inloglink",
- "betterAuth.signin.magicLinkError": "Verzenden van inloglink mislukt, probeer het later opnieuw",
"betterAuth.signin.magicLinkSent": "Inloglink verzonden, controleer je e-mail",
"betterAuth.signin.nextStep": "Volgende",
"betterAuth.signin.noAccount": "Heb je nog geen account?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Uw sessie is verlopen. Log opnieuw in om verder te gaan.",
"betterAuth.signin.setPassword": "stel een wachtwoord in",
"betterAuth.signin.signupLink": "Registreer nu",
- "betterAuth.signin.socialError": "Sociale login mislukt, probeer het opnieuw",
"betterAuth.signin.socialOnlyHint": "Dit e-mailadres is geregistreerd via een externe sociale account. Log in met die aanbieder, of",
"betterAuth.signin.ssoOnlyNoProviders": "Registratie via e-mail is uitgeschakeld en er zijn geen SSO-providers geconfigureerd. Neem contact op met je beheerder.",
"betterAuth.signin.submit": "Inloggen",
"betterAuth.signup.cardTitle": "Maak een {{appName}}-account aan",
"betterAuth.signup.confirmPasswordPlaceholder": "Bevestig je wachtwoord",
"betterAuth.signup.emailPlaceholder": "Voer je e-mailadres in",
- "betterAuth.signup.error": "Registratie mislukt, probeer het opnieuw",
"betterAuth.signup.firstNamePlaceholder": "Voornaam",
"betterAuth.signup.hasAccount": "Heb je al een account?",
"betterAuth.signup.invalidReferralCodeContent": "De verwijzingscode \"{{code}}\" is ongeldig of verlopen. Wil je doorgaan met registreren?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Als je de e-mail niet ontvangt, controleer dan je spamfolder",
"betterAuth.verifyEmail.description": "Er is een verificatie-e-mail verzonden naar {{email}}",
"betterAuth.verifyEmail.resend.button": "Verificatie-e-mail opnieuw verzenden",
- "betterAuth.verifyEmail.resend.error": "Verzenden mislukt. Probeer het later opnieuw.",
- "betterAuth.verifyEmail.resend.noEmail": "E-mailadres ontbreekt",
"betterAuth.verifyEmail.resend.success": "Verificatie-e-mail opnieuw verzonden. Controleer je inbox.",
"betterAuth.verifyEmail.title": "Verifieer je e-mailadres",
"date.prevMonth": "Vorige maand",
diff --git a/locales/nl-NL/authError.json b/locales/nl-NL/authError.json
index 60d2e670466..bc12fce7880 100644
--- a/locales/nl-NL/authError.json
+++ b/locales/nl-NL/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Dit account is al gekoppeld aan een andere gebruiker",
"codes.ACCOUNT_NOT_FOUND": "Account niet gevonden",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Inloggegevensaccount bestaat niet",
- "codes.DELETED_ACCOUNT_EMAIL": "Dit e-mailadres bevindt zich nog in de afkoelperiode voor accountverwijdering. Je kunt je opnieuw registreren 31 dagen nadat de verwijdering is voltooid.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Dit e-mailadres bevindt zich nog in de afkoelperiode voor accountverwijdering. Je kunt je opnieuw registreren over ongeveer {{count}} dag.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Dit e-mailadres bevindt zich nog in de afkoelperiode voor accountverwijdering. Je kunt je opnieuw registreren over ongeveer {{count}} dagen.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "E-mailadres kan niet worden bijgewerkt voor dit account",
- "codes.EMAIL_NOT_ALLOWED": "E-mailadres niet toegestaan voor registratie",
"codes.EMAIL_NOT_FOUND": "Geen e-mailadres gekoppeld aan dit account. Controleer of er een e-mailadres aan je account is gekoppeld.",
"codes.EMAIL_NOT_VERIFIED": "Verifieer eerst je e-mailadres",
"codes.FAILED_TO_CREATE_SESSION": "Sessie aanmaken mislukt",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Er is een onverwachte fout opgetreden, probeer het opnieuw",
"codes.UNKNOWN": "Er is een onbekende fout opgetreden, probeer het opnieuw of neem contact op met de ondersteuning",
"codes.USER_ALREADY_EXISTS": "Gebruiker bestaat al",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "E-mailadres is al in gebruik, probeer een ander",
"codes.USER_ALREADY_HAS_PASSWORD": "Dit account heeft al een wachtwoord ingesteld",
"codes.USER_BANNED": "Deze gebruiker is verbannen",
"codes.USER_EMAIL_NOT_FOUND": "E-mailadres niet gevonden",
diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.json
index 7c6e78bb0d4..d55ffd4eaaa 100644
--- a/locales/nl-NL/chat.json
+++ b/locales/nl-NL/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Stopt zodra de totale uitgaven dit bedrag bereiken; laat leeg voor geen limiet.",
"createGoal.costBudgetLabel": "Kostenbudget",
"createGoal.costBudgetPlaceholder": "Geen limiet",
- "createGoal.createFailed": "Doel aanmaken mislukt",
"createGoal.criteriaHint": "Bekijk en bewerk deze voordat het doel start",
"createGoal.criteriaTitle": "Acceptatiecriteria",
"createGoal.criterionPlaceholder": "Beschrijf een resultaat dat duidelijk gecontroleerd kan worden",
@@ -366,7 +365,6 @@
"createModal.title": "Wat moet je agent doen?",
"createTask.assignee": "Toegewezen aan",
"createTask.collapse": "Invoer verbergen",
- "createTask.createFailed": "Taak aanmaken mislukt",
"createTask.discardConfirm.cancel": "Doorgaan met bewerken",
"createTask.discardConfirm.content": "De titel, instructie en bijlagen die je hebt toegevoegd, gaan verloren.",
"createTask.discardConfirm.ok": "Verwerpen",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Voltooid",
"goalProcess.nodeStatus.retired": "Verwijderd",
"goalProcess.nodeStatus.waiting": "Wachtend",
- "goalProcess.northStar.declare.failed": "Mislukt om de metriek te verklaren",
"goalProcess.northStar.declare.keyLabel": "Metrieksleutel",
"goalProcess.northStar.declare.keyPlaceholder": "bijv. volgers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Voorwaarde",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Mislukt om de observatie te registreren",
"goalProcess.northStar.record.submit": "Registreren",
"goalProcess.northStar.record.title": "Registreer observatie",
"goalProcess.northStar.record.valueLabel": "Huidige waarde van {{key}}",
diff --git a/locales/nl-NL/discover.json b/locales/nl-NL/discover.json
index 13efc45ba23..09e0204418a 100644
--- a/locales/nl-NL/discover.json
+++ b/locales/nl-NL/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Handle moet 3-32 tekens bevatten",
"user.workspaceProfile.errors.namespace.pattern": "Gebruik kleine letters, cijfers en koppeltekens. Begin en eindig met een letter of cijfer.",
"user.workspaceProfile.errors.namespace.required": "Voer een Community-handle in",
- "user.workspaceProfile.errors.uploadFailed": "Avatar uploaden mislukt",
"user.workspaceProfile.errors.url": "Voer een geldige URL in",
"user.workspaceProfile.failed": "Werkruimteprofiel bijwerken mislukt",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Beheerder",
"user.workspaceProfile.settings.members.role.member": "Lid",
"user.workspaceProfile.settings.members.sync": "Leden synchroniseren",
- "user.workspaceProfile.settings.members.syncFailed": "Leden synchroniseren mislukt",
"user.workspaceProfile.settings.members.syncHint": "Synchroniseer de huidige werkruimteleden met de Community-organisatie.",
"user.workspaceProfile.settings.members.syncSuccess": "Leden gesynchroniseerd",
"user.workspaceProfile.settings.members.title": "Communityleden",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Leden",
"user.workspaceProfile.settings.tabs.profile": "Profiel",
"user.workspaceProfile.settings.title": "Communityprofielinstellingen",
- "user.workspaceProfile.settings.updateFailed": "Communityprofiel bijwerken mislukt",
"user.workspaceProfile.settings.updateSuccess": "Communityprofiel bijgewerkt",
"user.workspaceProfile.settings.website.description": "Voeg een website toe die op het Communityprofiel wordt weergegeven.",
"user.workspaceProfile.settings.website.hint": "Gebruik een publieke http(s)-URL.",
diff --git a/locales/nl-NL/electron.json b/locales/nl-NL/electron.json
index b62ee505430..8bbcbdc2b9a 100644
--- a/locales/nl-NL/electron.json
+++ b/locales/nl-NL/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Poort",
"proxy.resetButton": "Resetten",
"proxy.saveButton": "Opslaan",
- "proxy.saveFailed": "Opslaan mislukt: {{error}}",
"proxy.saveSuccess": "Proxy-instellingen succesvol opgeslagen",
"proxy.server": "Serveradres",
"proxy.testButton": "Test verbinding",
diff --git a/locales/nl-NL/memory.json b/locales/nl-NL/memory.json
index be642b6f976..5974e68acc2 100644
--- a/locales/nl-NL/memory.json
+++ b/locales/nl-NL/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Het materiaal is lang; alleen het begin is gelezen.",
"rules.distill.untitled": "Naamloos",
"rules.distill.upload": "Upload een bestand",
- "rules.distill.uploadFailed": "Kon het bestand niet uploaden.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint of platte tekst",
"rules.enforcement.block": "Blokkeren",
"rules.enforcement.blockDesc": "Houdt de levering tegen totdat je het toestaat. Nog niet actief: voorlopig herinnert het alleen",
diff --git a/locales/nl-NL/plugin.json b/locales/nl-NL/plugin.json
index b9b04791128..043e4876711 100644
--- a/locales/nl-NL/plugin.json
+++ b/locales/nl-NL/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP MCP heeft geen omgevingsvariabelen om te configureren",
"settings.indexUrl.title": "Community-index",
"settings.indexUrl.tooltip": "Bewerk via deployment-omgevingsvariabelen",
- "settings.messages.connectionUpdateFailed": "Bijwerken van verbinding mislukt",
"settings.messages.connectionUpdateSuccess": "Verbinding bijgewerkt",
- "settings.messages.envUpdateFailed": "Opslaan van omgevingsvariabelen mislukt",
"settings.messages.envUpdateSuccess": "Omgevingsvariabelen opgeslagen",
"settings.modalDesc": "Configureer de community-URL om een aangepaste Skill-community te gebruiken.",
"settings.rules.argsRequired": "Voer argumenten in",
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index fee72f1e0c8..a96ba963dbc 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Privéreferenties voor werkruimten zijn nog niet beschikbaar. Probeer het later opnieuw.",
"creds.errors.publicCredExists": "Deze werkruimte deelt al een referentie met deze sleutel. Verwijder die voordat je deze publiceert.",
"creds.file.authRequired": "Log eerst in op de Market",
- "creds.file.uploadFailed": "Bestandsupload mislukt",
"creds.file.uploadSuccess": "Bestand succesvol geüpload",
"creds.file.uploading": "Bezig met uploaden...",
"creds.form.cancel": "Annuleren",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "De specificatie, variabelen, de map van de kopie en de opgeslagen snapshot gaan ermee mee, en kunnen niet worden hersteld.",
"environments.removeConfirmTitle": "Omgeving {{name}} verwijderen?",
"environments.removeFailed": "Kon deze omgeving niet verwijderen",
- "environments.saveFailed": "Kon deze wijziging niet opslaan",
"environments.sessions.activeBuild": "{{instance}} wordt momenteel gebouwd",
"environments.sessions.activeSession": "Een sandbox draait momenteel in {{instance}}",
"environments.sessions.desc": "De meest recente sessies die in deze kopieën en de bouw ervan zijn uitgevoerd, van nieuw naar oud, met hoe elk eindigde en of wat het heeft geïnstalleerd is opgeslagen.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Druk op een toets om de sneltoets op te nemen",
"hotkey.reset": "Sneltoetsen terugzetten naar standaard",
"hotkey.title": "Sneltoetsen",
- "hotkey.updateError": "Bijwerken van sneltoets mislukt: netwerk- of systeemfout",
"hotkey.updateSuccess": "Sneltoets succesvol bijgewerkt",
"llm.aesGcm": "Je sleutels en proxyadres worden versleuteld met het <1>AES-GCM</1>-versleutelingsalgoritme",
"llm.apiKey.desc": "Voer je {{name}} API-sleutel in",
diff --git a/locales/nl-NL/tool.json b/locales/nl-NL/tool.json
index 6a5d437ff95..c3ab5f5458d 100644
--- a/locales/nl-NL/tool.json
+++ b/locales/nl-NL/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Item toevoegen",
"updateArgs.form.key": "Veldsleutel",
"updateArgs.form.value": "Veldwaarde",
- "updateArgs.formValidationFailed": "Formulier validatie mislukt, controleer het parameterformaat",
"updateArgs.keyRequired": "Veldsleutel mag niet leeg zijn",
"updateArgs.stringifyError": "Kan parameters niet serialiseren, controleer het parameterformaat"
}
diff --git a/locales/pl-PL/auth.json b/locales/pl-PL/auth.json
index 7bf2d2e94ee..157ab462cfb 100644
--- a/locales/pl-PL/auth.json
+++ b/locales/pl-PL/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "Weryfikacja nie została ukończona. Spróbuj ponownie wykonać wyzwanie.",
"betterAuth.captcha.title": "Wymagana weryfikacja bezpieczeństwa",
"betterAuth.errors.confirmPasswordRequired": "Potwierdź swoje hasło",
- "betterAuth.errors.emailExists": "Ten adres e-mail jest już zarejestrowany. Zaloguj się",
"betterAuth.errors.emailInvalid": "Wprowadź poprawny adres e-mail lub nazwę użytkownika",
"betterAuth.errors.emailNotRegistered": "Ten adres e-mail lub nazwa użytkownika nie jest zarejestrowany",
"betterAuth.errors.emailNotVerified": "Adres e-mail niezweryfikowany, najpierw go zweryfikuj",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Hasło musi mieć co najmniej 8 znaków",
"betterAuth.errors.passwordMismatch": "Hasła nie są zgodne",
"betterAuth.errors.passwordRequired": "Wprowadź hasło",
- "betterAuth.errors.usernameNotRegistered": "Ta nazwa użytkownika nie jest zarejestrowana",
"betterAuth.errors.usernameRequired": "Wprowadź nazwę użytkownika",
"betterAuth.resetPassword.backToSignIn": "Powrót do logowania",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Potwierdź nowe hasło",
"betterAuth.resetPassword.confirmPasswordRequired": "Potwierdź swoje nowe hasło",
"betterAuth.resetPassword.description": "Wprowadź nowe hasło",
- "betterAuth.resetPassword.error": "Nie udało się zresetować hasła, spróbuj ponownie",
- "betterAuth.resetPassword.invalidToken": "Nieprawidłowy lub wygasły link resetujący",
"betterAuth.resetPassword.newPasswordPlaceholder": "Wprowadź nowe hasło",
"betterAuth.resetPassword.passwordMismatch": "Hasła nie są zgodne",
"betterAuth.resetPassword.submit": "Zresetuj hasło",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Zaloguj się",
"betterAuth.signin.error": "Logowanie nie powiodło się, sprawdź e-mail i hasło",
"betterAuth.signin.forgotPassword": "Nie pamiętasz hasła?",
- "betterAuth.signin.forgotPasswordError": "Nie udało się wysłać linku do resetowania hasła",
"betterAuth.signin.forgotPasswordSent": "Link do resetowania hasła został wysłany, sprawdź e-mail",
"betterAuth.signin.invalidReferralCodeContent": "Kod polecający „{{code}}” jest nieprawidłowy lub wygasł. Czy chcesz kontynuować logowanie?",
"betterAuth.signin.invalidReferralCodeTitle": "Nieprawidłowy kod polecający",
"betterAuth.signin.lastUsed": "Ostatnio używane",
"betterAuth.signin.magicLinkButton": "Wyślij link logowania",
- "betterAuth.signin.magicLinkError": "Nie udało się wysłać linku logowania, spróbuj ponownie później",
"betterAuth.signin.magicLinkSent": "Link logowania został wysłany, sprawdź e-mail",
"betterAuth.signin.nextStep": "Dalej",
"betterAuth.signin.noAccount": "Nie masz konta?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Twoja sesja wygasła. Zaloguj się ponownie, aby kontynuować.",
"betterAuth.signin.setPassword": "ustaw hasło",
"betterAuth.signin.signupLink": "Zarejestruj się teraz",
- "betterAuth.signin.socialError": "Logowanie społecznościowe nie powiodło się, spróbuj ponownie",
"betterAuth.signin.socialOnlyHint": "Ten adres e-mail został zarejestrowany za pomocą zewnętrznego konta społecznościowego. Zaloguj się za pomocą tego dostawcy lub",
"betterAuth.signin.ssoOnlyNoProviders": "Rejestracja za pomocą e-maila jest wyłączona, a żaden dostawca SSO nie został skonfigurowany. Skontaktuj się z administratorem.",
"betterAuth.signin.submit": "Zaloguj się",
"betterAuth.signup.cardTitle": "Utwórz konto {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Potwierdź hasło",
"betterAuth.signup.emailPlaceholder": "Wprowadź adres e-mail",
- "betterAuth.signup.error": "Rejestracja nie powiodła się, spróbuj ponownie",
"betterAuth.signup.firstNamePlaceholder": "Imię",
"betterAuth.signup.hasAccount": "Masz już konto?",
"betterAuth.signup.invalidReferralCodeContent": "Kod polecający „{{code}}” jest nieprawidłowy lub wygasł. Czy chcesz kontynuować rejestrację?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Jeśli nie otrzymasz wiadomości, sprawdź folder spam",
"betterAuth.verifyEmail.description": "Wiadomość weryfikacyjna została wysłana na adres {{email}}",
"betterAuth.verifyEmail.resend.button": "Wyślij ponownie e-mail weryfikacyjny",
- "betterAuth.verifyEmail.resend.error": "Nie udało się wysłać. Spróbuj ponownie później.",
- "betterAuth.verifyEmail.resend.noEmail": "Brakuje adresu e-mail",
"betterAuth.verifyEmail.resend.success": "E-mail weryfikacyjny został wysłany ponownie. Sprawdź skrzynkę odbiorczą.",
"betterAuth.verifyEmail.title": "Zweryfikuj swój adres e-mail",
"date.prevMonth": "Ostatni miesiąc",
diff --git a/locales/pl-PL/authError.json b/locales/pl-PL/authError.json
index 97f37bf69dd..c47d5595f60 100644
--- a/locales/pl-PL/authError.json
+++ b/locales/pl-PL/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "To konto jest już powiązane z innym użytkownikiem",
"codes.ACCOUNT_NOT_FOUND": "Nie znaleziono konta",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Konto uwierzytelniające nie istnieje",
- "codes.DELETED_ACCOUNT_EMAIL": "Ten e-mail jest nadal w okresie karencji po usunięciu konta. Możesz zarejestrować się ponownie 31 dni po zakończeniu usuwania.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Ten e-mail jest nadal w okresie karencji po usunięciu konta. Możesz zarejestrować się ponownie za około {{count}} dzień.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Ten e-mail jest nadal w okresie karencji po usunięciu konta. Możesz zarejestrować się ponownie za około {{count}} dni.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "Nie można zaktualizować adresu e-mail dla tego konta",
- "codes.EMAIL_NOT_ALLOWED": "Rejestracja z tym adresem e-mail jest niedozwolona",
"codes.EMAIL_NOT_FOUND": "Brak adresu e-mail powiązanego z tym kontem. Sprawdź, czy Twoje konto ma przypisany adres e-mail.",
"codes.EMAIL_NOT_VERIFIED": "Najpierw zweryfikuj swój adres e-mail",
"codes.FAILED_TO_CREATE_SESSION": "Nie udało się utworzyć sesji",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Wystąpił nieoczekiwany błąd, spróbuj ponownie",
"codes.UNKNOWN": "Wystąpił nieznany błąd, spróbuj ponownie lub skontaktuj się z pomocą techniczną",
"codes.USER_ALREADY_EXISTS": "Użytkownik już istnieje",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Ten adres e-mail jest już używany, spróbuj innego",
"codes.USER_ALREADY_HAS_PASSWORD": "To konto ma już ustawione hasło",
"codes.USER_BANNED": "Ten użytkownik został zablokowany",
"codes.USER_EMAIL_NOT_FOUND": "Nie znaleziono adresu e-mail",
diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.json
index 6b30d202d09..18f54980787 100644
--- a/locales/pl-PL/chat.json
+++ b/locales/pl-PL/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Zatrzymuje się, gdy całkowite wydatki osiągną tę kwotę; pozostaw puste, aby nie ustalać limitu.",
"createGoal.costBudgetLabel": "Budżet kosztów",
"createGoal.costBudgetPlaceholder": "Bez limitu",
- "createGoal.createFailed": "Nie udało się utworzyć celu",
"createGoal.criteriaHint": "Przejrzyj i edytuj te kryteria przed rozpoczęciem realizacji celu",
"createGoal.criteriaTitle": "Kryteria akceptacji",
"createGoal.criterionPlaceholder": "Opisz wynik, który można jednoznacznie sprawdzić",
@@ -366,7 +365,6 @@
"createModal.title": "Czym ma zajmować się Twój agent?",
"createTask.assignee": "Przypisany",
"createTask.collapse": "Ukryj pole",
- "createTask.createFailed": "Nie udało się utworzyć zadania",
"createTask.discardConfirm.cancel": "Kontynuuj edycję",
"createTask.discardConfirm.content": "Tytuł, instrukcja i załączniki, które dodałeś, zostaną utracone.",
"createTask.discardConfirm.ok": "Odrzuć",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Zakończone",
"goalProcess.nodeStatus.retired": "Wycofane",
"goalProcess.nodeStatus.waiting": "Oczekujące",
- "goalProcess.northStar.declare.failed": "Nie udało się zadeklarować metryki",
"goalProcess.northStar.declare.keyLabel": "Klucz metryki",
"goalProcess.northStar.declare.keyPlaceholder": "np. followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Warunek",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Nie udało się zarejestrować obserwacji",
"goalProcess.northStar.record.submit": "Zarejestruj",
"goalProcess.northStar.record.title": "Zarejestruj obserwację",
"goalProcess.northStar.record.valueLabel": "Aktualna wartość {{key}}",
diff --git a/locales/pl-PL/discover.json b/locales/pl-PL/discover.json
index 8e72d9d16b8..c7b3026703a 100644
--- a/locales/pl-PL/discover.json
+++ b/locales/pl-PL/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Uchwyt musi mieć od 3 do 32 znaków",
"user.workspaceProfile.errors.namespace.pattern": "Używaj małych liter, cyfr i myślników. Rozpocznij i zakończ literą lub cyfrą.",
"user.workspaceProfile.errors.namespace.required": "Wprowadź uchwyt społeczności",
- "user.workspaceProfile.errors.uploadFailed": "Nie udało się przesłać awatara",
"user.workspaceProfile.errors.url": "Wprowadź prawidłowy URL",
"user.workspaceProfile.failed": "Nie udało się zaktualizować profilu przestrzeni roboczej",
"user.workspaceProfile.fields.avatar": "Awatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Administrator",
"user.workspaceProfile.settings.members.role.member": "Członek",
"user.workspaceProfile.settings.members.sync": "Synchronizuj członków",
- "user.workspaceProfile.settings.members.syncFailed": "Nie udało się zsynchronizować członków",
"user.workspaceProfile.settings.members.syncHint": "Zsynchronizuj obecnych członków przestrzeni roboczej z organizacją społeczności.",
"user.workspaceProfile.settings.members.syncSuccess": "Członkowie zsynchronizowani",
"user.workspaceProfile.settings.members.title": "Członkowie społeczności",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Członkowie",
"user.workspaceProfile.settings.tabs.profile": "Profil",
"user.workspaceProfile.settings.title": "Ustawienia profilu społeczności",
- "user.workspaceProfile.settings.updateFailed": "Nie udało się zaktualizować profilu społeczności",
"user.workspaceProfile.settings.updateSuccess": "Profil społeczności zaktualizowany",
"user.workspaceProfile.settings.website.description": "Dodaj stronę internetową widoczną w profilu społeczności.",
"user.workspaceProfile.settings.website.hint": "Użyj publicznego URL http(s).",
diff --git a/locales/pl-PL/electron.json b/locales/pl-PL/electron.json
index 9a0f6482570..3f23ebff066 100644
--- a/locales/pl-PL/electron.json
+++ b/locales/pl-PL/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Port",
"proxy.resetButton": "Resetuj",
"proxy.saveButton": "Zapisz",
- "proxy.saveFailed": "Nie udało się zapisać: {{error}}",
"proxy.saveSuccess": "Ustawienia proxy zostały zapisane pomyślnie",
"proxy.server": "Adres serwera",
"proxy.testButton": "Testuj połączenie",
diff --git a/locales/pl-PL/memory.json b/locales/pl-PL/memory.json
index 6ca2c186a6e..db8d3289ac9 100644
--- a/locales/pl-PL/memory.json
+++ b/locales/pl-PL/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Materiał jest długi; odczytano tylko jego początek.",
"rules.distill.untitled": "Bez tytułu",
"rules.distill.upload": "Prześlij plik",
- "rules.distill.uploadFailed": "Nie udało się przesłać pliku.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint lub zwykły tekst",
"rules.enforcement.block": "Blokuj",
"rules.enforcement.blockDesc": "Wstrzyma dostawę, dopóki jej nie przepuścisz. Jeszcze nie działa: na razie tylko przypomina",
diff --git a/locales/pl-PL/plugin.json b/locales/pl-PL/plugin.json
index 88b0f3e5b61..6fb08e71b59 100644
--- a/locales/pl-PL/plugin.json
+++ b/locales/pl-PL/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP MCP nie posiada zmiennych środowiskowych do konfiguracji",
"settings.indexUrl.title": "Indeks społeczności",
"settings.indexUrl.tooltip": "Edytuj przez zmienne środowiskowe wdrożenia",
- "settings.messages.connectionUpdateFailed": "Nie udało się zaktualizować połączenia",
"settings.messages.connectionUpdateSuccess": "Połączenie zaktualizowane",
- "settings.messages.envUpdateFailed": "Nie udało się zapisać zmiennych środowiskowych",
"settings.messages.envUpdateSuccess": "Zmiennie środowiskowe zapisane",
"settings.modalDesc": "Skonfiguruj URL społeczności, aby korzystać z własnej społeczności Umiejętności.",
"settings.rules.argsRequired": "Wprowadź argumenty",
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index 0078f1fc040..5c117c5df52 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Prywatne poświadczenia przestrzeni roboczej nie są jeszcze dostępne. Spróbuj ponownie później.",
"creds.errors.publicCredExists": "Ta przestrzeń robocza już udostępnia poświadczenie z tym kluczem. Usuń je, zanim opublikujesz to poświadczenie.",
"creds.file.authRequired": "Najpierw zaloguj się do Marketu",
- "creds.file.uploadFailed": "Przesyłanie pliku nie powiodło się",
"creds.file.uploadSuccess": "Plik przesłany pomyślnie",
"creds.file.uploading": "Przesyłanie...",
"creds.form.cancel": "Anuluj",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Jej specyfikacja, zmienne, folder kopii i zapisany zrzut zostaną usunięte i nie będzie można ich odzyskać.",
"environments.removeConfirmTitle": "Usunąć środowisko {{name}}?",
"environments.removeFailed": "Nie udało się usunąć tego środowiska",
- "environments.saveFailed": "Nie udało się zapisać tej zmiany",
"environments.sessions.activeBuild": "{{instance}} jest obecnie budowane",
"environments.sessions.activeSession": "Sandbox działa w {{instance}}",
"environments.sessions.desc": "Najbardziej aktualne sesje, które działały w tych kopiach i ich budowach, od najnowszych, z informacją, jak każda z nich się zakończyła i czy to, co zostało zainstalowane, zostało zapisane.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Naciśnij klawisz, aby nagrać skrót",
"hotkey.reset": "Przywróć domyślne skróty",
"hotkey.title": "Skróty klawiszowe",
- "hotkey.updateError": "Nie udało się zaktualizować skrótu: błąd sieci lub systemu",
"hotkey.updateSuccess": "Skrót zaktualizowany pomyślnie",
"llm.aesGcm": "Twoje klucze i adres proxy zostaną zaszyfrowane za pomocą algorytmu <1>AES-GCM</1>",
"llm.apiKey.desc": "Wprowadź swój klucz API {{name}}",
diff --git a/locales/pl-PL/tool.json b/locales/pl-PL/tool.json
index 75036003b49..13f3980dbb6 100644
--- a/locales/pl-PL/tool.json
+++ b/locales/pl-PL/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Dodaj Element",
"updateArgs.form.key": "Klucz Pola",
"updateArgs.form.value": "Wartość Pola",
- "updateArgs.formValidationFailed": "Walidacja formularza nie powiodła się, sprawdź format parametrów",
"updateArgs.keyRequired": "Klucz pola nie może być pusty",
"updateArgs.stringifyError": "Nie można przekształcić parametrów do formatu tekstowego, sprawdź ich poprawność"
}
diff --git a/locales/pt-BR/auth.json b/locales/pt-BR/auth.json
index 959857065e6..ae7246d03b3 100644
--- a/locales/pt-BR/auth.json
+++ b/locales/pt-BR/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "A verificação não foi concluída. Tente o desafio novamente.",
"betterAuth.captcha.title": "Verificação de segurança necessária",
"betterAuth.errors.confirmPasswordRequired": "Por favor, confirme sua senha",
- "betterAuth.errors.emailExists": "Este e-mail já está registrado. Faça login em vez disso",
"betterAuth.errors.emailInvalid": "Insira um endereço de e-mail ou nome de usuário válido",
"betterAuth.errors.emailNotRegistered": "Este e-mail ou nome de usuário não está registrado",
"betterAuth.errors.emailNotVerified": "E-mail não verificado, por favor verifique seu e-mail primeiro",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "A senha deve ter no mínimo 8 caracteres",
"betterAuth.errors.passwordMismatch": "As senhas não coincidem",
"betterAuth.errors.passwordRequired": "Insira sua senha",
- "betterAuth.errors.usernameNotRegistered": "Este nome de usuário não está registrado",
"betterAuth.errors.usernameRequired": "Insira seu nome de usuário",
"betterAuth.resetPassword.backToSignIn": "Voltar para Login",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Confirme a nova senha",
"betterAuth.resetPassword.confirmPasswordRequired": "Confirme sua nova senha",
"betterAuth.resetPassword.description": "Insira sua nova senha",
- "betterAuth.resetPassword.error": "Falha ao redefinir a senha, tente novamente",
- "betterAuth.resetPassword.invalidToken": "Link de redefinição inválido ou expirado",
"betterAuth.resetPassword.newPasswordPlaceholder": "Digite a nova senha",
"betterAuth.resetPassword.passwordMismatch": "As senhas não coincidem",
"betterAuth.resetPassword.submit": "Redefinir Senha",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Entrar",
"betterAuth.signin.error": "Falha no login, verifique seu e-mail e senha",
"betterAuth.signin.forgotPassword": "Esqueceu a senha?",
- "betterAuth.signin.forgotPasswordError": "Falha ao enviar link de redefinição de senha",
"betterAuth.signin.forgotPasswordSent": "Link de redefinição de senha enviado, verifique seu e-mail",
"betterAuth.signin.invalidReferralCodeContent": "O código de indicação \"{{code}}\" que você usou é inválido ou expirou. Deseja continuar com o login?",
"betterAuth.signin.invalidReferralCodeTitle": "Código de Indicação Inválido",
"betterAuth.signin.lastUsed": "Último uso",
"betterAuth.signin.magicLinkButton": "Enviar link de login",
- "betterAuth.signin.magicLinkError": "Falha ao enviar link de login, tente novamente mais tarde",
"betterAuth.signin.magicLinkSent": "Link de login enviado, verifique seu e-mail",
"betterAuth.signin.nextStep": "Próximo",
"betterAuth.signin.noAccount": "Não tem uma conta?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Sua sessão expirou. Faça login novamente para continuar.",
"betterAuth.signin.setPassword": "defina uma senha",
"betterAuth.signin.signupLink": "Cadastre-se agora",
- "betterAuth.signin.socialError": "Falha no login social, tente novamente",
"betterAuth.signin.socialOnlyHint": "Este e-mail foi registrado por meio de uma conta social de terceiros. Faça login com esse provedor ou",
"betterAuth.signin.ssoOnlyNoProviders": "O registro por e-mail está desativado e nenhum provedor de SSO foi configurado. Por favor, entre em contato com o administrador.",
"betterAuth.signin.submit": "Entrar",
"betterAuth.signup.cardTitle": "Crie uma conta no {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Confirme sua senha",
"betterAuth.signup.emailPlaceholder": "Digite seu e-mail",
- "betterAuth.signup.error": "Falha no cadastro, tente novamente",
"betterAuth.signup.firstNamePlaceholder": "Nome",
"betterAuth.signup.hasAccount": "Já tem uma conta?",
"betterAuth.signup.invalidReferralCodeContent": "O código de indicação \"{{code}}\" que você inseriu é inválido ou expirou. Deseja continuar com o cadastro?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Se você não recebeu o e-mail, verifique sua pasta de spam",
"betterAuth.verifyEmail.description": "Um e-mail de verificação foi enviado para {{email}}",
"betterAuth.verifyEmail.resend.button": "Reenviar E-mail de Verificação",
- "betterAuth.verifyEmail.resend.error": "Falha ao enviar. Tente novamente mais tarde.",
- "betterAuth.verifyEmail.resend.noEmail": "Endereço de e-mail ausente",
"betterAuth.verifyEmail.resend.success": "E-mail de verificação reenviado. Verifique sua caixa de entrada.",
"betterAuth.verifyEmail.title": "Verifique seu E-mail",
"date.prevMonth": "Mês Passado",
diff --git a/locales/pt-BR/authError.json b/locales/pt-BR/authError.json
index 32303a6f550..115e7621df2 100644
--- a/locales/pt-BR/authError.json
+++ b/locales/pt-BR/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Esta conta já está vinculada a outro usuário",
"codes.ACCOUNT_NOT_FOUND": "Conta não encontrada",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Conta de credencial não existe",
- "codes.DELETED_ACCOUNT_EMAIL": "Este e-mail ainda está no período de espera para exclusão da conta. Você pode se inscrever novamente 31 dias após a conclusão da exclusão.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Este e-mail ainda está no período de espera para exclusão da conta. Você pode se inscrever novamente em cerca de {{count}} dia.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Este e-mail ainda está no período de espera para exclusão da conta. Você pode se inscrever novamente em cerca de {{count}} dias.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "O e-mail não pode ser atualizado para esta conta",
- "codes.EMAIL_NOT_ALLOWED": "E-mail não permitido para registro",
"codes.EMAIL_NOT_FOUND": "Nenhum e-mail associado a esta conta. Verifique se sua conta possui um e-mail vinculado.",
"codes.EMAIL_NOT_VERIFIED": "Por favor, verifique seu e-mail primeiro",
"codes.FAILED_TO_CREATE_SESSION": "Falha ao criar sessão",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Ocorreu um erro inesperado, tente novamente",
"codes.UNKNOWN": "Ocorreu um erro desconhecido, tente novamente ou entre em contato com o suporte",
"codes.USER_ALREADY_EXISTS": "Usuário já existe",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "E-mail já está em uso, tente outro",
"codes.USER_ALREADY_HAS_PASSWORD": "Esta conta já possui uma senha definida",
"codes.USER_BANNED": "Este usuário foi banido",
"codes.USER_EMAIL_NOT_FOUND": "E-mail não encontrado",
diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.json
index 277baeab9e5..f79f5624adb 100644
--- a/locales/pt-BR/chat.json
+++ b/locales/pt-BR/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Para quando o gasto total atingir este valor; deixe em branco para sem limite.",
"createGoal.costBudgetLabel": "Orçamento de custo",
"createGoal.costBudgetPlaceholder": "Sem limite",
- "createGoal.createFailed": "Falha ao criar objetivo",
"createGoal.criteriaHint": "Revise e edite antes de iniciar o objetivo",
"createGoal.criteriaTitle": "Critérios de aceitação",
"createGoal.criterionPlaceholder": "Descreva um resultado que possa ser claramente verificado",
@@ -366,7 +365,6 @@
"createModal.title": "O que seu agente deve fazer?",
"createTask.assignee": "Responsável",
"createTask.collapse": "Ocultar entrada",
- "createTask.createFailed": "Falha ao criar tarefa",
"createTask.discardConfirm.cancel": "Continuar editando",
"createTask.discardConfirm.content": "O título, a instrução e os anexos que você adicionou serão perdidos.",
"createTask.discardConfirm.ok": "Descartar",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Concluído",
"goalProcess.nodeStatus.retired": "Arquivado",
"goalProcess.nodeStatus.waiting": "Aguardando",
- "goalProcess.northStar.declare.failed": "Falha ao declarar a métrica",
"goalProcess.northStar.declare.keyLabel": "Chave da métrica",
"goalProcess.northStar.declare.keyPlaceholder": "ex.: seguidores / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Condição",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Falha ao registrar a observação",
"goalProcess.northStar.record.submit": "Registrar",
"goalProcess.northStar.record.title": "Registrar observação",
"goalProcess.northStar.record.valueLabel": "Valor atual de {{key}}",
diff --git a/locales/pt-BR/discover.json b/locales/pt-BR/discover.json
index deccfbe61d9..80f8c947595 100644
--- a/locales/pt-BR/discover.json
+++ b/locales/pt-BR/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "O identificador deve ter entre 3 e 32 caracteres",
"user.workspaceProfile.errors.namespace.pattern": "Use letras minúsculas, números e hifens. Comece e termine com uma letra ou número.",
"user.workspaceProfile.errors.namespace.required": "Insira um identificador da Comunidade",
- "user.workspaceProfile.errors.uploadFailed": "Falha ao carregar o avatar",
"user.workspaceProfile.errors.url": "Insira uma URL válida",
"user.workspaceProfile.failed": "Falha ao atualizar o perfil da área de trabalho",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Administrador",
"user.workspaceProfile.settings.members.role.member": "Membro",
"user.workspaceProfile.settings.members.sync": "Sincronizar membros",
- "user.workspaceProfile.settings.members.syncFailed": "Falha ao sincronizar membros",
"user.workspaceProfile.settings.members.syncHint": "Sincronize os membros atuais da área de trabalho com a organização da Comunidade.",
"user.workspaceProfile.settings.members.syncSuccess": "Membros sincronizados",
"user.workspaceProfile.settings.members.title": "Membros da Comunidade",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Membros",
"user.workspaceProfile.settings.tabs.profile": "Perfil",
"user.workspaceProfile.settings.title": "Configurações do Perfil da Comunidade",
- "user.workspaceProfile.settings.updateFailed": "Falha ao atualizar o perfil da Comunidade",
"user.workspaceProfile.settings.updateSuccess": "Perfil da Comunidade atualizado",
"user.workspaceProfile.settings.website.description": "Adicione um site exibido no perfil da Comunidade.",
"user.workspaceProfile.settings.website.hint": "Use uma URL pública http(s).",
diff --git a/locales/pt-BR/electron.json b/locales/pt-BR/electron.json
index d9b25f5a595..0d20d3d5945 100644
--- a/locales/pt-BR/electron.json
+++ b/locales/pt-BR/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Porta",
"proxy.resetButton": "Redefinir",
"proxy.saveButton": "Salvar",
- "proxy.saveFailed": "Falha ao salvar: {{error}}",
"proxy.saveSuccess": "Configurações de proxy salvas com sucesso",
"proxy.server": "Endereço do servidor",
"proxy.testButton": "Testar conexão",
diff --git a/locales/pt-BR/memory.json b/locales/pt-BR/memory.json
index db52207e8de..f4267877ae2 100644
--- a/locales/pt-BR/memory.json
+++ b/locales/pt-BR/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "O material é longo; apenas o início foi lido.",
"rules.distill.untitled": "Sem título",
"rules.distill.upload": "Carregar um arquivo",
- "rules.distill.uploadFailed": "Não foi possível carregar o arquivo.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint ou texto simples",
"rules.enforcement.block": "Bloquear",
"rules.enforcement.blockDesc": "Reterá a entrega até que você a libere. Ainda não em vigor: por enquanto, apenas notifica",
diff --git a/locales/pt-BR/plugin.json b/locales/pt-BR/plugin.json
index 2ef7b835452..8fa9e2e33e7 100644
--- a/locales/pt-BR/plugin.json
+++ b/locales/pt-BR/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "MCP HTTP não possui variáveis de ambiente para configurar",
"settings.indexUrl.title": "Índice da comunidade",
"settings.indexUrl.tooltip": "Editar via variáveis de ambiente de implantação",
- "settings.messages.connectionUpdateFailed": "Falha ao atualizar conexão",
"settings.messages.connectionUpdateSuccess": "Conexão atualizada",
- "settings.messages.envUpdateFailed": "Falha ao salvar variáveis de ambiente",
"settings.messages.envUpdateSuccess": "Variáveis de ambiente salvas",
"settings.modalDesc": "Configure a URL da comunidade para usar uma comunidade de habilidades personalizada.",
"settings.rules.argsRequired": "Insira os argumentos",
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index 32b59d0b6fc..2bd70403927 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Credenciais privadas do espaço de trabalho ainda não estão disponíveis. Tente novamente mais tarde.",
"creds.errors.publicCredExists": "Este espaço de trabalho já compartilha uma credencial com esta chave. Remova-a antes de publicar esta.",
"creds.file.authRequired": "Por favor, faça login no Market primeiro",
- "creds.file.uploadFailed": "Falha no envio do arquivo",
"creds.file.uploadSuccess": "Arquivo enviado com sucesso",
"creds.file.uploading": "Enviando...",
"creds.form.cancel": "Cancelar",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Sua especificação, variáveis, a pasta da cópia e o snapshot salvo vão junto, e não podem ser recuperados.",
"environments.removeConfirmTitle": "Excluir ambiente {{name}}?",
"environments.removeFailed": "Não foi possível excluir este ambiente",
- "environments.saveFailed": "Não foi possível salvar esta alteração",
"environments.sessions.activeBuild": "{{instance}} está sendo construído agora",
"environments.sessions.activeSession": "Um sandbox está em execução em {{instance}} agora",
"environments.sessions.desc": "As sessões mais recentes que foram executadas nessas cópias e suas criações, da mais nova para a mais antiga, com como cada uma terminou e se o que foi instalado foi salvo.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Pressione uma tecla para gravar o atalho",
"hotkey.reset": "Redefinir para atalhos padrão",
"hotkey.title": "Atalhos",
- "hotkey.updateError": "Falha ao atualizar atalho: Erro de rede ou sistema",
"hotkey.updateSuccess": "Atalho atualizado com sucesso",
"llm.aesGcm": "Suas chaves e endereço de proxy serão criptografados usando o algoritmo <1>AES-GCM</1>",
"llm.apiKey.desc": "Insira sua Chave de API do {{name}}",
diff --git a/locales/pt-BR/tool.json b/locales/pt-BR/tool.json
index e0c6abde93a..cbbc871318a 100644
--- a/locales/pt-BR/tool.json
+++ b/locales/pt-BR/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Adicionar Item",
"updateArgs.form.key": "Chave do Campo",
"updateArgs.form.value": "Valor do Campo",
- "updateArgs.formValidationFailed": "Validação do formulário falhou, verifique o formato dos parâmetros",
"updateArgs.keyRequired": "A chave do campo não pode estar vazia",
"updateArgs.stringifyError": "Não foi possível serializar os parâmetros, verifique o formato"
}
diff --git a/locales/ru-RU/auth.json b/locales/ru-RU/auth.json
index 802c500949c..3450281e1b2 100644
--- a/locales/ru-RU/auth.json
+++ b/locales/ru-RU/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "Проверка не завершена. Попробуйте пройти проверку еще раз.",
"betterAuth.captcha.title": "Требуется проверка безопасности",
"betterAuth.errors.confirmPasswordRequired": "Пожалуйста, подтвердите пароль",
- "betterAuth.errors.emailExists": "Этот email уже зарегистрирован. Пожалуйста, войдите в систему",
"betterAuth.errors.emailInvalid": "Пожалуйста, введите корректный email или имя пользователя",
"betterAuth.errors.emailNotRegistered": "Этот email или имя пользователя не зарегистрированы",
"betterAuth.errors.emailNotVerified": "Email не подтверждён, пожалуйста, подтвердите его",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Пароль должен содержать не менее 8 символов",
"betterAuth.errors.passwordMismatch": "Пароли не совпадают",
"betterAuth.errors.passwordRequired": "Пожалуйста, введите пароль",
- "betterAuth.errors.usernameNotRegistered": "Это имя пользователя не зарегистрировано",
"betterAuth.errors.usernameRequired": "Пожалуйста, введите имя пользователя",
"betterAuth.resetPassword.backToSignIn": "Назад ко входу",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Подтвердите новый пароль",
"betterAuth.resetPassword.confirmPasswordRequired": "Пожалуйста, подтвердите новый пароль",
"betterAuth.resetPassword.description": "Пожалуйста, введите новый пароль",
- "betterAuth.resetPassword.error": "Не удалось сбросить пароль, попробуйте снова",
- "betterAuth.resetPassword.invalidToken": "Недействительная или просроченная ссылка для сброса",
"betterAuth.resetPassword.newPasswordPlaceholder": "Введите новый пароль",
"betterAuth.resetPassword.passwordMismatch": "Пароли не совпадают",
"betterAuth.resetPassword.submit": "Сбросить пароль",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Вход",
"betterAuth.signin.error": "Ошибка входа, проверьте email и пароль",
"betterAuth.signin.forgotPassword": "Забыли пароль?",
- "betterAuth.signin.forgotPasswordError": "Не удалось отправить ссылку для сброса пароля",
"betterAuth.signin.forgotPasswordSent": "Ссылка для сброса пароля отправлена, проверьте email",
"betterAuth.signin.invalidReferralCodeContent": "Промокод «{{code}}» недействителен или просрочен. Хотите продолжить вход?",
"betterAuth.signin.invalidReferralCodeTitle": "Недействительный промокод",
"betterAuth.signin.lastUsed": "Последний раз использовано",
"betterAuth.signin.magicLinkButton": "Отправить ссылку для входа",
- "betterAuth.signin.magicLinkError": "Не удалось отправить ссылку для входа, попробуйте позже",
"betterAuth.signin.magicLinkSent": "Ссылка для входа отправлена, проверьте email",
"betterAuth.signin.nextStep": "Далее",
"betterAuth.signin.noAccount": "Нет аккаунта?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Срок действия вашей сессии истек. Войдите снова, чтобы продолжить.",
"betterAuth.signin.setPassword": "установить пароль",
"betterAuth.signin.signupLink": "Зарегистрироваться",
- "betterAuth.signin.socialError": "Ошибка входа через соцсеть, попробуйте снова",
"betterAuth.signin.socialOnlyHint": "Этот адрес электронной почты был зарегистрирован через стороннюю социальную сеть. Войдите с помощью этой учетной записи или",
"betterAuth.signin.ssoOnlyNoProviders": "Регистрация по электронной почте отключена, и ни один поставщик SSO не настроен. Пожалуйста, свяжитесь с вашим администратором.",
"betterAuth.signin.submit": "Войти",
"betterAuth.signup.cardTitle": "Создайте аккаунт {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Подтвердите пароль",
"betterAuth.signup.emailPlaceholder": "Введите email",
- "betterAuth.signup.error": "Ошибка регистрации, попробуйте снова",
"betterAuth.signup.firstNamePlaceholder": "Имя",
"betterAuth.signup.hasAccount": "Уже есть аккаунт?",
"betterAuth.signup.invalidReferralCodeContent": "Промокод «{{code}}» недействителен или просрочен. Хотите продолжить регистрацию?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Если вы не получили письмо, проверьте папку «Спам»",
"betterAuth.verifyEmail.description": "Письмо с подтверждением отправлено на {{email}}",
"betterAuth.verifyEmail.resend.button": "Отправить повторно",
- "betterAuth.verifyEmail.resend.error": "Не удалось отправить. Попробуйте позже.",
- "betterAuth.verifyEmail.resend.noEmail": "Email не указан",
"betterAuth.verifyEmail.resend.success": "Письмо с подтверждением отправлено повторно. Проверьте почту.",
"betterAuth.verifyEmail.title": "Подтвердите email",
"date.prevMonth": "Прошлый месяц",
diff --git a/locales/ru-RU/authError.json b/locales/ru-RU/authError.json
index aaab166e2e6..8f7a77de70f 100644
--- a/locales/ru-RU/authError.json
+++ b/locales/ru-RU/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Эта учетная запись уже привязана к другому пользователю",
"codes.ACCOUNT_NOT_FOUND": "Учетная запись не найдена",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Учетная запись с такими учетными данными не существует",
- "codes.DELETED_ACCOUNT_EMAIL": "Этот адрес электронной почты все еще находится в периоде ожидания удаления аккаунта. Вы сможете зарегистрироваться снова через 31 день после завершения удаления.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Этот адрес электронной почты все еще находится в периоде ожидания удаления аккаунта. Вы сможете зарегистрироваться снова примерно через {{count}} день.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Этот адрес электронной почты все еще находится в периоде ожидания удаления аккаунта. Вы сможете зарегистрироваться снова примерно через {{count}} дней.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "Невозможно обновить адрес электронной почты для этой учетной записи",
- "codes.EMAIL_NOT_ALLOWED": "Регистрация с этим адресом электронной почты недоступна",
"codes.EMAIL_NOT_FOUND": "С этим аккаунтом не связан ни один адрес электронной почты. Пожалуйста, проверьте, привязана ли электронная почта к вашему аккаунту.",
"codes.EMAIL_NOT_VERIFIED": "Пожалуйста, сначала подтвердите свою электронную почту",
"codes.FAILED_TO_CREATE_SESSION": "Не удалось создать сессию",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Произошла непредвиденная ошибка, попробуйте еще раз",
"codes.UNKNOWN": "Произошла неизвестная ошибка, попробуйте снова или обратитесь в поддержку",
"codes.USER_ALREADY_EXISTS": "Пользователь уже существует",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Электронная почта уже используется, попробуйте другую",
"codes.USER_ALREADY_HAS_PASSWORD": "Для этой учетной записи уже установлен пароль",
"codes.USER_BANNED": "Этот пользователь заблокирован",
"codes.USER_EMAIL_NOT_FOUND": "Электронная почта не найдена",
diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.json
index 819ba83e07b..11ca529a23e 100644
--- a/locales/ru-RU/chat.json
+++ b/locales/ru-RU/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Останавливается, когда общие расходы достигают этой суммы; оставьте пустым, если ограничение не требуется.",
"createGoal.costBudgetLabel": "Бюджет расходов",
"createGoal.costBudgetPlaceholder": "Без ограничения",
- "createGoal.createFailed": "Не удалось создать цель",
"createGoal.criteriaHint": "Проверьте и отредактируйте их перед началом выполнения цели",
"createGoal.criteriaTitle": "Критерии приемки",
"createGoal.criterionPlaceholder": "Опишите результат, который можно четко проверить",
@@ -366,7 +365,6 @@
"createModal.title": "Что должен делать ваш агент?",
"createTask.assignee": "Исполнитель",
"createTask.collapse": "Скрыть ввод",
- "createTask.createFailed": "Не удалось создать задачу",
"createTask.discardConfirm.cancel": "Продолжить редактирование",
"createTask.discardConfirm.content": "Заголовок, инструкция и вложения, которые вы добавили, будут потеряны.",
"createTask.discardConfirm.ok": "Отменить",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Завершено",
"goalProcess.nodeStatus.retired": "Завершено",
"goalProcess.nodeStatus.waiting": "Ожидание",
- "goalProcess.northStar.declare.failed": "Не удалось объявить метрику",
"goalProcess.northStar.declare.keyLabel": "Ключ метрики",
"goalProcess.northStar.declare.keyPlaceholder": "например, followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Условие",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Не удалось записать наблюдение",
"goalProcess.northStar.record.submit": "Записать",
"goalProcess.northStar.record.title": "Записать наблюдение",
"goalProcess.northStar.record.valueLabel": "Текущее значение {{key}}",
diff --git a/locales/ru-RU/discover.json b/locales/ru-RU/discover.json
index f8ac107cfdd..d3eec3fd3de 100644
--- a/locales/ru-RU/discover.json
+++ b/locales/ru-RU/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Идентификатор должен содержать от 3 до 32 символов",
"user.workspaceProfile.errors.namespace.pattern": "Используйте строчные буквы, цифры и дефисы. Начинайте и заканчивайте буквой или цифрой.",
"user.workspaceProfile.errors.namespace.required": "Введите идентификатор сообщества",
- "user.workspaceProfile.errors.uploadFailed": "Не удалось загрузить аватар",
"user.workspaceProfile.errors.url": "Введите корректный URL",
"user.workspaceProfile.failed": "Не удалось обновить профиль рабочего пространства",
"user.workspaceProfile.fields.avatar": "Аватар",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Администратор",
"user.workspaceProfile.settings.members.role.member": "Участник",
"user.workspaceProfile.settings.members.sync": "Синхронизировать участников",
- "user.workspaceProfile.settings.members.syncFailed": "Не удалось синхронизировать участников",
"user.workspaceProfile.settings.members.syncHint": "Синхронизируйте текущих участников рабочего пространства с организацией сообщества.",
"user.workspaceProfile.settings.members.syncSuccess": "Участники синхронизированы",
"user.workspaceProfile.settings.members.title": "Участники сообщества",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Участники",
"user.workspaceProfile.settings.tabs.profile": "Профиль",
"user.workspaceProfile.settings.title": "Настройки профиля сообщества",
- "user.workspaceProfile.settings.updateFailed": "Не удалось обновить профиль сообщества",
"user.workspaceProfile.settings.updateSuccess": "Профиль сообщества обновлен",
"user.workspaceProfile.settings.website.description": "Добавьте веб-сайт, отображаемый в профиле сообщества.",
"user.workspaceProfile.settings.website.hint": "Используйте публичный URL http(s).",
diff --git a/locales/ru-RU/electron.json b/locales/ru-RU/electron.json
index 58e79495ee0..650d7d25930 100644
--- a/locales/ru-RU/electron.json
+++ b/locales/ru-RU/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Порт",
"proxy.resetButton": "Сбросить",
"proxy.saveButton": "Сохранить",
- "proxy.saveFailed": "Ошибка сохранения: {{error}}",
"proxy.saveSuccess": "Настройки прокси успешно сохранены",
"proxy.server": "Адрес сервера",
"proxy.testButton": "Проверить подключение",
diff --git a/locales/ru-RU/memory.json b/locales/ru-RU/memory.json
index 6e843b19eb7..174050e1ac1 100644
--- a/locales/ru-RU/memory.json
+++ b/locales/ru-RU/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Материал длинный; прочитано только его начало.",
"rules.distill.untitled": "Без названия",
"rules.distill.upload": "Загрузить файл",
- "rules.distill.uploadFailed": "Не удалось загрузить файл.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint или обычный текст",
"rules.enforcement.block": "Блокировать",
"rules.enforcement.blockDesc": "Будет удерживать доставку, пока вы не разрешите. Пока не активно: сейчас только напоминает",
diff --git a/locales/ru-RU/plugin.json b/locales/ru-RU/plugin.json
index 4bb92e0aa17..d2d5f63341d 100644
--- a/locales/ru-RU/plugin.json
+++ b/locales/ru-RU/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP MCP не требует настройки переменных среды",
"settings.indexUrl.title": "Индекс сообщества",
"settings.indexUrl.tooltip": "Редактируется через переменные среды при развертывании",
- "settings.messages.connectionUpdateFailed": "Не удалось обновить подключение",
"settings.messages.connectionUpdateSuccess": "Подключение обновлено",
- "settings.messages.envUpdateFailed": "Не удалось сохранить переменные среды",
"settings.messages.envUpdateSuccess": "Переменные среды сохранены",
"settings.modalDesc": "Настройте URL сообщества для использования пользовательских навыков.",
"settings.rules.argsRequired": "Введите аргументы",
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index 96efaac856f..59f9519ddf4 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Частные учетные данные рабочего пространства пока недоступны. Попробуйте позже.",
"creds.errors.publicCredExists": "Это рабочее пространство уже использует учетные данные с этим ключом. Удалите их, прежде чем публиковать эти.",
"creds.file.authRequired": "Пожалуйста, войдите в Market",
- "creds.file.uploadFailed": "Ошибка загрузки файла",
"creds.file.uploadSuccess": "Файл успешно загружен",
"creds.file.uploading": "Загрузка...",
"creds.form.cancel": "Отмена",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Его спецификация, переменные, папка копии и сохраненный снимок удаляются вместе с ним и не могут быть восстановлены.",
"environments.removeConfirmTitle": "Удалить среду {{name}}?",
"environments.removeFailed": "Не удалось удалить эту среду",
- "environments.saveFailed": "Не удалось сохранить изменения",
"environments.sessions.activeBuild": "{{instance}} сейчас создается",
"environments.sessions.activeSession": "Песочница сейчас работает в {{instance}}",
"environments.sessions.desc": "Самые последние сессии, которые проходили в этих копиях и их сборках, начиная с самых новых, с указанием, как каждая завершилась и было ли сохранено то, что она установила.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Нажмите клавишу для записи",
"hotkey.reset": "Сбросить горячие клавиши по умолчанию",
"hotkey.title": "Горячие клавиши",
- "hotkey.updateError": "Не удалось обновить горячую клавишу: ошибка сети или системы",
"hotkey.updateSuccess": "Горячая клавиша успешно обновлена",
"llm.aesGcm": "Ваши ключи и адрес прокси будут зашифрованы с использованием алгоритма <1>AES-GCM</1>",
"llm.apiKey.desc": "Пожалуйста, введите ваш API-ключ {{name}}",
diff --git a/locales/ru-RU/tool.json b/locales/ru-RU/tool.json
index e8195c7c86f..59d8cbb1f1f 100644
--- a/locales/ru-RU/tool.json
+++ b/locales/ru-RU/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Добавить элемент",
"updateArgs.form.key": "Ключ поля",
"updateArgs.form.value": "Значение поля",
- "updateArgs.formValidationFailed": "Ошибка проверки формы, проверьте формат параметров",
"updateArgs.keyRequired": "Ключ поля не может быть пустым",
"updateArgs.stringifyError": "Не удалось сериализовать параметры, проверьте их формат"
}
diff --git a/locales/tr-TR/auth.json b/locales/tr-TR/auth.json
index 2bfc94bb5bd..75e59b266e3 100644
--- a/locales/tr-TR/auth.json
+++ b/locales/tr-TR/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "Doğrulama tamamlanmadı. Lütfen doğrulamayı tekrar deneyin.",
"betterAuth.captcha.title": "Güvenlik doğrulaması gerekli",
"betterAuth.errors.confirmPasswordRequired": "Lütfen şifrenizi onaylayın",
- "betterAuth.errors.emailExists": "Bu e-posta zaten kayıtlı. Lütfen giriş yapın",
"betterAuth.errors.emailInvalid": "Lütfen geçerli bir e-posta adresi veya kullanıcı adı girin",
"betterAuth.errors.emailNotRegistered": "Bu e-posta veya kullanıcı adı kayıtlı değil",
"betterAuth.errors.emailNotVerified": "E-posta doğrulanmadı, lütfen önce e-postanızı doğrulayın",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Şifre en az 8 karakter olmalıdır",
"betterAuth.errors.passwordMismatch": "Şifreler eşleşmiyor",
"betterAuth.errors.passwordRequired": "Lütfen şifrenizi girin",
- "betterAuth.errors.usernameNotRegistered": "Bu kullanıcı adı kayıtlı değil",
"betterAuth.errors.usernameRequired": "Lütfen kullanıcı adınızı girin",
"betterAuth.resetPassword.backToSignIn": "Girişe Dön",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Yeni şifreyi onaylayın",
"betterAuth.resetPassword.confirmPasswordRequired": "Lütfen yeni şifrenizi onaylayın",
"betterAuth.resetPassword.description": "Lütfen yeni şifrenizi girin",
- "betterAuth.resetPassword.error": "Şifre sıfırlama başarısız, lütfen tekrar deneyin",
- "betterAuth.resetPassword.invalidToken": "Geçersiz veya süresi dolmuş sıfırlama bağlantısı",
"betterAuth.resetPassword.newPasswordPlaceholder": "Yeni şifreyi girin",
"betterAuth.resetPassword.passwordMismatch": "Şifreler eşleşmiyor",
"betterAuth.resetPassword.submit": "Şifreyi Sıfırla",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Giriş Yap",
"betterAuth.signin.error": "Giriş başarısız, lütfen e-posta ve şifrenizi kontrol edin",
"betterAuth.signin.forgotPassword": "Şifrenizi mi unuttunuz?",
- "betterAuth.signin.forgotPasswordError": "Şifre sıfırlama bağlantısı gönderilemedi",
"betterAuth.signin.forgotPasswordSent": "Şifre sıfırlama bağlantısı gönderildi, lütfen e-postanızı kontrol edin",
"betterAuth.signin.invalidReferralCodeContent": "\"{{code}}\" davet kodu geçersiz veya süresi dolmuş. Girişe devam etmek istiyor musunuz?",
"betterAuth.signin.invalidReferralCodeTitle": "Geçersiz Davet Kodu",
"betterAuth.signin.lastUsed": "Son kullanılan",
"betterAuth.signin.magicLinkButton": "Giriş bağlantısı gönder",
- "betterAuth.signin.magicLinkError": "Giriş bağlantısı gönderilemedi, lütfen daha sonra tekrar deneyin",
"betterAuth.signin.magicLinkSent": "Giriş bağlantısı gönderildi, lütfen e-postanızı kontrol edin",
"betterAuth.signin.nextStep": "İleri",
"betterAuth.signin.noAccount": "Hesabınız yok mu?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Oturumunuz sona erdi. Devam etmek için tekrar oturum açın.",
"betterAuth.signin.setPassword": "bir şifre belirle",
"betterAuth.signin.signupLink": "Hemen kayıt olun",
- "betterAuth.signin.socialError": "Sosyal giriş başarısız oldu, lütfen tekrar deneyin",
"betterAuth.signin.socialOnlyHint": "Bu e-posta, üçüncü taraf bir sosyal hesapla kaydedildi. O sağlayıcıyla giriş yapın ya da",
"betterAuth.signin.ssoOnlyNoProviders": "E-posta ile kayıt devre dışı bırakılmış ve hiçbir SSO sağlayıcısı yapılandırılmamış. Lütfen yöneticinizle iletişime geçin.",
"betterAuth.signin.submit": "Giriş Yap",
"betterAuth.signup.cardTitle": "{{appName}} Hesabı Oluştur",
"betterAuth.signup.confirmPasswordPlaceholder": "Şifrenizi onaylayın",
"betterAuth.signup.emailPlaceholder": "E-posta adresinizi girin",
- "betterAuth.signup.error": "Kayıt başarısız, lütfen tekrar deneyin",
"betterAuth.signup.firstNamePlaceholder": "Ad",
"betterAuth.signup.hasAccount": "Zaten bir hesabınız var mı?",
"betterAuth.signup.invalidReferralCodeContent": "\"{{code}}\" davet kodu geçersiz veya süresi dolmuş. Kayda devam etmek istiyor musunuz?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "E-postayı almadıysanız, lütfen spam klasörünüzü kontrol edin",
"betterAuth.verifyEmail.description": "{{email}} adresine bir doğrulama e-postası gönderildi",
"betterAuth.verifyEmail.resend.button": "Doğrulama E-postasını Yeniden Gönder",
- "betterAuth.verifyEmail.resend.error": "Gönderilemedi. Lütfen daha sonra tekrar deneyin.",
- "betterAuth.verifyEmail.resend.noEmail": "E-posta adresi eksik",
"betterAuth.verifyEmail.resend.success": "Doğrulama e-postası yeniden gönderildi. Lütfen gelen kutunuzu kontrol edin.",
"betterAuth.verifyEmail.title": "E-postanızı Doğrulayın",
"date.prevMonth": "Geçen Ay",
diff --git a/locales/tr-TR/authError.json b/locales/tr-TR/authError.json
index e1cd9fcafd5..7e962ec4887 100644
--- a/locales/tr-TR/authError.json
+++ b/locales/tr-TR/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Bu hesap zaten başka bir kullanıcıya bağlı",
"codes.ACCOUNT_NOT_FOUND": "Hesap bulunamadı",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Kimlik bilgisi hesabı mevcut değil",
- "codes.DELETED_ACCOUNT_EMAIL": "Bu e-posta hala hesap silme bekleme sürecinde. Silme işlemi tamamlandıktan 31 gün sonra tekrar kaydolabilirsiniz.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Bu e-posta hala hesap silme bekleme sürecinde. Yaklaşık {{count}} gün içinde tekrar kaydolabilirsiniz.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Bu e-posta hala hesap silme bekleme sürecinde. Yaklaşık {{count}} gün içinde tekrar kaydolabilirsiniz.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "Bu hesabın e-posta adresi güncellenemez",
- "codes.EMAIL_NOT_ALLOWED": "Bu e-posta adresi kayıt için uygun değil",
"codes.EMAIL_NOT_FOUND": "Bu hesaba bağlı bir e-posta bulunamadı. Lütfen hesabınıza bir e-posta adresi bağlı olup olmadığını kontrol edin.",
"codes.EMAIL_NOT_VERIFIED": "Lütfen önce e-posta adresinizi doğrulayın",
"codes.FAILED_TO_CREATE_SESSION": "Oturum oluşturulamadı",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Beklenmeyen bir hata oluştu, lütfen tekrar deneyin",
"codes.UNKNOWN": "Bilinmeyen bir hata oluştu, lütfen tekrar deneyin veya destekle iletişime geçin",
"codes.USER_ALREADY_EXISTS": "Kullanıcı zaten mevcut",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Bu e-posta zaten kullanımda, lütfen başka bir tane deneyin",
"codes.USER_ALREADY_HAS_PASSWORD": "Bu hesapta zaten bir şifre ayarlanmış",
"codes.USER_BANNED": "Bu kullanıcı yasaklanmış",
"codes.USER_EMAIL_NOT_FOUND": "E-posta bulunamadı",
diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.json
index a58cfeae4a6..45b1a7d8aae 100644
--- a/locales/tr-TR/chat.json
+++ b/locales/tr-TR/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Toplam harcama bu miktara ulaştığında durur; sınır koymamak için boş bırakın.",
"createGoal.costBudgetLabel": "Maliyet bütçesi",
"createGoal.costBudgetPlaceholder": "Sınır yok",
- "createGoal.createFailed": "Hedef oluşturulamadı",
"createGoal.criteriaHint": "Hedef başlamadan önce bunları gözden geçirin ve düzenleyin",
"createGoal.criteriaTitle": "Kabul kriterleri",
"createGoal.criterionPlaceholder": "Açıkça kontrol edilebilecek bir sonucu tanımlayın",
@@ -366,7 +365,6 @@
"createModal.title": "Ajansınız ne yapmalı?",
"createTask.assignee": "Atanan",
"createTask.collapse": "Girdiyi gizle",
- "createTask.createFailed": "Görev oluşturulamadı",
"createTask.discardConfirm.cancel": "Düzenlemeye devam et",
"createTask.discardConfirm.content": "Eklediğiniz başlık, talimat ve ekler kaybolacak.",
"createTask.discardConfirm.ok": "Vazgeç",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Tamamlandı",
"goalProcess.nodeStatus.retired": "Emekli edildi",
"goalProcess.nodeStatus.waiting": "Bekliyor",
- "goalProcess.northStar.declare.failed": "Metrik bildirilemedi",
"goalProcess.northStar.declare.keyLabel": "Metrik anahtarı",
"goalProcess.northStar.declare.keyPlaceholder": "ör. takipçiler / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Koşul",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Gözlem kaydedilemedi",
"goalProcess.northStar.record.submit": "Kaydet",
"goalProcess.northStar.record.title": "Gözlem kaydet",
"goalProcess.northStar.record.valueLabel": "{{key}} için mevcut değer",
diff --git a/locales/tr-TR/discover.json b/locales/tr-TR/discover.json
index d9ec58fa87e..5a3e9f2d458 100644
--- a/locales/tr-TR/discover.json
+++ b/locales/tr-TR/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Kullanıcı adı 3-32 karakter uzunluğunda olmalıdır",
"user.workspaceProfile.errors.namespace.pattern": "Küçük harfler, sayılar ve tireler kullanın. Bir harf veya sayı ile başlayıp bitirin.",
"user.workspaceProfile.errors.namespace.required": "Bir Topluluk kullanıcı adı girin",
- "user.workspaceProfile.errors.uploadFailed": "Avatar yüklenemedi",
"user.workspaceProfile.errors.url": "Geçerli bir URL girin",
"user.workspaceProfile.failed": "Çalışma alanı profili güncellenemedi",
"user.workspaceProfile.fields.avatar": "Avatar",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Yönetici",
"user.workspaceProfile.settings.members.role.member": "Üye",
"user.workspaceProfile.settings.members.sync": "Üyeleri senkronize et",
- "user.workspaceProfile.settings.members.syncFailed": "Üyeler senkronize edilemedi",
"user.workspaceProfile.settings.members.syncHint": "Mevcut çalışma alanı üyelerini Topluluk organizasyonuna senkronize edin.",
"user.workspaceProfile.settings.members.syncSuccess": "Üyeler senkronize edildi",
"user.workspaceProfile.settings.members.title": "Topluluk Üyeleri",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Üyeler",
"user.workspaceProfile.settings.tabs.profile": "Profil",
"user.workspaceProfile.settings.title": "Topluluk Profili Ayarları",
- "user.workspaceProfile.settings.updateFailed": "Topluluk profili güncellenemedi",
"user.workspaceProfile.settings.updateSuccess": "Topluluk profili güncellendi",
"user.workspaceProfile.settings.website.description": "Topluluk profilinde gösterilen bir web sitesi ekleyin.",
"user.workspaceProfile.settings.website.hint": "Genel bir http(s) URL'si kullanın.",
diff --git a/locales/tr-TR/electron.json b/locales/tr-TR/electron.json
index ae05aa7d8c8..50b9fec6b71 100644
--- a/locales/tr-TR/electron.json
+++ b/locales/tr-TR/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Port",
"proxy.resetButton": "Sıfırla",
"proxy.saveButton": "Kaydet",
- "proxy.saveFailed": "Kaydetme başarısız: {{error}}",
"proxy.saveSuccess": "Proxy ayarları başarıyla kaydedildi",
"proxy.server": "Sunucu Adresi",
"proxy.testButton": "Bağlantıyı Test Et",
diff --git a/locales/tr-TR/memory.json b/locales/tr-TR/memory.json
index e67279aec80..fc74316ad49 100644
--- a/locales/tr-TR/memory.json
+++ b/locales/tr-TR/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Materyal uzun; yalnızca başlangıcı okundu.",
"rules.distill.untitled": "Başlıksız",
"rules.distill.upload": "Bir dosya yükle",
- "rules.distill.uploadFailed": "Dosya yüklenemedi.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint veya düz metin",
"rules.enforcement.block": "Engelle",
"rules.enforcement.blockDesc": "Teslimatı siz onaylayana kadar durdurur. Henüz etkili değil: şimdilik sadece hatırlatır",
diff --git a/locales/tr-TR/plugin.json b/locales/tr-TR/plugin.json
index 1ba388f9744..72c57e3564a 100644
--- a/locales/tr-TR/plugin.json
+++ b/locales/tr-TR/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP MCP için yapılandırılacak ortam değişkeni yok",
"settings.indexUrl.title": "Topluluk dizini",
"settings.indexUrl.tooltip": "Dağıtım ortam değişkenleriyle düzenleyin",
- "settings.messages.connectionUpdateFailed": "Bağlantı güncellenemedi",
"settings.messages.connectionUpdateSuccess": "Bağlantı güncellendi",
- "settings.messages.envUpdateFailed": "Ortam değişkenleri kaydedilemedi",
"settings.messages.envUpdateSuccess": "Ortam değişkenleri kaydedildi",
"settings.modalDesc": "Özel Skill topluluğu kullanmak için topluluk URL'sini yapılandırın.",
"settings.rules.argsRequired": "Argüman girin",
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index 8bb26eaa00f..c6f5c914ce3 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Özel çalışma alanı kimlik bilgileri henüz kullanılamıyor. Lütfen daha sonra tekrar deneyin.",
"creds.errors.publicCredExists": "Bu çalışma alanı bu anahtarla zaten bir kimlik bilgisi paylaşıyor. Bunu yayınlamadan önce onu kaldırın.",
"creds.file.authRequired": "Lütfen önce Market'e giriş yapın",
- "creds.file.uploadFailed": "Dosya yükleme başarısız oldu",
"creds.file.uploadSuccess": "Dosya başarıyla yüklendi",
"creds.file.uploading": "Yükleniyor...",
"creds.form.cancel": "İptal",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Tanımı, değişkenleri, kopyasının klasörü ve kaydedilen anlık görüntü onunla birlikte gider ve geri alınamaz.",
"environments.removeConfirmTitle": "{{name}} ortamı silinsin mi?",
"environments.removeFailed": "Bu ortam silinemedi",
- "environments.saveFailed": "Bu değişiklik kaydedilemedi",
"environments.sessions.activeBuild": "{{instance}} şu anda oluşturuluyor",
"environments.sessions.activeSession": "Bir sanal alan şu anda {{instance}} içinde çalışıyor",
"environments.sessions.desc": "Bu kopyalarda çalıştırılan en son oturumlar ve onların oluşturulmaları, en yenisi ilk sırada, her birinin nasıl sona erdiği ve yüklediklerinin kaydedilip kaydedilmediği.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Kısayolu kaydetmek için bir tuşa basın",
"hotkey.reset": "Varsayılan kısayollara sıfırla",
"hotkey.title": "Kısayollar",
- "hotkey.updateError": "Kısayol güncellenemedi: Ağ veya sistem hatası",
"hotkey.updateSuccess": "Kısayol başarıyla güncellendi",
"llm.aesGcm": "Anahtarlarınız ve proxy adresiniz <1>AES-GCM</1> şifreleme algoritması ile şifrelenecektir",
"llm.apiKey.desc": "Lütfen {{name}} API Anahtarınızı girin",
diff --git a/locales/tr-TR/tool.json b/locales/tr-TR/tool.json
index 71a82a4db61..d1dc4afc9b9 100644
--- a/locales/tr-TR/tool.json
+++ b/locales/tr-TR/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Öğe Ekle",
"updateArgs.form.key": "Alan Anahtarı",
"updateArgs.form.value": "Alan Değeri",
- "updateArgs.formValidationFailed": "Form doğrulaması başarısız oldu, lütfen parametre biçimini kontrol edin",
"updateArgs.keyRequired": "Alan anahtarı boş olamaz",
"updateArgs.stringifyError": "Parametreler serileştirilemedi, lütfen parametre biçimini kontrol edin"
}
diff --git a/locales/vi-VN/auth.json b/locales/vi-VN/auth.json
index 7541eef6801..ccf3be6bb9e 100644
--- a/locales/vi-VN/auth.json
+++ b/locales/vi-VN/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "Xác minh chưa hoàn tất. Vui lòng thử lại thử thách.",
"betterAuth.captcha.title": "Yêu cầu xác minh bảo mật",
"betterAuth.errors.confirmPasswordRequired": "Vui lòng xác nhận mật khẩu",
- "betterAuth.errors.emailExists": "Email này đã được đăng ký. Vui lòng đăng nhập",
"betterAuth.errors.emailInvalid": "Vui lòng nhập địa chỉ email hoặc tên người dùng hợp lệ",
"betterAuth.errors.emailNotRegistered": "Email hoặc tên người dùng chưa được đăng ký",
"betterAuth.errors.emailNotVerified": "Email chưa được xác minh, vui lòng xác minh trước",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "Mật khẩu phải có ít nhất 8 ký tự",
"betterAuth.errors.passwordMismatch": "Mật khẩu không khớp",
"betterAuth.errors.passwordRequired": "Vui lòng nhập mật khẩu",
- "betterAuth.errors.usernameNotRegistered": "Tên người dùng chưa được đăng ký",
"betterAuth.errors.usernameRequired": "Vui lòng nhập tên người dùng",
"betterAuth.resetPassword.backToSignIn": "Quay lại đăng nhập",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "Xác nhận mật khẩu mới",
"betterAuth.resetPassword.confirmPasswordRequired": "Vui lòng xác nhận mật khẩu mới",
"betterAuth.resetPassword.description": "Vui lòng nhập mật khẩu mới của bạn",
- "betterAuth.resetPassword.error": "Đặt lại mật khẩu thất bại, vui lòng thử lại",
- "betterAuth.resetPassword.invalidToken": "Liên kết đặt lại không hợp lệ hoặc đã hết hạn",
"betterAuth.resetPassword.newPasswordPlaceholder": "Nhập mật khẩu mới",
"betterAuth.resetPassword.passwordMismatch": "Mật khẩu không khớp",
"betterAuth.resetPassword.submit": "Đặt lại mật khẩu",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "Đăng nhập",
"betterAuth.signin.error": "Đăng nhập thất bại, vui lòng kiểm tra email và mật khẩu",
"betterAuth.signin.forgotPassword": "Quên mật khẩu?",
- "betterAuth.signin.forgotPasswordError": "Gửi liên kết đặt lại mật khẩu thất bại",
"betterAuth.signin.forgotPasswordSent": "Đã gửi liên kết đặt lại mật khẩu, vui lòng kiểm tra email",
"betterAuth.signin.invalidReferralCodeContent": "Mã giới thiệu \"{{code}}\" bạn sử dụng không hợp lệ hoặc đã hết hạn. Bạn có muốn tiếp tục đăng nhập không?",
"betterAuth.signin.invalidReferralCodeTitle": "Mã giới thiệu không hợp lệ",
"betterAuth.signin.lastUsed": "Lần sử dụng cuối",
"betterAuth.signin.magicLinkButton": "Gửi liên kết đăng nhập",
- "betterAuth.signin.magicLinkError": "Gửi liên kết đăng nhập thất bại, vui lòng thử lại sau",
"betterAuth.signin.magicLinkSent": "Đã gửi liên kết đăng nhập, vui lòng kiểm tra email",
"betterAuth.signin.nextStep": "Tiếp theo",
"betterAuth.signin.noAccount": "Chưa có tài khoản?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "Phiên của bạn đã hết hạn. Đăng nhập lại để tiếp tục.",
"betterAuth.signin.setPassword": "tạo mật khẩu",
"betterAuth.signin.signupLink": "Đăng ký ngay",
- "betterAuth.signin.socialError": "Đăng nhập mạng xã hội thất bại, vui lòng thử lại",
"betterAuth.signin.socialOnlyHint": "Email này đã được đăng ký qua tài khoản mạng xã hội bên thứ ba. Vui lòng đăng nhập bằng nhà cung cấp đó, hoặc",
"betterAuth.signin.ssoOnlyNoProviders": "Đăng ký bằng email đã bị vô hiệu hóa và không có nhà cung cấp SSO nào được cấu hình. Vui lòng liên hệ với quản trị viên của bạn.",
"betterAuth.signin.submit": "Đăng nhập",
"betterAuth.signup.cardTitle": "Tạo tài khoản {{appName}}",
"betterAuth.signup.confirmPasswordPlaceholder": "Xác nhận mật khẩu",
"betterAuth.signup.emailPlaceholder": "Nhập địa chỉ email",
- "betterAuth.signup.error": "Đăng ký thất bại, vui lòng thử lại",
"betterAuth.signup.firstNamePlaceholder": "Tên",
"betterAuth.signup.hasAccount": "Đã có tài khoản?",
"betterAuth.signup.invalidReferralCodeContent": "Mã giới thiệu \"{{code}}\" bạn nhập không hợp lệ hoặc đã hết hạn. Bạn có muốn tiếp tục đăng ký không?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "Nếu bạn không nhận được email, vui lòng kiểm tra thư mục spam",
"betterAuth.verifyEmail.description": "Email xác minh đã được gửi đến {{email}}",
"betterAuth.verifyEmail.resend.button": "Gửi lại email xác minh",
- "betterAuth.verifyEmail.resend.error": "Gửi thất bại. Vui lòng thử lại sau.",
- "betterAuth.verifyEmail.resend.noEmail": "Thiếu địa chỉ email",
"betterAuth.verifyEmail.resend.success": "Đã gửi lại email xác minh. Vui lòng kiểm tra hộp thư đến.",
"betterAuth.verifyEmail.title": "Xác minh email của bạn",
"date.prevMonth": "Tháng trước",
diff --git a/locales/vi-VN/authError.json b/locales/vi-VN/authError.json
index a230c664e2f..c60a0f491d2 100644
--- a/locales/vi-VN/authError.json
+++ b/locales/vi-VN/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "Tài khoản này đã được liên kết với người dùng khác",
"codes.ACCOUNT_NOT_FOUND": "Không tìm thấy tài khoản",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "Tài khoản xác thực không tồn tại",
- "codes.DELETED_ACCOUNT_EMAIL": "Email này vẫn đang trong giai đoạn chờ xóa tài khoản. Bạn có thể đăng ký lại sau 31 ngày kể từ khi việc xóa hoàn tất.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "Email này vẫn đang trong giai đoạn chờ xóa tài khoản. Bạn có thể đăng ký lại sau khoảng {{count}} ngày.",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "Email này vẫn đang trong giai đoạn chờ xóa tài khoản. Bạn có thể đăng ký lại sau khoảng {{count}} ngày.",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "Không thể cập nhật email cho tài khoản này",
- "codes.EMAIL_NOT_ALLOWED": "Email này không được phép sử dụng để đăng ký",
"codes.EMAIL_NOT_FOUND": "Không tìm thấy email liên kết với tài khoản này. Vui lòng kiểm tra xem tài khoản của bạn đã được liên kết với email chưa.",
"codes.EMAIL_NOT_VERIFIED": "Vui lòng xác minh email trước",
"codes.FAILED_TO_CREATE_SESSION": "Không thể tạo phiên đăng nhập",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "Đã xảy ra lỗi không mong muốn, vui lòng thử lại",
"codes.UNKNOWN": "Đã xảy ra lỗi không xác định, vui lòng thử lại hoặc liên hệ hỗ trợ",
"codes.USER_ALREADY_EXISTS": "Người dùng đã tồn tại",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "Email đã được sử dụng, vui lòng thử email khác",
"codes.USER_ALREADY_HAS_PASSWORD": "Tài khoản này đã có mật khẩu",
"codes.USER_BANNED": "Người dùng này đã bị cấm",
"codes.USER_EMAIL_NOT_FOUND": "Không tìm thấy email",
diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.json
index baa0b651448..db97c4c927c 100644
--- a/locales/vi-VN/chat.json
+++ b/locales/vi-VN/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "Dừng lại khi tổng chi tiêu đạt đến số tiền này; để trống nếu không giới hạn.",
"createGoal.costBudgetLabel": "Ngân sách chi phí",
"createGoal.costBudgetPlaceholder": "Không giới hạn",
- "createGoal.createFailed": "Không thể tạo mục tiêu",
"createGoal.criteriaHint": "Xem xét và chỉnh sửa những điều này trước khi mục tiêu bắt đầu",
"createGoal.criteriaTitle": "Tiêu chí chấp nhận",
"createGoal.criterionPlaceholder": "Mô tả một kết quả có thể được kiểm tra rõ ràng",
@@ -366,7 +365,6 @@
"createModal.title": "Tác nhân của bạn sẽ làm gì?",
"createTask.assignee": "Người được giao",
"createTask.collapse": "Ẩn mục nhập",
- "createTask.createFailed": "Không thể tạo nhiệm vụ",
"createTask.discardConfirm.cancel": "Tiếp tục chỉnh sửa",
"createTask.discardConfirm.content": "Tiêu đề, hướng dẫn và tệp đính kèm bạn đã thêm sẽ bị mất.",
"createTask.discardConfirm.ok": "Hủy bỏ",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "Hoàn thành",
"goalProcess.nodeStatus.retired": "Đã ngừng",
"goalProcess.nodeStatus.waiting": "Đang chờ",
- "goalProcess.northStar.declare.failed": "Không thể khai báo chỉ số",
"goalProcess.northStar.declare.keyLabel": "Khóa chỉ số",
"goalProcess.northStar.declare.keyPlaceholder": "ví dụ: followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "Điều kiện",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "Không thể ghi nhận quan sát",
"goalProcess.northStar.record.submit": "Ghi nhận",
"goalProcess.northStar.record.title": "Ghi nhận quan sát",
"goalProcess.northStar.record.valueLabel": "Giá trị hiện tại của {{key}}",
diff --git a/locales/vi-VN/discover.json b/locales/vi-VN/discover.json
index f5feb0a7adc..1e93424bdea 100644
--- a/locales/vi-VN/discover.json
+++ b/locales/vi-VN/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "Tên định danh phải từ 3-32 ký tự",
"user.workspaceProfile.errors.namespace.pattern": "Sử dụng chữ thường, số và dấu gạch ngang. Bắt đầu và kết thúc bằng chữ hoặc số.",
"user.workspaceProfile.errors.namespace.required": "Nhập tên định danh Cộng đồng",
- "user.workspaceProfile.errors.uploadFailed": "Không thể tải lên ảnh đại diện",
"user.workspaceProfile.errors.url": "Nhập URL hợp lệ",
"user.workspaceProfile.failed": "Không thể cập nhật hồ sơ không gian làm việc",
"user.workspaceProfile.fields.avatar": "Ảnh đại diện",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "Quản trị viên",
"user.workspaceProfile.settings.members.role.member": "Thành viên",
"user.workspaceProfile.settings.members.sync": "Đồng bộ thành viên",
- "user.workspaceProfile.settings.members.syncFailed": "Không thể đồng bộ thành viên",
"user.workspaceProfile.settings.members.syncHint": "Đồng bộ các thành viên hiện tại của không gian làm việc vào tổ chức Cộng đồng.",
"user.workspaceProfile.settings.members.syncSuccess": "Thành viên đã được đồng bộ",
"user.workspaceProfile.settings.members.title": "Thành viên Cộng đồng",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "Thành viên",
"user.workspaceProfile.settings.tabs.profile": "Hồ sơ",
"user.workspaceProfile.settings.title": "Cài đặt Hồ sơ Cộng đồng",
- "user.workspaceProfile.settings.updateFailed": "Không thể cập nhật hồ sơ Cộng đồng",
"user.workspaceProfile.settings.updateSuccess": "Hồ sơ Cộng đồng đã được cập nhật",
"user.workspaceProfile.settings.website.description": "Thêm một trang web hiển thị trên hồ sơ Cộng đồng.",
"user.workspaceProfile.settings.website.hint": "Sử dụng URL http(s) công khai.",
diff --git a/locales/vi-VN/electron.json b/locales/vi-VN/electron.json
index 1169a98b646..b6154cc940c 100644
--- a/locales/vi-VN/electron.json
+++ b/locales/vi-VN/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "Cổng",
"proxy.resetButton": "Đặt lại",
"proxy.saveButton": "Lưu",
- "proxy.saveFailed": "Lưu thất bại: {{error}}",
"proxy.saveSuccess": "Đã lưu cài đặt proxy thành công",
"proxy.server": "Địa chỉ máy chủ",
"proxy.testButton": "Kiểm tra kết nối",
diff --git a/locales/vi-VN/memory.json b/locales/vi-VN/memory.json
index 83533a37236..03e4463e177 100644
--- a/locales/vi-VN/memory.json
+++ b/locales/vi-VN/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "Tài liệu dài; chỉ phần đầu được đọc.",
"rules.distill.untitled": "Chưa có tiêu đề",
"rules.distill.upload": "Tải lên một tệp",
- "rules.distill.uploadFailed": "Không thể tải lên tệp.",
"rules.distill.uploadHint": "Markdown, PDF, Word, PowerPoint hoặc văn bản thuần",
"rules.enforcement.block": "Chặn",
"rules.enforcement.blockDesc": "Sẽ giữ lại việc giao hàng cho đến khi bạn cho phép. Chưa có hiệu lực: hiện tại chỉ nhắc nhở",
diff --git a/locales/vi-VN/plugin.json b/locales/vi-VN/plugin.json
index 7032b85a4f3..f160005517d 100644
--- a/locales/vi-VN/plugin.json
+++ b/locales/vi-VN/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "MCP HTTP không có biến môi trường để cấu hình",
"settings.indexUrl.title": "Chỉ mục cộng đồng",
"settings.indexUrl.tooltip": "Chỉnh sửa qua biến môi trường triển khai",
- "settings.messages.connectionUpdateFailed": "Cập nhật kết nối thất bại",
"settings.messages.connectionUpdateSuccess": "Kết nối đã được cập nhật",
- "settings.messages.envUpdateFailed": "Lưu biến môi trường thất bại",
"settings.messages.envUpdateSuccess": "Biến môi trường đã được lưu",
"settings.modalDesc": "Cấu hình URL cộng đồng để sử dụng cộng đồng Kỹ năng tùy chỉnh.",
"settings.rules.argsRequired": "Nhập đối số",
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index ffe71db20e1..7451aa0bf47 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "Thông tin xác thực riêng tư của không gian làm việc chưa được hỗ trợ. Vui lòng thử lại sau.",
"creds.errors.publicCredExists": "Không gian làm việc này đã chia sẻ một thông tin xác thực với khóa này. Hãy xóa nó trước khi công bố cái này.",
"creds.file.authRequired": "Vui lòng đăng nhập vào Market trước",
- "creds.file.uploadFailed": "Tải tệp lên thất bại",
"creds.file.uploadSuccess": "Tệp đã được tải lên thành công",
"creds.file.uploading": "Đang tải lên...",
"creds.form.cancel": "Hủy",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "Định nghĩa, các biến, thư mục của bản sao và ảnh chụp nhanh đã lưu sẽ bị xóa cùng với nó, và không thể khôi phục.",
"environments.removeConfirmTitle": "Xóa môi trường {{name}}?",
"environments.removeFailed": "Không thể xóa môi trường này",
- "environments.saveFailed": "Không thể lưu thay đổi này",
"environments.sessions.activeBuild": "{{instance}} đang được xây dựng ngay bây giờ",
"environments.sessions.activeSession": "Một sandbox đang chạy trong {{instance}} ngay bây giờ",
"environments.sessions.desc": "Các phiên gần đây nhất đã chạy trong các bản sao này và các lần xây dựng của chúng, từ mới nhất đến cũ nhất, với cách mỗi phiên kết thúc và liệu những gì nó đã cài đặt có được lưu hay không.",
@@ -1007,7 +1005,6 @@
"hotkey.record": "Nhấn phím để ghi lại phím tắt",
"hotkey.reset": "Đặt lại phím tắt mặc định",
"hotkey.title": "Phím tắt",
- "hotkey.updateError": "Cập nhật phím tắt thất bại: Lỗi mạng hoặc hệ thống",
"hotkey.updateSuccess": "Cập nhật phím tắt thành công",
"llm.aesGcm": "Khóa và địa chỉ proxy của bạn sẽ được mã hóa bằng thuật toán <1>AES-GCM</1>",
"llm.apiKey.desc": "Vui lòng nhập API Key của {{name}}",
diff --git a/locales/vi-VN/tool.json b/locales/vi-VN/tool.json
index d4ea2be94b0..df023f4934a 100644
--- a/locales/vi-VN/tool.json
+++ b/locales/vi-VN/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "Thêm mục",
"updateArgs.form.key": "Khóa trường",
"updateArgs.form.value": "Giá trị trường",
- "updateArgs.formValidationFailed": "Xác thực biểu mẫu thất bại, vui lòng kiểm tra định dạng tham số",
"updateArgs.keyRequired": "Khóa trường không được để trống",
"updateArgs.stringifyError": "Không thể chuyển đổi tham số thành chuỗi, vui lòng kiểm tra định dạng tham số"
}
diff --git a/locales/zh-CN/agent.json b/locales/zh-CN/agent.json
index eb7888f2848..a9cbd7855cf 100644
--- a/locales/zh-CN/agent.json
+++ b/locales/zh-CN/agent.json
@@ -321,7 +321,9 @@
"channel.imessage.bridgeTest": "测试 BlueBubbles",
"channel.imessage.bridgeTestDisabledHint": "请先启用桥接服务",
"channel.imessage.bridgeTestFailed": "BlueBubbles 测试失败",
+ "channel.imessage.bridgeTestFailedRetry": "无法连接 BlueBubbles,请检查服务器地址和密码后重新测试。",
"channel.imessage.bridgeTestSuccess": "BlueBubbles 连接测试通过",
+ "channel.imessage.bridgeToggleFailedRetry": "无法切换桥接状态,请检查 BlueBubbles 服务器地址和密码后重试。",
"channel.imessage.description": "通过 LobeHub Desktop 本地 BlueBubbles 桥接将助手连接到 iMessage。",
"channel.imessage.desktopBridge": "桌面端桥接",
"channel.imessage.desktopDeviceId": "桌面端设备 ID",
@@ -343,6 +345,7 @@
"channel.line.destinationUserIdPlaceholder": "例如 U1234567890abcdef1234567890abcdef",
"channel.line.fetchBotInfo": "从 LINE 获取",
"channel.line.fetchBotInfoFailed": "获取 Bot 信息失败",
+ "channel.line.fetchBotInfoFailedRetry": "无法获取机器人信息,请检查 Channel Access Token 后重试。",
"channel.line.fetchBotInfoMissingToken": "请先填写 Channel Access Token,再点击「从 LINE 获取」。",
"channel.line.fetchBotInfoSuccess": "已获取 Destination User ID",
"channel.line.webhookManualSetup": "LINE 不支持自动注册 Webhook,请将此 URL 粘贴到 LINE Developers Console 的 Messaging API → Webhook URL,点击 \"Verify\" 并启用 \"Use webhook\"。",
@@ -655,6 +658,7 @@
"channel.testFailedHint": "请检查凭证后重试。",
"channel.testSuccess": "连接测试通过",
"channel.updateFailed": "更新状态失败",
+ "channel.updateFailedRetry": "保存失败,请检查网络后重试",
"channel.userId": "你的平台用户 ID",
"channel.userIdHint": "供 AI 工具主动联系你(如提醒、通知),并自动加入全局白名单",
"channel.userIdHint.dingtalk": "你的钉钉用户 ID(userId / 员工 ID)。可在钉钉管理后台 → 通讯录 → 成员详情中查看,或在单聊中给机器人发送 /whoami 获取。",
diff --git a/locales/zh-CN/auth.json b/locales/zh-CN/auth.json
index e409ace48ab..a8f73c0f67b 100644
--- a/locales/zh-CN/auth.json
+++ b/locales/zh-CN/auth.json
@@ -94,10 +94,10 @@
"betterAuth.captcha.pendingDescription": "验证未完成,请重新尝试人机验证。",
"betterAuth.captcha.title": "需要进行安全验证",
"betterAuth.errors.confirmPasswordRequired": "请确认密码",
- "betterAuth.errors.emailExists": "该邮箱已注册,请直接登录",
"betterAuth.errors.emailInvalid": "请输入有效的邮箱地址或用户名",
"betterAuth.errors.emailNotRegistered": "该邮箱或用户名尚未注册",
"betterAuth.errors.emailNotVerified": "邮箱尚未验证,请先完成验证",
+ "betterAuth.errors.emailRegistered": "该邮箱已注册。请直接用它登录;如果忘记密码,输入邮箱后选择「忘记密码?」。",
"betterAuth.errors.emailRequired": "请输入邮箱或用户名",
"betterAuth.errors.firstNameRequired": "请输入名字",
"betterAuth.errors.lastNameRequired": "请输入姓氏",
@@ -107,14 +107,16 @@
"betterAuth.errors.passwordMinLength": "密码至少 8 个字符",
"betterAuth.errors.passwordMismatch": "两次输入的密码不一致",
"betterAuth.errors.passwordRequired": "请输入密码",
- "betterAuth.errors.usernameNotRegistered": "该用户名尚未注册",
+ "betterAuth.errors.requestFailed": "无法连接服务器,请检查网络连接后重试。",
+ "betterAuth.errors.signupEmailInvalid": "请输入有效的邮箱地址,例如 [email protected]",
+ "betterAuth.errors.usernameNotFound": "该用户名未注册。请检查拼写,或改用邮箱登录。",
"betterAuth.errors.usernameRequired": "请输入用户名",
"betterAuth.resetPassword.backToSignIn": "返回登录",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "确认新密码",
"betterAuth.resetPassword.confirmPasswordRequired": "请确认新密码",
"betterAuth.resetPassword.description": "设置一个新密码,用于下次登录",
- "betterAuth.resetPassword.error": "重置遇到了问题。你可以稍后再试,或重新发起重置",
- "betterAuth.resetPassword.invalidToken": "重置链接无效或已过期,请重新发送",
+ "betterAuth.resetPassword.failed": "密码重置失败,请检查网络连接后重试。",
+ "betterAuth.resetPassword.linkExpired": "该重置链接无效或已过期。请返回登录页,输入邮箱后选择「忘记密码?」获取新链接。",
"betterAuth.resetPassword.newPasswordPlaceholder": "输入新密码",
"betterAuth.resetPassword.passwordMismatch": "两次输入的密码不一致",
"betterAuth.resetPassword.submit": "重置密码",
@@ -149,13 +151,12 @@
"betterAuth.signin.emailStep.title": "登录",
"betterAuth.signin.error": "登录遇到了问题。请检查账号与密码后重试",
"betterAuth.signin.forgotPassword": "忘记密码?",
- "betterAuth.signin.forgotPasswordError": "发送遇到了问题。你可以稍后再试",
"betterAuth.signin.forgotPasswordSent": "已发送重置链接,请检查邮箱",
"betterAuth.signin.invalidReferralCodeContent": "您使用的邀请码 \"{{code}}\" 无效或已过期。是否继续登录?",
"betterAuth.signin.invalidReferralCodeTitle": "无效的邀请码",
"betterAuth.signin.lastUsed": "上次使用",
"betterAuth.signin.magicLinkButton": "发送登录链接",
- "betterAuth.signin.magicLinkError": "发送遇到了问题。你可以稍后再试",
+ "betterAuth.signin.magicLinkFailed": "登录链接发送失败。请确认邮箱地址无误,稍等一分钟后重试。",
"betterAuth.signin.magicLinkSent": "登录链接已发送,请查收邮箱",
"betterAuth.signin.nextStep": "下一步",
"betterAuth.signin.noAccount": "还没有账号?",
@@ -163,17 +164,18 @@
"betterAuth.signin.passwordPlaceholder": "请输入密码",
"betterAuth.signin.passwordStep.subtitle": "请输入密码以继续",
"betterAuth.signin.passwordStep.title": "请输入密码",
+ "betterAuth.signin.resetEmailFailed": "重置密码邮件发送失败。请稍等一分钟后重试;如果一直失败,请检查网络连接。",
"betterAuth.signin.sessionExpired": "登录已过期,请重新登录以继续",
"betterAuth.signin.setPassword": "设置密码",
"betterAuth.signin.signupLink": "创建账号",
- "betterAuth.signin.socialError": "登录遇到了问题,请重试",
+ "betterAuth.signin.socialFailed": "使用 {{provider}} 登录失败。请重试,或改用邮箱登录。",
"betterAuth.signin.socialOnlyHint": "此邮箱是通过第三方社交账号注册的。请使用该服务提供商登录,或",
"betterAuth.signin.ssoOnlyNoProviders": "邮箱注册已禁用,且未配置 SSO 提供商。请联系管理员。",
"betterAuth.signin.submit": "登录",
"betterAuth.signup.cardTitle": "创建 {{appName}} 账号",
"betterAuth.signup.confirmPasswordPlaceholder": "请确认密码",
"betterAuth.signup.emailPlaceholder": "请输入邮箱地址",
- "betterAuth.signup.error": "注册遇到了问题。你可以稍后再试",
+ "betterAuth.signup.failed": "注册失败,请检查网络连接后重试。",
"betterAuth.signup.firstNamePlaceholder": "名字",
"betterAuth.signup.hasAccount": "已有账号?",
"betterAuth.signup.invalidReferralCodeContent": "您输入的邀请码 \"{{code}}\" 无效或已过期。是否继续注册?",
@@ -191,8 +193,8 @@
"betterAuth.verifyEmail.checkSpam": "没收到邮件?也可以检查垃圾邮件",
"betterAuth.verifyEmail.description": "验证邮件已发送至 {{email}}",
"betterAuth.verifyEmail.resend.button": "重新发送验证邮件",
- "betterAuth.verifyEmail.resend.error": "发送遇到了问题。你可以稍后再试",
- "betterAuth.verifyEmail.resend.noEmail": "未获取到邮箱地址",
+ "betterAuth.verifyEmail.resend.failed": "验证邮件重发失败。请稍等一分钟后重试,也可以先在垃圾邮件中找找之前那封。",
+ "betterAuth.verifyEmail.resend.missingEmail": "无法确定要发送到哪个邮箱。请返回并重新用邮箱注册。",
"betterAuth.verifyEmail.resend.success": "已重新发送,请查收邮箱",
"betterAuth.verifyEmail.title": "验证邮箱",
"date.prevMonth": "上个月",
diff --git a/locales/zh-CN/authError.json b/locales/zh-CN/authError.json
index 5c4dc673904..0501aeafc85 100644
--- a/locales/zh-CN/authError.json
+++ b/locales/zh-CN/authError.json
@@ -4,12 +4,14 @@
"actions.retry": "重新登录",
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "这个账号已绑定到其他用户,请使用其他方式登录",
"codes.ACCOUNT_NOT_FOUND": "没有找到对应账号,请检查登录方式或注册新账号",
+ "codes.BLOCKED_DOMAIN": "不支持使用该邮箱域名注册。请换用主流邮箱,例如 Gmail 或 Outlook。",
+ "codes.BLOCKED_MULTI_LEVEL_DOMAIN": "不支持使用该邮箱域名注册。请换用主流邮箱,例如 Gmail 或 Outlook。",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "凭证账号不存在,请重新授权或联系支持",
- "codes.DELETED_ACCOUNT_EMAIL": "该邮箱仍在账号注销冷却期。注销完成满 31 天后可重新注册。",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "该邮箱仍在账号注销冷却期,预计 {{count}} 天后可重新注册。",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "该邮箱仍在账号注销冷却期,预计 {{count}} 天后可重新注册。",
+ "codes.DELETED_ACCOUNT_EMAIL": "该邮箱属于刚注销的账号,需在注销完成满 31 天后才能再次使用。如需现在注册,请换一个邮箱。",
+ "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "该邮箱属于刚注销的账号,约 {{count}} 天后才能再次使用。如需现在注册,请换一个邮箱。",
+ "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "该邮箱属于刚注销的账号,约 {{count}} 天后才能再次使用。如需现在注册,请换一个邮箱。",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "当前邮箱无法修改,如需更换,请联系支持",
- "codes.EMAIL_NOT_ALLOWED": "该邮箱不允许用于注册",
+ "codes.EMAIL_NOT_ALLOWED": "该邮箱无法用于注册,请换一个邮箱地址。",
"codes.EMAIL_NOT_FOUND": "登录账号未关联邮箱,请检查账号是否已绑定邮箱",
"codes.EMAIL_NOT_VERIFIED": "邮箱还未验证,请先查收验证邮件完成验证",
"codes.FAILED_TO_CREATE_SESSION": "会话创建遇到了问题。你可以先重试;如仍失败,请检查网络或稍后再试",
@@ -28,12 +30,13 @@
"codes.PROVIDER_NOT_FOUND": "未找到对应登录方式的配置,请联系支持",
"codes.RATE_LIMIT_EXCEEDED": "请求过于频繁,请稍后再试",
"codes.SESSION_EXPIRED": "会话已过期,请重新登录",
+ "codes.SIGNUP_IP_BURST": "你所在网络近期注册次数过多,请稍后再试。",
"codes.SOCIAL_ACCOUNT_ALREADY_LINKED": "这个社交账号已被其他用户绑定,请使用其他账号",
"codes.TEMPORARY_EMAIL_NOT_ALLOWED": "不支持临时邮箱地址。请使用常规邮箱地址。多次尝试可能会导致此网络被封锁。",
"codes.UNEXPECTED_ERROR": "遇到一点意外情况。你可以重试,或稍后再试",
"codes.UNKNOWN": "遇到未识别的问题。你可以重试,或复制错误信息联系支持",
"codes.USER_ALREADY_EXISTS": "该用户已存在,请直接登录",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "这个邮箱已被使用,请换一个邮箱注册",
+ "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "该邮箱与已有账号相同(仅点号或「+」后缀不同的地址视为同一邮箱)。请登录该账号,或换一个邮箱。",
"codes.USER_ALREADY_HAS_PASSWORD": "该账号已设置过密码,请直接使用密码登录",
"codes.USER_BANNED": "该账号已被封禁,如有疑问,请联系支持",
"codes.USER_EMAIL_NOT_FOUND": "没有找到对应邮箱,请检查输入或注册新账号",
diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.json
index cfab28de6a2..9467dd084d9 100644
--- a/locales/zh-CN/chat.json
+++ b/locales/zh-CN/chat.json
@@ -337,7 +337,7 @@
"createGoal.costBudgetHint": "累计花费达到这个金额就停下,留空表示不限。",
"createGoal.costBudgetLabel": "成本预算",
"createGoal.costBudgetPlaceholder": "不限",
- "createGoal.createFailed": "创建目标失败",
+ "createGoal.createFailedRetry": "无法创建目标。方案已保留,请检查网络后重试。",
"createGoal.criteriaHint": "目标开始前,你可以逐条检查和修改",
"createGoal.criteriaTitle": "验收标准",
"createGoal.criterionPlaceholder": "描述一个能够明确检查的结果",
@@ -390,7 +390,7 @@
"createModal.title": "这个助理要做什么?",
"createTask.assignee": "助理",
"createTask.collapse": "隐藏输入",
- "createTask.createFailed": "创建任务失败",
+ "createTask.createFailedRetry": "无法创建任务。草稿已保留,请检查网络后重试。",
"createTask.discardConfirm.cancel": "继续编辑",
"createTask.discardConfirm.content": "已填写的标题、指令和附件都会丢失。",
"createTask.discardConfirm.ok": "放弃",
@@ -1156,7 +1156,7 @@
"goalProcess.nodeStatus.resolved": "已完成",
"goalProcess.nodeStatus.retired": "已退役",
"goalProcess.nodeStatus.waiting": "等待中",
- "goalProcess.northStar.declare.failed": "声明指标失败",
+ "goalProcess.northStar.declare.failedRetry": "无法声明指标。请检查标识和目标值后重试。",
"goalProcess.northStar.declare.keyLabel": "指标名(key)",
"goalProcess.northStar.declare.keyPlaceholder": "如 followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "判定条件",
@@ -1185,7 +1185,7 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "记录观测失败",
+ "goalProcess.northStar.record.failedRetry": "无法记录观测值。请检查数值后重试。",
"goalProcess.northStar.record.submit": "记录",
"goalProcess.northStar.record.title": "记录观测",
"goalProcess.northStar.record.valueLabel": "{{key}} 的当前值",
@@ -1522,6 +1522,7 @@
"heteroAgent.claudeQuota.manage.labelField": "显示名称",
"heteroAgent.claudeQuota.manage.labelPlaceholder": "默认使用账号邮箱",
"heteroAgent.claudeQuota.manage.loginFailed": "登录未完成,请重试。",
+ "heteroAgent.claudeQuota.manage.loginFailedRetry": "登录未完成,请点击「添加账号」重试。",
"heteroAgent.claudeQuota.manage.loginSuccess": "已登录 {{account}}",
"heteroAgent.claudeQuota.manage.loginWaiting": "请在浏览器中完成登录…",
"heteroAgent.claudeQuota.manage.modeAuto": "自动均衡",
@@ -1534,6 +1535,7 @@
"heteroAgent.claudeQuota.manage.remove": "移除账号",
"heteroAgent.claudeQuota.manage.signIn": "登录",
"heteroAgent.claudeQuota.manage.switchFailed": "切换账号失败,请重试。",
+ "heteroAgent.claudeQuota.manage.switchFailedRetry": "无法切换账号,请检查网络后重试。",
"heteroAgent.claudeQuota.manage.title": "Claude Code 账号",
"heteroAgent.claudeQuota.manage.use": "使用",
"heteroAgent.claudeQuota.manage.weeklyLeft": "本周剩余 {{percent}}%",
@@ -2225,6 +2227,7 @@
"resource.artifacts.history.previewHint": "选择一个修订版进行预览。",
"resource.artifacts.history.restore": "恢复",
"resource.artifacts.history.restoreError": "恢复修订版失败",
+ "resource.artifacts.history.restoreFailedRetry": "无法恢复到该修订版,请检查网络后重试。",
"resource.artifacts.history.restoreSuccess": "已切换到 v{{from}}",
"resource.artifacts.history.restoreTo": "恢复到 v{{revision}}",
"resource.artifacts.history.revisionCount": "{{count}} 个修订版",
@@ -2365,6 +2368,7 @@
"sessionGroup.createAgentPinFailed": "助理已创建,但置顶失败。可在列表中重新置顶。",
"sessionGroup.createAgentRefreshFailed": "助理已创建,但列表刷新失败。请刷新列表查看。",
"sessionGroup.createAgentSuccess": "助理创建成功",
+ "sessionGroup.createFailedRetry": "无法创建分组,请检查网络后重试。",
"sessionGroup.createGroup": "添加新分类",
"sessionGroup.createGroupFailed": "分类创建失败",
"sessionGroup.createGroupSuccess": "分类创建成功",
@@ -2399,6 +2403,7 @@
"shareModal.copyLinkSuccess": "分享链接已复制到剪贴板",
"shareModal.download": "下载截图",
"shareModal.downloadError": "下载失败,请检查网络后重试",
+ "shareModal.downloadFailedRetry": "无法下载 PDF,请检查网络后重试。",
"shareModal.downloadFile": "下载文件",
"shareModal.downloadPdf": "下载 PDF",
"shareModal.downloadSuccess": "下载成功",
@@ -2421,6 +2426,7 @@
"shareModal.generation.loadError": "分享设置加载失败",
"shareModal.generation.title": "分享这个作品",
"shareModal.generation.updateError": "分享链接更新失败,请重试",
+ "shareModal.generation.updateFailedRetry": "无法更新分享链接,请检查网络后重试。",
"shareModal.imageType": "图片格式",
"shareModal.includeTool": "包含技能消息",
"shareModal.includeUser": "包含用户消息",
@@ -2818,6 +2824,7 @@
"taskDetail.status.running": "进行中",
"taskDetail.status.scheduled": "已排期",
"taskDetail.statusCascade.applyFailed": "任务状态更新失败,请重试。",
+ "taskDetail.statusCascade.applyFailedRetry": "无法更新任务状态,请检查网络后重试。",
"taskDetail.statusCascade.cancel": "取消",
"taskDetail.statusCascade.description": "此任务仍有 {{count}} 个未结束的子任务。是否也将它们更新为“{{status}}”?",
"taskDetail.statusCascade.loadFailed": "无法检查子任务状态,请重试。",
diff --git a/locales/zh-CN/components.json b/locales/zh-CN/components.json
index a4f0cca37f5..aae4bd70153 100644
--- a/locales/zh-CN/components.json
+++ b/locales/zh-CN/components.json
@@ -37,6 +37,7 @@
"FileManager.actions.copyUrlError": "复制文件链接失败",
"FileManager.actions.copyUrlSuccess": "文件地址复制成功",
"FileManager.actions.createChunkingTask": "准备中…",
+ "FileManager.actions.createFolderFailedRetry": "无法创建文件夹,请检查网络后重试。",
"FileManager.actions.deleteAll": "删除全部资源",
"FileManager.actions.deleteAllOwn": "删除我创建的全部资源",
"FileManager.actions.deleteSuccess": "文件删除成功",
diff --git a/locales/zh-CN/dashboard.json b/locales/zh-CN/dashboard.json
index dd53992e2ad..0ef5d17b2b9 100644
--- a/locales/zh-CN/dashboard.json
+++ b/locales/zh-CN/dashboard.json
@@ -69,6 +69,7 @@
"error.showDetails": "显示详情",
"form.descriptionLabel": "描述",
"form.descriptionPlaceholder": "这个看板关注什么(可选)",
+ "form.saveFailedRetry": "无法保存看板,请检查网络后重试。",
"form.titleLabel": "名称",
"form.titlePlaceholder": "例如:开源项目健康度",
"layout.cancel": "放弃修改",
@@ -177,6 +178,7 @@
"widget.lastAttemptAt": "最近尝试于 {{time}}",
"widget.refresh.action": "立即刷新",
"widget.refresh.failed": "刷新失败:{{message}}。仍显示上次成功的结果。",
+ "widget.saveFailedRetry": "无法保存组件,请检查网络后重试。",
"widget.state.failedNoOutput": "还没有成功的结果——上次运行失败。",
"widget.state.firstRun": "首次运行中…",
"widget.state.noRun": "尚未运行,点击刷新获取数据。",
diff --git a/locales/zh-CN/device.json b/locales/zh-CN/device.json
index 8a2e275348c..26906470df4 100644
--- a/locales/zh-CN/device.json
+++ b/locales/zh-CN/device.json
@@ -67,6 +67,7 @@
"workingDirectory.drive.initializeWith": "用环境初始化",
"workingDirectory.drive.moreActions": "更多操作",
"workingDirectory.drive.pickFailed": "无法切换到这个文件夹,请重试。",
+ "workingDirectory.drive.pickFailedRetry": "无法切换到该文件夹,请检查网络后重试。",
"workingDirectory.drive.pickFolderFirst": "先选择一个文件夹",
"workingDirectory.drive.privateBlocked": "私有环境,共享助手无法使用",
"workingDirectory.drive.readOnly": "环境目录在这里是只读的。",
diff --git a/locales/zh-CN/discover.json b/locales/zh-CN/discover.json
index d9213b69239..05a928496b5 100644
--- a/locales/zh-CN/discover.json
+++ b/locales/zh-CN/discover.json
@@ -814,7 +814,8 @@
"user.workspaceProfile.errors.namespace.length": "标识必须为3-32个字符",
"user.workspaceProfile.errors.namespace.pattern": "使用小写字母、数字和连字符。以字母或数字开头和结尾。",
"user.workspaceProfile.errors.namespace.required": "请输入社区标识",
- "user.workspaceProfile.errors.uploadFailed": "头像上传失败",
+ "user.workspaceProfile.errors.saveFailed": "资料保存失败,请检查网络后重试",
+ "user.workspaceProfile.errors.uploadFailedRetry": "上传失败,请检查网络后重试",
"user.workspaceProfile.errors.url": "请输入有效的URL",
"user.workspaceProfile.failed": "更新工作区资料失败",
"user.workspaceProfile.fields.avatar": "头像",
@@ -833,7 +834,7 @@
"user.workspaceProfile.fields.namespace.available": "该URL可用",
"user.workspaceProfile.fields.namespace.checking": "正在检查可用性…",
"user.workspaceProfile.fields.namespace.placeholder": "workspace-handle",
- "user.workspaceProfile.fields.namespace.taken": "该URL已被占用",
+ "user.workspaceProfile.fields.namespace.taken": "该地址已被占用,请换一个标识。",
"user.workspaceProfile.fields.websiteUrl": "网站",
"user.workspaceProfile.fields.websiteUrl.placeholder": "工作区网站链接",
"user.workspaceProfile.optional.toggle": "更多设置",
@@ -851,7 +852,7 @@
"user.workspaceProfile.settings.members.role.admin": "管理员",
"user.workspaceProfile.settings.members.role.member": "成员",
"user.workspaceProfile.settings.members.sync": "同步成员",
- "user.workspaceProfile.settings.members.syncFailed": "同步成员失败",
+ "user.workspaceProfile.settings.members.syncFailedRetry": "同步成员失败,请检查网络后再次点击「同步成员」。",
"user.workspaceProfile.settings.members.syncHint": "将当前工作区成员同步到社区组织。",
"user.workspaceProfile.settings.members.syncSuccess": "成员已同步",
"user.workspaceProfile.settings.members.title": "社区成员",
@@ -864,7 +865,7 @@
"user.workspaceProfile.settings.tabs.members": "成员",
"user.workspaceProfile.settings.tabs.profile": "资料",
"user.workspaceProfile.settings.title": "社区资料设置",
- "user.workspaceProfile.settings.updateFailed": "更新社区资料失败",
+ "user.workspaceProfile.settings.updateFailedRetry": "保存失败,请检查网络后再次点击「保存」。",
"user.workspaceProfile.settings.updateSuccess": "社区资料已更新",
"user.workspaceProfile.settings.website.description": "添加显示在社区资料中的网站。",
"user.workspaceProfile.settings.website.hint": "使用公共http(s) URL。",
diff --git a/locales/zh-CN/electron.json b/locales/zh-CN/electron.json
index d76c7595133..b344136d1d3 100644
--- a/locales/zh-CN/electron.json
+++ b/locales/zh-CN/electron.json
@@ -106,12 +106,13 @@
"proxy.port": "端口",
"proxy.resetButton": "重置",
"proxy.saveButton": "保存",
- "proxy.saveFailed": "保存失败:{{error}}",
+ "proxy.saveFailedRetry": "代理设置保存失败,请检查配置后重试",
"proxy.saveSuccess": "代理设置保存成功",
"proxy.server": "服务器地址",
"proxy.testButton": "测试连接",
"proxy.testDescription": "使用当前代理配置测试连接,验证配置是否正常工作",
"proxy.testFailed": "连接失败",
+ "proxy.testFailedHint": "请检查代理服务器、端口和认证信息后重新测试",
"proxy.testSuccessWithTime": "测试连接成功,耗时 {{time}} ms",
"proxy.testUrl": "测试地址",
"proxy.testUrlPlaceholder": "请输入要测试的 URL",
diff --git a/locales/zh-CN/eval.json b/locales/zh-CN/eval.json
index 39050c4ebd1..9a4152b9e4b 100644
--- a/locales/zh-CN/eval.json
+++ b/locales/zh-CN/eval.json
@@ -26,6 +26,7 @@
"benchmark.create.description.label": "描述",
"benchmark.create.description.placeholder": "基准描述(选填)",
"benchmark.create.error": "创建基准失败",
+ "benchmark.create.failedRetry": "无法创建基准,请检查网络后重试。",
"benchmark.create.identifier.label": "标识符",
"benchmark.create.identifier.placeholder": "benchmark-identifier",
"benchmark.create.identifierRequired": "请输入标识符",
@@ -65,6 +66,7 @@
"benchmark.detail.tabs.runs": "运行",
"benchmark.edit.confirm": "保存",
"benchmark.edit.error": "更新基准失败",
+ "benchmark.edit.failedRetry": "无法保存基准,请检查网络后重试。",
"benchmark.edit.success": "基准更新成功",
"benchmark.edit.title": "编辑基准",
"benchmark.empty": "暂无基准,请先创建一个。",
@@ -189,6 +191,7 @@
"dataset.create.description.label": "描述",
"dataset.create.description.placeholder": "数据集描述(选填)",
"dataset.create.error": "创建数据集失败",
+ "dataset.create.failedRetry": "无法创建数据集,请确认标识符未被占用后重试。",
"dataset.create.fork.filter.hint": "留空以包含源数据集中的所有类别。",
"dataset.create.fork.filter.label": "过滤器",
"dataset.create.fork.filter.placeholder": "选择类别",
@@ -226,6 +229,7 @@
"dataset.detail.testCases": "测试用例",
"dataset.detail.viewDetail": "查看详情",
"dataset.edit.error": "更新数据集失败",
+ "dataset.edit.failedRetry": "无法保存数据集,请检查网络后重试。",
"dataset.edit.success": "数据集更新成功",
"dataset.edit.title": "编辑数据集",
"dataset.empty": "暂无数据集",
@@ -333,6 +337,7 @@
"experiment.create.description.label": "描述",
"experiment.create.description.placeholder": "实验描述(可选)",
"experiment.create.error": "创建实验失败",
+ "experiment.create.failedRetry": "无法创建实验,请检查网络后重试。",
"experiment.create.name.label": "名称",
"experiment.create.name.placeholder": "输入实验名称",
"experiment.create.nameRequired": "请输入实验名称",
@@ -353,6 +358,7 @@
"experiment.detail.stats.branches": "分支",
"experiment.detail.stats.runs": "运行",
"experiment.edit.error": "更新实验失败",
+ "experiment.edit.failedRetry": "无法保存实验,请检查网络后重试。",
"experiment.edit.success": "实验更新成功",
"experiment.edit.title": "编辑实验",
"experiment.empty": "还没有实验",
@@ -371,6 +377,7 @@
"lobeBench.benchmark.create.description": "描述",
"lobeBench.benchmark.create.description.placeholder": "可选:这个基准衡量什么",
"lobeBench.benchmark.create.failed": "基准创建失败",
+ "lobeBench.benchmark.create.failedRetry": "无法创建基准,请检查网络后重试。",
"lobeBench.benchmark.create.judge": "评审模型",
"lobeBench.benchmark.create.judge.hint": "这个 Benchmark 下的所有运行都用这个模型判分,分数才能互相比较。创建后不能修改。",
"lobeBench.benchmark.create.judge.placeholder": "选择评审模型",
@@ -637,6 +644,7 @@
"lobeBench.experiment.delete.done": "实验已删除",
"lobeBench.experiment.delete.failed": "删除实验失败",
"lobeBench.experiment.edit.failed": "实验更新失败",
+ "lobeBench.experiment.edit.failedRetry": "无法保存实验,请检查网络后重试。",
"lobeBench.experiment.edit.saved": "实验已更新",
"lobeBench.experiment.edit.title": "编辑实验",
"lobeBench.experiment.line_one": "{{count}} 个参赛者 · {{dataset}} · 每题 {{k}} 次",
@@ -772,6 +780,7 @@
"lobeBench.overview.runningLine": "{{done}}/{{total}} 题 · 已花费 {{cost}}",
"lobeBench.picks.clear": "清空",
"lobeBench.picks.create": "新建 dataset",
+ "lobeBench.picks.createFailedRetry": "无法创建数据集,请检查网络后重试。",
"lobeBench.picks.created_one": "已建好 {{dataset}},共 {{count}} 道题",
"lobeBench.picks.created_other": "已建好 {{dataset}},共 {{count}} 道题",
"lobeBench.picks.defaultName": "我的 dataset",
@@ -783,6 +792,7 @@
"lobeBench.picks.name": "Dataset 名称",
"lobeBench.picks.name.placeholder": "例如:金融 L2",
"lobeBench.picks.rename": "重命名",
+ "lobeBench.picks.renameFailedRetry": "无法重命名数据集,请检查网络后重试。",
"lobeBench.picks.run": "跑实验",
"lobeBench.picks.selected": "已选 {{count}} 道",
"lobeBench.picks.title_one": "用 {{count}} 道题建数据集",
@@ -915,6 +925,7 @@
"run.create.dataset.placeholder": "选择数据集",
"run.create.dataset.required": "请选择数据集",
"run.create.error": "创建运行失败",
+ "run.create.failedRetry": "无法创建评测运行,请检查网络后重试。",
"run.create.forkSummary.agent": "代理:{{agent}}",
"run.create.forkSummary.dataset": "数据集:{{dataset}}",
"run.create.forkSummary.snapshot": "将根据当前代理配置生成一个新的快照。",
@@ -945,6 +956,7 @@
"run.detail.progressCases": "个用例",
"run.detail.report": "评测概要",
"run.edit.error": "更新评测失败",
+ "run.edit.failedRetry": "无法保存评测运行,请检查网络后重试。",
"run.edit.success": "评测更新成功",
"run.edit.title": "编辑评测",
"run.empty.description": "在此数据集上开始你的首次评测",
@@ -1018,6 +1030,7 @@
"testCase.create.expected.label": "期望输出",
"testCase.create.expected.placeholder": "输入期望的回答",
"testCase.create.expected.required": "请输入期望输出",
+ "testCase.create.failedRetry": "无法创建测试用例,请检查网络后重试。",
"testCase.create.input.label": "输入",
"testCase.create.input.placeholder": "输入数据用例的问题或输入内容",
"testCase.create.success": "数据用例添加成功",
@@ -1028,6 +1041,7 @@
"testCase.delete.error": "删除数据用例失败",
"testCase.delete.success": "数据用例已删除",
"testCase.edit.error": "更新数据用例失败",
+ "testCase.edit.failedRetry": "无法保存测试用例,请检查网络后重试。",
"testCase.edit.success": "数据用例更新成功",
"testCase.edit.title": "编辑数据用例",
"testCase.empty.description": "导入或手动添加数据用例到此数据集",
diff --git a/locales/zh-CN/marketAuth.json b/locales/zh-CN/marketAuth.json
index d872aeb28a4..ffcdc90ef71 100644
--- a/locales/zh-CN/marketAuth.json
+++ b/locales/zh-CN/marketAuth.json
@@ -27,6 +27,7 @@
"claimResources.claim": "认领所选",
"claimResources.description": "我们发现了与你的账户关联的资源,你可以认领它们:",
"claimResources.error": "认领资源失败,请重试。",
+ "claimResources.failedRetry": "无法认领这些资源,请检查网络后重试。",
"claimResources.mcpSection": "MCP 服务器",
"claimResources.selectedCount": "已选择 {{count}} 项",
"claimResources.skillSection": "Skills",
diff --git a/locales/zh-CN/memory.json b/locales/zh-CN/memory.json
index 39a10f27341..032e1f0b2c4 100644
--- a/locales/zh-CN/memory.json
+++ b/locales/zh-CN/memory.json
@@ -237,7 +237,7 @@
"rules.distill.truncated": "材料太长,只读了前面一部分。",
"rules.distill.untitled": "未命名",
"rules.distill.upload": "上传文件",
- "rules.distill.uploadFailed": "文件没有传上去。",
+ "rules.distill.uploadFailedRetry": "无法上传文件。请重试,或换一个文件。",
"rules.distill.uploadHint": "支持 Markdown、PDF、Word、PPT 和纯文本",
"rules.enforcement.block": "拦",
"rules.enforcement.blockDesc": "将拦下交付,直到你放行。尚未生效,目前仍只提醒",
@@ -339,6 +339,7 @@
"rules.runs.none": "还没检查过",
"rules.runs.overruled": "你说误判了 {{count}} 次",
"rules.saveFailed": "这次修改没存上,页面已恢复成实际保存的内容。",
+ "rules.saveFailedRetry": "无法保存。你的内容已保留,请检查网络后重试。",
"rules.scope.agent": "智能体 {{title}}",
"rules.scope.project": "项目 {{title}}",
"rules.scope.user": "你的所有运行",
diff --git a/locales/zh-CN/plugin.json b/locales/zh-CN/plugin.json
index 1b138d0faa2..5ab7dad97c0 100644
--- a/locales/zh-CN/plugin.json
+++ b/locales/zh-CN/plugin.json
@@ -1056,7 +1056,9 @@
"dev.preview.mcp.tools_other": "{{count}} 个工具",
"dev.preview.title": "技能名称预览",
"dev.saveError": "安装失败,请重试",
+ "dev.saveFailedRetry": "无法保存连接器,请检查网络后重试。",
"dev.saveSuccess": "技能设置保存成功",
+ "dev.ssrfBlockedRetry": "该服务器地址不被允许,请改用公网地址,或展开详情查看放行方法。",
"dev.tabs.manifest": "功能描述清单 (Manifest)",
"dev.tabs.meta": "技能元信息",
"dev.title.connectorSettings": "连接器设置",
@@ -1187,6 +1189,7 @@
"protocolInstall.marketplace.verified": "已验证",
"protocolInstall.messages.connectionTestFailed": "连接测试失败",
"protocolInstall.messages.installError": "技能安装失败,请重试",
+ "protocolInstall.messages.installFailedRetry": "无法安装该插件,请检查网络后重试。",
"protocolInstall.messages.installSuccess": "技能 {{name}} 已安装。你可以现在启用,或稍后再配置",
"protocolInstall.messages.manifestError": "获取技能信息遇到了问题。你可以检查网络后重试,或稍后再试",
"protocolInstall.messages.manifestNotFound": "未能获取技能描述文件",
@@ -1235,9 +1238,9 @@
"settings.httpTypeNotice": "HTTP 类型的 MCP 暂无需要配置的环境变量",
"settings.indexUrl.title": "社区索引",
"settings.indexUrl.tooltip": "暂不支持在线编辑,请通过部署时环境变量进行设置",
- "settings.messages.connectionUpdateFailed": "连接信息更新失败",
+ "settings.messages.connectionUpdateFailedRetry": "无法更新连接。请检查地址或命令后重试。",
"settings.messages.connectionUpdateSuccess": "连接信息更新成功",
- "settings.messages.envUpdateFailed": "环境变量保存失败",
+ "settings.messages.envUpdateFailedRetry": "无法保存环境变量。请检查网络后重试。",
"settings.messages.envUpdateSuccess": "环境变量保存成功",
"settings.modalDesc": "配置技能社区的地址后,可以使用自定义的技能社区",
"settings.rules.argsRequired": "请输入启动参数",
diff --git a/locales/zh-CN/project.json b/locales/zh-CN/project.json
index 78b7097d2da..d1162b3a845 100644
--- a/locales/zh-CN/project.json
+++ b/locales/zh-CN/project.json
@@ -208,6 +208,7 @@
"create.avatarInvalidType": "请使用 JPG、PNG、GIF 或 WEBP 图片",
"create.avatarUploadFailed": "图片上传失败,请重试",
"create.blank": "空白项目",
+ "create.failedRetry": "无法创建项目,请检查网络后重试。",
"create.fromGithub": "从 GitHub 仓库创建",
"create.identifierDescription": "填写后替换本项目任务编号的前缀,例如 ACE;不填则使用默认前缀。",
"create.identifierInvalid": "请输入 3–6 位大写字母或数字,并以字母开头。",
@@ -327,6 +328,7 @@
"goals.title": "目标",
"knowledgeBases.add": "关联",
"knowledgeBases.addFailed": "关联资料库失败",
+ "knowledgeBases.addFailedRetry": "无法添加该资源库,请检查网络后重试。",
"knowledgeBases.addTitle": "关联资料库",
"knowledgeBases.added": "已关联",
"knowledgeBases.description": "Agent 处理本项目的任务时可以检索这些资料库。",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index a239bc9613a..1635204a123 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -33,6 +33,7 @@
"accountDeletion.reasonOption.too_expensive": "价格太贵",
"accountDeletion.requestButton": "申请注销账号",
"accountDeletion.requestFailed": "申请注销账号失败",
+ "accountDeletion.requestFailedRetry": "无法提交注销申请。请检查网络后重试。",
"accountDeletion.requestSuccess": "注销申请已提交",
"accountDeletion.reregisterNotice": "注销完成后,同一邮箱在 {{days}} 天内无法再次注册。",
"accountDeletion.sectionTitle": "账号注销",
@@ -212,6 +213,7 @@
"agentSkillModal.github.clearSearch": "清除搜索",
"agentSkillModal.github.complete_one": "{{count}} 个技能已就绪",
"agentSkillModal.github.complete_other": "{{count}} 个技能已就绪",
+ "agentSkillModal.github.connectFailedRetry": "无法连接 GitHub,请检查网络后重试。",
"agentSkillModal.github.connectionSettings": "查看 GitHub 连接设置",
"agentSkillModal.github.desc": "选择包含 SKILL.md 的 GitHub 仓库或目录。",
"agentSkillModal.github.empty": "此链接下没有找到 SKILL.md,请尝试其他仓库或目录。",
@@ -484,7 +486,7 @@
"creds.errors.privateCredsDisabled": "工作区私人凭证暂未开放,请稍后再试。",
"creds.errors.publicCredExists": "此工作区已有同一键名的共享凭证,请先移除它再发布此凭证。",
"creds.file.authRequired": "请先登录 Market",
- "creds.file.uploadFailed": "文件上传失败",
+ "creds.file.uploadFailedRetry": "文件上传失败,请检查文件后重试",
"creds.file.uploadSuccess": "文件上传成功",
"creds.file.uploading": "上传中...",
"creds.form.addEnvVar": "添加变量",
@@ -758,6 +760,7 @@
"devices.share.detailLabel": "已共享到的工作区",
"devices.share.done": "完成",
"devices.share.empty": "您还没有加入任何工作区。",
+ "devices.share.failedRetry": "无法将设备分享到 {{name}},请确认设备在线后重试。",
"devices.share.goToTarget": "前往 {{name}}",
"devices.share.menu": "共享到工作区…",
"devices.share.modalDesc": "选择要将此设备共享到的工作区。设备在线时,成员可以向它派发智能体任务。",
@@ -1110,7 +1113,7 @@
"environments.removeConfirmContent": "它的配置和环境变量会被删除,无法恢复。用它初始化过的文件夹会保留其中的文件;旧版本构建的副本会一并删除。",
"environments.removeConfirmTitle": "删除环境 {{name}}?",
"environments.removeFailed": "删除环境失败",
- "environments.saveFailed": "无法保存这次修改",
+ "environments.saveFailedRetry": "保存失败,请检查网络后重试",
"environments.sessions.activeBuild": "{{instance}} 正在构建",
"environments.sessions.activeSession": "沙箱正在 {{instance}} 中运行",
"environments.sessions.desc": "这些副本最近的运行会话和构建,最新的在前,含各自的结束方式,以及安装的内容是否被保存。",
@@ -1277,7 +1280,7 @@
"hotkey.sendMessage.desc": "另一种组合键用于换行",
"hotkey.sendMessage.title": "发送消息",
"hotkey.title": "快捷键",
- "hotkey.updateError": "快捷键更新失败:网络或系统错误",
+ "hotkey.updateErrorRetry": "快捷键保存失败,请重新录入后再试",
"hotkey.updateSuccess": "快捷键更新成功",
"identity.add": "添加邮箱",
"identity.copy": "复制地址",
@@ -1749,6 +1752,7 @@
"settingAgent.artwork.uploadFailed": "暂时无法上传图片,请重试",
"settingAgent.avatar.sizeExceeded": "图片大小超过 1MB 限制,请选择更小的图片",
"settingAgent.avatar.title": "助理头像",
+ "settingAgent.avatar.uploadFailed": "图片上传失败,请检查网络后重新选择图片。",
"settingAgent.backgroundColor.title": "头像背景色",
"settingAgent.description.desc": "简单介绍你的助理,不作为角色设定",
"settingAgent.description.hint": "其他助理查找协作对象时会读取这段描述。",
@@ -2341,6 +2345,7 @@
"storage.used": "存储用量",
"storageOverage.addPaymentMethod": "添加支付方式",
"storageOverage.capUpdateFailed": "月度上限更新失败。",
+ "storageOverage.capUpdateFailedRetry": "无法保存每月上限,请检查金额后重试。",
"storageOverage.capUpdated": "月度上限已更新。",
"storageOverage.capped": "已达到月度消费上限,超额上传已暂停。",
"storageOverage.consent.billedMonthlyForYearly": "存储超额费用按月计费,与你的年度套餐续订分开",
@@ -2360,8 +2365,10 @@
"storageOverage.disableConfirm.existingCharges": "本账期已产生的费用仍会随订阅账单结算。",
"storageOverage.disableConfirm.title": "关闭文件存储按量付费?",
"storageOverage.disableFailed": "存储按量付费关闭失败。",
+ "storageOverage.disableFailedRetry": "无法关闭存储按量付费,请重试。",
"storageOverage.disabled": "存储按量付费已关闭。",
"storageOverage.enableFailed": "存储按量付费启用失败。",
+ "storageOverage.enableFailedRetry": "无法开启存储按量付费,请重试。",
"storageOverage.enabled": "存储按量付费已启用。",
"storageOverage.mobileManaged.desc": "你的套餐是在应用商店购买的,无法在这里开启存储按量付费。请到购买渠道管理该订阅。",
"storageOverage.monthlyCap": "月度消费上限",
@@ -2618,6 +2625,7 @@
"taskLabels.form.name": "名称",
"taskLabels.form.namePlaceholder": "例如:Bug",
"taskLabels.form.noGroup": "不分组",
+ "taskLabels.form.saveFailedRetry": "无法保存标签,请检查网络后重试。",
"taskLabels.groupBadge": "标签组",
"taskLabels.loadFailed": "标签加载失败",
"taskLabels.tabs.agent": "助理标签",
@@ -3171,6 +3179,7 @@
"workspace.billing.paymentMethods.expires": "到期 {{date}}",
"workspace.billing.paymentMethods.managePortalCta": "在 Stripe 门户中管理",
"workspace.billing.paymentMethods.portalFailed": "无法打开计费门户",
+ "workspace.billing.paymentMethods.portalFailedRetry": "无法打开账单门户,请检查网络后重试。",
"workspace.billing.paymentMethods.remove": "移除",
"workspace.billing.paymentMethods.removeConfirmContent": "此卡将不再用于支付此工作区费用。",
"workspace.billing.paymentMethods.removeConfirmTitle": "移除此卡?",
@@ -3272,6 +3281,7 @@
"workspace.billingPage.billing.change.seatReductionHint": "减少席位将在下个计费周期生效,当前周期不会退款。",
"workspace.billingPage.billing.change.title": "调整套餐",
"workspace.billingPage.billing.changeFailed": "更新订阅失败。",
+ "workspace.billingPage.billing.changeFailedRetry": "无法更新订阅,请检查网络后重试。",
"workspace.billingPage.billing.changeSuccess": "订阅更新已保存。",
"workspace.billingPage.billing.currentPlan.descBasic": "适用于最多 3 名成员的基础工作区",
"workspace.billingPage.billing.currentPlan.descBusiness": "商业版工作区,包含更多额度和更大的团队容量",
@@ -3417,12 +3427,14 @@
"workspace.billingPage.credits.autoTopUp.pausedTitle": "自动充值已暂停",
"workspace.billingPage.credits.autoTopUp.purchaseCredits": "充值",
"workspace.billingPage.credits.autoTopUp.save": "保存",
+ "workspace.billingPage.credits.autoTopUp.saveFailed": "无法保存自动充值设置,请检查网络后重试。",
"workspace.billingPage.credits.autoTopUp.saveSuccess": "自动充值设置已更新。",
"workspace.billingPage.credits.autoTopUp.setupPaymentMethod": "设置付款方式",
"workspace.billingPage.credits.autoTopUp.subtitle": "自动保持余额充足,确保团队不会被阻碍",
"workspace.billingPage.credits.autoTopUp.target": "目标余额",
"workspace.billingPage.credits.autoTopUp.threshold": "触发阈值",
"workspace.billingPage.credits.autoTopUp.title": "自动充值",
+ "workspace.billingPage.credits.autoTopUp.toggleFailed": "无法切换自动充值,请重试。",
"workspace.billingPage.credits.autoTopUp.validation.targetMustExceedThreshold": "目标余额必须大于触发阈值。",
"workspace.billingPage.credits.balance.basicDesc": "基础工作区不包含每月额度 — 可在下方充值或升级到专业版。",
"workspace.billingPage.credits.balance.freeDesc": "免费版工作区不包含每月额度——在下方充值或升级到专业版。",
@@ -3482,6 +3494,7 @@
"workspace.billingPage.credits.title": "额度",
"workspace.billingPage.credits.topUp.custom": "自定义",
"workspace.billingPage.credits.topUp.maxAmountError": "购买金额不能超过每次交易 ${{max}}。",
+ "workspace.billingPage.credits.topUp.purchaseFailed": "充值未能完成,请检查网络后重试。",
"workspace.billingPage.credits.topUp.purchaseNow": "立即购买",
"workspace.billingPage.credits.topUp.purchaseSuccess": "购买成功。",
"workspace.billingPage.credits.topUp.selectPackage": "选择充值包",
@@ -4309,6 +4322,7 @@
"workspace.upgradeModal.noFreeHint": "你没有任何可升级的免费版工作区。",
"workspace.upgradeModal.ownerTag": "所有者",
"workspace.upgradeModal.payFailed": "无法开始结账",
+ "workspace.upgradeModal.payFailedRetry": "无法开始结账,请检查网络后重试。",
"workspace.upgradeModal.pickerLabel": "选择一个工作区",
"workspace.upgradeModal.proTag": "专业版",
"workspace.upgradeModal.subtitle": "解锁协作、更多额度和更高的速率限制。",
@@ -4419,6 +4433,7 @@
"workspace.wizard.step2.confirmPurchase": "确认购买",
"workspace.wizard.step2.createBasic": "创建工作区",
"workspace.wizard.step2.createFailed": "创建工作区失败",
+ "workspace.wizard.step2.createFailedRetry": "无法创建工作空间。请检查网络后重试。",
"workspace.wizard.step2.createFree": "创建工作区",
"workspace.wizard.step2.createdToast": "工作区 {{name}} 已创建。",
"workspace.wizard.step2.details.description": "查看你选择的套餐中包含的内容。",
@@ -4453,6 +4468,7 @@
"workspace.wizard.step2.left.proTagline": "${{fee}}/席位/月。额外使用按需计费。",
"workspace.wizard.step2.left.proTopUpHint": "余额不足时充值:每 $1 ${{price}} (标准费率优惠 {{percent}}%)",
"workspace.wizard.step2.payFailed": "无法开始结账",
+ "workspace.wizard.step2.payFailedRetry": "无法发起支付。请检查网络后重试。",
"workspace.wizard.step2.pill.basic": "基础版",
"workspace.wizard.step2.pill.basicUsed": "{{used}}/{{limit}} 已使用",
"workspace.wizard.step2.pill.free": "免费",
@@ -4501,6 +4517,7 @@
"workspaceSetting.labels.actions.create": "新建标签",
"workspaceSetting.labels.actions.unarchive": "恢复",
"workspaceSetting.labels.archive.desc": "归档后该标签将无法再应用到助理,已应用该标签的助理保持不变。",
+ "workspaceSetting.labels.archive.failedRetry": "无法归档标签,请检查网络后重试。",
"workspaceSetting.labels.archive.success": "标签已归档",
"workspaceSetting.labels.archive.title": "归档「{{name}}」?",
"workspaceSetting.labels.archivedEmpty": "没有已归档的标签",
@@ -4512,6 +4529,7 @@
"workspaceSetting.labels.delete.confirmHint": "请输入 \"delete\" 以确认删除:",
"workspaceSetting.labels.delete.desc": "删除后无法恢复。",
"workspaceSetting.labels.delete.descUsed": "该标签将从 {{count}} 个助理上移除,删除后无法恢复。",
+ "workspaceSetting.labels.delete.failedRetry": "无法删除标签,请检查网络后重试。",
"workspaceSetting.labels.delete.success": "标签已删除",
"workspaceSetting.labels.delete.title": "删除标签「{{name}}」?",
"workspaceSetting.labels.empty": "还没有标签,创建一个来组织你的助理吧。",
@@ -4526,6 +4544,7 @@
"workspaceSetting.labels.form.name": "名称",
"workspaceSetting.labels.form.namePlaceholder": "标签名称",
"workspaceSetting.labels.form.restoreTitle": "重命名后恢复",
+ "workspaceSetting.labels.form.saveFailedRetry": "无法保存标签,请检查网络后重试。",
"workspaceSetting.labels.loadFailed": "标签加载失败",
"workspaceSetting.labels.manageBlocked": "仅工作区管理员可以管理标签",
"workspaceSetting.labels.scope.archived": "已归档",
diff --git a/locales/zh-CN/subscription.json b/locales/zh-CN/subscription.json
index 85fe92096d4..55a7202be4f 100644
--- a/locales/zh-CN/subscription.json
+++ b/locales/zh-CN/subscription.json
@@ -49,6 +49,7 @@
"cancelPlan.billingRecovery.desc": "此订阅当前处于欠费状态。取消将立即生效,且无法恢复。",
"cancelPlan.confirmCountdown": "取消订阅({{seconds}})",
"cancelPlan.desc": "取消后,当前订阅到期后将降级为免费版。",
+ "cancelPlan.failed": "无法取消订阅,请检查网络后重试。",
"cancelPlan.keep": "保留订阅",
"cancelPlan.nextStep": "下一步",
"cancelPlan.prevStep": "上一步",
@@ -94,6 +95,7 @@
"credits.agentShareBudget.limitHint": "留空表示不设置工作区总上限;填 0 会暂停所有访客运行。相关费用只从工作区余额扣除,不占用任何成员额度。",
"credits.agentShareBudget.save": "保存",
"credits.agentShareBudget.saveError": "智能体分享预算策略保存失败",
+ "credits.agentShareBudget.saveFailed": "无法保存 Agent 分享预算,请检查网络后重试。",
"credits.agentShareBudget.saveSuccess": "智能体分享预算策略已保存",
"credits.agentShareBudget.title": "智能体对外分享",
"credits.agentShareBudget.unlimited": "不设置工作区总上限",
@@ -115,6 +117,7 @@
"credits.autoTopUp.enable.limitReachedNow": "当前余额 {{balance}},已不高于 {{threshold}},但本月扣款已达上限,开启时不会扣款。",
"credits.autoTopUp.enable.noChargeNow": "当前余额 {{balance}},高于 {{threshold}},开启时不会扣款;余额降到 {{threshold}} 时才自动充值。",
"credits.autoTopUp.enable.noPaymentMethod": "需要先绑定银行卡",
+ "credits.autoTopUp.enable.openSetupFailed": "无法打开支付方式设置,请检查网络后重试。",
"credits.autoTopUp.enable.overflowNote": "会同时开启「{{overflow}}」,否则套餐限额用完后不会使用余额,自动充值也不会生效。",
"credits.autoTopUp.enable.paymentMethod": "支付方式",
"credits.autoTopUp.enable.submit": "开启自动充值",
@@ -132,6 +135,7 @@
"credits.autoTopUp.purchaseCredits": "充值",
"credits.autoTopUp.recommended": "推荐",
"credits.autoTopUp.saveError": "保存自动充值设置失败",
+ "credits.autoTopUp.saveFailed": "无法保存自动充值设置,请检查网络后重试。",
"credits.autoTopUp.saveSuccess": "自动充值设置已保存",
"credits.autoTopUp.setupAndEnable": "绑卡并开启",
"credits.autoTopUp.setupPaymentMethod": "添加支付方式",
@@ -145,6 +149,7 @@
"credits.autoTopUp.thresholdDesc": "余额低于或等于此值时自动触发充值",
"credits.autoTopUp.title": "自动充值",
"credits.autoTopUp.toggle": "启用自动充值",
+ "credits.autoTopUp.turnOffFailed": "无法关闭自动充值,请重试。",
"credits.autoTopUp.upgradeHint": "订阅付费套餐以启用自动充值",
"credits.autoTopUp.validation.targetMustExceedThreshold": "目标余额必须大于触发阈值",
"credits.budgetPage.allocate.desc": "为一组成员或团队划出共享额度,成员优先使用,用完后再用个人额度。",
@@ -153,6 +158,7 @@
"credits.budgetPage.limit.title": "消费上限",
"credits.costEstimateHint.desc": "发送消息前,若预估模型成本达到该金额,会在对话输入框上方提醒你",
"credits.costEstimateHint.saveError": "无法保存成本估算警报设置",
+ "credits.costEstimateHint.saveFailedRetry": "无法保存提醒阈值,请检查网络后重试。",
"credits.costEstimateHint.saveSuccess": "成本估算警报设置已保存",
"credits.costEstimateHint.threshold": "警告阈值",
"credits.costEstimateHint.title": "成本估算警报",
@@ -202,6 +208,7 @@
"credits.dedicatedBudget.rules.removeConfirm.title": "删除「{{name}}」的上限?",
"credits.dedicatedBudget.rules.title": "成员上限 · {{name}}",
"credits.dedicatedBudget.saveError": "专项额度保存失败",
+ "credits.dedicatedBudget.saveFailed": "无法保存专属预算,请检查网络后重试。",
"credits.dedicatedBudget.saveSuccess": "专项额度已保存",
"credits.dedicatedBudget.title": "专项额度",
"credits.dedicatedBudget.userPanel.label": "专项额度",
@@ -227,6 +234,7 @@
"credits.memberBudget.ruleLimit": "预算上限",
"credits.memberBudget.ruleTarget": "规则目标",
"credits.memberBudget.saveError": "保存成员预算设置失败",
+ "credits.memberBudget.saveFailed": "无法保存成员预算,请检查网络后重试。",
"credits.memberBudget.saveSuccess": "成员预算设置已保存",
"credits.memberBudget.status.custom": "单独设置",
"credits.memberBudget.status.inherit": "继承默认",
@@ -283,6 +291,7 @@
"credits.teamBudget.removeConfirm.desc": "团队成员将不再消耗该预算,团队本身会保留。",
"credits.teamBudget.removeConfirm.title": "确认移除该团队预算?",
"credits.teamBudget.saveError": "团队预算保存失败",
+ "credits.teamBudget.saveFailed": "无法保存团队预算,请检查网络后重试。",
"credits.teamBudget.saveSuccess": "团队预算已保存",
"credits.teamBudget.team": "团队",
"credits.teamBudget.teamPlaceholder": "选择团队",
diff --git a/locales/zh-CN/tool.json b/locales/zh-CN/tool.json
index 3947133ec15..a8bd3941159 100644
--- a/locales/zh-CN/tool.json
+++ b/locales/zh-CN/tool.json
@@ -155,6 +155,7 @@
"connector.add.clientSecret": "OAuth Client Secret(可选)",
"connector.add.confirm": "添加",
"connector.add.editTitle": "编辑连接器",
+ "connector.add.failedRetry": "无法保存连接器,请检查服务器地址和网络后重试。",
"connector.add.name": "名称",
"connector.add.namePlaceholder": "我的连接器",
"connector.add.popupBlocked": "请允许此网站打开弹出窗口后重试。",
@@ -379,7 +380,7 @@
"updateArgs.form.add": "添加一项",
"updateArgs.form.key": "字段键",
"updateArgs.form.value": "字段值",
- "updateArgs.formValidationFailed": "表单验证失败,请检查参数格式",
"updateArgs.keyRequired": "字段键不能为空",
+ "updateArgs.saveFailed": "参数保存失败,请检查网络后重试",
"updateArgs.stringifyError": "无法序列化参数,请检查参数格式"
}
diff --git a/locales/zh-CN/topic.json b/locales/zh-CN/topic.json
index a3bb6683f6d..95d0c230daf 100644
--- a/locales/zh-CN/topic.json
+++ b/locales/zh-CN/topic.json
@@ -60,6 +60,7 @@
"doctor.notRepairable": "无法恢复 —— 这部分内容从未被保存。",
"doctor.repair": "修复",
"doctor.repairFailed": "修复失败,未做任何改动。",
+ "doctor.repairFailedRetry": "无法修复该话题,请检查网络后重试。",
"doctor.repaired_one": "已恢复 {{count}} 条消息。",
"doctor.repaired_other": "已恢复 {{count}} 条消息。",
"doctor.summary_one": "这个话题里有 {{count}} 条消息存在,但没有显示出来。",
@@ -235,6 +236,7 @@
"management.moveModal.done_other": "已移动 {{count}} 个话题",
"management.moveModal.error": "移动失败,请重试",
"management.moveModal.goToTarget": "前往「{{title}}」查看",
+ "management.moveModal.moveFailedRetry": "无法移动话题,请检查网络后重试。",
"management.moveModal.moving": "正在移动…",
"management.moveModal.title": "移动话题",
"management.searchPlaceholder": "在当前助手的话题中搜索…",
diff --git a/locales/zh-CN/verify.json b/locales/zh-CN/verify.json
index c013d21c233..2659ea86751 100644
--- a/locales/zh-CN/verify.json
+++ b/locales/zh-CN/verify.json
@@ -151,6 +151,7 @@
"acceptance.comments.copyLink": "复制链接",
"acceptance.comments.copyLinkHint": "{{time}} · 点一下复制这条评论的链接",
"acceptance.comments.createFailed": "评论发送失败,请重试。",
+ "acceptance.comments.createFailedRetry": "无法发布评论,请检查网络后重试。",
"acceptance.comments.delete": "删除",
"acceptance.comments.deleteConfirm": "删除这条评论?",
"acceptance.comments.deleteFailed": "评论删除失败,请重试。",
diff --git a/locales/zh-TW/auth.json b/locales/zh-TW/auth.json
index 32267b44850..e943adf59b3 100644
--- a/locales/zh-TW/auth.json
+++ b/locales/zh-TW/auth.json
@@ -92,7 +92,6 @@
"betterAuth.captcha.pendingDescription": "驗證未完成,請重新嘗試人機驗證。",
"betterAuth.captcha.title": "需要進行安全驗證",
"betterAuth.errors.confirmPasswordRequired": "請確認密碼",
- "betterAuth.errors.emailExists": "該電子郵件已註冊,請直接登入",
"betterAuth.errors.emailInvalid": "請輸入有效的電子郵件地址",
"betterAuth.errors.emailNotRegistered": "該電子郵件尚未註冊",
"betterAuth.errors.emailNotVerified": "電子郵件尚未驗證,請先完成驗證",
@@ -105,14 +104,11 @@
"betterAuth.errors.passwordMinLength": "密碼長度至少需為 8 個字元",
"betterAuth.errors.passwordMismatch": "兩次輸入的密碼不一致",
"betterAuth.errors.passwordRequired": "請輸入密碼",
- "betterAuth.errors.usernameNotRegistered": "該使用者名稱尚未註冊",
"betterAuth.errors.usernameRequired": "請輸入使用者名稱",
"betterAuth.resetPassword.backToSignIn": "返回登入",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "確認新密碼",
"betterAuth.resetPassword.confirmPasswordRequired": "請確認新密碼",
"betterAuth.resetPassword.description": "請輸入您的新密碼",
- "betterAuth.resetPassword.error": "重設密碼失敗,請重試",
- "betterAuth.resetPassword.invalidToken": "無效或已過期的重設連結",
"betterAuth.resetPassword.newPasswordPlaceholder": "輸入新密碼",
"betterAuth.resetPassword.passwordMismatch": "兩次輸入的密碼不一致",
"betterAuth.resetPassword.submit": "重設密碼",
@@ -147,13 +143,11 @@
"betterAuth.signin.emailStep.title": "登入",
"betterAuth.signin.error": "登入失敗,請檢查電子郵件與密碼",
"betterAuth.signin.forgotPassword": "忘記密碼?",
- "betterAuth.signin.forgotPasswordError": "發送重設密碼連結失敗",
"betterAuth.signin.forgotPasswordSent": "重設密碼連結已發送,請查收電子郵件",
"betterAuth.signin.invalidReferralCodeContent": "您使用的推薦碼「{{code}}」無效或已過期。是否仍要繼續登入?",
"betterAuth.signin.invalidReferralCodeTitle": "無效的推薦碼",
"betterAuth.signin.lastUsed": "上次使用",
"betterAuth.signin.magicLinkButton": "發送登入連結",
- "betterAuth.signin.magicLinkError": "發送登入連結失敗,請稍後再試",
"betterAuth.signin.magicLinkSent": "登入連結已發送,請查收電子郵件",
"betterAuth.signin.nextStep": "下一步",
"betterAuth.signin.noAccount": "還沒有帳號?",
@@ -164,14 +158,12 @@
"betterAuth.signin.sessionExpired": "您的會話已過期。請重新登入以繼續。",
"betterAuth.signin.setPassword": "設定密碼",
"betterAuth.signin.signupLink": "立即註冊",
- "betterAuth.signin.socialError": "社交登入失敗,請重試",
"betterAuth.signin.socialOnlyHint": "此電子郵件是透過第三方社交帳號註冊的。請使用該提供者登入,或",
"betterAuth.signin.ssoOnlyNoProviders": "已停用電子郵件註冊,且未設定任何單一登入(SSO)提供者。請聯絡您的系統管理員。",
"betterAuth.signin.submit": "登入",
"betterAuth.signup.cardTitle": "建立{{appName}}帳戶",
"betterAuth.signup.confirmPasswordPlaceholder": "請確認密碼",
"betterAuth.signup.emailPlaceholder": "請輸入電子郵件地址",
- "betterAuth.signup.error": "註冊失敗,請重試",
"betterAuth.signup.firstNamePlaceholder": "名字",
"betterAuth.signup.hasAccount": "已有帳號?",
"betterAuth.signup.invalidReferralCodeContent": "您輸入的推薦碼「{{code}}」無效或已過期。是否仍要繼續註冊?",
@@ -189,8 +181,6 @@
"betterAuth.verifyEmail.checkSpam": "如果沒有收到郵件,請檢查垃圾郵件資料夾",
"betterAuth.verifyEmail.description": "已向 {{email}} 發送了驗證郵件",
"betterAuth.verifyEmail.resend.button": "重新發送驗證郵件",
- "betterAuth.verifyEmail.resend.error": "發送失敗,請稍後再試",
- "betterAuth.verifyEmail.resend.noEmail": "缺少電子郵件地址",
"betterAuth.verifyEmail.resend.success": "驗證郵件已重新發送,請查收您的電子郵件",
"betterAuth.verifyEmail.title": "驗證您的電子郵件",
"date.prevMonth": "上個月",
diff --git a/locales/zh-TW/authError.json b/locales/zh-TW/authError.json
index eff60d949f5..fe2b9e64655 100644
--- a/locales/zh-TW/authError.json
+++ b/locales/zh-TW/authError.json
@@ -5,11 +5,7 @@
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "該帳號已綁定至其他使用者",
"codes.ACCOUNT_NOT_FOUND": "找不到對應帳號",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "憑證帳號不存在",
- "codes.DELETED_ACCOUNT_EMAIL": "此電子郵件仍處於帳戶刪除冷卻期。刪除完成後的 31 天後,您可以再次註冊。",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one": "此電子郵件仍處於帳戶刪除冷卻期。大約 {{count}} 天後,您可以再次註冊。",
- "codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other": "此電子郵件仍處於帳戶刪除冷卻期。大約 {{count}} 天後,您可以再次註冊。",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "目前帳號的電子郵件無法修改",
- "codes.EMAIL_NOT_ALLOWED": "此電子郵件不允許用於註冊",
"codes.EMAIL_NOT_FOUND": "此帳戶未綁定電子郵件。請確認您的帳戶是否已綁定電子郵件。",
"codes.EMAIL_NOT_VERIFIED": "請先完成電子郵件驗證",
"codes.FAILED_TO_CREATE_SESSION": "建立會話失敗",
@@ -33,7 +29,6 @@
"codes.UNEXPECTED_ERROR": "發生未知錯誤,請重試",
"codes.UNKNOWN": "發生未知錯誤,請重試或聯絡支援",
"codes.USER_ALREADY_EXISTS": "使用者已存在",
- "codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "電子郵件已被使用,請嘗試其他電子郵件",
"codes.USER_ALREADY_HAS_PASSWORD": "該帳號已設定密碼",
"codes.USER_BANNED": "該使用者已被封鎖",
"codes.USER_EMAIL_NOT_FOUND": "找不到對應的電子郵件",
diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.json
index 8154f056616..42fd4982ce5 100644
--- a/locales/zh-TW/chat.json
+++ b/locales/zh-TW/chat.json
@@ -313,7 +313,6 @@
"createGoal.costBudgetHint": "當總支出達到此金額時停止;留空則無上限。",
"createGoal.costBudgetLabel": "成本預算",
"createGoal.costBudgetPlaceholder": "無上限",
- "createGoal.createFailed": "目標創建失敗",
"createGoal.criteriaHint": "在目標開始前檢查並編輯這些內容",
"createGoal.criteriaTitle": "驗收標準",
"createGoal.criterionPlaceholder": "描述一個可以明確檢查的結果",
@@ -366,7 +365,6 @@
"createModal.title": "您的代理應該做什麼?",
"createTask.assignee": "指派對象",
"createTask.collapse": "隱藏輸入欄",
- "createTask.createFailed": "建立任務失敗",
"createTask.discardConfirm.cancel": "繼續編輯",
"createTask.discardConfirm.content": "您新增的標題、指令和附件將會遺失。",
"createTask.discardConfirm.ok": "捨棄",
@@ -1083,7 +1081,6 @@
"goalProcess.nodeStatus.resolved": "已完成",
"goalProcess.nodeStatus.retired": "已退役",
"goalProcess.nodeStatus.waiting": "等待中",
- "goalProcess.northStar.declare.failed": "宣告指標失敗",
"goalProcess.northStar.declare.keyLabel": "指標鍵值",
"goalProcess.northStar.declare.keyPlaceholder": "例如:followers / security.open_issues",
"goalProcess.northStar.declare.opLabel": "條件",
@@ -1112,7 +1109,6 @@
"goalProcess.northStar.op.gte": "≥",
"goalProcess.northStar.op.lt": "<",
"goalProcess.northStar.op.lte": "≤",
- "goalProcess.northStar.record.failed": "記錄觀察失敗",
"goalProcess.northStar.record.submit": "記錄",
"goalProcess.northStar.record.title": "記錄觀察",
"goalProcess.northStar.record.valueLabel": "{{key}} 的目前值",
diff --git a/locales/zh-TW/discover.json b/locales/zh-TW/discover.json
index 69ed97993fa..b0cd90a0478 100644
--- a/locales/zh-TW/discover.json
+++ b/locales/zh-TW/discover.json
@@ -689,7 +689,6 @@
"user.workspaceProfile.errors.namespace.length": "代號必須為 3-32 個字元",
"user.workspaceProfile.errors.namespace.pattern": "使用小寫字母、數字和連字號。以字母或數字開頭和結尾。",
"user.workspaceProfile.errors.namespace.required": "請輸入社群代號",
- "user.workspaceProfile.errors.uploadFailed": "上傳頭像失敗",
"user.workspaceProfile.errors.url": "請輸入有效的 URL",
"user.workspaceProfile.failed": "更新工作區檔案失敗",
"user.workspaceProfile.fields.avatar": "頭像",
@@ -726,7 +725,6 @@
"user.workspaceProfile.settings.members.role.admin": "管理員",
"user.workspaceProfile.settings.members.role.member": "成員",
"user.workspaceProfile.settings.members.sync": "同步成員",
- "user.workspaceProfile.settings.members.syncFailed": "同步成員失敗",
"user.workspaceProfile.settings.members.syncHint": "同步當前工作區成員到社群組織。",
"user.workspaceProfile.settings.members.syncSuccess": "成員已同步",
"user.workspaceProfile.settings.members.title": "社群成員",
@@ -739,7 +737,6 @@
"user.workspaceProfile.settings.tabs.members": "成員",
"user.workspaceProfile.settings.tabs.profile": "檔案",
"user.workspaceProfile.settings.title": "社群檔案設定",
- "user.workspaceProfile.settings.updateFailed": "更新社群檔案失敗",
"user.workspaceProfile.settings.updateSuccess": "社群檔案已更新",
"user.workspaceProfile.settings.website.description": "新增顯示在社群檔案中的網站。",
"user.workspaceProfile.settings.website.hint": "使用公開的 http(s) URL。",
diff --git a/locales/zh-TW/electron.json b/locales/zh-TW/electron.json
index 07ebf74f9e8..055c25ac9e4 100644
--- a/locales/zh-TW/electron.json
+++ b/locales/zh-TW/electron.json
@@ -90,7 +90,6 @@
"proxy.port": "埠號",
"proxy.resetButton": "重設",
"proxy.saveButton": "儲存",
- "proxy.saveFailed": "儲存失敗:{{error}}",
"proxy.saveSuccess": "代理設定儲存成功",
"proxy.server": "伺服器地址",
"proxy.testButton": "測試連接",
diff --git a/locales/zh-TW/memory.json b/locales/zh-TW/memory.json
index b275b38fd6f..9bae97d7732 100644
--- a/locales/zh-TW/memory.json
+++ b/locales/zh-TW/memory.json
@@ -237,7 +237,6 @@
"rules.distill.truncated": "素材過長;僅閱讀了開頭部分。",
"rules.distill.untitled": "未命名",
"rules.distill.upload": "上傳文件",
- "rules.distill.uploadFailed": "無法上傳文件。",
"rules.distill.uploadHint": "Markdown、PDF、Word、PowerPoint 或純文本",
"rules.enforcement.block": "封鎖",
"rules.enforcement.blockDesc": "將暫停交付,直到您允許通過。尚未生效:目前僅作為提醒",
diff --git a/locales/zh-TW/plugin.json b/locales/zh-TW/plugin.json
index 99a812f2d78..779ad1c09a3 100644
--- a/locales/zh-TW/plugin.json
+++ b/locales/zh-TW/plugin.json
@@ -1014,9 +1014,7 @@
"settings.httpTypeNotice": "HTTP 類型的 MCP 插件暫無需要配置的環境變數",
"settings.indexUrl.title": "社群索引",
"settings.indexUrl.tooltip": "暫不支援線上編輯,請透過部署時環境變數進行設定",
- "settings.messages.connectionUpdateFailed": "連接信息更新失敗",
"settings.messages.connectionUpdateSuccess": "連接信息更新成功",
- "settings.messages.envUpdateFailed": "環境變數保存失敗",
"settings.messages.envUpdateSuccess": "環境變數保存成功",
"settings.modalDesc": "設定外掛社群的位址後,即可使用自訂的外掛社群",
"settings.rules.argsRequired": "請輸入啟動參數",
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index cd9ed2248a3..1d04c90ba05 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -313,7 +313,6 @@
"creds.errors.privateCredsDisabled": "目前尚未支援私人工作區憑證。請稍後再試。",
"creds.errors.publicCredExists": "此工作區已分享使用此金鑰的憑證。請先移除它,再發佈這組。",
"creds.file.authRequired": "請先登入市場",
- "creds.file.uploadFailed": "檔案上傳失敗",
"creds.file.uploadSuccess": "檔案上傳成功",
"creds.file.uploading": "上傳中...",
"creds.form.cancel": "取消",
@@ -848,7 +847,6 @@
"environments.removeConfirmContent": "其規範、變數、副本的文件夾和保存的快照將隨之刪除,且無法恢復。",
"environments.removeConfirmTitle": "刪除環境 {{name}}?",
"environments.removeFailed": "無法刪除此環境",
- "environments.saveFailed": "無法保存此更改",
"environments.sessions.activeBuild": "{{instance}} 正在構建中",
"environments.sessions.activeSession": "沙盒正在 {{instance}} 中運行",
"environments.sessions.desc": "最近在這些副本中運行的會話和構建,按最新排序,顯示每次的結束方式以及是否保存了安裝的內容。",
@@ -1007,7 +1005,6 @@
"hotkey.record": "按下按鍵以錄製快捷鍵",
"hotkey.reset": "重置為預設快捷鍵",
"hotkey.title": "快速鍵",
- "hotkey.updateError": "快速鍵更新失敗:網路或系統錯誤",
"hotkey.updateSuccess": "快速鍵更新成功",
"llm.aesGcm": "您的金鑰與代理地址等將使用 <1>AES-GCM</1> 加密演算法進行加密",
"llm.apiKey.desc": "請填寫您的 {{name}} API 金鑰",
diff --git a/locales/zh-TW/tool.json b/locales/zh-TW/tool.json
index 13ca7b71adf..72e037c9f4a 100644
--- a/locales/zh-TW/tool.json
+++ b/locales/zh-TW/tool.json
@@ -311,7 +311,6 @@
"updateArgs.form.add": "新增一項",
"updateArgs.form.key": "欄位鍵",
"updateArgs.form.value": "欄位值",
- "updateArgs.formValidationFailed": "表單驗證失敗,請檢查參數格式",
"updateArgs.keyRequired": "欄位鍵不可為空",
"updateArgs.stringifyError": "無法序列化參數,請檢查參數格式"
}
diff --git a/packages/locales/src/default/agent.ts b/packages/locales/src/default/agent.ts
index 8d1081fd9dc..7a53a9d25a5 100644
--- a/packages/locales/src/default/agent.ts
+++ b/packages/locales/src/default/agent.ts
@@ -906,6 +906,12 @@ export default {
'channel.feishu.fetchOwnerIdFailed': 'Failed to read the app owner',
'channel.feishu.fetchOwnerIdMissingCredentials':
'Enter the Application ID and App Secret first — the lookup runs as your app.',
+ 'channel.imessage.bridgeTestFailedRetry':
+ "Couldn't reach BlueBubbles. Check the server URL and password, then test again.",
+ 'channel.imessage.bridgeToggleFailedRetry':
+ "Couldn't change the bridge status. Check the BlueBubbles server URL and password, then try again.",
+ 'channel.line.fetchBotInfoFailedRetry':
+ "Couldn't fetch the bot info. Check the Channel Access Token and try again.",
'channel.userIdHint.imessage':
'Use your iMessage handle as seen in BlueBubbles, usually an email address or E.164 phone number.',
'channel.userIdHint.line':
@@ -922,6 +928,7 @@ export default {
'channel.statusFailed': 'Failed',
'channel.statusQueued': 'Queued',
'channel.statusStarting': 'Starting',
+ 'channel.updateFailedRetry': "Couldn't save this change. Check your network and try again.",
'share.entry': 'Share this Agent',
'share.settings.autoGrant.desc':
diff --git a/packages/locales/src/default/auth.ts b/packages/locales/src/default/auth.ts
index d1204453dd7..cb7e1a3f9c8 100644
--- a/packages/locales/src/default/auth.ts
+++ b/packages/locales/src/default/auth.ts
@@ -97,7 +97,6 @@ export default {
'authModal.signingIn': 'Signing in...',
'authModal.title': 'Session Expired',
'betterAuth.errors.confirmPasswordRequired': 'Please confirm your password',
- 'betterAuth.errors.emailExists': 'This email is already registered. Please sign in instead',
'betterAuth.errors.emailInvalid': 'Please enter a valid email address or username',
'betterAuth.errors.emailNotRegistered': 'This email or username is not registered',
'betterAuth.errors.emailNotVerified': 'Email not verified, please verify your email first',
@@ -110,14 +109,11 @@ export default {
'betterAuth.errors.passwordMinLength': 'Password must be at least 8 characters',
'betterAuth.errors.passwordMismatch': 'The passwords do not match',
'betterAuth.errors.passwordRequired': 'Please enter your password',
- 'betterAuth.errors.usernameNotRegistered': 'This username is not registered',
'betterAuth.errors.usernameRequired': 'Please enter your username',
'betterAuth.resetPassword.backToSignIn': 'Back to Sign In',
'betterAuth.resetPassword.confirmPasswordPlaceholder': 'Confirm new password',
'betterAuth.resetPassword.confirmPasswordRequired': 'Please confirm your new password',
'betterAuth.resetPassword.description': 'Please enter your new password',
- 'betterAuth.resetPassword.error': 'Failed to reset password, please try again',
- 'betterAuth.resetPassword.invalidToken': 'Invalid or expired reset link',
'betterAuth.resetPassword.newPasswordPlaceholder': 'Enter new password',
'betterAuth.resetPassword.passwordMismatch': 'Passwords do not match',
'betterAuth.resetPassword.submit': 'Reset Password',
@@ -130,6 +126,18 @@ export default {
'betterAuth.captcha.pendingDescription':
'Verification did not complete. Please try the challenge again.',
'betterAuth.captcha.title': 'Security verification required',
+ 'betterAuth.errors.emailRegistered':
+ 'This email is already registered. Sign in with it instead; if you forgot the password, choose "Forgot password?" after entering your email.',
+ 'betterAuth.errors.requestFailed':
+ 'Could not reach the server. Check your network connection and try again.',
+ 'betterAuth.errors.signupEmailInvalid':
+ 'Please enter a valid email address, such as [email protected]',
+ 'betterAuth.errors.usernameNotFound':
+ 'This username is not registered. Check the spelling, or sign in with your email address instead.',
+ 'betterAuth.resetPassword.failed':
+ 'Could not reset your password. Check your network connection and try again.',
+ 'betterAuth.resetPassword.linkExpired':
+ 'This reset link is invalid or has expired. Go back to sign in, enter your email and choose "Forgot password?" to get a new link.',
'betterAuth.signin.backToEmail': 'Back to change email',
'betterAuth.signin.continueWithApple': 'Continue with Apple',
'betterAuth.signin.continueWithAuth0': 'Sign in with Auth0',
@@ -162,25 +170,28 @@ export default {
'betterAuth.signin.emailStep.title': 'Sign In',
'betterAuth.signin.error': 'Sign in failed, please check your email and password',
'betterAuth.signin.forgotPassword': 'Forgot password?',
- 'betterAuth.signin.forgotPasswordError': 'Failed to send password reset link',
'betterAuth.signin.forgotPasswordSent': 'Password reset link sent, please check your email',
'betterAuth.signin.invalidReferralCodeContent':
'The referral code "{{code}}" you used is invalid or expired. Do you want to continue signing in?',
'betterAuth.signin.invalidReferralCodeTitle': 'Invalid Referral Code',
'betterAuth.signin.magicLinkButton': 'Send sign-in link',
- 'betterAuth.signin.magicLinkError': 'Failed to send sign-in link, please try again later',
'betterAuth.signin.magicLinkSent': 'Sign-in link sent, please check your email',
'betterAuth.signin.lastUsed': 'Last used',
+ 'betterAuth.signin.magicLinkFailed':
+ 'Could not send the sign-in link. Check that the email address is correct and try again in a minute.',
'betterAuth.signin.nextStep': 'Next',
'betterAuth.signin.noAccount': "Don't have an account?",
'betterAuth.signin.orContinueWith': 'OR',
'betterAuth.signin.passwordPlaceholder': 'Enter your password',
'betterAuth.signin.passwordStep.subtitle': 'Enter your password to continue',
'betterAuth.signin.passwordStep.title': 'Enter your password',
+ 'betterAuth.signin.resetEmailFailed':
+ 'Could not send the password reset email. Try again in a minute; if it keeps failing, check your network connection.',
'betterAuth.signin.setPassword': 'set a password',
'betterAuth.signin.sessionExpired': 'Your session has expired. Sign in again to continue.',
'betterAuth.signin.signupLink': 'Sign up now',
- 'betterAuth.signin.socialError': 'Social sign in failed, please try again',
+ 'betterAuth.signin.socialFailed':
+ 'Could not continue with {{provider}}. Try again, or sign in with your email instead.',
'betterAuth.signin.socialOnlyHint':
'This email was registered via a third-party social account. Sign in with that provider, or',
'betterAuth.signin.ssoOnlyNoProviders':
@@ -188,7 +199,6 @@ export default {
'betterAuth.signin.submit': 'Sign In',
'betterAuth.signup.confirmPasswordPlaceholder': 'Confirm your password',
'betterAuth.signup.emailPlaceholder': 'Enter your email address',
- 'betterAuth.signup.error': 'Sign up failed, please try again',
'betterAuth.signup.firstNamePlaceholder': 'First Name',
'betterAuth.signup.hasAccount': 'Already have an account?',
'betterAuth.signup.invalidReferralCodeContent':
@@ -202,6 +212,7 @@ export default {
'betterAuth.signup.subtitle': 'Start your Agents collaboration space',
'betterAuth.signup.success': 'Sign up successful! Please check your email for verification',
'betterAuth.signup.cardTitle': 'Create a {{appName}} Account',
+ 'betterAuth.signup.failed': 'Sign up failed. Check your network connection and try again.',
'betterAuth.signup.title': 'Create Account',
'betterAuth.signup.usernamePlaceholder': 'Enter your username',
'betterAuth.verifyEmail.backToSignIn': 'Back to Sign In',
@@ -209,8 +220,10 @@ export default {
"If you don't receive the email, please check your spam folder",
'betterAuth.verifyEmail.description': 'A verification email has been sent to {{email}}',
'betterAuth.verifyEmail.resend.button': 'Resend Verification Email',
- 'betterAuth.verifyEmail.resend.error': 'Failed to send. Please try again later.',
- 'betterAuth.verifyEmail.resend.noEmail': 'Email address is missing',
+ 'betterAuth.verifyEmail.resend.failed':
+ 'Could not resend the verification email. Try again in a minute, and check your spam folder for the earlier one.',
+ 'betterAuth.verifyEmail.resend.missingEmail':
+ 'We do not know which email to send to. Go back and sign up again with your email address.',
'betterAuth.verifyEmail.resend.success': 'Verification email resent. Please check your inbox.',
'betterAuth.verifyEmail.title': 'Verify Your Email',
'date.prevMonth': 'Last Month',
diff --git a/packages/locales/src/default/authError.ts b/packages/locales/src/default/authError.ts
index aca5de8ab5a..7db9f593070 100644
--- a/packages/locales/src/default/authError.ts
+++ b/packages/locales/src/default/authError.ts
@@ -5,15 +5,20 @@ export default {
'codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER':
'This account is already linked to another user',
'codes.ACCOUNT_NOT_FOUND': 'Account not found',
+ 'codes.BLOCKED_DOMAIN':
+ 'Sign-ups from this email domain are not supported. Please use a mainstream email provider, such as Gmail or Outlook.',
+ 'codes.BLOCKED_MULTI_LEVEL_DOMAIN':
+ 'Sign-ups from this email domain are not supported. Please use a mainstream email provider, such as Gmail or Outlook.',
'codes.CREDENTIAL_ACCOUNT_NOT_FOUND': 'Credential account does not exist',
'codes.DELETED_ACCOUNT_EMAIL':
- 'This email is still in the account deletion cooldown period. You can sign up again 31 days after deletion is complete.',
+ 'This email belongs to a recently deleted account and can be used again 31 days after the deletion completes. To sign up now, use a different email.',
'codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_one':
- 'This email is still in the account deletion cooldown period. You can sign up again in about {{count}} day.',
+ 'This email belongs to a recently deleted account and can be used again in about {{count}} day. To sign up now, use a different email.',
'codes.DELETED_ACCOUNT_EMAIL_WITH_RETRY_AFTER_DAYS_other':
- 'This email is still in the account deletion cooldown period. You can sign up again in about {{count}} days.',
+ 'This email belongs to a recently deleted account and can be used again in about {{count}} days. To sign up now, use a different email.',
'codes.EMAIL_CAN_NOT_BE_UPDATED': 'Email cannot be updated for this account',
- 'codes.EMAIL_NOT_ALLOWED': 'Email not allowed for registration',
+ 'codes.EMAIL_NOT_ALLOWED':
+ 'This email cannot be used to sign up. Please use a different email address.',
'codes.EMAIL_NOT_FOUND':
'No email associated with this account. Please check if your account has an email bound.',
'codes.EMAIL_NOT_VERIFIED': 'Please verify your email first',
@@ -33,13 +38,16 @@ export default {
'codes.PROVIDER_NOT_FOUND': 'Identity provider configuration not found',
'codes.RATE_LIMIT_EXCEEDED': 'Too many requests, please try again later',
'codes.SESSION_EXPIRED': 'Session has expired, please sign in again',
+ 'codes.SIGNUP_IP_BURST':
+ 'Too many sign-ups from your network recently. Please wait a while and try again.',
'codes.SOCIAL_ACCOUNT_ALREADY_LINKED': 'This social account is already linked to another user',
'codes.TEMPORARY_EMAIL_NOT_ALLOWED':
'Temporary email addresses are not supported. Please use a regular email address. Repeated attempts may block this network.',
'codes.UNEXPECTED_ERROR': 'An unexpected error occurred, please try again',
'codes.UNKNOWN': 'An unknown error occurred, please try again or contact support',
'codes.USER_ALREADY_EXISTS': 'User already exists',
- 'codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL': 'Email is already in use, please try another one',
+ 'codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL':
+ 'This email matches an existing account (addresses that differ only by dots or a "+" suffix count as the same). Sign in to that account, or use a different email.',
'codes.USER_ALREADY_HAS_PASSWORD': 'This account already has a password set',
'codes.USER_BANNED': 'This user has been banned',
'codes.USER_EMAIL_NOT_FOUND': 'Email not found',
diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.ts
index c514d3475b4..8ca3d7a1c66 100644
--- a/packages/locales/src/default/chat.ts
+++ b/packages/locales/src/default/chat.ts
@@ -2530,7 +2530,6 @@ export default {
'Stops once total spend reaches this amount; leave blank for no cap.',
'createGoal.costBudgetLabel': 'Cost budget',
'createGoal.costBudgetPlaceholder': 'No cap',
- 'createGoal.createFailed': 'Failed to create goal',
'createGoal.back': 'Back',
'createGoal.agentsHint':
'The main agent plans and supervises the goal; tasks go to the executor, or to the main agent when none is chosen.',
@@ -2538,6 +2537,8 @@ export default {
'createGoal.budgetTitle': 'Budget',
'createGoal.contextLabel': 'Context for the Agent',
'createGoal.contextHint': 'Add constraints, source material, or anything the Agent should know',
+ 'createGoal.createFailedRetry':
+ "Couldn't create the goal. Your plan is kept, check your connection and try again.",
'createGoal.criterionPlaceholder': 'Describe a result that can be clearly checked',
'createGoal.criteriaHint': 'Review and edit these before the goal starts',
'createGoal.criteriaTitle': 'Acceptance criteria',
@@ -2580,7 +2581,8 @@ export default {
'createTask.assignee': 'Agent',
'createTask.member': 'Assignee',
'createTask.collapse': 'Hide input',
- 'createTask.createFailed': 'Failed to create task',
+ 'createTask.createFailedRetry':
+ "Couldn't create the task. Your draft is kept, check your connection and try again.",
'createTask.discardConfirm.cancel': 'Keep editing',
'createTask.discardConfirm.content':
'The title, instruction and attachments you added will be lost.',
@@ -2839,11 +2841,9 @@ export default {
'goalProcess.northStar.declare.opLabel': 'Condition',
'goalProcess.northStar.declare.targetLabel': 'Target value',
'goalProcess.northStar.declare.submit': 'Declare',
- 'goalProcess.northStar.declare.failed': 'Failed to declare the metric',
'goalProcess.northStar.record.title': 'Record observation',
'goalProcess.northStar.record.valueLabel': 'Current value of {{key}}',
'goalProcess.northStar.record.submit': 'Record',
- 'goalProcess.northStar.record.failed': 'Failed to record the observation',
'goalProcess.northStar.detail.history': 'Observations ({{count}})',
'goalProcess.northStar.detail.removed': 'This metric is no longer declared on the goal',
'goalProcess.northStar.detail.source.agent': 'Recorded by agent',
@@ -3393,6 +3393,10 @@ export default {
'goalPage.title': 'Overview',
'goalPage.view.card': 'Cards',
'goalPage.view.list': 'List',
+ 'goalProcess.northStar.declare.failedRetry':
+ "Couldn't declare the metric. Check the key and target, then try again.",
+ 'goalProcess.northStar.record.failedRetry':
+ "Couldn't record the observation. Check the value and try again.",
'goalTurn.authorUser': 'User',
'goalTurn.continuation': 'Why planning reopened',
'goalTurn.earlierFeedback': 'Earlier feedback ({{count}})',
@@ -3411,6 +3415,10 @@ export default {
'goalTurn.trigger.first': 'First turn',
'goalTurn.trigger.settled': 'Work settled',
'goalTurn.trigger.takeover': 'Takeover',
+ 'heteroAgent.claudeQuota.manage.loginFailedRetry':
+ "Sign-in didn't finish. Click Add account to try again.",
+ 'heteroAgent.claudeQuota.manage.switchFailedRetry':
+ "Couldn't switch the account. Check your network and try again.",
'taskList.activeTasks': 'Active Tasks',
'taskList.all': 'All tasks',
'taskList.completedTasks.all': 'All',
@@ -4769,6 +4777,8 @@ export default {
'sandboxDrive.fallbackChip.instanceRebuildRequired': 'Rebuild on personal drive',
'input.costEstimate.hintUsd': 'Estimated cost: about {{amount}}',
'input.costEstimate.usdPerMillionTokens': '{{amount}} / 1M tokens',
+ 'resource.artifacts.history.restoreFailedRetry':
+ "Couldn't restore this revision. Check your network and try again.",
'taskLabel.add': 'Add labels',
'taskLabel.anyInGroup': 'Any {{name}}',
'taskLabel.createFailed': 'Failed to create label',
@@ -4806,4 +4816,11 @@ export default {
'taskList.find.placeholder': 'Find in view…',
'taskList.groupBy.labelGroup': 'Label: {{name}}',
'sandboxEnvironment.noRepository': 'No repository',
+ 'sessionGroup.createFailedRetry':
+ "Couldn't create the category. Check your network and try again.",
+ 'shareModal.downloadFailedRetry': "Couldn't download the PDF. Check your network and try again.",
+ 'shareModal.generation.updateFailedRetry':
+ "Couldn't update the share link. Check your network and try again.",
+ 'taskDetail.statusCascade.applyFailedRetry':
+ "Couldn't update the task status. Check your network and try again.",
};
diff --git a/packages/locales/src/default/components.ts b/packages/locales/src/default/components.ts
index 9ae2a926fb9..5e954d80c08 100644
--- a/packages/locales/src/default/components.ts
+++ b/packages/locales/src/default/components.ts
@@ -48,6 +48,8 @@ export default {
'FileManager.actions.copyUrlError': 'Failed to copy the file link',
'FileManager.actions.copyUrlSuccess': 'File url copied successfully.',
'FileManager.actions.createChunkingTask': 'Preparing...',
+ 'FileManager.actions.createFolderFailedRetry':
+ "Couldn't create the folder. Check your network and try again.",
'FileManager.actions.deleteSuccess': 'File deleted successfully.',
'FileManager.actions.deleteAll': 'Delete All Items',
'FileManager.actions.deleteAllOwn': 'Delete All Items I Created',
diff --git a/packages/locales/src/default/dashboard.ts b/packages/locales/src/default/dashboard.ts
index 30316cb7755..0986d63fb8a 100644
--- a/packages/locales/src/default/dashboard.ts
+++ b/packages/locales/src/default/dashboard.ts
@@ -222,4 +222,6 @@ export default {
'board.emptyPrompt':
'Build a monitoring widget and put it on the dashboard "{{title}}". I want to see: ',
'board.emptyAgentUnavailable': "Couldn't open the agent. Try again in a moment.",
+ 'form.saveFailedRetry': "Couldn't save the dashboard. Check your network and try again.",
+ 'widget.saveFailedRetry': "Couldn't save the widget. Check your network and try again.",
};
diff --git a/packages/locales/src/default/device.ts b/packages/locales/src/default/device.ts
index 0b3dbb7c2f5..875f0fa8fed 100644
--- a/packages/locales/src/default/device.ts
+++ b/packages/locales/src/default/device.ts
@@ -189,6 +189,8 @@ export default {
'workingDirectory.branchCheckedOutHere': 'Checked out here',
'workingDirectory.deviceOutdated':
'The LobeHub app or lh CLI on this device is too old for this. Update it and try again.',
+ 'workingDirectory.drive.pickFailedRetry':
+ "Couldn't switch to this folder. Check your network and try again.",
'workingDirectory.occupiedBranchConfirm': 'Create branch and send',
'workingDirectory.occupiedBranchDesc':
'{{branch}} is checked out in worktree {{name}}, so it cannot be checked out here. A new branch will be created from it instead.',
diff --git a/packages/locales/src/default/discover.ts b/packages/locales/src/default/discover.ts
index 0b042c9c199..24d79d41185 100644
--- a/packages/locales/src/default/discover.ts
+++ b/packages/locales/src/default/discover.ts
@@ -1317,7 +1317,6 @@ export default {
'user.workspaceProfile.errors.namespace.pattern':
'Use lowercase letters, numbers, and hyphens. Start and end with a letter or number.',
'user.workspaceProfile.errors.namespace.required': 'Enter a Community handle',
- 'user.workspaceProfile.errors.uploadFailed': 'Failed to upload avatar',
'user.workspaceProfile.errors.url': 'Enter a valid URL',
'user.workspaceProfile.failed': 'Failed to update workspace profile',
'user.workspaceProfile.fields.avatar': 'Avatar',
@@ -1337,7 +1336,8 @@ export default {
'user.workspaceProfile.fields.namespace.available': 'This URL is available',
'user.workspaceProfile.fields.namespace.checking': 'Checking availability…',
'user.workspaceProfile.fields.namespace.placeholder': 'workspace-handle',
- 'user.workspaceProfile.fields.namespace.taken': 'This URL is already taken',
+ 'user.workspaceProfile.fields.namespace.taken':
+ 'This URL is already taken. Try a different handle.',
'user.workspaceProfile.fields.websiteUrl': 'Website',
'user.workspaceProfile.fields.websiteUrl.placeholder': 'Workspace website link',
'user.workspaceProfile.optional.toggle': 'More settings',
@@ -1372,7 +1372,6 @@ export default {
'user.workspaceProfile.settings.members.role.admin': 'Admin',
'user.workspaceProfile.settings.members.role.member': 'Member',
'user.workspaceProfile.settings.members.sync': 'Sync members',
- 'user.workspaceProfile.settings.members.syncFailed': 'Failed to sync members',
'user.workspaceProfile.settings.members.syncHint':
'Sync the current workspace members to the Community organization.',
'user.workspaceProfile.settings.members.syncSuccess': 'Members synced',
@@ -1391,7 +1390,6 @@ export default {
'user.workspaceProfile.settings.tabs.members': 'Members',
'user.workspaceProfile.settings.tabs.profile': 'Profile',
'user.workspaceProfile.settings.title': 'Community Profile Settings',
- 'user.workspaceProfile.settings.updateFailed': 'Failed to update Community profile',
'user.workspaceProfile.settings.updateSuccess': 'Community profile updated',
'user.workspaceProfile.settings.website.description':
'Add a website shown on the Community profile.',
@@ -1472,4 +1470,12 @@ export default {
'user.submitRepoHint': 'The repository will be reviewed before being published.',
'user.submitRepoSuccess': 'Repository submitted successfully! It will be reviewed shortly.',
'user.submitRepoTitle': 'Submit Your Repository',
+ 'user.workspaceProfile.errors.saveFailed':
+ "Couldn't save your profile. Check your network and try again.",
+ 'user.workspaceProfile.errors.uploadFailedRetry':
+ 'Upload failed. Check your network and try again.',
+ 'user.workspaceProfile.settings.members.syncFailedRetry':
+ "Couldn't sync members. Check your network and click Sync members again.",
+ 'user.workspaceProfile.settings.updateFailedRetry':
+ "Couldn't save. Check your network and click Save again.",
};
diff --git a/packages/locales/src/default/electron.ts b/packages/locales/src/default/electron.ts
index 9606b07e18d..1d79a2b6788 100644
--- a/packages/locales/src/default/electron.ts
+++ b/packages/locales/src/default/electron.ts
@@ -111,7 +111,6 @@ export default {
'proxy.port': 'Port',
'proxy.resetButton': 'Reset',
'proxy.saveButton': 'Save',
- 'proxy.saveFailed': 'Save failed: {{error}}',
'proxy.saveSuccess': 'Proxy settings saved successfully',
'proxy.server': 'Server Address',
'proxy.testButton': 'Test Connection',
@@ -155,6 +154,8 @@ export default {
'gateway.workspaceStatusConnections_other': 'Workspace · {{count}} connections online',
'gateway.workspaceStatusDisconnected': 'No workspace device connection is online',
'gateway.workspaceStatusUnavailable': 'Workspace device status is temporarily unavailable',
+ 'proxy.saveFailedRetry': "Couldn't save the proxy settings. Check them and try again.",
+ 'proxy.testFailedHint': 'Check the proxy server, port, and credentials, then test again.',
'remoteServer.authError': 'Authorization failed: {{error}}',
'remoteServer.authPending': 'Please complete the authorization in your browser',
'remoteServer.configDesc': 'Connect to the remote LobeHub server to enable data synchronization',
diff --git a/packages/locales/src/default/eval.ts b/packages/locales/src/default/eval.ts
index b72901cc9f3..43cd7621133 100644
--- a/packages/locales/src/default/eval.ts
+++ b/packages/locales/src/default/eval.ts
@@ -28,6 +28,8 @@ export default {
'benchmark.create.description.label': 'Description',
'benchmark.create.description.placeholder': 'Benchmark description (optional)',
'benchmark.create.error': 'Failed to create benchmark',
+ 'benchmark.create.failedRetry':
+ "Couldn't create the benchmark. Check your network and try again.",
'benchmark.create.identifier.label': 'Identifier',
'benchmark.create.identifier.placeholder': 'benchmark-identifier',
'benchmark.create.identifierRequired': 'Please enter an identifier',
@@ -71,6 +73,7 @@ export default {
'benchmark.detail.tabs.datasets': 'Datasets',
'benchmark.detail.tabs.experiments': 'Experiments',
'benchmark.detail.tabs.runs': 'Runs',
+ 'benchmark.edit.failedRetry': "Couldn't save the benchmark. Check your network and try again.",
'benchmark.empty': 'No benchmarks yet. Create one to get started.',
'common.cancel': 'Cancel',
@@ -1221,4 +1224,22 @@ export default {
'connections.statusConnected': 'Last check succeeded',
'connections.statusError': 'Last check failed',
'connections.statusDisconnected': 'Not checked',
+ 'dataset.create.failedRetry':
+ "Couldn't create the dataset. Check that the identifier isn't already used, then try again.",
+ 'dataset.edit.failedRetry': "Couldn't save the dataset. Check your network and try again.",
+ 'experiment.create.failedRetry':
+ "Couldn't create the experiment. Check your network and try again.",
+ 'experiment.edit.failedRetry': "Couldn't save the experiment. Check your network and try again.",
+ 'lobeBench.benchmark.create.failedRetry':
+ "Couldn't create the benchmark. Check your network and try again.",
+ 'lobeBench.experiment.edit.failedRetry':
+ "Couldn't save the experiment. Check your network and try again.",
+ 'lobeBench.picks.createFailedRetry':
+ "Couldn't create the dataset. Check your network and try again.",
+ 'lobeBench.picks.renameFailedRetry':
+ "Couldn't rename the dataset. Check your network and try again.",
+ 'run.create.failedRetry': "Couldn't create the run. Check your network and try again.",
+ 'run.edit.failedRetry': "Couldn't save the run. Check your network and try again.",
+ 'testCase.create.failedRetry': "Couldn't create the test case. Check your network and try again.",
+ 'testCase.edit.failedRetry': "Couldn't save the test case. Check your network and try again.",
};
diff --git a/packages/locales/src/default/marketAuth.ts b/packages/locales/src/default/marketAuth.ts
index 91cdb39e913..8da1158f730 100644
--- a/packages/locales/src/default/marketAuth.ts
+++ b/packages/locales/src/default/marketAuth.ts
@@ -39,6 +39,7 @@ export default {
'callback.titles.error': 'Authorization Failed',
'callback.titles.loading': 'LobeHub Market Authorization',
'callback.titles.success': 'Authorization Successful',
+ 'claimResources.failedRetry': "Couldn't claim these resources. Check your network and try again.",
'errors.authorizationFailed': 'Authorization failed, please try again.',
'errors.browserOnly': 'The authorization process can only be initiated in a browser.',
'errors.codeConsumed': 'The authorization code has already been used. Please try again.',
diff --git a/packages/locales/src/default/memory.ts b/packages/locales/src/default/memory.ts
index c88bb6ef26f..35207d057ef 100644
--- a/packages/locales/src/default/memory.ts
+++ b/packages/locales/src/default/memory.ts
@@ -186,7 +186,6 @@ export default {
'rules.distill.truncated': 'The material is long; only its beginning was read.',
'rules.distill.untitled': 'Untitled',
'rules.distill.upload': 'Upload a file',
- 'rules.distill.uploadFailed': 'Could not upload the file.',
'rules.distill.uploadHint': 'Markdown, PDF, Word, PowerPoint or plain text',
'rules.enforcement.block': 'Block',
'rules.enforcement.blockDesc':
@@ -446,4 +445,8 @@ export default {
'entity.timeline.undated': 'TBD',
'entity.timeline.upcoming': 'Up next',
'entity.untitled': 'Untitled context',
+ 'rules.distill.uploadFailedRetry':
+ "Couldn't upload the file. Try again or choose a different file.",
+ 'rules.saveFailedRetry':
+ "Couldn't save. Your input is kept, check your connection and try again.",
};
diff --git a/packages/locales/src/default/plugin.ts b/packages/locales/src/default/plugin.ts
index 7205bd14698..b2da37913a2 100644
--- a/packages/locales/src/default/plugin.ts
+++ b/packages/locales/src/default/plugin.ts
@@ -1123,7 +1123,10 @@ export default {
'dev.preview.mcp.tools_other': '{{count}} tools',
'dev.preview.title': 'Skill name preview',
'dev.saveError': 'Install failed, please try again',
+ 'dev.saveFailedRetry': "Couldn't save the connector. Check your network and try again.",
'dev.saveSuccess': 'Settings saved',
+ 'dev.ssrfBlockedRetry':
+ "This server address isn't allowed. Use a public address, or open details to see how to allow it.",
'dev.tabs.manifest': 'Manifest',
'dev.tabs.meta': 'Meta info',
'dev.title.connectorSettings': 'Connector settings',
@@ -1251,6 +1254,8 @@ export default {
'protocolInstall.marketplace.verified': 'Verified',
'protocolInstall.messages.connectionTestFailed': 'Connection test failed',
'protocolInstall.messages.installError': 'Install failed, retry',
+ 'protocolInstall.messages.installFailedRetry':
+ "Couldn't install this plugin. Check your network and try again.",
'protocolInstall.messages.installSuccess': '{{name}} installed. Enable now or configure later.',
'protocolInstall.messages.manifestError':
'Failed to fetch Skill info. Check network or retry later.',
@@ -1302,9 +1307,11 @@ export default {
'settings.httpTypeNotice': 'HTTP MCP has no env vars to configure',
'settings.indexUrl.title': 'Community index',
'settings.indexUrl.tooltip': 'Edit via deployment env vars',
- 'settings.messages.connectionUpdateFailed': 'Failed to update connection',
+ 'settings.messages.connectionUpdateFailedRetry':
+ "Couldn't update the connection. Check the URL or command, then try again.",
'settings.messages.connectionUpdateSuccess': 'Connection updated',
- 'settings.messages.envUpdateFailed': 'Failed to save env vars',
+ 'settings.messages.envUpdateFailedRetry':
+ "Couldn't save the environment variables. Check your connection and try again.",
'settings.messages.envUpdateSuccess': 'Env vars saved',
'settings.modalDesc': 'Configure community URL to use custom Skill community.',
'settings.rules.argsRequired': 'Enter arguments',
diff --git a/packages/locales/src/default/project.ts b/packages/locales/src/default/project.ts
index 2865621399e..04f385d8025 100644
--- a/packages/locales/src/default/project.ts
+++ b/packages/locales/src/default/project.ts
@@ -678,6 +678,7 @@ export default {
'artboard.question.placeholder': 'Answer this question…',
'artboard.question.answer': 'Answer',
'artboard.question.hint': 'Your answer goes to the agent with the next send.',
+ 'create.failedRetry': "Couldn't create the project. Check your network and try again.",
'environment.configure': 'Configure environment',
'settings.environmentIntro':
'Every conversation in this project runs in this environment: its repositories are cloned, the setup command runs, and its variables are set.',
@@ -693,4 +694,5 @@ export default {
'createFromGithub.advancedWithCount': 'Advanced settings · {{count}} extra',
'createFromGithub.extraRepositoriesLabel': 'More repositories',
'createFromGithub.chooseFromGithub': 'Choose from GitHub',
+ 'knowledgeBases.addFailedRetry': "Couldn't add this library. Check your network and try again.",
};
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index 6db0cd954e7..733da193bc1 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -154,6 +154,8 @@ export default {
'After deletion completes, the same email cannot be used to sign up again for {{days}} days.',
'accountDeletion.requestButton': 'Request Account Deletion',
'accountDeletion.requestFailed': 'Failed to request account deletion',
+ 'accountDeletion.requestFailedRetry':
+ "Couldn't submit your deletion request. Check your connection and try again.",
'accountDeletion.requestSuccess': 'Deletion request submitted',
'accountDeletion.sectionTitle': 'Account Deletion',
'accountDeletion.title': 'Delete Account',
@@ -619,6 +621,8 @@ export default {
'agentDocuments.overwriteConfirm.warning':
'Existing documents with the same filename will be replaced.',
'agentDocuments.title': 'Agent Documents',
+ 'agentSkillModal.github.connectFailedRetry':
+ "Couldn't connect GitHub. Check your network and try again.",
'analytics.telemetry.desc': 'Help us improve {{appName}} with anonymous usage data',
'analytics.telemetry.title': 'Send Anonymous Usage Data',
'analytics.title': 'Analytics',
@@ -783,7 +787,6 @@ export default {
'creds.errors.publicCredExists':
'This workspace already shares a credential with this key. Remove it before publishing this one.',
'creds.file.authRequired': 'Please sign in to the Market first',
- 'creds.file.uploadFailed': 'File upload failed',
'creds.file.uploadSuccess': 'File uploaded successfully',
'creds.file.uploading': 'Uploading...',
'creds.form.addEnvVar': 'Add variable',
@@ -1163,7 +1166,6 @@ export default {
'hotkey.sendMessage.desc': 'The other key combination inserts a line break',
'hotkey.sendMessage.title': 'Send Message',
'hotkey.title': 'Hotkeys',
- 'hotkey.updateError': 'Failed to update hotkey: Network or system error',
'hotkey.updateSuccess': 'Hotkey updated successfully',
'llm.aesGcm':
'Your keys and proxy address will be encrypted using the <1>AES-GCM</1> encryption algorithm',
@@ -4820,7 +4822,6 @@ When I am ___, I need ___
'environments.namePlaceholder': 'Environment name',
'environments.empty': 'No environments yet',
'environments.removeFailed': 'Could not delete this environment',
- 'environments.saveFailed': 'Could not save this change',
'environments.instances.removeFailed': 'Could not delete this copy',
'environments.instances.removing': 'Deleting — removing its folder and everything in it',
'environments.instances.removeConfirmTitle': 'Delete copy {{name}}?',
@@ -5457,6 +5458,9 @@ When I am ___, I need ___
'automations.empty.title': 'No automations yet',
'automations.empty.desc':
'Ask an agent to keep an eye on a connector for you, like "Tell me when CI fails on this PR". Subscriptions you approve show up here.',
+ 'creds.file.uploadFailedRetry': 'File upload failed. Check the file and try again.',
+ 'devices.share.failedRetry':
+ "Couldn't share this device to {{name}}. Make sure the device is online, then try again.",
'environments.form.addRepository': 'Add repository',
'environments.form.noRepositories': 'No repositories. Conversations start in an empty folder.',
'environments.form.noVariables': 'No variables',
@@ -5477,6 +5481,30 @@ When I am ___, I need ___
'environments.form.bootstrapAfterRepositories':
"Runs at the top of the working directory, after each repository's own setup. Setup for a single repository goes on that repository.",
'environments.form.duplicateFolder': 'Another repository already uses this folder.',
+ 'environments.saveFailedRetry': 'Could not save this change. Check your network and try again.',
+ 'hotkey.updateErrorRetry': "Couldn't save this hotkey. Try recording it again.",
+ 'settingAgent.avatar.uploadFailed':
+ "Couldn't upload the image. Check your network and choose it again.",
+ 'storageOverage.capUpdateFailedRetry':
+ "Couldn't save the monthly cap. Check the amount and try again.",
+ 'storageOverage.disableFailedRetry': "Couldn't disable storage pay-as-you-go. Try again.",
+ 'storageOverage.enableFailedRetry': "Couldn't enable storage pay-as-you-go. Try again.",
+ 'taskLabels.form.saveFailedRetry': "Couldn't save the label. Check your network and try again.",
+ 'workspace.billing.paymentMethods.portalFailedRetry':
+ "Couldn't open the billing portal. Check your network and try again.",
+ 'workspace.billingPage.billing.changeFailedRetry':
+ "Couldn't update the subscription. Check your connection and try again.",
+ 'workspace.billingPage.credits.autoTopUp.saveFailed':
+ "Couldn't save auto top-up settings. Check your connection and try again.",
+ 'workspace.billingPage.credits.autoTopUp.toggleFailed': "Couldn't change auto top-up. Try again.",
+ 'workspace.billingPage.credits.topUp.purchaseFailed':
+ "Couldn't complete the top-up. Check your connection and try again.",
+ 'workspace.upgradeModal.payFailedRetry':
+ "Couldn't start checkout. Check your connection and try again.",
+ 'workspace.wizard.step2.createFailedRetry':
+ "Couldn't create the workspace. Check your connection and try again.",
+ 'workspace.wizard.step2.payFailedRetry':
+ "Couldn't start checkout. Check your connection and try again.",
'workspaceSetting.devices.enrollPrivateDesc':
'Run this on the machine you want to connect. It starts private to you; publish it to the workspace from its card menu.',
'market.apps.viewAll': 'View all',
@@ -5573,4 +5601,10 @@ When I am ___, I need ___
'market.skills.title': 'Skills',
'market.skills.uninstall': 'Uninstall',
'market.skills.version': 'Version',
+ 'workspaceSetting.labels.archive.failedRetry':
+ "Couldn't archive the label. Check your network and try again.",
+ 'workspaceSetting.labels.delete.failedRetry':
+ "Couldn't delete the label. Check your network and try again.",
+ 'workspaceSetting.labels.form.saveFailedRetry':
+ "Couldn't save the label. Check your network and try again.",
};
diff --git a/packages/locales/src/default/subscription.ts b/packages/locales/src/default/subscription.ts
index 3322393d1a2..5153ed11e6f 100644
--- a/packages/locales/src/default/subscription.ts
+++ b/packages/locales/src/default/subscription.ts
@@ -1051,12 +1051,15 @@ export default {
'{{hobby}} does not include subscription usage; configure your own model API or top up your balance',
'balance.subscriptionQuota': 'Subscription usage',
'balance.subscriptionQuotaDesc': 'Subscription usage is spent first, then your balance',
+ 'cancelPlan.failed': "Couldn't cancel the subscription. Check your connection and try again.",
'compare.monthlyQuota': 'Monthly usage',
'plans.quota.freeLimit': 'Monthly limit, resets every month',
'plans.quota.none': 'No built-in usage',
'plans.quota.title': 'Usage',
'creditUsageReminder.used': "{{percent}} of this billing cycle's subscription usage is used",
'creditUsageReminder.window.used': '{{rule}}: {{percent}} used',
+ 'credits.agentShareBudget.saveFailed':
+ "Couldn't save the Agent Share budget. Check your connection and try again.",
'creditsChip.rolling.usageTitle': 'Plan usage',
'creditsChip.rolling.usageTooltip': 'Plan usage toward the nearest limit',
'creditsChip.usageTitle': 'Usage',
@@ -1083,6 +1086,8 @@ export default {
'credits.autoTopUp.enable.noChargeNow':
'Your balance is {{balance}}, above {{threshold}}, so nothing is charged now. Auto top-up runs once it drops to {{threshold}}.',
'credits.autoTopUp.enable.noPaymentMethod': 'Add a card first',
+ 'credits.autoTopUp.enable.openSetupFailed':
+ "Couldn't open payment method setup. Check your connection and try again.",
'credits.autoTopUp.enable.overflowNote':
'This also turns on "{{overflow}}". Without it, requests stop at your plan limits and auto top-up never runs.',
'credits.autoTopUp.enable.paymentMethod': 'Payment method',
@@ -1094,12 +1099,23 @@ export default {
'credits.autoTopUp.enable.waitingForPaymentMethod':
'Add the card in the new tab, then come back here to turn it on.',
'credits.autoTopUp.recommended': 'Recommended',
+ 'credits.autoTopUp.saveFailed':
+ "Couldn't save auto top-up settings. Check your connection and try again.",
'credits.autoTopUp.setupAndEnable': 'Add card and turn on',
'credits.autoTopUp.summary': 'Refill to {{target}} when the balance is at or below {{threshold}}',
'credits.autoTopUp.summaryMonthly': 'Charged this month: {{amount}} / {{limit}}',
'credits.autoTopUp.summaryNoCard':
'Add a card to refill the balance automatically, so requests keep going after your limits run out',
'credits.autoTopUp.summaryOff': '{{summary}}, so requests keep going after your limits run out',
+ 'credits.autoTopUp.turnOffFailed': "Couldn't turn off auto top-up. Try again.",
+ 'credits.costEstimateHint.saveFailedRetry':
+ "Couldn't save the alert threshold. Check your connection and try again.",
+ 'credits.dedicatedBudget.saveFailed':
+ "Couldn't save the dedicated budget. Check your connection and try again.",
+ 'credits.memberBudget.saveFailed':
+ "Couldn't save the member budget. Check your connection and try again.",
+ 'credits.teamBudget.saveFailed':
+ "Couldn't save the team budget. Check your connection and try again.",
'creditsChip.autoTopUp.enable': 'Turn on auto top-up',
'limitation.insufficientBudget.rescue.autoTopUp.cta': 'Turn on auto top-up & continue',
'limitation.insufficientBudget.rescue.autoTopUp.ctaNoCard': 'Add card & turn on auto top-up',
diff --git a/packages/locales/src/default/tool.ts b/packages/locales/src/default/tool.ts
index d84cbcdaf20..cc1224f2b30 100644
--- a/packages/locales/src/default/tool.ts
+++ b/packages/locales/src/default/tool.ts
@@ -184,6 +184,8 @@ export default {
'connector.add.clientSecret': 'OAuth Client Secret (optional)',
'connector.add.confirm': 'Add',
'connector.add.editTitle': 'Edit Connector',
+ 'connector.add.failedRetry':
+ "Couldn't save the connector. Check the server URL and your network, then try again.",
'connector.add.name': 'Name',
'connector.add.namePlaceholder': 'My connector',
'connector.add.popupBlocked': 'Please allow popups for this site and try again.',
@@ -426,7 +428,7 @@ export default {
'updateArgs.form.add': 'Add an Item',
'updateArgs.form.key': 'Field Key',
'updateArgs.form.value': 'Field Value',
- 'updateArgs.formValidationFailed': 'Form validation failed, please check the parameter format',
'updateArgs.keyRequired': 'Field key cannot be empty',
+ 'updateArgs.saveFailed': "Couldn't save the parameters. Check your network and try again.",
'updateArgs.stringifyError': 'Unable to serialize parameters, please check the parameter format',
};
diff --git a/packages/locales/src/default/topic.ts b/packages/locales/src/default/topic.ts
index 6661674b741..d28dea665e0 100644
--- a/packages/locales/src/default/topic.ts
+++ b/packages/locales/src/default/topic.ts
@@ -90,6 +90,7 @@ export default {
'doctor.summary_other': '{{count}} messages exist in this topic but are not being shown.',
'doctor.title': 'Message Chain Check',
'displayItems': 'Display Items',
+ 'doctor.repairFailedRetry': "Couldn't repair this topic. Check your network and try again.",
'draft': '[Draft]',
'duplicateLoading': 'Copying Topic...',
'duplicateSuccess': 'Topic Copied Successfully',
@@ -293,6 +294,8 @@ export default {
'management.moveModal.doneOk': 'Done',
'management.moveModal.error': 'Move failed, please try again',
'management.moveModal.goToTarget': 'Go to “{{title}}”',
+ 'management.moveModal.moveFailedRetry':
+ "Couldn't move the topics. Check your network and try again.",
'management.moveModal.moving': 'Moving…',
'management.moveModal.title': 'Move topics',
'management.searchPlaceholder': "Search this agent's topics…",
diff --git a/packages/locales/src/default/verify.ts b/packages/locales/src/default/verify.ts
index 6e4e7aaee71..7b62089b24c 100644
--- a/packages/locales/src/default/verify.ts
+++ b/packages/locales/src/default/verify.ts
@@ -1133,6 +1133,8 @@ export default {
'acceptance.collaboration.sendFailed': "Couldn't send the message. Try again.",
'acceptance.collaboration.agentFallback': 'the agent',
'acceptance.access.submit': 'Send request',
+ 'acceptance.comments.createFailedRetry':
+ "Couldn't post the comment. Check your network and try again.",
'acceptance.repair.description':
'The project Agent will create and run a repair task for the unresolved feedback at submission time. Later feedback stays for the next handoff. You confirm the fixes after reviewing the delivery.',
'acceptance.repair.originDescription':
diff --git a/src/components/FeedbackModal/FeedbackContent.tsx b/src/components/FeedbackModal/FeedbackContent.tsx
index 91fa0c5f104..dab25652fe3 100644
--- a/src/components/FeedbackModal/FeedbackContent.tsx
+++ b/src/components/FeedbackModal/FeedbackContent.tsx
@@ -2,12 +2,14 @@
import { BRANDING_EMAIL } from '@lobechat/business-const';
import { isDesktop } from '@lobechat/const';
-import { Button, Flexbox, Icon, Input, toast, Upload, useModalContext } from '@lobehub/ui';
+import { Button, Flexbox, Icon, Input, Text, toast, Upload, useModalContext } from '@lobehub/ui';
import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { ImagePlus, Send } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import TextArea from '@/components/TextArea';
import { lambdaClient } from '@/libs/trpc/client';
import { useFileStore } from '@/store/file';
@@ -36,6 +38,12 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
const [loading, setLoading] = useState(false);
const [screenshotUrl, setScreenshotUrl] = useState<string | null>(null);
const [uploadingScreenshot, setUploadingScreenshot] = useState(false);
+ /**
+ * The modal stays open on failure, so the screenshot refusal shows under the upload button and
+ * a failed submit shows above the Submit button, not in a corner toast.
+ */
+ const [screenshotError, setScreenshotError] = useState('');
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
const uploadWithProgress = useFileStore((s) => s.uploadWithProgress);
const userEmail = useUserStore(userProfileSelectors.email);
@@ -43,8 +51,9 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
const handleScreenshotUpload = useCallback(
async (file: File) => {
const MAX_SIZE = 5 * 1024 * 1024; // 5MB
+ setScreenshotError('');
if (file.size > MAX_SIZE) {
- toast.error(t('feedback.errors.fileTooLarge'));
+ setScreenshotError(t('feedback.errors.fileTooLarge'));
return;
}
@@ -57,7 +66,7 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
}
} catch (error) {
console.error('[FeedbackModal] Screenshot upload failed:', error);
- toast.error(t('feedback.errors.uploadFailed'));
+ setScreenshotError(t('feedback.errors.uploadFailed'));
} finally {
setUploadingScreenshot(false);
}
@@ -75,6 +84,7 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
if (!valid) return;
const values = form.getValues();
setLoading(true);
+ setSubmitError(null);
await lambdaClient.market.submitFeedback.mutate({
clientInfo: {
@@ -95,7 +105,7 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
close();
} catch (error: any) {
console.error('[FeedbackModal] Submission failed:', error);
- toast.error(t('feedback.errors.submitFailed'));
+ setSubmitError(toInlineError(t('feedback.errors.submitFailed'), error));
} finally {
setLoading(false);
}
@@ -182,6 +192,11 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
</Upload>
)}
</Flexbox>
+ {screenshotError && (
+ <Text fontSize={12} role={'alert'} style={{ marginTop: 8 }} type={'danger'}>
+ {screenshotError}
+ </Text>
+ )}
<p style={{ color: 'var(--colorTextSecondary)', fontSize: 12, marginTop: 8 }}>
{t('feedback.fields.screenshot.hint')}
</p>
@@ -190,6 +205,9 @@ const FeedbackContent = memo<FeedbackContentProps>(({ initialValues }) => {
{isDesktop && <DiagnosticsField />}
</Form>
+ {submitError && (
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ )}
<Flexbox horizontal gap={8} justify="flex-end">
<Button onClick={handleCancel}>{t('cancel')}</Button>
<Button icon={<Icon icon={Send} />} loading={loading} type="primary" onClick={handleSubmit}>
diff --git a/src/components/InlineErrorText/errorDetail.test.ts b/src/components/InlineErrorText/errorDetail.test.ts
new file mode 100644
index 00000000000..feb439c6745
--- /dev/null
+++ b/src/components/InlineErrorText/errorDetail.test.ts
@@ -0,0 +1,36 @@
+import { describe, expect, it } from 'vitest';
+
+import { getErrorDetail, toInlineError } from './errorDetail';
+
+describe('getErrorDetail', () => {
+ it('returns the message of an Error', () => {
+ expect(getErrorDetail(new Error('name already exists'))).toBe('name already exists');
+ });
+
+ it('reads message from plain objects such as TRPC client errors', () => {
+ expect(getErrorDetail({ message: ' quota exceeded ' })).toBe('quota exceeded');
+ });
+
+ it('accepts a string error', () => {
+ expect(getErrorDetail('timeout')).toBe('timeout');
+ });
+
+ it('drops empty messages and non-error values', () => {
+ expect(getErrorDetail(new Error(' '))).toBeUndefined();
+ expect(getErrorDetail(undefined)).toBeUndefined();
+ expect(getErrorDetail(42)).toBeUndefined();
+ });
+
+ it('drops a message that only repeats the summary', () => {
+ expect(getErrorDetail(new Error('Save failed'), 'Save failed')).toBeUndefined();
+ });
+});
+
+describe('toInlineError', () => {
+ it('pairs the summary with the raw cause', () => {
+ expect(toInlineError("Couldn't save. Try again.", new Error('Duplicate key'))).toEqual({
+ detail: 'Duplicate key',
+ summary: "Couldn't save. Try again.",
+ });
+ });
+});
diff --git a/src/components/InlineErrorText/errorDetail.ts b/src/components/InlineErrorText/errorDetail.ts
new file mode 100644
index 00000000000..57a151fed28
--- /dev/null
+++ b/src/components/InlineErrorText/errorDetail.ts
@@ -0,0 +1,32 @@
+/**
+ * Server-side cause carried by a caught error, used as the folded "Show details"
+ * text under an actionable inline summary. Returns `undefined` when there is no
+ * message worth showing, or when the message would only repeat the summary.
+ */
+export const getErrorDetail = (error: unknown, summary?: string): string | undefined => {
+ const message =
+ error instanceof Error
+ ? error.message
+ : typeof error === 'string'
+ ? error
+ : typeof (error as { message?: unknown } | null)?.message === 'string'
+ ? (error as { message: string }).message
+ : undefined;
+
+ const trimmed = message?.trim();
+ if (!trimmed || trimmed === summary?.trim()) return undefined;
+
+ return trimmed;
+};
+
+/** Inline error state: an actionable summary plus the optional raw cause. */
+export interface InlineErrorState {
+ detail?: string;
+ summary: string;
+}
+
+/** Build inline error state from a caught error and its translated summary. */
+export const toInlineError = (summary: string, error?: unknown): InlineErrorState => ({
+ detail: getErrorDetail(error, summary),
+ summary,
+});
diff --git a/src/components/InlineErrorText/index.tsx b/src/components/InlineErrorText/index.tsx
new file mode 100644
index 00000000000..a4836827bb5
--- /dev/null
+++ b/src/components/InlineErrorText/index.tsx
@@ -0,0 +1,125 @@
+'use client';
+
+import { Button, Icon } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
+import * as stylex from '@stylexjs/stylex';
+import { CircleAlert } from 'lucide-react';
+import { type CSSProperties, memo, type ReactNode, useState } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { useRevealOnMount } from './useRevealOnMount';
+
+/** Summary line box is 18px (12px × 1.5); the icon and toggle share that height. */
+const styles = stylex.create({
+ detail: {
+ backgroundColor: cssVar.colorFillQuaternary,
+ borderRadius: cssVar.borderRadius,
+ color: cssVar.colorTextSecondary,
+ fontFamily: cssVar.fontFamilyCode,
+ fontSize: 12,
+ lineHeight: 1.5,
+ margin: 0,
+ overflow: 'auto',
+ paddingBlock: 8,
+ paddingInline: 10,
+ whiteSpace: 'pre-wrap',
+ wordBreak: 'break-all',
+ },
+ error: {
+ alignItems: 'flex-start',
+ color: cssVar.colorError,
+ display: 'flex',
+ fontSize: 12,
+ gap: 4,
+ lineHeight: '18px',
+ wordBreak: 'break-word',
+ },
+ /**
+ * One line tall and flex-centered, so the icon sits on the first text line's
+ * center. A margin-offset inline span drifts with the SVG's baseline instead.
+ */
+ icon: {
+ alignItems: 'center',
+ display: 'flex',
+ flex: 'none',
+ height: 18,
+ },
+ root: {
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 4,
+ },
+ /** Secondary action: muted and regular weight so it never outshouts the error itself. */
+ toggle: {
+ color: {
+ ':hover': cssVar.colorText,
+ 'default': cssVar.colorTextSecondary,
+ },
+ flex: 'none',
+ fontSize: 12,
+ fontWeight: 400,
+ height: 18,
+ lineHeight: '18px',
+ paddingBlock: 0,
+ },
+});
+
+/** Expanded raw cause; scrolls itself into view so a footer cannot cover it. */
+const ErrorDetail = ({ children }: { children: ReactNode }) => {
+ const ref = useRevealOnMount<HTMLPreElement>();
+
+ return (
+ <pre ref={ref} {...stylex.props(styles.detail)}>
+ {children}
+ </pre>
+ );
+};
+
+interface InlineErrorTextProps {
+ children: ReactNode;
+ /**
+ * Raw technical detail (provider message, response body). Folded behind a
+ * "Show details" toggle so the summary line stays readable.
+ */
+ detail?: ReactNode;
+ style?: CSSProperties;
+}
+
+/**
+ * Red, in-place reason of a failed action: one quiet line beside the field or button
+ * that caused it, instead of a toast or a full `Alert` panel. It stays visible after
+ * the user looks away, so the copy should name the next step.
+ */
+const InlineErrorText = memo<InlineErrorTextProps>(({ children, detail, style }) => {
+ const { t } = useTranslation('error');
+ const [open, setOpen] = useState(false);
+ const rootRef = useRevealOnMount<HTMLDivElement>();
+ const { className, style: rootStyle } = stylex.props(styles.root);
+
+ return (
+ <div className={className} ref={rootRef} role={'alert'} style={{ ...rootStyle, ...style }}>
+ <div {...stylex.props(styles.error)}>
+ <span {...stylex.props(styles.icon)}>
+ <Icon icon={CircleAlert} size={12} />
+ </span>
+ {/* Shrinks to its text so the toggle stays next to the message, not at the far edge. */}
+ <span style={{ flex: '0 1 auto', minWidth: 0 }}>{children}</span>
+ {detail && (
+ <Button
+ size={'small'}
+ type={'link'}
+ {...stylex.props(styles.toggle)}
+ onClick={() => setOpen((value) => !value)}
+ >
+ {open ? t('asyncState.hideDetails') : t('asyncState.showDetails')}
+ </Button>
+ )}
+ </div>
+ {open && detail && <ErrorDetail>{detail}</ErrorDetail>}
+ </div>
+ );
+});
+
+InlineErrorText.displayName = 'InlineErrorText';
+
+export default InlineErrorText;
diff --git a/src/components/InlineErrorText/useRevealOnMount.test.ts b/src/components/InlineErrorText/useRevealOnMount.test.ts
new file mode 100644
index 00000000000..01df79cbf45
--- /dev/null
+++ b/src/components/InlineErrorText/useRevealOnMount.test.ts
@@ -0,0 +1,26 @@
+import { renderHook } from '@testing-library/react';
+import { describe, expect, it, vi } from 'vitest';
+
+import { useRevealOnMount } from './useRevealOnMount';
+
+describe('useRevealOnMount', () => {
+ it('scrolls the attached element into view once on mount', () => {
+ const element = document.createElement('div');
+ const scrollIntoView = vi.fn();
+ element.scrollIntoView = scrollIntoView;
+
+ const { rerender } = renderHook(() => {
+ const ref = useRevealOnMount<HTMLDivElement>();
+ ref.current = element;
+ return ref;
+ });
+ rerender();
+
+ expect(scrollIntoView).toHaveBeenCalledTimes(1);
+ expect(scrollIntoView).toHaveBeenCalledWith({ behavior: 'smooth', block: 'nearest' });
+ });
+
+ it('does nothing when no element is attached', () => {
+ expect(() => renderHook(() => useRevealOnMount<HTMLDivElement>())).not.toThrow();
+ });
+});
diff --git a/src/components/InlineErrorText/useRevealOnMount.ts b/src/components/InlineErrorText/useRevealOnMount.ts
new file mode 100644
index 00000000000..7a871a5cefc
--- /dev/null
+++ b/src/components/InlineErrorText/useRevealOnMount.ts
@@ -0,0 +1,16 @@
+import { type RefObject, useEffect, useRef } from 'react';
+
+/**
+ * Scroll the element into view once when it mounts. Inline errors and their
+ * expanded details usually appear at the bottom of a scrollable modal or long form;
+ * without this a failed click can look like a no-op, or a footer hides the detail. `block: 'nearest'` leaves visible errors alone.
+ */
+export const useRevealOnMount = <T extends HTMLElement>(): RefObject<T | null> => {
+ const ref = useRef<T>(null);
+
+ useEffect(() => {
+ ref.current?.scrollIntoView?.({ behavior: 'smooth', block: 'nearest' });
+ }, []);
+
+ return ref;
+};
diff --git a/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx b/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx
index cdbf48a7dcf..6eccfe44006 100644
--- a/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx
+++ b/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx
@@ -9,7 +9,6 @@ import {
Flexbox,
Icon,
Text,
- toast,
useModalContext,
useResponsive,
} from '@lobehub/ui';
@@ -213,14 +212,17 @@ const ImageCommentEditor = ({
current.current = next;
setDraft(next);
saveEvidenceCommentDraft(key, next);
+ setSubmitError(null);
if (counted) onDraftsChange();
};
const [submitting, setSubmitting] = useState(false);
+ const [submitError, setSubmitError] = useState<string | null>(null);
const { rect, content, clientId } = draft;
const trimmed = content.trim();
const submit = async () => {
if (!rect || !trimmed || submitting) return;
setSubmitting(true);
+ setSubmitError(null);
onBusyChange(true);
try {
setCanDismissByClickOutside(false);
@@ -236,7 +238,7 @@ const ImageCommentEditor = ({
}
} catch (cause) {
console.error('[acceptance:comments]', cause);
- toast.error(t('acceptance.comments.createFailed'));
+ setSubmitError(t('acceptance.comments.createFailedRetry'));
} finally {
setSubmitting(false);
onBusyChange(false);
@@ -245,7 +247,8 @@ const ImageCommentEditor = ({
};
let status: string = t('acceptance.comments.draftSaved');
- if (!rect) status = t('acceptance.comments.draftNeedsRegion');
+ if (submitError) status = submitError;
+ else if (!rect) status = t('acceptance.comments.draftNeedsRegion');
else if (!trimmed) status = t('acceptance.comments.draftNeedsText', { index: 1 });
const canvas = {
@@ -265,6 +268,7 @@ const ImageCommentEditor = ({
<DraftFooter
count={rect ? 1 : 0}
disabled={!rect || !trimmed}
+ error={Boolean(submitError)}
loading={submitting}
status={status}
onCancel={close}
diff --git a/src/features/AgentChannel/PlatformDetail/Body.tsx b/src/features/AgentChannel/PlatformDetail/Body.tsx
index 79aa21f4052..b3f6efa6f2a 100644
--- a/src/features/AgentChannel/PlatformDetail/Body.tsx
+++ b/src/features/AgentChannel/PlatformDetail/Body.tsx
@@ -70,6 +70,8 @@ const fallback = createStaticStyles(({ css }) => ({
*/
export interface ModuleControls {
dirty: readonly SaveModuleId[];
+ /** A block's failed Save, shown beside its Save button until the next save or discard. */
+ errors?: Partial<Record<SaveModuleId, string>>;
ids: readonly SaveModuleId[];
onDiscard: (id: SaveModuleId) => void;
onSave: (id: SaveModuleId) => void;
@@ -248,6 +250,7 @@ const Body = memo<BodyProps>(
<ModuleSaveBar
dirty={moduleControls.dirty.includes(id)}
disabled={disabled}
+ error={moduleControls.errors?.[id]}
saving={moduleControls.saving === id}
onDiscard={() => moduleControls.onDiscard(id)}
onSave={() => moduleControls.onSave(id)}
diff --git a/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.test.tsx b/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.test.tsx
index 710db850329..a1081d7d08e 100644
--- a/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.test.tsx
+++ b/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.test.tsx
@@ -52,4 +52,27 @@ describe('ModuleSaveBar', () => {
expect(screen.getByRole('button', { name: en['channel.module.save'] })).toBeDisabled();
expect(screen.getByRole('button', { name: en['channel.discard'] })).toBeDisabled();
});
+
+ it('shows why a save failed beside the buttons while the change is still unsaved', () => {
+ const { rerender } = render(
+ <ModuleSaveBar
+ dirty
+ error={'Lists hold at most 50 entries'}
+ onDiscard={noop}
+ onSave={noop}
+ />,
+ );
+
+ expect(screen.getByRole('alert')).toHaveTextContent('Lists hold at most 50 entries');
+
+ rerender(
+ <ModuleSaveBar
+ dirty={false}
+ error={'Lists hold at most 50 entries'}
+ onDiscard={noop}
+ onSave={noop}
+ />,
+ );
+ expect(screen.queryByRole('alert')).not.toBeInTheDocument();
+ });
});
diff --git a/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.tsx b/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.tsx
index 51c8a7641af..01eb80077be 100644
--- a/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.tsx
+++ b/src/features/AgentChannel/PlatformDetail/ModuleSaveBar.tsx
@@ -4,9 +4,13 @@ import { Button, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+
interface ModuleSaveBarProps {
dirty: boolean;
disabled?: boolean;
+ /** Why the last Save failed; shown under the buttons while the block still holds the unsaved change. */
+ error?: string;
onDiscard: () => void;
onSave: () => void;
/** Blocks only Save, e.g. while a field is invalid; Discard stays available. */
@@ -22,31 +26,34 @@ interface ModuleSaveBarProps {
* With a change pending it says so and offers to put the block back.
*/
export const ModuleSaveBar = memo<ModuleSaveBarProps>(
- ({ dirty, disabled, onDiscard, onSave, saveDisabled, saving }) => {
+ ({ dirty, disabled, error, onDiscard, onSave, saveDisabled, saving }) => {
const { t: _t } = useTranslation('agent');
const t = _t as (key: string) => string;
return (
- <Flexbox horizontal align={'center'} gap={8}>
- {dirty && (
- <Text fontSize={12} type={'warning'}>
- {t('channel.module.unsaved')}
- </Text>
- )}
- {dirty && (
- <Button disabled={disabled || saving} size={'small'} type={'text'} onClick={onDiscard}>
- {t('channel.discard')}
+ <Flexbox align={'flex-end'} gap={4}>
+ <Flexbox horizontal align={'center'} gap={8}>
+ {dirty && (
+ <Text fontSize={12} type={'warning'}>
+ {t('channel.module.unsaved')}
+ </Text>
+ )}
+ {dirty && (
+ <Button disabled={disabled || saving} size={'small'} type={'text'} onClick={onDiscard}>
+ {t('channel.discard')}
+ </Button>
+ )}
+ <Button
+ disabled={disabled || saveDisabled || !dirty}
+ loading={saving}
+ size={'small'}
+ type={dirty ? 'primary' : 'default'}
+ onClick={onSave}
+ >
+ {t('channel.module.save')}
</Button>
- )}
- <Button
- disabled={disabled || saveDisabled || !dirty}
- loading={saving}
- size={'small'}
- type={dirty ? 'primary' : 'default'}
- onClick={onSave}
- >
- {t('channel.module.save')}
- </Button>
+ </Flexbox>
+ {dirty && error && <InlineErrorText>{error}</InlineErrorText>}
</Flexbox>
);
},
diff --git a/src/features/AgentChannel/PlatformDetail/index.save.test.tsx b/src/features/AgentChannel/PlatformDetail/index.save.test.tsx
index 261b88f5a56..26bc23c8838 100644
--- a/src/features/AgentChannel/PlatformDetail/index.save.test.tsx
+++ b/src/features/AgentChannel/PlatformDetail/index.save.test.tsx
@@ -111,6 +111,24 @@ describe('PlatformDetail saving', () => {
expect(patch).not.toHaveProperty('applicationId');
});
+ it('keeps a failed reply-setting autosave on screen after the switch rolls back', async () => {
+ mocks.updateBotProvider.mockRejectedValue(new Error('network down'));
+ render(<PlatformDetail agentId="agt" currentConfig={config} platformDef={platformDef} />, {
+ wrapper: MemoryRouter,
+ });
+
+ openTab(en['channel.tab.reply']);
+ fireEvent.click(screen.getByRole('switch', { name: new RegExp(en['channel.showUsageStats']) }));
+
+ await waitFor(() => expect(mocks.updateBotProvider).toHaveBeenCalledTimes(1), {
+ timeout: 3000,
+ });
+ // The post-save recompute is not a user edit, so it must not clear the failure.
+ expect(await screen.findByText(en['channel.updateFailedRetry'])).toBeInTheDocument();
+ await new Promise((resolve) => setTimeout(resolve, 50));
+ expect(screen.getByText(en['channel.updateFailedRetry'])).toBeInTheDocument();
+ });
+
it('saves the wake switch by itself as soon as it is turned off, and hides the options', async () => {
render(<PlatformDetail agentId="agt" currentConfig={config} platformDef={platformDef} />, {
wrapper: MemoryRouter,
diff --git a/src/features/AgentChannel/PlatformDetail/index.tsx b/src/features/AgentChannel/PlatformDetail/index.tsx
index adc57747d8c..b000888ac3f 100644
--- a/src/features/AgentChannel/PlatformDetail/index.tsx
+++ b/src/features/AgentChannel/PlatformDetail/index.tsx
@@ -38,6 +38,7 @@ import { ChannelHero } from './ChannelHero';
import { ChannelTabBar } from './ChannelTabBar';
import {
type ChannelTab,
+ type ChannelValues,
defaultTab,
footerSaveHidden,
isRecordTab,
@@ -60,6 +61,7 @@ import { QuickView } from './QuickView';
import { hasPendingChanges, pickKeys, replyDiffers } from './replySettings';
import { createSaveCoordinator } from './saveCoordinator';
import {
+ clearEditedModuleErrors,
dirtyModuleIds,
discardPatch,
resolveSaveModules,
@@ -244,7 +246,10 @@ const PlatformDetail = memo<PlatformDetailProps>(
),
[platformDef.schema],
);
- const valuesChangedRef = useRef<() => void>(undefined);
+ /** Recomputes pending state; `userEdit` is true only for a real edit (FormKit's user source). */
+ const valuesChangedRef = useRef<(userEdit?: boolean) => void>(undefined);
+ /** Form values seen by the last change, to tell which module an edit touched */
+ const lastValuesRef = useRef<ChannelValues>(undefined);
const autoSavingRef = useRef(false);
// Reply autosaves and the Save button both write the whole settings column;
// this keeps them from overlapping (see `createSaveCoordinator`).
@@ -257,7 +262,7 @@ const PlatformDetail = memo<PlatformDetailProps>(
const saveQueueRef = useRef<Promise<void>>(undefined);
const form = useForm<ChannelFormValues>({
initialValues: getFormValues(platformDef.schema, currentConfig, heterogeneous),
- onValuesChange: () => valuesChangedRef.current?.(),
+ onValuesChange: () => valuesChangedRef.current?.(true),
});
// Which tab is open, kept in `?tab=` so a reload or a shared link lands on it. No value
@@ -344,6 +349,8 @@ const PlatformDetail = memo<PlatformDetailProps>(
const [showConnected, setShowConnected] = useState(false);
const [testing, setTesting] = useState(false);
const [testResult, setTestResult] = useState<TestResult>();
+ // A block's failed Save is shown beside that block's Save button, not as a toast: the page stays open.
+ const [moduleErrors, setModuleErrors] = useState<Partial<Record<SaveModuleId, string>>>({});
// Platform-specific extras (e.g. iMessage's BlueBubbles bridge) register a
// side-effect here so it runs as part of the single "Save Configuration"
@@ -518,7 +525,8 @@ const PlatformDetail = memo<PlatformDetailProps>(
storedRef.current = { ...stored, settings: settings as ChannelFormValues['settings'] };
toast.success(t('channel.saved'));
} catch {
- toast.error(t('channel.updateFailed'));
+ // Autosaved switches have no Save button; the top notice is where save failures show
+ setSaveResult({ hint: t('channel.updateFailedRetry'), type: 'error' });
form.setValues({
settings: {
...form.getValues().settings,
@@ -542,24 +550,35 @@ const PlatformDetail = memo<PlatformDetailProps>(
writeDisabled,
]);
- const handleValuesChange = useCallback(() => {
- const values = form.getValues();
- setIsDirty(hasPendingChanges(values, storedRef.current, replyKeys));
- setDirtyModules(dirtyModuleIds(saveModules, values, storedRef.current));
+ const handleValuesChange = useCallback(
+ (userEdit?: boolean) => {
+ const values = form.getValues();
+ setIsDirty(hasPendingChanges(values, storedRef.current, replyKeys));
+ setDirtyModules(dirtyModuleIds(saveModules, values, storedRef.current));
+ // An edit after a failed save makes that failure stale; the next save reports afresh.
+ // Post-save recomputes (no user edit) must keep the failure they just reported.
+ const previous = lastValuesRef.current;
+ lastValuesRef.current = values;
+ if (userEdit) {
+ setSaveResult((current) => (current?.type === 'error' ? undefined : current));
+ setModuleErrors((prev) => clearEditedModuleErrors(prev, saveModules, values, previous));
+ }
- if (!currentConfig || writeDisabled || replyKeys.length === 0) return;
- if (!replyDiffers(values.settings, storedRef.current.settings, replyKeys)) return;
+ if (!currentConfig || writeDisabled || replyKeys.length === 0) return;
+ if (!replyDiffers(values.settings, storedRef.current.settings, replyKeys)) return;
- saveCoordinator.scheduleAuto(saveReplySettings, 400);
- }, [
- currentConfig,
- form,
- replyKeys,
- saveCoordinator,
- saveModules,
- saveReplySettings,
- writeDisabled,
- ]);
+ saveCoordinator.scheduleAuto(saveReplySettings, 400);
+ },
+ [
+ currentConfig,
+ form,
+ replyKeys,
+ saveCoordinator,
+ saveModules,
+ saveReplySettings,
+ writeDisabled,
+ ],
+ );
useEffect(() => {
valuesChangedRef.current = handleValuesChange;
}, [handleValuesChange]);
@@ -620,7 +639,10 @@ const PlatformDetail = memo<PlatformDetailProps>(
const overLimit = findOverLimitSettings(platformDef.schema, settings);
if (overLimit.length > 0) {
const max = Math.min(...overLimit.map((entry) => entry.max));
- toast.error(t('channel.channelListLimit').replace('{{max}}', String(max)));
+ setSaveResult({
+ hint: t('channel.channelListLimit').replace('{{max}}', String(max)),
+ type: 'error',
+ });
setSaving(false);
return;
}
@@ -826,13 +848,17 @@ const PlatformDetail = memo<PlatformDetailProps>(
setTestResult(undefined);
}, [currentConfig, form, heterogeneous, platformDef.schema]);
- const handleFormValuesChange = handleValuesChange;
+ const handleFormValuesChange = useCallback(
+ () => handleValuesChange(true),
+ [handleValuesChange],
+ );
// Put one block back as stored; every other block keeps its edits.
const discardModule = useCallback(
(id: SaveModuleId) => {
const block = saveModules.find((m) => m.id === id);
if (!block) return;
+ setModuleErrors((prev) => ({ ...prev, [id]: undefined }));
const stored = storedRef.current;
if (block.kind === 'credentials') {
@@ -864,9 +890,13 @@ const PlatformDetail = memo<PlatformDetailProps>(
const block = saveModules.find((m) => m.id === id);
if (!block || !currentConfig || writeDisabled) return Promise.resolve();
+ const setModuleError = (message?: string) =>
+ setModuleErrors((prev) => ({ ...prev, [id]: message }));
+
const run = async () => {
await saveCoordinator.beginExplicit();
setSavingModule(id);
+ setModuleError();
try {
const paths =
@@ -916,7 +946,7 @@ const PlatformDetail = memo<PlatformDetailProps>(
const overLimit = findOverLimitSettings(platformDef.schema, settings);
if (overLimit.length > 0) {
const max = Math.min(...overLimit.map((entry) => entry.max));
- toast.error(t('channel.channelListLimit').replace('{{max}}', String(max)));
+ setModuleError(t('channel.channelListLimit').replace('{{max}}', String(max)));
return;
}
@@ -929,7 +959,7 @@ const PlatformDetail = memo<PlatformDetailProps>(
setSaveResult({ errorDetail: e?.message || String(e), type: 'error' });
setSaving(false);
} else {
- toast.error(t('channel.updateFailed'));
+ setModuleError(t('channel.updateFailedRetry'));
}
} finally {
saveCoordinator.endExplicit();
@@ -964,13 +994,22 @@ const PlatformDetail = memo<PlatformDetailProps>(
currentConfig
? {
dirty: dirtyModules,
+ errors: moduleErrors,
ids: saveModules.map((module) => module.id),
onDiscard: discardModule,
onSave: (id) => void saveModule(id),
saving: savingModule,
}
: undefined,
- [currentConfig, dirtyModules, discardModule, saveModule, saveModules, savingModule],
+ [
+ currentConfig,
+ dirtyModules,
+ discardModule,
+ moduleErrors,
+ saveModule,
+ saveModules,
+ savingModule,
+ ],
);
const handlePaidFeatureUpgrade = useCallback(() => {
diff --git a/src/features/AgentChannel/PlatformDetail/saveModules.test.ts b/src/features/AgentChannel/PlatformDetail/saveModules.test.ts
index f2adc2cc5bd..0d85babed2c 100644
--- a/src/features/AgentChannel/PlatformDetail/saveModules.test.ts
+++ b/src/features/AgentChannel/PlatformDetail/saveModules.test.ts
@@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest';
import type { FieldSchema } from '@/server/services/bot/platforms/types';
import {
+ clearEditedModuleErrors,
dirtyModuleIds,
discardPatch,
moduleDirty,
@@ -170,6 +171,26 @@ describe('module changes', () => {
});
});
+describe('clearEditedModuleErrors', () => {
+ const modules = resolveSaveModules(groups(['botWakeWindowSeconds', 'charLimit']), false);
+ const before = { settings: { botWakeWindowSeconds: 300, charLimit: 2000 } };
+ const errors = { 'advanced': 'advanced failed', 'wake-pace': 'pace failed' };
+
+ it('clears only the failure of the module the edit touched', () => {
+ // charLimit belongs to `advanced`; the `wake-pace` failure was not touched.
+ const after = { settings: { ...before.settings, charLimit: 3000 } };
+
+ expect(clearEditedModuleErrors(errors, modules, after, before)).toEqual({
+ 'wake-pace': 'pace failed',
+ });
+ });
+
+ it('keeps every failure when nothing changed or the previous values are unknown', () => {
+ expect(clearEditedModuleErrors(errors, modules, before, before)).toBe(errors);
+ expect(clearEditedModuleErrors(errors, modules, before, undefined)).toBe(errors);
+ });
+});
+
describe('settingsToSave', () => {
const modules = resolveSaveModules(
groups(['botWakeDisabled', 'botWakeScope', 'botWakeWindowSeconds', 'charLimit']),
diff --git a/src/features/AgentChannel/PlatformDetail/saveModules.ts b/src/features/AgentChannel/PlatformDetail/saveModules.ts
index 1356338d341..0671a5304f0 100644
--- a/src/features/AgentChannel/PlatformDetail/saveModules.ts
+++ b/src/features/AgentChannel/PlatformDetail/saveModules.ts
@@ -171,3 +171,22 @@ export const settingsToSave = (
*/
export const discardPatch = (module: SaveModule, stored: ChannelValues): Record<string, unknown> =>
Object.fromEntries(module.keys.map((key) => [key, stored.settings?.[key]]));
+
+/**
+ * Drop the save errors of the modules an edit touched, keeping other modules' failures:
+ * editing one block makes only its own failure stale. `previous` is the form values
+ * before the edit; without it nothing is cleared.
+ */
+export const clearEditedModuleErrors = (
+ errors: Partial<Record<SaveModuleId, string>>,
+ modules: SaveModule[],
+ values: ChannelValues,
+ previous: ChannelValues | undefined,
+): Partial<Record<SaveModuleId, string>> => {
+ if (!previous) return errors;
+ const edited = dirtyModuleIds(modules, values, previous).filter((id) => errors[id]);
+ if (edited.length === 0) return errors;
+ return Object.fromEntries(
+ Object.entries(errors).filter(([id]) => !edited.includes(id as SaveModuleId)),
+ );
+};
diff --git a/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx b/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx
index 89b9b2fb8f0..ccff03dd297 100644
--- a/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx
+++ b/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx
@@ -10,6 +10,7 @@ import { useTranslation } from 'react-i18next';
import { FormInput, FormPassword } from '@/components/FormInput';
import InfoTooltip from '@/components/InfoTooltip';
+import InlineErrorText from '@/components/InlineErrorText';
import { useClientDataSWR } from '@/libs/swr';
import { imessageKeys } from '@/libs/swr/keys';
import { gatewayConnectionService } from '@/services/electron/gatewayConnection';
@@ -94,6 +95,7 @@ const CredentialExtras = memo(() => {
const [testStatus, setTestStatus] = useState<TestStatus>('idle');
const [testing, setTesting] = useState(false);
const [toggling, setToggling] = useState(false);
+ const [bridgeError, setBridgeError] = useState<{ detail?: string; summary: string } | null>(null);
const [optimisticEnabled, setOptimisticEnabled] = useState<boolean | null>(null);
// Seed the Server URL input from the saved config once it loads, unless the
@@ -185,11 +187,16 @@ const CredentialExtras = memo(() => {
// starts/stops the bridge immediately, so the toggle reflects the real state.
const handleToggleEnabled = async (next: boolean) => {
setToggling(true);
+ setBridgeError(null);
setOptimisticEnabled(next);
try {
await persistConfig(next);
} catch (error) {
- toast.error(getErrorMessage(error));
+ console.error('[iMessage] Failed to toggle bridge:', error);
+ setBridgeError({
+ detail: getErrorMessage(error),
+ summary: t('channel.imessage.bridgeToggleFailedRetry'),
+ });
} finally {
setOptimisticEnabled(null);
setToggling(false);
@@ -202,6 +209,7 @@ const CredentialExtras = memo(() => {
const handleTest = async () => {
setTesting(true);
+ setBridgeError(null);
try {
const config = buildBridgeConfig(enabled);
await imessageBridgeService.testConfig(config);
@@ -209,7 +217,11 @@ const CredentialExtras = memo(() => {
toast.success(t('channel.imessage.bridgeTestSuccess'));
} catch (error) {
setTestStatus('failed');
- toast.error(`${t('channel.imessage.bridgeTestFailed')}: ${getErrorMessage(error)}`);
+ console.error('[iMessage] Bridge test failed:', error);
+ setBridgeError({
+ detail: getErrorMessage(error),
+ summary: t('channel.imessage.bridgeTestFailedRetry'),
+ });
} finally {
setTesting(false);
}
@@ -266,6 +278,7 @@ const CredentialExtras = memo(() => {
onChange={(value) => {
setServerUrlInput(value);
setServerUrlDirty(true);
+ setBridgeError(null);
setTestStatus('idle');
}}
/>
@@ -286,6 +299,7 @@ const CredentialExtras = memo(() => {
value={passwordInput}
onChange={(value) => {
setPasswordInput(value);
+ setBridgeError(null);
setTestStatus('idle');
}}
/>
@@ -331,6 +345,9 @@ const CredentialExtras = memo(() => {
{t('channel.imessage.bridgeTest')}
</Button>
</Flexbox>
+ {bridgeError && (
+ <InlineErrorText detail={bridgeError.detail}>{bridgeError.summary}</InlineErrorText>
+ )}
</Flexbox>
</Flexbox>
);
diff --git a/src/features/AgentChannel/platform/line/CredentialExtras.tsx b/src/features/AgentChannel/platform/line/CredentialExtras.tsx
index 3c69058366f..0d19b4c9b1d 100644
--- a/src/features/AgentChannel/platform/line/CredentialExtras.tsx
+++ b/src/features/AgentChannel/platform/line/CredentialExtras.tsx
@@ -7,6 +7,7 @@ import { Download } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import { useAgentStore } from '@/store/agent';
import type { PlatformCredentialExtrasProps } from '../types';
@@ -18,6 +19,7 @@ const CredentialExtras = memo<PlatformCredentialExtrasProps>(({ disabled }) => {
const form = useFormInstance();
const channelAccessToken = useWatch(form, 'credentials.channelAccessToken') as string | undefined;
const [loading, setLoading] = useState(false);
+ const [fetchError, setFetchError] = useState<{ detail: string; summary: string } | null>(null);
const lineFetchBotInfo = useAgentStore((s) => s.lineFetchBotInfo);
@@ -32,6 +34,7 @@ const CredentialExtras = memo<PlatformCredentialExtrasProps>(({ disabled }) => {
return;
}
setLoading(true);
+ setFetchError(null);
try {
const info = await lineFetchBotInfo(token);
form.setValue('applicationId', info.userId);
@@ -45,26 +48,34 @@ const CredentialExtras = memo<PlatformCredentialExtrasProps>(({ disabled }) => {
);
} catch (error) {
const text = error instanceof Error ? error.message : String(error);
- toast.error(`${t('channel.line.fetchBotInfoFailed')}: ${text}`);
+ console.error('[LINE] Failed to fetch bot info:', error);
+ setFetchError({ detail: text, summary: t('channel.line.fetchBotInfoFailedRetry') });
} finally {
setLoading(false);
}
};
return (
- <Button
- icon={<Download size={14} />}
- loading={loading}
- size="small"
- style={{ alignSelf: 'flex-start', marginBlockEnd: 12 }}
- type="default"
- disabled={
- disabled || !channelAccessToken?.trim() || isMaskedBotCredential(channelAccessToken)
- }
- onClick={handleFetch}
- >
- {t('channel.line.fetchBotInfo')}
- </Button>
+ <>
+ <Button
+ icon={<Download size={14} />}
+ loading={loading}
+ size="small"
+ style={{ alignSelf: 'flex-start', marginBlockEnd: 12 }}
+ type="default"
+ disabled={
+ disabled || !channelAccessToken?.trim() || isMaskedBotCredential(channelAccessToken)
+ }
+ onClick={handleFetch}
+ >
+ {t('channel.line.fetchBotInfo')}
+ </Button>
+ {fetchError && (
+ <div style={{ marginBlockEnd: 12 }}>
+ <InlineErrorText detail={fetchError.detail}>{fetchError.summary}</InlineErrorText>
+ </div>
+ )}
+ </>
);
});
diff --git a/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx b/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx
index ab01181b7cc..c2943a42bf0 100644
--- a/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx
+++ b/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx
@@ -1,9 +1,13 @@
'use client';
-import { Button, Flexbox, Input, Text, TextArea, toast, useModalContext } from '@lobehub/ui';
-import { memo, useState } from 'react';
+import { Button, Flexbox, Input, Text, TextArea, useModalContext } from '@lobehub/ui';
+import { memo } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+
+import { useAddTaskForm } from './useAddTaskForm';
+
/**
* Add a Task to a running goal. A task the coordinator will spend rounds on
* deserves a titled brief, not a one-line inline input — the modal gives the
@@ -17,26 +21,10 @@ export interface AddTaskContentProps {
const AddTaskContent = memo<AddTaskContentProps>(({ onAdd }) => {
const { t } = useTranslation('chat');
const { close } = useModalContext();
- const [title, setTitle] = useState('');
- const [description, setDescription] = useState('');
- const [busy, setBusy] = useState(false);
-
- const submit = async () => {
- const trimmed = title.trim();
- if (!trimmed || busy) return;
- setBusy(true);
- try {
- await onAdd(trimmed, description.trim() || undefined);
- close();
- } catch (error) {
- // Keep the form (and the user's input) open — a silent close would be
- // indistinguishable from success.
- console.error('[AddGoalTask] Failed to add task:', error);
- toast.error(t('goalProcess.addTask.failed'));
- } finally {
- setBusy(false);
- }
- };
+ const { busy, description, error, setDescription, setTitle, submit, title } = useAddTaskForm({
+ onAdd,
+ onDone: () => close(),
+ });
return (
<Flexbox gap={16} paddingBlock={'4px 8px'}>
@@ -63,6 +51,7 @@ const AddTaskContent = memo<AddTaskContentProps>(({ onAdd }) => {
onChange={(e) => setDescription(e.target.value)}
/>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={() => close()}>{t('cancel', { ns: 'common' })}</Button>
<Button
diff --git a/src/features/AgentGoals/AddTaskModal/useAddTaskForm.test.ts b/src/features/AgentGoals/AddTaskModal/useAddTaskForm.test.ts
new file mode 100644
index 00000000000..9c9650995d1
--- /dev/null
+++ b/src/features/AgentGoals/AddTaskModal/useAddTaskForm.test.ts
@@ -0,0 +1,52 @@
+import { act, renderHook } from '@testing-library/react';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { useAddTaskForm } from './useAddTaskForm';
+
+vi.mock('react-i18next', () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+}));
+
+describe('useAddTaskForm', () => {
+ beforeEach(() => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ });
+
+ it('keeps the typed title and exposes an inline error when the add fails, then clears it on edit', async () => {
+ const onAdd = vi.fn().mockRejectedValue(new Error('boom'));
+ const onDone = vi.fn();
+ const { result } = renderHook(() => useAddTaskForm({ onAdd, onDone }));
+
+ act(() => result.current.setTitle('Ship it'));
+ await act(() => result.current.submit());
+
+ expect(result.current.error).toEqual({ detail: 'boom', summary: 'goalProcess.addTask.failed' });
+ expect(result.current.title).toBe('Ship it');
+ expect(result.current.busy).toBe(false);
+ expect(onDone).not.toHaveBeenCalled();
+
+ act(() => result.current.setTitle('Ship it now'));
+ expect(result.current.error).toBeNull();
+
+ await act(() => result.current.submit());
+ expect(result.current.error).toEqual({ detail: 'boom', summary: 'goalProcess.addTask.failed' });
+ act(() => result.current.setDescription('More detail'));
+ expect(result.current.error).toBeNull();
+ });
+
+ it('submits the trimmed title and finishes on success', async () => {
+ const onAdd = vi.fn().mockResolvedValue(undefined);
+ const onDone = vi.fn();
+ const { result } = renderHook(() => useAddTaskForm({ onAdd, onDone }));
+
+ act(() => {
+ result.current.setTitle(' Ship it ');
+ result.current.setDescription(' ');
+ });
+ await act(() => result.current.submit());
+
+ expect(onAdd).toHaveBeenCalledWith('Ship it', undefined);
+ expect(onDone).toHaveBeenCalledTimes(1);
+ expect(result.current.error).toBeNull();
+ });
+});
diff --git a/src/features/AgentGoals/AddTaskModal/useAddTaskForm.ts b/src/features/AgentGoals/AddTaskModal/useAddTaskForm.ts
new file mode 100644
index 00000000000..269597c6d74
--- /dev/null
+++ b/src/features/AgentGoals/AddTaskModal/useAddTaskForm.ts
@@ -0,0 +1,49 @@
+import { useState } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
+
+interface UseAddTaskFormParams {
+ onAdd: (title: string, description?: string) => Promise<void>;
+ /** Called after a successful add, typically to close the modal */
+ onDone: () => void;
+}
+
+export const useAddTaskForm = ({ onAdd, onDone }: UseAddTaskFormParams) => {
+ const { t } = useTranslation('chat');
+ const [title, setTitleState] = useState('');
+ const [description, setDescriptionState] = useState('');
+ const [busy, setBusy] = useState(false);
+ /** Add failure, shown above the buttons: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
+
+ const setTitle = (value: string) => {
+ setTitleState(value);
+ setError(null);
+ };
+
+ const setDescription = (value: string) => {
+ setDescriptionState(value);
+ setError(null);
+ };
+
+ const submit = async () => {
+ const trimmed = title.trim();
+ if (!trimmed || busy) return;
+ setBusy(true);
+ setError(null);
+ try {
+ await onAdd(trimmed, description.trim() || undefined);
+ onDone();
+ } catch (err) {
+ // Keep the form (and the user's input) open — a silent close would be
+ // indistinguishable from success.
+ console.error('[AddGoalTask] Failed to add task:', err);
+ setError(toInlineError(t('goalProcess.addTask.failed'), err));
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ return { busy, description, error, setDescription, setTitle, submit, title };
+};
diff --git a/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx b/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx
index e58ba6d6373..3e40896c3ab 100644
--- a/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx
+++ b/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx
@@ -34,6 +34,8 @@ import { type KeyboardEvent, memo, useCallback, useEffect, useRef, useState } fr
import { useTranslation } from 'react-i18next';
import GeneratingBorder from '@/components/GeneratingBorder';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import {
CriterionList,
CriterionRequiredChip,
@@ -254,6 +256,8 @@ const CreateGoalContent = memo<CreateGoalContentProps>((props) => {
const { allowed: canCreate, reason } = usePermission('create_content');
const [isCreating, setIsCreating] = useState(false);
+ /** Create failure, shown above the footer buttons: the modal stays on the review step with the user's plan. */
+ const [createError, setCreateError] = useState<InlineErrorState | null>(null);
// Drafting failed, so the review step offers to draft again.
const [generateFailed, setGenerateFailed] = useState(false);
// The stopgap title a failed draft leaves behind; still unedited at submit,
@@ -420,6 +424,7 @@ const CreateGoalContent = memo<CreateGoalContentProps>((props) => {
instruction,
});
+ setCreateError(null);
setIsCreating(true);
try {
const { agentId: goalAgentId, taskAgentId } = buildGoalAgents(plannerId, executorId);
@@ -463,7 +468,7 @@ const CreateGoalContent = memo<CreateGoalContentProps>((props) => {
onCreated?.({ agentId: graph.goal.agentId ?? undefined, goalId: graph.goal.id });
} catch (error) {
console.error('[CreateGoalContent] create failed:', error);
- toast.error(t('createGoal.createFailed'));
+ setCreateError(toInlineError(t('createGoal.createFailedRetry'), error));
} finally {
setIsCreating(false);
}
@@ -798,6 +803,14 @@ const CreateGoalContent = memo<CreateGoalContentProps>((props) => {
</Flexbox>
)}
+ {createError && (
+ <div
+ style={{ flexShrink: 0, paddingBlock: '8px 0', paddingInline: densityVars.cardPadding }}
+ >
+ <InlineErrorText detail={createError.detail}>{createError.summary}</InlineErrorText>
+ </div>
+ )}
+
<Flexbox horizontal align={'center'} className={styles.footer} justify={'space-between'}>
<Flexbox horizontal align={'center'} gap={8} wrap={'wrap'}>
{step === 'review' && (
diff --git a/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx b/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx
index 3f22167ac58..f8b3bf1d5de 100644
--- a/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx
+++ b/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx
@@ -9,13 +9,14 @@ import {
type ModalInstance,
Select,
Text,
- toast,
useModalContext,
} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useGoalStore } from '@/store/goal';
/**
@@ -36,12 +37,15 @@ const DeclareMetricContent = memo<{ goalId: string; initial?: GoalMetricCriterio
const [op, setOp] = useState<GoalMetricComparison>(initial?.op ?? 'gte');
const [target, setTarget] = useState(initial ? String(initial.target) : '');
const [busy, setBusy] = useState(false);
+ /** Declare failure, shown above the submit button: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const submit = async () => {
const trimmedKey = key.trim();
const parsedTarget = Number(target);
if (!trimmedKey || !Number.isFinite(parsedTarget) || busy) return;
setBusy(true);
+ setError(null);
try {
await declareGoalMetric(goalId, {
key: trimmedKey,
@@ -50,10 +54,10 @@ const DeclareMetricContent = memo<{ goalId: string; initial?: GoalMetricCriterio
title: title.trim() || undefined,
});
close();
- } catch (error) {
+ } catch (err) {
// Keep the form open — a silent close would be indistinguishable from success.
- console.error('[NorthStar] failed to declare metric:', error);
- toast.error(t('goalProcess.northStar.declare.failed'));
+ console.error('[NorthStar] failed to declare metric:', err);
+ setError(toInlineError(t('goalProcess.northStar.declare.failedRetry'), err));
} finally {
setBusy(false);
}
@@ -70,7 +74,10 @@ const DeclareMetricContent = memo<{ goalId: string; initial?: GoalMetricCriterio
disabled={!!initial}
placeholder={t('goalProcess.northStar.declare.keyPlaceholder')}
value={key}
- onChange={(e) => setKey(e.target.value)}
+ onChange={(e) => {
+ setKey(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
<Flexbox gap={6}>
@@ -104,11 +111,15 @@ const DeclareMetricContent = memo<{ goalId: string; initial?: GoalMetricCriterio
<Input
placeholder={'10000'}
value={target}
- onChange={(e) => setTarget(e.target.value)}
onPressEnter={() => void submit()}
+ onChange={(e) => {
+ setTarget(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal justify={'flex-end'}>
<Button
disabled={!key.trim() || !Number.isFinite(Number(target)) || target.trim() === ''}
diff --git a/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx b/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx
index f59bb2257a7..6281ac706f1 100644
--- a/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx
+++ b/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx
@@ -7,13 +7,14 @@ import {
Input,
type ModalInstance,
Text,
- toast,
useModalContext,
} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useGoalStore } from '@/store/goal';
/**
@@ -29,19 +30,22 @@ const RecordObservationContent = memo<{ goalId: string; metricKey: string; metri
const [value, setValue] = useState('');
const [busy, setBusy] = useState(false);
+ /** Record failure, shown above the submit button: the modal stays open with the typed value. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const submit = async () => {
const parsed = Number(value);
if (!Number.isFinite(parsed) || value.trim() === '' || busy) return;
setBusy(true);
+ setError(null);
try {
// The clause's display name rides along so the series created by the
// first observation carries it too.
await recordGoalObservation(goalId, { key: metricKey, title: metricTitle, value: parsed });
close();
- } catch (error) {
- console.error('[NorthStar] failed to record observation:', error);
- toast.error(t('goalProcess.northStar.record.failed'));
+ } catch (err) {
+ console.error('[NorthStar] failed to record observation:', err);
+ setError(toInlineError(t('goalProcess.northStar.record.failedRetry'), err));
} finally {
setBusy(false);
}
@@ -57,10 +61,14 @@ const RecordObservationContent = memo<{ goalId: string; metricKey: string; metri
autoFocus
placeholder={'42180'}
value={value}
- onChange={(e) => setValue(e.target.value)}
onPressEnter={() => void submit()}
+ onChange={(e) => {
+ setValue(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal justify={'flex-end'}>
<Button
disabled={!Number.isFinite(Number(value)) || value.trim() === ''}
diff --git a/src/features/AgentIdentityModal/CreateContent.tsx b/src/features/AgentIdentityModal/CreateContent.tsx
index c6e522928b0..cc9aab5b14f 100644
--- a/src/features/AgentIdentityModal/CreateContent.tsx
+++ b/src/features/AgentIdentityModal/CreateContent.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Button, Center, Flexbox, toast, useModalContext } from '@lobehub/ui';
-import { memo } from 'react';
+import { Button, Flexbox, Text, useModalContext } from '@lobehub/ui';
+import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import AgentAvatar from '@/components/AgentAvatar';
@@ -33,6 +33,8 @@ const CreateAgentIdentityContent = memo<CreateAgentIdentityContentProps>(
// `visibility` is only the starting point; in a workspace the user sees and
// can change who the agent is for before it exists.
const visibilityState = useCreateVisibility({ groupId, visibility });
+ /** Shown under the avatar picker: the modal stays open, so the refusal belongs next to the control. */
+ const [avatarError, setAvatarError] = useState('');
const form = useCreateAgentIdentityForm({
groupId,
onCreated: (agentId) => {
@@ -44,7 +46,7 @@ const CreateAgentIdentityContent = memo<CreateAgentIdentityContentProps>(
return (
<Flexbox gap={20} padding={20}>
- <Center>
+ <Flexbox align={'center'} gap={8}>
<EmojiPicker
allowUpload
allowDelete={!!form.avatar}
@@ -71,14 +73,26 @@ const CreateAgentIdentityContent = memo<CreateAgentIdentityContentProps>(
<BlindBoxAvatar className={'lobe-emoji-picker-avatar'} name={form.name} size={72} />
)
}
- onChange={(avatar) => form.setAvatar(avatar)}
onDelete={() => form.setAvatar(undefined)}
+ onChange={(avatar) => {
+ setAvatarError('');
+ form.setAvatar(avatar);
+ }}
onUpload={async (file) => {
- if ((await form.uploadAvatar(file)) === 'tooLarge')
- toast.error(t('settingAgent.avatar.sizeExceeded', { ns: 'setting' }));
+ setAvatarError('');
+ const outcome = await form.uploadAvatar(file);
+ if (outcome === 'tooLarge')
+ setAvatarError(t('settingAgent.avatar.sizeExceeded', { ns: 'setting' }));
+ if (outcome === 'failed')
+ setAvatarError(t('settingAgent.avatar.uploadFailed', { ns: 'setting' }));
}}
/>
- </Center>
+ {avatarError && (
+ <Text fontSize={12} role={'alert'} type={'danger'}>
+ {avatarError}
+ </Text>
+ )}
+ </Flexbox>
<IdentityFields
form={form}
slugPlaceholder={t('settingAgent.slug.autoPlaceholder', { ns: 'setting' })}
diff --git a/src/features/AgentIdentityModal/useCreateAgentIdentityForm.test.ts b/src/features/AgentIdentityModal/useCreateAgentIdentityForm.test.ts
index 07eb8b64f21..2641ffc77e0 100644
--- a/src/features/AgentIdentityModal/useCreateAgentIdentityForm.test.ts
+++ b/src/features/AgentIdentityModal/useCreateAgentIdentityForm.test.ts
@@ -210,6 +210,24 @@ describe('useCreateAgentIdentityForm', () => {
expect(result.current.uploading).toBe(false);
});
+ it('reports a failed upload and keeps the previous avatar', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ mocks.uploadWithProgress.mockRejectedValueOnce(new Error('network'));
+ mocks.uploadWithProgress.mockResolvedValueOnce(undefined);
+ const { result } = setup();
+ const file = new File(['x'], 'a.png', { type: 'image/png' });
+
+ const outcomes: unknown[] = [];
+ await act(async () => {
+ outcomes.push(await result.current.uploadAvatar(file));
+ outcomes.push(await result.current.uploadAvatar(file));
+ });
+
+ expect(outcomes).toEqual(['failed', 'failed']);
+ expect(result.current.avatar).toBeUndefined();
+ expect(result.current.uploading).toBe(false);
+ });
+
it('refuses an image over the upload limit without uploading it', async () => {
const { result } = setup();
const file = new File([new Uint8Array(MAX_AVATAR_SIZE + 1)], 'big.png');
diff --git a/src/features/AgentIdentityModal/useCreateAgentIdentityForm.ts b/src/features/AgentIdentityModal/useCreateAgentIdentityForm.ts
index 340e2db6ceb..bdf4844163c 100644
--- a/src/features/AgentIdentityModal/useCreateAgentIdentityForm.ts
+++ b/src/features/AgentIdentityModal/useCreateAgentIdentityForm.ts
@@ -65,13 +65,19 @@ export const useCreateAgentIdentityForm = ({
const [saving, setSaving] = useState(false);
const [uploading, setUploading] = useState(false);
- const uploadAvatar = async (file: File): Promise<'tooLarge' | void> => {
+ /** Resolves to the reason the image was not applied, for the caller to show under the picker. */
+ const uploadAvatar = async (file: File): Promise<'failed' | 'tooLarge' | void> => {
if (file.size > MAX_AVATAR_SIZE) return 'tooLarge';
setUploading(true);
try {
const result = await uploadWithProgress({ file });
- if (result?.url) setAvatar(result.url);
+ // The upload store resolves without a URL when the upload fails.
+ if (!result?.url) return 'failed';
+ setAvatar(result.url);
+ } catch (error) {
+ console.error('[AgentIdentity] Avatar upload failed:', error);
+ return 'failed';
} finally {
setUploading(false);
}
diff --git a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx
index 357a6f4ab5b..cd0e72c8d3a 100644
--- a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx
+++ b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx
@@ -29,6 +29,7 @@ const analyzeIntentMock = vi.hoisted(() => vi.fn());
const synthesizeInstructionMock = vi.hoisted(() => vi.fn());
const navigateMock = vi.hoisted(() => vi.fn());
const toastSuccessMock = vi.hoisted(() => vi.fn());
+const toastErrorMock = vi.hoisted(() => vi.fn());
const createGoalModalMock = vi.hoisted(() => vi.fn());
const activeWorkspaceMock = vi.hoisted(() => ({
id: 'workspace-1' as string | undefined,
@@ -88,7 +89,7 @@ vi.mock('@lobehub/editor/react', async () => {
vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
- toast: { error: vi.fn(), success: toastSuccessMock },
+ toast: { error: toastErrorMock, success: toastSuccessMock },
}));
vi.mock('@/features/EditorCanvas', () => ({
@@ -315,6 +316,7 @@ describe('CreateTaskInlineEntry', () => {
navigateMock.mockReset();
locationMock.state = undefined;
toastSuccessMock.mockReset();
+ toastErrorMock.mockReset();
createGoalModalMock.mockReset();
activeWorkspaceMock.id = 'workspace-1';
workspaceMembersMock.isLoading = false;
@@ -384,6 +386,22 @@ describe('CreateTaskInlineEntry', () => {
await waitFor(() => expect(createTaskMock).toHaveBeenCalledTimes(1));
});
+ it('shows a failed create inline next to the submit button and keeps the draft', async () => {
+ editorMarkdownMock.value = 'Write a project plan';
+ analyzeIntentMock.mockResolvedValue(clearReading);
+ createTaskMock.mockRejectedValueOnce(new Error('boom'));
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+
+ render(<CreateTaskInlineEntry variant="hero" />);
+ fireEvent.keyDown(screen.getByTestId('task-editor'), { key: 'Enter', metaKey: true });
+
+ // A corner toast is far from the composer and gone in seconds; the failure
+ // belongs on the surface that stays open with the user's draft.
+ expect(await screen.findByText('createTask.createFailedRetry')).toBeInTheDocument();
+ expect(toastErrorMock).not.toHaveBeenCalled();
+ expect(screen.getByTestId('task-editor')).toBeInTheDocument();
+ });
+
it('submits agent and member assignments together', async () => {
editorMarkdownMock.value = 'Coordinate the release';
render(<CreateTaskInlineEntry variant="hero" />);
diff --git a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
index 915739bc55b..55fbf7dd554 100644
--- a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
+++ b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
@@ -21,6 +21,8 @@ import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import GeneratingBorder from '@/components/GeneratingBorder';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { createGoalModal } from '@/features/AgentGoals/CreateGoalModal';
import { EditorCanvas } from '@/features/EditorCanvas';
import {
@@ -151,6 +153,8 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
const assigneeUserId = resolveMemberAssignee(memberChoice, defaultMemberAssignee);
const isMemberPending = memberChoice === undefined && isDefaultMemberPending;
const [instruction, setInstruction] = useState('');
+ /** Create failure, shown above the footer buttons: the composer keeps the draft so the user can retry. */
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
const [hasAttachments, setHasAttachments] = useState(false);
// Where this task will run, if not simply wherever the assignee agent runs.
// Undefined = inherit; it is only sent when the user actually pinned
@@ -410,6 +414,7 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
if (!canCreateTask) return;
const lexicalEditor = editor?.getLexicalEditor?.();
if (!lexicalEditor) return;
+ setSubmitError(null);
lexicalEditor.getEditorState().read(() => {
setInstruction($getRoot().getTextContent());
});
@@ -485,6 +490,7 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
// `createTask` keeps its rejecting contract (other callers rely on `catch`);
// handle the composer's own failure here so it isn't silent, keeping the
// draft intact (the reset only runs on success).
+ setSubmitError(null);
try {
const config = execution ? { execution: toTaskExecutionConfigPatch(execution) } : undefined;
const result = await createTask({
@@ -550,7 +556,7 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
identifier: result.identifier,
});
}
- } catch {
+ } catch (error) {
// Nothing was created, so the draft is still the user's work: put it
// back on disk to match the text the composer is still showing.
if (draftStorageKey && persistedDraft !== null) {
@@ -560,7 +566,8 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
/* storage unavailable — persistence is best-effort */
}
}
- toast.error(t('createTask.createFailed'));
+ console.error(error);
+ setSubmitError(toInlineError(t('createTask.createFailedRetry'), error));
}
},
[
@@ -818,6 +825,11 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
onContentChange={handleContentChange}
/>
</Flexbox>
+ {submitError && (
+ <div style={{ padding: '0 16px 8px' }}>
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ </div>
+ )}
<Flexbox
horizontal
align={'center'}
diff --git a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
index e02236eca18..c157bbb6501 100644
--- a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
+++ b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
@@ -12,7 +12,6 @@ import {
Flexbox,
Icon,
Text,
- toast,
useModalContext,
} from '@lobehub/ui';
import { Minimize2, Paperclip, TagIcon, X } from 'lucide-react';
@@ -20,6 +19,8 @@ import { type KeyboardEvent, memo, useCallback, useEffect, useRef, useState } fr
import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { EditorCanvas } from '@/features/EditorCanvas';
import {
getAttachmentFileIdsFromEditor,
@@ -110,6 +111,8 @@ const CreateTaskContent = memo<CreateTaskContentProps>(
const activeWorkspaceId = useActiveWorkspaceId();
const [title, setTitle] = useState('');
+ /** Create failure, shown above the footer buttons: the modal stays open with the user's draft. */
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
const [priority, setPriority] = useState(defaultPriority);
const isLabelsInit = useTaskStore(taskLabelSelectors.isLabelsInit);
const labelRegistry = useTaskStore(taskLabelSelectors.labels);
@@ -213,6 +216,7 @@ const CreateTaskContent = memo<CreateTaskContentProps>(
const hasFiles = getAttachmentFileIdsFromEditor(editor).length > 0;
if (!instruction && !title.trim() && !hasFiles) return;
+ setSubmitError(null);
const editorJson = editor?.getDocument?.('json') as unknown;
// Only present when the user pinned a run location / directory —
@@ -245,8 +249,9 @@ const CreateTaskContent = memo<CreateTaskContentProps>(
name: result.name ?? undefined,
});
}
- } catch {
- toast.error(t('createTask.createFailed'));
+ } catch (error) {
+ console.error(error);
+ setSubmitError(toInlineError(t('createTask.createFailedRetry'), error));
}
}, [
activeWorkspaceId,
@@ -335,9 +340,12 @@ const CreateTaskContent = memo<CreateTaskContentProps>(
outline: 'none',
padding: '4px 0',
}}
- onChange={(e) => setTitle(e.target.value)}
onFocus={handleTitleFocus}
onKeyDown={handleTitleKeyDown}
+ onChange={(e) => {
+ setTitle(e.target.value);
+ setSubmitError(null);
+ }}
/>
<Flexbox horizontal gap={4} style={{ flexShrink: 0 }}>
{showInlineToggle && (
@@ -369,6 +377,12 @@ const CreateTaskContent = memo<CreateTaskContentProps>(
</div>
</div>
+ {submitError && (
+ <div style={{ flexShrink: 0, padding: '0 16px 8px' }}>
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ </div>
+ )}
+
<Flexbox
horizontal
align={'center'}
diff --git a/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx b/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
index cf148744fa5..8655eb61ed3 100644
--- a/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
+++ b/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
@@ -10,12 +10,13 @@ import {
Icon,
ScrollArea,
Text,
- toast,
useModalContext,
} from '@lobehub/ui';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { densityVars } from '@/styles/densityVars';
import { STATUS_META } from './taskStatusMeta';
@@ -60,28 +61,30 @@ export interface TaskStatusCascadeItem {
/**
* Apply-and-close flow shared by the modal buttons: on failure the modal stays
- * open with an error toast so the user can retry or cancel explicitly, instead
+ * open with an inline error so the user can retry or cancel explicitly, instead
* of the rejection being silently discarded.
*/
export const useCascadeApply = (onApply: (includeSubtasks: boolean) => Promise<void>) => {
const { t } = useTranslation('chat');
const { close } = useModalContext();
const [loadingAction, setLoadingAction] = useState<'all' | 'parent' | null>(null);
+ const [error, setError] = useState<InlineErrorState | null>(null);
const handleApply = async (includeSubtasks: boolean) => {
setLoadingAction(includeSubtasks ? 'all' : 'parent');
+ setError(null);
try {
await onApply(includeSubtasks);
close();
} catch (error) {
console.error('[TaskStatusCascadeModal] Failed to apply status change:', error);
- toast.error(t('taskDetail.statusCascade.applyFailed'));
+ setError(toInlineError(t('taskDetail.statusCascade.applyFailedRetry'), error));
} finally {
setLoadingAction(null);
}
};
- return { handleApply, loadingAction };
+ return { error, handleApply, loadingAction };
};
const TaskStatusCascadeModalContent = ({
@@ -92,7 +95,7 @@ const TaskStatusCascadeModalContent = ({
}: TaskStatusCascadeModalContentProps) => {
const { t } = useTranslation('chat');
const { close, setCanDismissByClickOutside } = useModalContext();
- const { handleApply, loadingAction } = useCascadeApply(onApply);
+ const { error, handleApply, loadingAction } = useCascadeApply(onApply);
useEffect(() => {
setCanDismissByClickOutside(!loadingAction);
@@ -150,6 +153,7 @@ const TaskStatusCascadeModalContent = ({
);
})}
</ScrollArea>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<Flexbox horizontal className={styles.actions} gap={8} justify={'space-between'}>
<Button disabled={!!loadingAction} onClick={handleCancel}>
diff --git a/src/features/AgentTasks/features/useCascadeApply.test.ts b/src/features/AgentTasks/features/useCascadeApply.test.ts
index 303c5b04065..0d288c541e9 100644
--- a/src/features/AgentTasks/features/useCascadeApply.test.ts
+++ b/src/features/AgentTasks/features/useCascadeApply.test.ts
@@ -3,7 +3,6 @@ import { describe, expect, it, vi } from 'vitest';
import { useCascadeApply } from './TaskStatusCascadeModal';
-const toastError = vi.hoisted(() => vi.fn());
const modalContext = vi.hoisted(() => ({
close: vi.fn(),
setCanDismissByClickOutside: vi.fn(),
@@ -11,7 +10,6 @@ const modalContext = vi.hoisted(() => ({
vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
- toast: { error: toastError },
useModalContext: () => modalContext,
}));
@@ -20,7 +18,7 @@ vi.mock('react-i18next', () => ({
}));
describe('useCascadeApply', () => {
- it('keeps the modal open with an error toast on apply failure, then closes on retry success', async () => {
+ it('keeps the modal open with an inline error on apply failure, then closes on retry success', async () => {
vi.spyOn(console, 'error').mockImplementation(() => {});
const onApply = vi
.fn()
@@ -32,7 +30,10 @@ describe('useCascadeApply', () => {
// First attempt fails: the rejection is surfaced instead of discarded,
// and the modal is not closed so the user can retry or cancel.
await act(() => result.current.handleApply(true));
- expect(toastError).toHaveBeenCalledWith('taskDetail.statusCascade.applyFailed');
+ expect(result.current.error).toEqual({
+ detail: 'network error',
+ summary: 'taskDetail.statusCascade.applyFailedRetry',
+ });
expect(modalContext.close).not.toHaveBeenCalled();
await waitFor(() => expect(result.current.loadingAction).toBeNull());
@@ -40,5 +41,6 @@ describe('useCascadeApply', () => {
await act(() => result.current.handleApply(true));
expect(onApply).toHaveBeenCalledTimes(2);
expect(modalContext.close).toHaveBeenCalledTimes(1);
+ expect(result.current.error).toBeNull();
});
});
diff --git a/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx b/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx
index fdef176f9ae..62c82669e25 100644
--- a/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx
+++ b/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx
@@ -10,7 +10,6 @@ import {
Icon,
Spin,
Text,
- toast,
useModalContext,
} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
@@ -18,6 +17,8 @@ import { CircleCheck } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import SkeletonList from '@/features/NavPanel/components/SkeletonList';
import AgentItem from '@/features/PageEditor/Copilot/AgentSelector/AgentItem';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
@@ -74,6 +75,7 @@ const MoveTopicsContent = memo<MoveTopicsContentProps>(({ onMoved, sourceAgentId
const [step, setStep] = useState<Step>('pick');
const [search, setSearch] = useState('');
+ const [moveError, setMoveError] = useState<InlineErrorState | null>(null);
const [target, setTarget] = useState<{ id: string; title: string } | null>(null);
const batchMoveTopicsToAgent = useChatStore((s) => s.batchMoveTopicsToAgent);
@@ -155,6 +157,7 @@ const MoveTopicsContent = memo<MoveTopicsContentProps>(({ onMoved, sourceAgentId
id: agent.id,
title: agentDisplayName(agent, t('untitledAgent', { ns: 'chat' })),
});
+ setMoveError(null);
setStep('confirm');
}}
/>
@@ -162,6 +165,7 @@ const MoveTopicsContent = memo<MoveTopicsContentProps>(({ onMoved, sourceAgentId
const handleConfirm = async () => {
if (!target) return;
+ setMoveError(null);
setStep('moving');
// Lock dismissal so the move can't be interrupted mid-flight.
setCanDismissByClickOutside?.(false);
@@ -171,7 +175,7 @@ const MoveTopicsContent = memo<MoveTopicsContentProps>(({ onMoved, sourceAgentId
setStep('done');
} catch (error) {
console.error('[MoveTopics] move failed:', error);
- toast.error(t('management.moveModal.error'));
+ setMoveError(toInlineError(t('management.moveModal.moveFailedRetry'), error));
setStep('confirm');
} finally {
setCanDismissByClickOutside?.(true);
@@ -228,6 +232,9 @@ const MoveTopicsContent = memo<MoveTopicsContentProps>(({ onMoved, sourceAgentId
return (
<Flexbox gap={20} padding={24}>
<Text>{t('management.moveModal.confirmContent', { count, title: target?.title })}</Text>
+ {moveError && (
+ <InlineErrorText detail={moveError.detail}>{moveError.summary}</InlineErrorText>
+ )}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={() => setStep('pick')}>{t('management.moveModal.back')}</Button>
<Button type={'primary'} onClick={handleConfirm}>
diff --git a/src/features/AgentWebhook/WebhookFormModal.tsx b/src/features/AgentWebhook/WebhookFormModal.tsx
index 1f0d4428377..242db7764e1 100644
--- a/src/features/AgentWebhook/WebhookFormModal.tsx
+++ b/src/features/AgentWebhook/WebhookFormModal.tsx
@@ -26,6 +26,8 @@ import { CheckCircle2 } from 'lucide-react';
import { type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { inboundWebhookService } from '@/services/inboundWebhook';
import { KeyReveal } from './KeyReveal';
@@ -74,11 +76,14 @@ const WebhookForm = ({ agentId, item, onSaved }: WebhookFormProps) => {
source?.topicId && item?.topic ? item.topic : undefined,
);
const [saving, setSaving] = useState(false);
+ /** Save/create failure, shown above the submit button: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
// Set once a new webhook exists; the modal then shows its URL and its key, this one time.
const [created, setCreated] = useState<InboundWebhookItemWithSecret>();
const submit = async () => {
setSaving(true);
+ setError(null);
try {
const settings = {
autoApprove,
@@ -96,8 +101,11 @@ const WebhookForm = ({ agentId, item, onSaved }: WebhookFormProps) => {
onSaved(next.item);
setCreated(next);
}
- } catch {
- toast.error(t(item ? 'webhook.form.saveFailed' : 'webhook.form.createFailed'));
+ } catch (err) {
+ console.error(err);
+ setError(
+ toInlineError(t(item ? 'webhook.form.saveFailed' : 'webhook.form.createFailed'), err),
+ );
} finally {
setSaving(false);
}
@@ -176,6 +184,7 @@ const WebhookForm = ({ agentId, item, onSaved }: WebhookFormProps) => {
{t(autoApprove ? 'webhook.form.autoApprove.onHint' : 'webhook.form.autoApprove.offHint')}
</span>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Button block loading={saving} type={'primary'} onClick={submit}>
{t(item ? 'webhook.form.save' : 'webhook.form.create')}
</Button>
diff --git a/src/features/Auth/ResetPassword/ResetPasswordContent.tsx b/src/features/Auth/ResetPassword/ResetPasswordContent.tsx
index a6e77ede49a..aaf1ab5c14b 100644
--- a/src/features/Auth/ResetPassword/ResetPasswordContent.tsx
+++ b/src/features/Auth/ResetPassword/ResetPasswordContent.tsx
@@ -3,6 +3,8 @@ import { Form } from '@lobehub/ui/form';
import { Lock } from 'lucide-react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+
import { useResetPassword } from './useResetPassword';
interface ResetPasswordContentProps {
@@ -17,7 +19,7 @@ export const ResetPasswordContent = ({
onSuccessRedirect,
}: ResetPasswordContentProps) => {
const { t } = useTranslation('auth');
- const { form, loading } = useResetPassword({
+ const { form, formError, loading } = useResetPassword({
email,
onSuccessRedirect,
token,
@@ -27,7 +29,7 @@ export const ResetPasswordContent = ({
return (
<Block padding={24}>
<Text align={'center'} fontSize={16}>
- {t('betterAuth.resetPassword.invalidToken')}
+ {t('betterAuth.resetPassword.linkExpired')}
</Text>
</Block>
);
@@ -81,6 +83,7 @@ export const ResetPasswordContent = ({
}
/>
</Form.Field>
+ {formError && <InlineErrorText style={{ marginBlockEnd: 12 }}>{formError}</InlineErrorText>}
<Button block htmlType="submit" loading={loading} size="large" type="primary">
{t('betterAuth.resetPassword.submit')}
</Button>
diff --git a/src/features/Auth/ResetPassword/useResetPassword.test.ts b/src/features/Auth/ResetPassword/useResetPassword.test.ts
new file mode 100644
index 00000000000..56f5404524f
--- /dev/null
+++ b/src/features/Auth/ResetPassword/useResetPassword.test.ts
@@ -0,0 +1,60 @@
+import { act, renderHook } from '@testing-library/react';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { useResetPassword } from './useResetPassword';
+
+const mockResetPassword = vi.hoisted(() => vi.fn());
+const mockToastError = vi.hoisted(() => vi.fn());
+
+vi.mock('@/libs/better-auth/auth-client', () => ({ resetPassword: mockResetPassword }));
+
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ toast: { error: mockToastError, success: vi.fn() },
+}));
+
+vi.mock('react-i18next', () => ({
+ useTranslation: () => ({
+ t: (key: string, options?: { defaultValue?: string }) => options?.defaultValue ?? key,
+ }),
+}));
+
+const values = { confirmPassword: 'abc12345', newPassword: 'abc12345' };
+
+const submit = async (token: string | null) => {
+ const onSuccessRedirect = vi.fn();
+ const { result } = renderHook(() =>
+ useResetPassword({ email: '[email protected]', onSuccessRedirect, token }),
+ );
+ result.current.form.setValues(values);
+ await act(async () => {
+ await result.current.form.submit();
+ });
+ return { onSuccessRedirect, result };
+};
+
+describe('useResetPassword', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ });
+
+ it('tells the user to request a new link when the token has expired', async () => {
+ mockResetPassword.mockResolvedValue({ error: { code: 'INVALID_TOKEN', status: 400 } });
+
+ const { onSuccessRedirect, result } = await submit('expired-token');
+
+ expect(result.current.formError).toBe('betterAuth.resetPassword.linkExpired');
+ expect(onSuccessRedirect).not.toHaveBeenCalled();
+ expect(mockToastError).not.toHaveBeenCalled();
+ });
+
+ it('shows a network hint next to the submit button when the request throws', async () => {
+ mockResetPassword.mockRejectedValue(new Error('offline'));
+
+ const { result } = await submit('token');
+
+ expect(result.current.formError).toBe('betterAuth.errors.requestFailed');
+ expect(mockToastError).not.toHaveBeenCalled();
+ });
+});
diff --git a/src/features/Auth/ResetPassword/useResetPassword.ts b/src/features/Auth/ResetPassword/useResetPassword.ts
index 672a6c0b38b..90a7ffad1b5 100644
--- a/src/features/Auth/ResetPassword/useResetPassword.ts
+++ b/src/features/Auth/ResetPassword/useResetPassword.ts
@@ -5,6 +5,8 @@ import { useTranslation } from 'react-i18next';
import { resetPassword } from '@/libs/better-auth/auth-client';
+import { translateAuthError } from '../utils/translateAuthError';
+
interface ResetPasswordFormValues {
confirmPassword: string;
newPassword: string;
@@ -17,20 +19,29 @@ interface UseResetPasswordParams {
}
export const useResetPassword = ({ email, token, onSuccessRedirect }: UseResetPasswordParams) => {
- const { t } = useTranslation('auth');
+ const { t } = useTranslation(['auth', 'authError']);
const [loading, setLoading] = useState(false);
+ /** Shown above the submit button instead of a toast, cleared when the user edits a field */
+ const [formError, setFormError] = useState('');
const handleResetPassword = async (values: ResetPasswordFormValues) => {
if (!token) {
- toast.error(t('betterAuth.resetPassword.invalidToken'));
+ setFormError(t('betterAuth.resetPassword.linkExpired'));
return;
}
setLoading(true);
+ setFormError('');
try {
const result = await resetPassword({ newPassword: values.newPassword, token });
if (result.error) {
- toast.error(result.error.message || t('betterAuth.resetPassword.error'));
+ console.error('Reset password error:', result.error);
+ // An expired or reused link is the common failure; it needs a new email, not a retry
+ setFormError(
+ result.error.code === 'INVALID_TOKEN'
+ ? t('betterAuth.resetPassword.linkExpired')
+ : translateAuthError(result.error, t) || t('betterAuth.resetPassword.failed'),
+ );
return;
}
toast.success(t('betterAuth.resetPassword.success'));
@@ -38,7 +49,7 @@ export const useResetPassword = ({ email, token, onSuccessRedirect }: UseResetPa
onSuccessRedirect(redirectUrl);
} catch (error) {
console.error('Reset password error:', error);
- toast.error(t('betterAuth.resetPassword.error'));
+ setFormError(t('betterAuth.errors.requestFailed'));
} finally {
setLoading(false);
}
@@ -46,11 +57,13 @@ export const useResetPassword = ({ email, token, onSuccessRedirect }: UseResetPa
const form = useForm<ResetPasswordFormValues>({
initialValues: { confirmPassword: '', newPassword: '' },
+ onValuesChange: () => setFormError(''),
onSubmit: handleResetPassword,
});
return {
form,
+ formError,
loading,
};
};
diff --git a/src/features/Auth/SignIn/SignInEmailSentStep.tsx b/src/features/Auth/SignIn/SignInEmailSentStep.tsx
index c863e1bcfae..31361208e1f 100644
--- a/src/features/Auth/SignIn/SignInEmailSentStep.tsx
+++ b/src/features/Auth/SignIn/SignInEmailSentStep.tsx
@@ -2,6 +2,7 @@ import { Block, Button, Flexbox, Icon, Text } from '@lobehub/ui';
import { MailCheck, RefreshCw } from 'lucide-react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import AuthCard from '@/features/AuthCard';
export type SentEmailType = 'magicLink' | 'resetPassword';
@@ -10,6 +11,8 @@ export interface SignInEmailSentStepProps {
email: string;
onBack: () => void;
onResend: () => Promise<void>;
+ /** Why the last resend failed, shown right under the Resend button */
+ sendError?: string;
sending: boolean;
type: SentEmailType;
}
@@ -18,6 +21,7 @@ export const SignInEmailSentStep = ({
email,
onBack,
onResend,
+ sendError,
sending,
type,
}: SignInEmailSentStepProps) => {
@@ -65,6 +69,7 @@ export const SignInEmailSentStep = ({
>
{t('betterAuth.signin.emailSent.resend')}
</Button>
+ {sendError && <InlineErrorText>{sendError}</InlineErrorText>}
</Flexbox>
</AuthCard>
);
diff --git a/src/features/Auth/SignIn/SignInEmailStep.tsx b/src/features/Auth/SignIn/SignInEmailStep.tsx
index b54e616f03f..72f31e75659 100644
--- a/src/features/Auth/SignIn/SignInEmailStep.tsx
+++ b/src/features/Auth/SignIn/SignInEmailStep.tsx
@@ -16,6 +16,7 @@ import { type CSSProperties, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import AuthIcons from '@/components/AuthIcons';
+import InlineErrorText from '@/components/InlineErrorText';
import AuthCard from '@/features/AuthCard';
import AuthAgreement from '@/features/AuthShell/AuthAgreement';
@@ -56,9 +57,13 @@ export interface SignInEmailStepProps {
onResetEmail: () => void;
onSetPassword: () => void;
onSocialSignIn: (provider: string) => void;
+ /** Why sending the "set a password" email failed, shown under the social-only hint */
+ sendError?: string;
serverConfigInit: boolean;
sessionExpired?: boolean;
setAgreementChecked: (checked: boolean) => void;
+ /** Provider whose sign-in just failed; explained under the provider buttons */
+ socialErrorProvider?: string | null;
socialLoading: string | null;
}
@@ -71,9 +76,11 @@ export const SignInEmailStep = ({
lastAuthProvider,
loading,
oAuthSSOProviders,
+ sendError,
serverConfigInit,
sessionExpired,
setAgreementChecked,
+ socialErrorProvider,
socialLoading,
onGoToSignup,
onResetEmail,
@@ -156,6 +163,13 @@ export const SignInEmailStep = ({
button
);
})}
+ {socialErrorProvider && (
+ <InlineErrorText>
+ {t('betterAuth.signin.socialFailed', {
+ provider: getProviderName(socialErrorProvider),
+ })}
+ </InlineErrorText>
+ )}
{showEmailForm && divider}
</Flexbox>
)}
@@ -217,6 +231,9 @@ export const SignInEmailStep = ({
}
/>
)}
+ {isSocialOnly && sendError && (
+ <InlineErrorText style={{ marginTop: 12 }}>{sendError}</InlineErrorText>
+ )}
{isSocialOnly && (
<Text align={'center'} fontSize={13} style={{ marginTop: 12 }} type={'secondary'}>
<a
diff --git a/src/features/Auth/SignIn/SignInPasswordStep.tsx b/src/features/Auth/SignIn/SignInPasswordStep.tsx
index 083d59b264e..a2a83305a8f 100644
--- a/src/features/Auth/SignIn/SignInPasswordStep.tsx
+++ b/src/features/Auth/SignIn/SignInPasswordStep.tsx
@@ -4,6 +4,7 @@ import { Lock } from 'lucide-react';
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import AuthCard from '@/features/AuthCard';
export interface SignInPasswordStepProps {
@@ -13,6 +14,8 @@ export interface SignInPasswordStepProps {
loading: boolean;
onBackToEmail: () => void;
onForgotPassword: () => Promise<void>;
+ /** Why sending the password reset email failed, shown under the "Forgot password?" link */
+ sendError?: string;
}
export const SignInPasswordStep = ({
@@ -22,6 +25,7 @@ export const SignInPasswordStep = ({
loading,
onBackToEmail,
onForgotPassword,
+ sendError,
}: SignInPasswordStepProps) => {
const { t } = useTranslation('auth');
const passwordInputRef = useRef<HTMLInputElement>(null);
@@ -97,6 +101,7 @@ export const SignInPasswordStep = ({
{t('betterAuth.signin.forgotPassword')}
</a>
</Text>
+ {sendError && <InlineErrorText style={{ marginTop: 12 }}>{sendError}</InlineErrorText>}
</AuthCard>
);
};
diff --git a/src/features/Auth/SignIn/index.tsx b/src/features/Auth/SignIn/index.tsx
index d3831305e92..0caf31188c2 100644
--- a/src/features/Auth/SignIn/index.tsx
+++ b/src/features/Auth/SignIn/index.tsx
@@ -23,11 +23,13 @@ const SignIn = () => {
lastAuthProvider,
loading,
oAuthSSOProviders,
+ sendError,
sending,
sessionExpired,
sentInfo,
serverConfigInit,
setAgreementChecked,
+ socialErrorProvider,
socialLoading,
step,
} = useSignIn();
@@ -36,6 +38,7 @@ const SignIn = () => {
return (
<SignInEmailSentStep
email={sentInfo.email}
+ sendError={sendError}
sending={sending}
type={sentInfo.type}
onBack={handleBackFromSent}
@@ -50,6 +53,7 @@ const SignIn = () => {
forgotLoading={sending}
form={form as any}
loading={loading}
+ sendError={sendError}
onBackToEmail={handleBackToEmail}
onForgotPassword={handleForgotPassword}
/>
@@ -66,9 +70,11 @@ const SignIn = () => {
lastAuthProvider={lastAuthProvider}
loading={loading}
oAuthSSOProviders={oAuthSSOProviders}
+ sendError={sendError}
serverConfigInit={serverConfigInit}
sessionExpired={sessionExpired}
setAgreementChecked={setAgreementChecked}
+ socialErrorProvider={socialErrorProvider}
socialLoading={socialLoading}
onGoToSignup={handleGoToSignup}
onResetEmail={handleBackToEmail}
diff --git a/src/features/Auth/SignIn/useSignIn.test.ts b/src/features/Auth/SignIn/useSignIn.test.ts
index 534745677c1..5f0454f3c78 100644
--- a/src/features/Auth/SignIn/useSignIn.test.ts
+++ b/src/features/Auth/SignIn/useSignIn.test.ts
@@ -208,7 +208,11 @@ describe('useSignIn', () => {
await result.current.handleCheckUser({ email: 'unknownuser' });
});
- expect(mockMessageError).toHaveBeenCalled();
+ // Pinned under the email field with a next step, not a corner toast
+ expect(mockForm.setErrors).toHaveBeenCalledWith({
+ email: expect.stringContaining('usernameNotFound'),
+ });
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(result.current.step).toBe('email');
});
@@ -219,7 +223,10 @@ describe('useSignIn', () => {
await result.current.handleCheckUser({ email: 'invalid email!@#' });
});
- expect(mockMessageError).toHaveBeenCalled();
+ expect(mockForm.setErrors).toHaveBeenCalledWith({
+ email: expect.stringContaining('emailInvalid'),
+ });
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(mockFetch).not.toHaveBeenCalled();
});
});
@@ -475,7 +482,9 @@ describe('useSignIn', () => {
await result.current.handleSocialSignIn('google');
});
- expect(mockMessageError).toHaveBeenCalled();
+ // Explained under the provider buttons instead of a toast
+ expect(result.current.socialErrorProvider).toBe('google');
+ expect(mockMessageError).not.toHaveBeenCalled();
});
it('should not retry social sign in when captcha is returned unexpectedly', async () => {
@@ -490,7 +499,7 @@ describe('useSignIn', () => {
});
expect(mockSignInSocial).toHaveBeenCalledTimes(1);
- expect(mockMessageError).toHaveBeenCalled();
+ expect(result.current.socialErrorProvider).toBe('google');
});
it('should save last auth provider to localStorage', async () => {
@@ -616,7 +625,9 @@ describe('useSignIn', () => {
await result.current.handleForgotPassword();
});
- expect(mockMessageError).toHaveBeenCalled();
+ // Shown under the Forgot password link, not as a toast
+ expect(result.current.sendError).toContain('resetEmailFailed');
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(result.current.step).toBe('password');
expect(result.current.sentInfo).toBeNull();
});
@@ -639,7 +650,8 @@ describe('useSignIn', () => {
await result.current.handleForgotPassword();
});
- expect(mockMessageError).toHaveBeenCalled();
+ expect(result.current.sendError).toContain('resetEmailFailed');
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(result.current.step).toBe('password');
});
});
@@ -673,6 +685,56 @@ describe('useSignIn', () => {
});
});
+ describe('magic link failures', () => {
+ it('should pin a failed first send to the email field', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ mockEnableMagicLink = true;
+ mockSignInMagicLink.mockResolvedValue({ error: { message: 'smtp down', status: 500 } });
+ mockFetch.mockResolvedValueOnce({
+ json: async () => ({ exists: true, hasPassword: false }),
+ ok: true,
+ });
+
+ const { result } = renderHook(() => useSignIn());
+
+ await act(async () => {
+ await result.current.handleCheckUser({ email: '[email protected]' });
+ });
+
+ expect(mockForm.setErrors).toHaveBeenCalledWith({
+ email: expect.stringContaining('magicLinkFailed'),
+ });
+ expect(result.current.step).toBe('email');
+ expect(mockMessageError).not.toHaveBeenCalled();
+ });
+
+ it('should show a failed resend under the Resend button on the inbox screen', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ mockEnableMagicLink = true;
+ mockSignInMagicLink.mockResolvedValueOnce({ error: null });
+ mockFetch.mockResolvedValueOnce({
+ json: async () => ({ exists: true, hasPassword: false }),
+ ok: true,
+ });
+
+ const { result } = renderHook(() => useSignIn());
+
+ await act(async () => {
+ await result.current.handleCheckUser({ email: '[email protected]' });
+ });
+ expect(result.current.step).toBe('emailSent');
+
+ mockSignInMagicLink.mockResolvedValueOnce({ error: { message: 'smtp down', status: 500 } });
+ await act(async () => {
+ await result.current.handleResendEmail();
+ });
+
+ expect(result.current.sendError).toContain('magicLinkFailed');
+ expect(mockMessageError).not.toHaveBeenCalled();
+ expect(mockMessageSuccess).not.toHaveBeenCalled();
+ });
+ });
+
describe('handleResendEmail', () => {
it('should resend the password reset email and confirm', async () => {
mockRequestPasswordReset.mockResolvedValue({ data: { status: true }, error: null });
diff --git a/src/features/Auth/SignIn/useSignIn.ts b/src/features/Auth/SignIn/useSignIn.ts
index 1524903135f..12728626dd9 100644
--- a/src/features/Auth/SignIn/useSignIn.ts
+++ b/src/features/Auth/SignIn/useSignIn.ts
@@ -18,6 +18,7 @@ import {
toAbsoluteAuthCallbackUrl,
} from '@/utils/onboardingRedirect';
+import { translateAuthError } from '../utils/translateAuthError';
import { EMAIL_REGEX, USERNAME_REGEX } from './SignInEmailStep';
const LAST_AUTH_PROVIDER_KEY = 'lobehub:auth:last-provider:v1';
@@ -49,7 +50,7 @@ interface ResolvedEmailResult {
}
export const useSignIn = () => {
- const { t } = useTranslation('auth');
+ const { t } = useTranslation(['auth', 'authError']);
const navigate = useNavigate();
const [searchParams] = useSearchParams();
const sessionExpired = searchParams.get('reason') === 'sessionExpired';
@@ -78,6 +79,13 @@ export const useSignIn = () => {
// slow network can't be double-clicked into multiple emails.
const [sending, setSending] = useState(false);
const [socialLoading, setSocialLoading] = useState<string | null>(null);
+ /** Provider whose sign-in just failed; the email step explains it under the provider buttons */
+ const [socialErrorProvider, setSocialErrorProvider] = useState<string | null>(null);
+ /**
+ * Failure of an email-dispatch action (sign-in link, password reset, resend). Shown next
+ * to the link or button that triggered it rather than as a corner toast.
+ */
+ const [sendError, setSendError] = useState('');
const [step, setStep] = useState<Step>('email');
const [email, setEmail] = useState('');
const [sentInfo, setSentInfo] = useState<SentEmailInfo | null>(null);
@@ -102,6 +110,13 @@ export const useSignIn = () => {
if (emailParam) form.setValue('email', emailParam);
}, [searchParams, form]);
+ // On the email step the failure belongs to the email field; on the "check your inbox"
+ // screen it belongs to the Resend button.
+ const reportSendError = (message: string) => {
+ if (step === 'email') form.setErrors({ email: message });
+ else setSendError(message);
+ };
+
const handleSendMagicLink = async (targetEmail?: string): Promise<boolean> => {
if (sending) return false;
try {
@@ -113,6 +128,7 @@ export const useSignIn = () => {
if (!emailValue) return false;
setSending(true);
+ setSendError('');
const callbackUrl = searchParams.get('callbackUrl') || '/';
const authOrigin = window.location.origin;
const { error } = await signIn.magicLink({
@@ -125,7 +141,8 @@ export const useSignIn = () => {
),
});
if (error) {
- toast.error(error.message || t('betterAuth.signin.magicLinkError'));
+ console.error('Magic link error:', error);
+ reportSendError(translateAuthError(error, t) || t('betterAuth.signin.magicLinkFailed'));
return false;
}
// Success is a forward step, not a fleeting toast: land on a persistent
@@ -135,7 +152,7 @@ export const useSignIn = () => {
return true;
} catch (error) {
console.error('Magic link error:', error);
- toast.error(t('betterAuth.signin.magicLinkError'));
+ reportSendError(t('betterAuth.signin.magicLinkFailed'));
return false;
} finally {
setSending(false);
@@ -153,7 +170,7 @@ export const useSignIn = () => {
return { email: trimmedIdentifier.toLowerCase(), identifierType: 'email' };
if (!USERNAME_REGEX.test(trimmedIdentifier)) {
- toast.error(t('betterAuth.errors.emailInvalid'));
+ form.setErrors({ email: t('betterAuth.errors.emailInvalid') });
return null;
}
@@ -165,13 +182,13 @@ export const useSignIn = () => {
});
const data: ResolveUsernameResponseData = await response.json();
if (!response.ok || !data.exists || !data.email) {
- toast.error(t('betterAuth.errors.usernameNotRegistered'));
+ form.setErrors({ email: t('betterAuth.errors.usernameNotFound') });
return null;
}
return { email: data.email, identifierType: 'username' };
} catch (error) {
console.error('Error resolving username:', error);
- toast.error(t('betterAuth.signin.error'));
+ form.setErrors({ email: t('betterAuth.errors.requestFailed') });
return null;
}
};
@@ -194,7 +211,7 @@ export const useSignIn = () => {
if (!data.exists) {
if (identifierType === 'username') {
- toast.error(t('betterAuth.errors.usernameNotRegistered'));
+ form.setErrors({ email: t('betterAuth.errors.usernameNotFound') });
return;
}
const callbackUrl = searchParams.get('callbackUrl') || '/';
@@ -224,7 +241,7 @@ export const useSignIn = () => {
setIsSocialOnly(true);
} catch (error) {
console.error('Error checking user:', error);
- toast.error(t('betterAuth.signin.error'));
+ form.setErrors({ email: t('betterAuth.errors.requestFailed') });
} finally {
setLoading(false);
}
@@ -266,7 +283,7 @@ export const useSignIn = () => {
}
} catch (error) {
console.error('Sign in error:', error);
- toast.error(t('betterAuth.signin.error'));
+ form.setErrors({ password: t('betterAuth.errors.requestFailed') });
} finally {
setLoading(false);
}
@@ -274,6 +291,7 @@ export const useSignIn = () => {
const handleSocialSignIn = async (provider: string) => {
setSocialLoading(provider);
+ setSocialErrorProvider(null);
const normalizedProvider = normalizeProviderId(provider);
await trackLoginOrSignupClicked({
provider: normalizedProvider,
@@ -321,7 +339,7 @@ export const useSignIn = () => {
if (result && 'error' in result && result.error) throw result.error;
} catch (error) {
console.error(`${normalizedProvider} sign in error:`, error);
- toast.error(t('betterAuth.signin.socialError'));
+ setSocialErrorProvider(provider);
} finally {
setSocialLoading(null);
}
@@ -331,6 +349,7 @@ export const useSignIn = () => {
setStep('email');
setEmail('');
setIsSocialOnly(false);
+ setSendError('');
// Drop the previous account's password + any inline error. The form
// instance is shared across steps and defaults to preserve, so without this
// the next email's password step remounts pre-filled with the stale value.
@@ -357,6 +376,7 @@ export const useSignIn = () => {
const dispatchPasswordReset = async (targetEmail: string): Promise<boolean> => {
if (sending) return false;
setSending(true);
+ setSendError('');
try {
// The better-auth client resolves with `{ data, error }` instead of
// throwing, so a failed send would otherwise land on the "email sent" screen.
@@ -369,8 +389,12 @@ export const useSignIn = () => {
});
if (error) throw error;
return true;
- } catch {
- toast.error(t('betterAuth.signin.forgotPasswordError'));
+ } catch (error) {
+ console.error('Password reset email error:', error);
+ setSendError(
+ translateAuthError(error as { code?: string }, t) ||
+ t('betterAuth.signin.resetEmailFailed'),
+ );
return false;
} finally {
setSending(false);
@@ -428,11 +452,13 @@ export const useSignIn = () => {
lastAuthProvider,
loading,
oAuthSSOProviders: sortedProviders,
+ sendError,
sending,
sessionExpired,
sentInfo,
serverConfigInit: enableBusinessFeatures ? true : serverConfigInit,
setAgreementChecked,
+ socialErrorProvider,
socialLoading,
step,
};
diff --git a/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx b/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx
index cbb5d8a829c..6f62af0be22 100644
--- a/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx
+++ b/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx
@@ -8,6 +8,7 @@ import { type CSSProperties, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { Link, useNavigate, useSearchParams } from 'react-router';
+import InlineErrorText from '@/components/InlineErrorText';
import { AuthCard } from '@/features/AuthCard';
import AuthAgreement from '@/features/AuthShell/AuthAgreement';
import { trackLoginOrSignupClicked } from '@/features/User/UserLoginOrSignup/trackLoginOrSignupClicked';
@@ -18,7 +19,8 @@ import { useSignUp } from './useSignUp';
const FIELD_STYLE: CSSProperties = { gap: 0, paddingBlock: '0 24px' };
const BetterAuthSignUpForm = () => {
- const { agreementChecked, businessElement, form, loading, setAgreementChecked } = useSignUp();
+ const { agreementChecked, businessElement, form, formError, loading, setAgreementChecked } =
+ useSignUp();
const { t } = useTranslation('auth');
const navigate = useNavigate();
@@ -62,7 +64,7 @@ const BetterAuthSignUpForm = () => {
style={FIELD_STYLE}
validate={(value: string) => {
if (!value) return t('betterAuth.errors.emailRequired');
- if (!EMAIL_REGEX.test(value)) return t('betterAuth.errors.emailInvalid');
+ if (!EMAIL_REGEX.test(value)) return t('betterAuth.errors.signupEmailInvalid');
}}
>
<Input
@@ -135,6 +137,7 @@ const BetterAuthSignUpForm = () => {
{businessElement && <div style={{ paddingBlockEnd: 24 }}>{businessElement}</div>}
<AuthAgreement checked={agreementChecked} onChange={setAgreementChecked} />
+ {formError && <InlineErrorText style={{ marginBlockEnd: 12 }}>{formError}</InlineErrorText>}
<Button block htmlType="submit" loading={loading} size="large" type="primary">
{t('betterAuth.signup.submit')}
</Button>
diff --git a/src/features/Auth/SignUp/resolveSignUpError.ts b/src/features/Auth/SignUp/resolveSignUpError.ts
new file mode 100644
index 00000000000..9f855372590
--- /dev/null
+++ b/src/features/Auth/SignUp/resolveSignUpError.ts
@@ -0,0 +1,72 @@
+import type { TFunction } from 'i18next';
+
+import { translateAuthError } from '../utils/translateAuthError';
+
+export interface SignUpErrorLike {
+ code?: string;
+ details?: {
+ cause?: {
+ code?: string;
+ };
+ };
+ message?: string;
+ retryAfterDays?: number;
+}
+
+export interface ResolvedSignUpError {
+ /**
+ * Form field the error belongs to. Field errors render under that input and clear as
+ * soon as the user edits it; errors without a field render next to the submit button.
+ */
+ field?: 'email' | 'password';
+ message: string;
+}
+
+/** Server rejections that the user fixes by changing the email address */
+const EMAIL_ERROR_CODES = new Set([
+ 'BLOCKED_DOMAIN',
+ 'BLOCKED_MULTI_LEVEL_DOMAIN',
+ 'DELETED_ACCOUNT_EMAIL',
+ 'EMAIL_NOT_ALLOWED',
+ 'INVALID_EMAIL',
+ 'TEMPORARY_EMAIL_NOT_ALLOWED',
+ 'USER_ALREADY_EXISTS',
+ 'USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL',
+]);
+
+/** Server rejections that the user fixes by changing the password */
+const PASSWORD_ERROR_CODES = new Set([
+ 'INVALID_PASSWORD',
+ 'PASSWORD_TOO_LONG',
+ 'PASSWORD_TOO_SHORT',
+]);
+
+/**
+ * Map a Better Auth sign-up rejection to copy that tells the user what to do next, and to
+ * the form field it should sit under. Raw server messages are untranslated and often bare
+ * error codes, so they never reach the UI.
+ */
+export const resolveSignUpError = (
+ error: SignUpErrorLike,
+ t: TFunction<['auth', 'authError']>,
+): ResolvedSignUpError => {
+ const isEmailDuplicate =
+ error.code === 'FAILED_TO_CREATE_USER' && error.details?.cause?.code === '23505';
+ if (isEmailDuplicate || error.code === 'USER_ALREADY_EXISTS') {
+ return { field: 'email', message: t('betterAuth.errors.emailRegistered') };
+ }
+
+ if (error.code === 'INVALID_EMAIL' || error.message === 'Invalid email') {
+ return { field: 'email', message: t('betterAuth.errors.signupEmailInvalid') };
+ }
+
+ const translated = translateAuthError(error, t);
+ if (translated && error.code) {
+ if (EMAIL_ERROR_CODES.has(error.code)) return { field: 'email', message: translated };
+ if (PASSWORD_ERROR_CODES.has(error.code)) return { field: 'password', message: translated };
+ return { message: translated };
+ }
+
+ console.error('Unhandled sign up error:', error);
+ return { message: t('betterAuth.signup.failed') };
+};
diff --git a/src/features/Auth/SignUp/useSignUp.test.ts b/src/features/Auth/SignUp/useSignUp.test.ts
index d5db75d6ba2..f47967351db 100644
--- a/src/features/Auth/SignUp/useSignUp.test.ts
+++ b/src/features/Auth/SignUp/useSignUp.test.ts
@@ -207,12 +207,14 @@ describe('useSignUp', () => {
});
const { result } = renderHook(() => useSignUp());
+ const setErrors = vi.spyOn(result.current.form, 'setErrors');
await act(async () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalled();
+ expect(setErrors).toHaveBeenCalledWith({ email: 'betterAuth.errors.emailRegistered' });
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(mockNavigate).not.toHaveBeenCalled();
expect(window.location.href).toBe('');
});
@@ -223,19 +225,22 @@ describe('useSignUp', () => {
});
const { result } = renderHook(() => useSignUp());
+ const setErrors = vi.spyOn(result.current.form, 'setErrors');
await act(async () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalled();
+ expect(setErrors).toHaveBeenCalledWith({ email: 'betterAuth.errors.signupEmailInvalid' });
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(mockNavigate).not.toHaveBeenCalled();
expect(window.location.href).toBe('');
});
- it('should show translated error for known error codes', async () => {
+ it('should show actionable copy next to submit for unknown codes, never the raw message', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
mockSignUpEmail.mockResolvedValue({
- error: { code: 'SOME_KNOWN_CODE', message: 'fallback msg' },
+ error: { code: 'SOME_UNKNOWN_CODE', message: 'SOME_UNKNOWN_CODE' },
});
const { result } = renderHook(() => useSignUp());
@@ -244,12 +249,32 @@ describe('useSignUp', () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalled();
+ expect(result.current.formError).toBe('betterAuth.signup.failed');
+ expect(mockMessageError).not.toHaveBeenCalled();
expect(mockNavigate).not.toHaveBeenCalled();
expect(window.location.href).toBe('');
});
- it('should show the rounded remaining cooldown in days', async () => {
+ it('should show a translated non-field error next to the submit button', async () => {
+ mockTranslate.mockImplementation((key: string, options?: Record<string, unknown>) => {
+ if (key === 'authError:codes.SIGNUP_IP_BURST') return 'Too many sign-ups, wait a while';
+ return typeof options?.defaultValue === 'string' ? options.defaultValue : key;
+ });
+ mockSignUpEmail.mockResolvedValue({
+ error: { code: 'SIGNUP_IP_BURST', message: 'Please try again later.' },
+ });
+
+ const { result } = renderHook(() => useSignUp());
+
+ await act(async () => {
+ await result.current.onSubmit(validValues);
+ });
+
+ expect(result.current.formError).toBe('Too many sign-ups, wait a while');
+ expect(mockMessageError).not.toHaveBeenCalled();
+ });
+
+ it('should show the rounded remaining cooldown in days under the email field', async () => {
mockSignUpEmail.mockResolvedValue({
error: {
code: 'DELETED_ACCOUNT_EMAIL',
@@ -259,12 +284,14 @@ describe('useSignUp', () => {
});
const { result } = renderHook(() => useSignUp());
+ const setErrors = vi.spyOn(result.current.form, 'setErrors');
await act(async () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalledWith('Retry within 4 days');
+ expect(setErrors).toHaveBeenCalledWith({ email: 'Retry within 4 days' });
+ expect(mockMessageError).not.toHaveBeenCalled();
});
it.each([0, -1, 1.5, '4', Number.POSITIVE_INFINITY])(
@@ -279,12 +306,13 @@ describe('useSignUp', () => {
});
const { result } = renderHook(() => useSignUp());
+ const setErrors = vi.spyOn(result.current.form, 'setErrors');
await act(async () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalledWith('Static cooldown');
+ expect(setErrors).toHaveBeenCalledWith({ email: 'Static cooldown' });
},
);
@@ -302,12 +330,13 @@ describe('useSignUp', () => {
});
const { result } = renderHook(() => useSignUp());
+ const setErrors = vi.spyOn(result.current.form, 'setErrors');
await act(async () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalledWith('Static cooldown');
+ expect(setErrors).toHaveBeenCalledWith({ email: 'Static cooldown' });
});
it('should retry sign up with captcha token when captcha is required', async () => {
@@ -352,7 +381,8 @@ describe('useSignUp', () => {
expect(window.location.href).toBe('');
});
- it('should show generic error on unexpected exception', async () => {
+ it('should show a network hint next to submit on unexpected exception', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
mockSignUpEmail.mockRejectedValue(new Error('network error'));
const { result } = renderHook(() => useSignUp());
@@ -361,7 +391,8 @@ describe('useSignUp', () => {
await result.current.onSubmit(validValues);
});
- expect(mockMessageError).toHaveBeenCalled();
+ expect(result.current.formError).toBe('betterAuth.errors.requestFailed');
+ expect(mockMessageError).not.toHaveBeenCalled();
});
it('should set loading during sign up and reset after', async () => {
diff --git a/src/features/Auth/SignUp/useSignUp.ts b/src/features/Auth/SignUp/useSignUp.ts
index 3e4aca9a925..c5e7f009181 100644
--- a/src/features/Auth/SignUp/useSignUp.ts
+++ b/src/features/Auth/SignUp/useSignUp.ts
@@ -1,4 +1,3 @@
-import { toast } from '@lobehub/ui';
import { useForm } from '@lobehub/ui/form';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -14,28 +13,24 @@ import { trackLoginOrSignupClicked } from '@/features/User/UserLoginOrSignup/tra
import { signUp } from '@/libs/better-auth/auth-client';
import { buildOnboardingRedirectUrl, toAbsoluteAuthCallbackUrl } from '@/utils/onboardingRedirect';
+import { resolveSignUpError, type SignUpErrorLike } from './resolveSignUpError';
import type { BaseSignUpFormValues } from './types';
export type SignUpFormValues = BaseSignUpFormValues & BusinessSignupFomData;
-interface SignUpErrorLike {
- code?: string;
- details?: {
- cause?: {
- code?: string;
- };
- };
- message?: string;
- retryAfterDays?: number;
-}
-
export const useSignUp = () => {
const { t } = useTranslation(['auth', 'authError']);
const navigate = useNavigate();
const [searchParams] = useSearchParams();
const { agreementChecked, continueWithAgreement, setAgreementChecked } = useAuthAgreement();
+ /**
+ * Sign-up failure that is not tied to one field. Rendered next to the submit button
+ * instead of a corner toast, and cleared as soon as the user changes any input.
+ */
+ const [formError, setFormError] = useState('');
const form = useForm<SignUpFormValues>({
initialValues: { confirmPassword: '', email: '', password: '' },
+ onValuesChange: () => setFormError(''),
onSubmit: (values) =>
continueWithAgreement(() => {
void handleSignUp(values);
@@ -53,6 +48,7 @@ export const useSignUp = () => {
const handleSignUp = async (values: SignUpFormValues) => {
setLoading(true);
+ setFormError('');
await trackLoginOrSignupClicked({ spm: 'signup.submit.click' });
try {
@@ -88,36 +84,9 @@ export const useSignUp = () => {
}
if (error) {
- const signUpError = error as SignUpErrorLike;
- const isEmailDuplicate =
- signUpError.code === 'FAILED_TO_CREATE_USER' &&
- signUpError.details?.cause?.code === '23505';
-
- if (isEmailDuplicate) {
- toast.error(t('betterAuth.errors.emailExists'));
- return;
- }
-
- if (signUpError.code === 'INVALID_EMAIL' || signUpError.message === 'Invalid email') {
- toast.error(t('betterAuth.errors.emailInvalid'));
- return;
- }
-
- const retryAfterDays = signUpError.retryAfterDays;
- const retryAfterTranslated =
- signUpError.code &&
- typeof retryAfterDays === 'number' &&
- Number.isSafeInteger(retryAfterDays) &&
- retryAfterDays > 0
- ? t(`authError:codes.${signUpError.code}_WITH_RETRY_AFTER_DAYS`, {
- count: retryAfterDays,
- defaultValue: '',
- })
- : '';
- const translated =
- retryAfterTranslated ||
- (signUpError.code ? t(`authError:codes.${signUpError.code}`, { defaultValue: '' }) : '');
- toast.error(translated || signUpError.message || t('betterAuth.signup.error'));
+ const { field, message } = resolveSignUpError(error as SignUpErrorLike, t);
+ if (field) form.setErrors({ [field]: message });
+ else setFormError(message);
return;
}
@@ -129,8 +98,9 @@ export const useSignUp = () => {
// onboarding lives in the main app, outside this auth SPA — full page load required
window.location.href = redirectUrl;
}
- } catch {
- toast.error(t('betterAuth.signup.error'));
+ } catch (error) {
+ console.error('Sign up error:', error);
+ setFormError(t('betterAuth.errors.requestFailed'));
} finally {
setLoading(false);
}
@@ -140,6 +110,7 @@ export const useSignUp = () => {
agreementChecked,
businessElement,
form,
+ formError,
loading,
onSubmit: handleSignUp,
setAgreementChecked,
diff --git a/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx b/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx
index 788562cc2dd..7c3fa50cf8b 100644
--- a/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx
+++ b/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx
@@ -2,6 +2,8 @@ import { Block, Button, Flexbox, Text } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+
import { useVerifyEmail } from './useVerifyEmail';
interface VerifyEmailContentProps {
@@ -11,7 +13,7 @@ interface VerifyEmailContentProps {
export const VerifyEmailContent = ({ email, callbackUrl }: VerifyEmailContentProps) => {
const { t } = useTranslation('auth');
- const { handleResendEmail, resending } = useVerifyEmail({ callbackUrl, email });
+ const { handleResendEmail, resendError, resending } = useVerifyEmail({ callbackUrl, email });
return (
<Flexbox gap={16}>
@@ -27,6 +29,7 @@ export const VerifyEmailContent = ({ email, callbackUrl }: VerifyEmailContentPro
>
{t('betterAuth.verifyEmail.resend.button')}
</Button>
+ {resendError && <InlineErrorText>{resendError}</InlineErrorText>}
</Flexbox>
);
};
diff --git a/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts b/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts
index f771e74b4b6..1a068a984ca 100644
--- a/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts
+++ b/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts
@@ -9,8 +9,10 @@ vi.mock('@/libs/better-auth/auth-client', () => ({
sendVerificationEmail: mockSendVerificationEmail,
}));
+const mockToastError = vi.hoisted(() => vi.fn());
+
vi.mock('@lobehub/ui', () => ({
- toast: { error: vi.fn(), success: vi.fn() },
+ toast: { error: mockToastError, success: vi.fn() },
}));
vi.mock('react-i18next', () => ({
@@ -37,4 +39,31 @@ describe('useVerifyEmail', () => {
});
});
+
+ it('should show a failed resend under the button instead of a toast', async () => {
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ mockSendVerificationEmail.mockResolvedValue({ error: { message: 'smtp down', status: 500 } });
+
+ const { result } = renderHook(() =>
+ useVerifyEmail({ callbackUrl: '/onboarding', email: '[email protected]' }),
+ );
+
+ await act(async () => {
+ await result.current.handleResendEmail();
+ });
+
+ expect(result.current.resendError).toBe('betterAuth.verifyEmail.resend.failed');
+ expect(mockToastError).not.toHaveBeenCalled();
+ });
+
+ it('should tell the user how to recover when the email is unknown', async () => {
+ const { result } = renderHook(() => useVerifyEmail({ callbackUrl: '/', email: null }));
+
+ await act(async () => {
+ await result.current.handleResendEmail();
+ });
+
+ expect(result.current.resendError).toBe('betterAuth.verifyEmail.resend.missingEmail');
+ expect(mockSendVerificationEmail).not.toHaveBeenCalled();
+ });
});
diff --git a/src/features/Auth/VerifyEmail/useVerifyEmail.ts b/src/features/Auth/VerifyEmail/useVerifyEmail.ts
index 3ef6d235bdf..92c365d1fa9 100644
--- a/src/features/Auth/VerifyEmail/useVerifyEmail.ts
+++ b/src/features/Auth/VerifyEmail/useVerifyEmail.ts
@@ -5,35 +5,43 @@ import { useTranslation } from 'react-i18next';
import { sendVerificationEmail } from '@/libs/better-auth/auth-client';
import { toAbsoluteAuthCallbackUrl } from '@/utils/onboardingRedirect';
+import { translateAuthError } from '../utils/translateAuthError';
+
interface UseVerifyEmailParams {
callbackUrl: string;
email: string | null;
}
export const useVerifyEmail = ({ email, callbackUrl }: UseVerifyEmailParams) => {
- const { t } = useTranslation('auth');
+ const { t } = useTranslation(['auth', 'authError']);
const [resending, setResending] = useState(false);
+ /** Shown right under the Resend button instead of a toast */
+ const [resendError, setResendError] = useState('');
const handleResendEmail = async () => {
if (!email) {
- toast.error(t('betterAuth.verifyEmail.resend.noEmail'));
+ setResendError(t('betterAuth.verifyEmail.resend.missingEmail'));
return;
}
setResending(true);
+ setResendError('');
try {
const result = await sendVerificationEmail({
callbackURL: toAbsoluteAuthCallbackUrl(callbackUrl, window.location.origin),
email,
});
if (result.error) {
- toast.error(result.error.message || t('betterAuth.verifyEmail.resend.error'));
+ console.error('Error resending verification email:', result.error);
+ setResendError(
+ translateAuthError(result.error, t) || t('betterAuth.verifyEmail.resend.failed'),
+ );
return;
}
toast.success(t('betterAuth.verifyEmail.resend.success'));
} catch (error) {
console.error('Error resending verification email:', error);
- toast.error(t('betterAuth.verifyEmail.resend.error'));
+ setResendError(t('betterAuth.verifyEmail.resend.failed'));
} finally {
setResending(false);
}
@@ -41,6 +49,7 @@ export const useVerifyEmail = ({ email, callbackUrl }: UseVerifyEmailParams) =>
return {
handleResendEmail,
+ resendError,
resending,
};
};
diff --git a/src/features/Auth/utils/translateAuthError.ts b/src/features/Auth/utils/translateAuthError.ts
new file mode 100644
index 00000000000..24a605d6dda
--- /dev/null
+++ b/src/features/Auth/utils/translateAuthError.ts
@@ -0,0 +1,35 @@
+import type { TFunction } from 'i18next';
+
+export interface AuthErrorLike {
+ code?: string;
+ /** Whole days until the request may succeed, attached by some server guards */
+ retryAfterDays?: number;
+}
+
+/**
+ * Translate a Better Auth error code through the `authError` namespace. Returns an empty
+ * string for unknown codes so callers fall back to their own actionable copy instead of
+ * showing the raw, untranslated server message.
+ */
+export const translateAuthError = (
+ error: AuthErrorLike | null | undefined,
+ t: TFunction<['auth', 'authError']>,
+) => {
+ const code = error?.code;
+ if (!code) return '';
+
+ const retryAfterDays = error.retryAfterDays;
+ if (
+ typeof retryAfterDays === 'number' &&
+ Number.isSafeInteger(retryAfterDays) &&
+ retryAfterDays > 0
+ ) {
+ const withDays = t(`authError:codes.${code}_WITH_RETRY_AFTER_DAYS`, {
+ count: retryAfterDays,
+ defaultValue: '',
+ });
+ if (withDays) return withDays;
+ }
+
+ return t(`authError:codes.${code}`, { defaultValue: '' });
+};
diff --git a/src/features/AuthShell/createAuthI18n.test.ts b/src/features/AuthShell/createAuthI18n.test.ts
index fdbfcc7fe2d..855b0c416b0 100644
--- a/src/features/AuthShell/createAuthI18n.test.ts
+++ b/src/features/AuthShell/createAuthI18n.test.ts
@@ -6,9 +6,9 @@ describe('createAuthI18n', () => {
it.each([
[
'en-US',
- 'This email is still in the account deletion cooldown period. You can sign up again in about 4 days.',
+ 'This email belongs to a recently deleted account and can be used again in about 4 days. To sign up now, use a different email.',
],
- ['zh-CN', '该邮箱仍在账号注销冷却期,预计 4 天后可重新注册。'],
+ ['zh-CN', '该邮箱属于刚注销的账号,约 4 天后才能再次使用。如需现在注册,请换一个邮箱。'],
])('loads the deleted-account retry copy for %s', async (locale, expected) => {
const { init, instance } = createAuthI18n(locale);
diff --git a/src/features/Channels/Settings/GeneralSection.tsx b/src/features/Channels/Settings/GeneralSection.tsx
index dd0dd88e8ca..c1ad73f74e1 100644
--- a/src/features/Channels/Settings/GeneralSection.tsx
+++ b/src/features/Channels/Settings/GeneralSection.tsx
@@ -1,6 +1,6 @@
import type { ChannelListItem } from '@lobechat/types';
import { CHANNEL_LIMITS } from '@lobechat/types';
-import { Button, Input, toast } from '@lobehub/ui';
+import { Button, Input, Text, toast } from '@lobehub/ui';
import * as stylex from '@stylexjs/stylex';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -15,17 +15,20 @@ export function GeneralSection({ channel }: { channel: ChannelListItem }) {
const { t } = useTranslation('channel');
const [title, setTitle] = useState(channel.title);
const [saving, setSaving] = useState(false);
+ /** Rename failure, shown under the name input it is about so the typed name stays in view. */
+ const [error, setError] = useState('');
const archived = channel.status === 'archived';
const next = title.trim();
const save = async () => {
+ setError('');
setSaving(true);
try {
await channelActions.rename(channel.id, next);
toast.success(t('settings.saved'));
- } catch (error) {
- console.error('Failed to rename Channel', error);
- toast.error(t(isTrpcErrorCode(error, 'FORBIDDEN') ? 'renameForbidden' : 'renameFailed'));
+ } catch (err) {
+ console.error('Failed to rename Channel', err);
+ setError(t(isTrpcErrorCode(err, 'FORBIDDEN') ? 'renameForbidden' : 'renameFailed'));
} finally {
setSaving(false);
}
@@ -49,12 +52,21 @@ export function GeneralSection({ channel }: { channel: ChannelListItem }) {
>
<div {...stylex.props(settingsStyles.field)}>
<Input
+ aria-invalid={!!error || undefined}
aria-label={t('settings.general.name')}
disabled={archived}
maxLength={CHANNEL_LIMITS.titleLength}
value={title}
- onChange={(event) => setTitle(event.target.value)}
+ onChange={(event) => {
+ setTitle(event.target.value);
+ setError('');
+ }}
/>
+ {error && (
+ <Text fontSize={12} role="alert" type="danger">
+ {error}
+ </Text>
+ )}
</div>
</FormCard>
);
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx
index bc497af3f28..ce29aa43ea2 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx
@@ -37,6 +37,8 @@ import {
import { memo, type MouseEvent, useCallback, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { cacheScope } from '@/libs/replica';
import {
agentQuotaSelectors,
@@ -250,6 +252,7 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
[accounts, readingsMap],
);
const [busy, setBusy] = useState(false);
+ const [manageError, setManageError] = useState<InlineErrorState | null>(null);
// Staged account selection — applied only when the user confirms.
const [pending, setPending] = useState<string | null>(null);
// Inline rename state (no nested modal).
@@ -326,6 +329,7 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
run(async () => {
const value = pending;
if (value === null) return;
+ setManageError(null);
// Never turn this desktop's pick into an agent-wide one.
if (needsLocalDevice && !targetDeviceId) return;
if (value !== AUTO && !bindings.some((b) => b.accountId === value)) {
@@ -340,11 +344,14 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
}
})
.then(() => setPending(null))
- .catch((error: { data?: { code?: string } }) => {
- toast.error(
- error?.data?.code === 'PRECONDITION_FAILED'
- ? t('heteroAgent.claudeQuota.manage.notSignedInOnDevice')
- : t('heteroAgent.claudeQuota.manage.switchFailed'),
+ .catch((error: { data?: { code?: string }; message?: string }) => {
+ setManageError(
+ toInlineError(
+ error?.data?.code === 'PRECONDITION_FAILED'
+ ? t('heteroAgent.claudeQuota.manage.notSignedInOnDevice')
+ : t('heteroAgent.claudeQuota.manage.switchFailedRetry'),
+ error,
+ ),
);
}),
[
@@ -397,6 +404,7 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
const signIn = useCallback(
async (email?: string) => {
loginCancelled.current = false;
+ setManageError(null);
try {
const local = await loginClaudeAccount(email);
const account = agentQuotaSelectors
@@ -410,8 +418,12 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
account: local.identity.email || local.identity.externalAccountId,
}),
);
- } catch {
- if (!loginCancelled.current) toast.error(t('heteroAgent.claudeQuota.manage.loginFailed'));
+ } catch (error) {
+ console.error('[QuotaAccountManager] Claude login failed:', error);
+ if (!loginCancelled.current)
+ setManageError(
+ toInlineError(t('heteroAgent.claudeQuota.manage.loginFailedRetry'), error),
+ );
}
},
[agentId, bindQuotaAccount, bindingOf, loginClaudeAccount, t],
@@ -586,7 +598,10 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
};
}),
]}
- onChange={setPending}
+ onChange={(value) => {
+ setManageError(null);
+ setPending(value);
+ }}
/>
{accounts.length === 0 && (accountsConfirmed || !!accountsError) && (
@@ -595,6 +610,12 @@ const QuotaAccountManager = memo<QuotaAccountManagerProps>(({ agentId, deviceId
</Text>
)}
+ {manageError && (
+ <div style={{ marginBlockStart: 8 }}>
+ <InlineErrorText detail={manageError.detail}>{manageError.summary}</InlineErrorText>
+ </div>
+ )}
+
{dirty ? (
<Flexbox
horizontal
diff --git a/src/features/CommunityWorkspaceSettings/index.tsx b/src/features/CommunityWorkspaceSettings/index.tsx
index 34baac0d5f8..317eb97fe53 100644
--- a/src/features/CommunityWorkspaceSettings/index.tsx
+++ b/src/features/CommunityWorkspaceSettings/index.tsx
@@ -30,7 +30,15 @@ import {
Trash2,
Users,
} from 'lucide-react';
-import { memo, type PropsWithChildren, useCallback, useEffect, useMemo, useState } from 'react';
+import {
+ memo,
+ type PropsWithChildren,
+ type ReactNode,
+ useCallback,
+ useEffect,
+ useMemo,
+ useState,
+} from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -93,19 +101,21 @@ const MembersCard = memo<{ canManage: boolean }>(({ canManage }) => {
const { canSync, isLoading, members, refresh } = useCommunityWorkspaceMembers();
const [syncing, setSyncing] = useState(false);
+ /** Sync failure, shown in the card footer beside the Sync button rather than a corner toast. */
+ const [syncError, setSyncError] = useState('');
const canTriggerSync = canManage && canSync;
const handleSync = useCallback(async () => {
setSyncing(true);
+ setSyncError('');
try {
await syncCommunityWorkspaceMembers();
await refresh();
toast.success(t('user.workspaceProfile.settings.members.syncSuccess'));
} catch (error) {
- toast.error(
- (error as Error).message || t('user.workspaceProfile.settings.members.syncFailed'),
- );
+ console.error('[CommunityWorkspaceSettings] Member sync failed:', error);
+ setSyncError(t('user.workspaceProfile.settings.members.syncFailedRetry'));
} finally {
setSyncing(false);
}
@@ -196,13 +206,21 @@ const MembersCard = memo<{ canManage: boolean }>(({ canManage }) => {
return (
<SettingCard
description={t('user.workspaceProfile.settings.members.description')}
- hint={t('user.workspaceProfile.settings.members.syncHint')}
title={t('user.workspaceProfile.settings.members.title')}
action={
<Button disabled={!canTriggerSync} icon={RefreshCw} loading={syncing} onClick={handleSync}>
{t('user.workspaceProfile.settings.members.sync')}
</Button>
}
+ hint={
+ syncError ? (
+ <Text role="alert" style={{ fontSize: 13 }} type="danger">
+ {syncError}
+ </Text>
+ ) : (
+ t('user.workspaceProfile.settings.members.syncHint')
+ )
+ }
>
<Table
columns={columns}
@@ -272,8 +290,16 @@ const CommunityWorkspaceSettings = memo(() => {
const [savingField, setSavingField] = useState<string | null>(null);
const [avatarUploading, setAvatarUploading] = useState(false);
const [bannerUploading, setBannerUploading] = useState(false);
+ /** Upload refusals render under their picker; the page stays open, so a corner toast would sit away from it. */
+ const [avatarError, setAvatarError] = useState('');
+ const [bannerError, setBannerError] = useState('');
const [namespaceError, setNamespaceError] = useState<string | undefined>();
const [websiteError, setWebsiteError] = useState<string | undefined>();
+ /**
+ * Save failure of one card, shown in that card's footer beside its Save button. Server
+ * messages are untranslated, so the copy is fixed and the raw error only goes to the console.
+ */
+ const [saveError, setSaveError] = useState<{ field: string; message: string } | null>(null);
const [activeTab, setActiveTab] = useState<'members' | 'profile'>('profile');
const handleBack = useCallback(() => {
@@ -316,6 +342,7 @@ const CommunityWorkspaceSettings = memo(() => {
async (field: string, input: Parameters<typeof updateCommunityWorkspaceProfile>[0]) => {
if (!canEdit) return;
setSavingField(field);
+ setSaveError(null);
try {
await updateCommunityWorkspaceProfile(input);
await refresh();
@@ -324,7 +351,8 @@ const CommunityWorkspaceSettings = memo(() => {
if (field === 'namespace' && isCommunityWorkspaceNamespaceTakenError(error)) {
setNamespaceError(t('user.workspaceProfile.settings.namespaceTaken'));
} else {
- toast.error((error as Error).message || t('user.workspaceProfile.settings.updateFailed'));
+ console.error('[CommunityWorkspaceSettings] Profile update failed:', error);
+ setSaveError({ field, message: t('user.workspaceProfile.settings.updateFailedRetry') });
}
} finally {
setSavingField(null);
@@ -354,6 +382,16 @@ const CommunityWorkspaceSettings = memo(() => {
);
};
+ /** Footer hint of a card, replaced by that card's save failure while one is shown. */
+ const hintFor = (field: string, hint: ReactNode) =>
+ saveError?.field === field ? (
+ <Text role="alert" style={{ fontSize: 13 }} type="danger">
+ {saveError.message}
+ </Text>
+ ) : (
+ hint
+ );
+
const namespaceValidation = useMemo(() => {
const value = namespace.trim();
if (!value) return t('user.workspaceProfile.errors.namespace.required');
@@ -365,8 +403,9 @@ const CommunityWorkspaceSettings = memo(() => {
const handleAvatarUpload = useCallback(
async (file: File) => {
+ setAvatarError('');
if (file.size > MAX_FILE_SIZE) {
- toast.error(t('user.workspaceProfile.errors.fileTooLarge'));
+ setAvatarError(t('user.workspaceProfile.errors.fileTooLarge'));
return;
}
@@ -374,7 +413,7 @@ const CommunityWorkspaceSettings = memo(() => {
try {
const result = await uploadWithProgress({ file });
if (!result?.url) {
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setAvatarError(t('user.workspaceProfile.errors.uploadFailedRetry'));
return;
}
setAvatarUrl(
@@ -382,7 +421,7 @@ const CommunityWorkspaceSettings = memo(() => {
);
} catch (error) {
console.error('[CommunityWorkspaceSettings] Avatar upload failed:', error);
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setAvatarError(t('user.workspaceProfile.errors.uploadFailedRetry'));
} finally {
setAvatarUploading(false);
}
@@ -392,8 +431,9 @@ const CommunityWorkspaceSettings = memo(() => {
const handleBannerUpload = useCallback(
async (file: File) => {
+ setBannerError('');
if (file.size > MAX_FILE_SIZE) {
- toast.error(t('user.workspaceProfile.errors.fileTooLarge'));
+ setBannerError(t('user.workspaceProfile.errors.fileTooLarge'));
return;
}
@@ -401,7 +441,7 @@ const CommunityWorkspaceSettings = memo(() => {
try {
const result = await uploadWithProgress({ file });
if (!result?.url) {
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setBannerError(t('user.workspaceProfile.errors.uploadFailedRetry'));
return;
}
const url = result.url.startsWith('/')
@@ -410,7 +450,7 @@ const CommunityWorkspaceSettings = memo(() => {
setBannerUrl(url);
} catch (error) {
console.error('[CommunityWorkspaceSettings] Banner upload failed:', error);
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setBannerError(t('user.workspaceProfile.errors.uploadFailedRetry'));
} finally {
setBannerUploading(false);
}
@@ -456,7 +496,7 @@ const CommunityWorkspaceSettings = memo(() => {
<>
<SettingCard
description={t('user.workspaceProfile.settings.displayName.description')}
- hint={t('user.workspaceProfile.fields.displayName.maxLength')}
+ hint={hintFor('displayName', t('user.workspaceProfile.fields.displayName.maxLength'))}
title={t('user.workspaceProfile.fields.displayName')}
action={buildSaveButton('displayName', !displayNameDirty || !displayName.trim(), () =>
updateProfile('displayName', { displayName: displayName.trim() }),
@@ -468,7 +508,10 @@ const CommunityWorkspaceSettings = memo(() => {
style={{ maxWidth: 420 }}
suffix={`${displayName.length} / ${DISPLAY_NAME_MAX}`}
value={displayName}
- onChange={(e) => setDisplayName(e.target.value)}
+ onChange={(e) => {
+ setDisplayName(e.target.value);
+ if (saveError?.field === 'displayName') setSaveError(null);
+ }}
/>
</SettingCard>
@@ -478,12 +521,13 @@ const CommunityWorkspaceSettings = memo(() => {
action={buildSaveButton('namespace', !namespaceDirty || !!namespaceValidation, () =>
updateProfile('namespace', { namespace: namespace.trim() }),
)}
- hint={
+ hint={hintFor(
+ 'namespace',
namespaceValidation ||
- t('user.workspaceProfile.settings.namespace.hint', {
- max: NAMESPACE_MAX,
- })
- }
+ t('user.workspaceProfile.settings.namespace.hint', {
+ max: NAMESPACE_MAX,
+ }),
+ )}
>
<Input
aria-invalid={!!namespaceValidation}
@@ -497,13 +541,14 @@ const CommunityWorkspaceSettings = memo(() => {
onChange={(e) => {
setNamespace(e.target.value);
setNamespaceError(undefined);
+ if (saveError?.field === 'namespace') setSaveError(null);
}}
/>
</SettingCard>
<SettingCard
description={t('user.workspaceProfile.settings.description.description')}
- hint={t('user.workspaceProfile.fields.description.maxLength')}
+ hint={hintFor('description', t('user.workspaceProfile.fields.description.maxLength'))}
title={t('user.workspaceProfile.fields.description')}
action={buildSaveButton('description', !descriptionDirty, () =>
updateProfile('description', { description: trimOptional(description) }),
@@ -516,17 +561,23 @@ const CommunityWorkspaceSettings = memo(() => {
rows={3}
style={{ maxWidth: 560 }}
value={description}
- onChange={(e) => setDescription(e.target.value)}
+ onChange={(e) => {
+ setDescription(e.target.value);
+ if (saveError?.field === 'description') setSaveError(null);
+ }}
/>
</SettingCard>
<SettingCard
description={t('user.workspaceProfile.settings.website.description')}
- hint={websiteError || t('user.workspaceProfile.settings.website.hint')}
title={t('user.workspaceProfile.fields.websiteUrl')}
action={buildSaveButton('websiteUrl', !websiteDirty || !!websiteError, () =>
updateProfile('websiteUrl', { websiteUrl: trimOptional(websiteUrl) }),
)}
+ hint={hintFor(
+ 'websiteUrl',
+ websiteError || t('user.workspaceProfile.settings.website.hint'),
+ )}
>
<Input
aria-invalid={!!websiteError}
@@ -540,6 +591,7 @@ const CommunityWorkspaceSettings = memo(() => {
onChange={(e) => {
const next = e.target.value;
setWebsiteUrl(next);
+ if (saveError?.field === 'websiteUrl') setSaveError(null);
setWebsiteError(
isValidUrl(next) ? undefined : t('user.workspaceProfile.errors.url'),
);
@@ -549,34 +601,41 @@ const CommunityWorkspaceSettings = memo(() => {
<SettingCard
description={t('user.workspaceProfile.settings.avatar.description')}
- hint={t('user.workspaceProfile.settings.avatar.hint')}
+ hint={hintFor('avatarUrl', t('user.workspaceProfile.settings.avatar.hint'))}
title={t('user.workspaceProfile.fields.avatar')}
action={buildSaveButton('avatarUrl', !avatarDirty || avatarUploading, () =>
updateProfile('avatarUrl', { avatarUrl }),
)}
>
- <EmojiPicker
- allowDelete={canEdit && !!avatarUrl}
- allowUpload={canEdit ? { enableEmoji: true } : false}
- loading={avatarUploading}
- shape="square"
- size={80}
- value={avatarUrl || undefined}
- onDelete={canEdit ? () => setAvatarUrl(null) : undefined}
- onUpload={canEdit ? handleAvatarUpload : undefined}
- onChange={
- canEdit
- ? (next) => {
- if (!next.startsWith('data:')) setAvatarUrl(next || null);
- }
- : undefined
- }
- />
+ <Flexbox gap={8}>
+ <EmojiPicker
+ allowDelete={canEdit && !!avatarUrl}
+ allowUpload={canEdit ? { enableEmoji: true } : false}
+ loading={avatarUploading}
+ shape="square"
+ size={80}
+ value={avatarUrl || undefined}
+ onDelete={canEdit ? () => setAvatarUrl(null) : undefined}
+ onUpload={canEdit ? handleAvatarUpload : undefined}
+ onChange={
+ canEdit
+ ? (next) => {
+ if (!next.startsWith('data:')) setAvatarUrl(next || null);
+ }
+ : undefined
+ }
+ />
+ {avatarError && (
+ <Text fontSize={12} role="alert" type="danger">
+ {avatarError}
+ </Text>
+ )}
+ </Flexbox>
</SettingCard>
<SettingCard
description={t('user.workspaceProfile.settings.banner.description')}
- hint={t('user.workspaceProfile.fields.bannerUrl.tooltip')}
+ hint={hintFor('bannerUrl', t('user.workspaceProfile.fields.bannerUrl.tooltip'))}
action={buildSaveButton('bannerUrl', !bannerDirty || bannerUploading, () =>
updateProfile('bannerUrl', { bannerUrl }),
)}
@@ -646,6 +705,11 @@ const CommunityWorkspaceSettings = memo(() => {
</Center>
</div>
</Upload>
+ {bannerError && (
+ <Text fontSize={12} role="alert" type="danger">
+ {bannerError}
+ </Text>
+ )}
{canEdit && bannerUrl && (
<Flexbox horizontal align="center" gap={8} justify="flex-start">
<Button
diff --git a/src/features/Connectors/AddConnectorModal/index.tsx b/src/features/Connectors/AddConnectorModal/index.tsx
index 7fe859411da..74d42a0bbbd 100644
--- a/src/features/Connectors/AddConnectorModal/index.tsx
+++ b/src/features/Connectors/AddConnectorModal/index.tsx
@@ -4,6 +4,8 @@ import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import ImperativeModal from '@/components/ImperativeModal';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { ConnectorSourceType } from '@/database/schemas';
import { lambdaClient } from '@/libs/trpc/client';
import { useToolStore } from '@/store/tool';
@@ -84,6 +86,7 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
const [clientSecret, setClientSecret] = useState('');
const [showAdvanced, setShowAdvanced] = useState(false);
const [submitting, setSubmitting] = useState(false);
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
// Pre-fill form when opening in edit mode
useEffect(() => {
@@ -125,6 +128,7 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
setClientSecret('');
setShowAdvanced(false);
setSubmitting(false);
+ setSubmitError(null);
};
const handleAdd = async () => {
@@ -133,10 +137,13 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
// Open the popup synchronously within the click handler, otherwise the
// browser blocks it once we cross the first `await` below. It's navigated to
// the real authorize URL after the connector + OAuth-start mutations resolve.
+ setSubmitError(null);
const popup = window.open('about:blank', 'lobe-connector-oauth', 'width=600,height=720');
if (!popup) {
- toast.error(
- t('connector.add.popupBlocked', 'Please allow popups for this site and try again.'),
+ setSubmitError(
+ toInlineError(
+ t('connector.add.popupBlocked', 'Please allow popups for this site and try again.'),
+ ),
);
return;
}
@@ -209,6 +216,20 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
reset();
onClose();
+ } catch (error) {
+ console.error('[AddConnector] Failed to add connector:', error);
+ // The blank OAuth popup was opened before any await; close it so it
+ // does not linger beside the inline error.
+ if (!popup.closed) popup.close();
+ setSubmitError(
+ toInlineError(
+ t(
+ 'connector.add.failedRetry',
+ "Couldn't save the connector. Check the server URL and your network, then try again.",
+ ),
+ error,
+ ),
+ );
} finally {
setSubmitting(false);
}
@@ -224,12 +245,15 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
// Re-run OAuth if the URL changed or new credentials were supplied
const needsReAuth = urlChanged || hasNewCredentials;
+ setSubmitError(null);
let popup: Window | null = null;
if (needsReAuth) {
popup = window.open('about:blank', 'lobe-connector-oauth', 'width=600,height=720');
if (!popup) {
- toast.error(
- t('connector.add.popupBlocked', 'Please allow popups for this site and try again.'),
+ setSubmitError(
+ toInlineError(
+ t('connector.add.popupBlocked', 'Please allow popups for this site and try again.'),
+ ),
);
return;
}
@@ -299,6 +323,18 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
reset();
onClose();
+ } catch (error) {
+ console.error('[AddConnector] Failed to update connector:', error);
+ if (popup && !popup.closed) popup.close();
+ setSubmitError(
+ toInlineError(
+ t(
+ 'connector.add.failedRetry',
+ "Couldn't save the connector. Check the server URL and your network, then try again.",
+ ),
+ error,
+ ),
+ );
} finally {
setSubmitting(false);
}
@@ -332,7 +368,10 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
<Input
placeholder={t('connector.add.namePlaceholder', 'My connector')}
value={name}
- onChange={(e) => setName(e.target.value)}
+ onChange={(e) => {
+ setName(e.target.value);
+ setSubmitError(null);
+ }}
/>
</div>
<div>
@@ -342,7 +381,10 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
<Input
placeholder="https://mcp.example.com"
value={url}
- onChange={(e) => setUrl(e.target.value)}
+ onChange={(e) => {
+ setUrl(e.target.value);
+ setSubmitError(null);
+ }}
/>
</div>
@@ -369,13 +411,19 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
<Input
placeholder={t('connector.add.clientId', 'OAuth Client ID (optional)')}
value={clientId}
- onChange={(e) => setClientId(e.target.value)}
+ onChange={(e) => {
+ setClientId(e.target.value);
+ setSubmitError(null);
+ }}
/>
<InputPassword
autoComplete="new-password"
placeholder={t('connector.add.clientSecret', 'OAuth Client Secret (optional)')}
value={clientSecret}
- onChange={(e) => setClientSecret(e.target.value)}
+ onChange={(e) => {
+ setClientSecret(e.target.value);
+ setSubmitError(null);
+ }}
/>
<div style={{ color: 'var(--lobe-colors-neutral-500)', fontSize: 12 }}>
{t('connector.add.redirectHint', 'Redirect URI to register with your OAuth app:')}
@@ -385,6 +433,9 @@ const AddConnectorModal = memo<AddConnectorModalProps>(({ open, onClose, connect
</div>
)}
</div>
+ {submitError && (
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ )}
</div>
</ImperativeModal>
);
diff --git a/src/features/Connectors/ConnectorActionErrorText.tsx b/src/features/Connectors/ConnectorActionErrorText.tsx
index 0c3053dcb49..2b990532a20 100644
--- a/src/features/Connectors/ConnectorActionErrorText.tsx
+++ b/src/features/Connectors/ConnectorActionErrorText.tsx
@@ -1,47 +1,13 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
-import * as stylex from '@stylexjs/stylex';
-import { CircleAlert } from 'lucide-react';
-import { memo, type ReactNode } from 'react';
+import { memo } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import { type ConnectorActionError } from '@/utils/connectorActionError';
import { formatConnectorActionError } from './formatConnectorActionError';
-const styles = stylex.create({
- error: {
- alignItems: 'flex-start',
- color: cssVar.colorError,
- display: 'flex',
- fontSize: 12,
- gap: 4,
- lineHeight: 1.5,
- wordBreak: 'break-word',
- },
- icon: {
- flex: 'none',
- marginBlockStart: 3,
- },
-});
-
-/**
- * Red, in-place reason of a failed action. It stays where the action was taken,
- * so the user still sees what happened after any toast is gone.
- */
-export const InlineErrorText = memo<{ children: ReactNode }>(({ children }) => (
- <div role={'alert'} {...stylex.props(styles.error)}>
- <span {...stylex.props(styles.icon)}>
- <Icon icon={CircleAlert} size={12} />
- </span>
- <span>{children}</span>
- </div>
-));
-
-InlineErrorText.displayName = 'InlineErrorText';
-
interface ConnectorActionErrorTextProps {
error: ConnectorActionError;
/** Display name of the connector, used by reasons that name the app. */
diff --git a/src/features/Connectors/ConnectorDetail/ConnectorAccounts.tsx b/src/features/Connectors/ConnectorDetail/ConnectorAccounts.tsx
index 2792d9d7185..ef0a5f3a61e 100644
--- a/src/features/Connectors/ConnectorDetail/ConnectorAccounts.tsx
+++ b/src/features/Connectors/ConnectorDetail/ConnectorAccounts.tsx
@@ -16,10 +16,10 @@ import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import Avatar from '@/components/Avatar';
+import InlineErrorText from '@/components/InlineErrorText';
import type { ConnectorLinkSummary, ConnectorWithTools } from '@/store/tool/slices/connector';
import { densityTokens } from '@/styles/density.stylex';
-import { InlineErrorText } from '../ConnectorActionErrorText';
import { getAccountDetails, getAccountsSectionModel, getRowBusyAction } from './accountsModel';
import ManageTooltip from './ManageTooltip';
import Section from './Section';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx
index 5f8c8f66ac1..30b8d72b80c 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, Button, Flexbox, Icon, Input, toast } from '@lobehub/ui';
+import { ActionIcon, Button, Flexbox, Icon, Input } from '@lobehub/ui';
import { Form, useForm } from '@lobehub/ui/form';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
@@ -6,6 +6,9 @@ import { LucidePlus, LucideTrash } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
+
const styles = stylex.create({
form: {
position: 'relative',
@@ -67,19 +70,24 @@ const KeyValueEditor = memo<KeyValueEditorProps>(({ initialValue = {}, onFinish,
}, [initialValue, form]);
const [updating, setUpdating] = useState(false);
+ /** Failure of the save itself, shown above the buttons; validation errors show on their own fields. */
+ const [saveError, setSaveError] = useState<InlineErrorState | null>(null);
const handleFinish = async () => {
setUpdating(true);
+ setSaveError(null);
try {
- const { errors, valid } = await form.validate();
- if (!valid) throw errors;
+ // Invalid fields (empty / duplicate key) render their own error, so nothing else is shown.
+ const { valid } = await form.validate();
+ if (!valid) return;
const values = form.getValues();
const record = formListToRecord(values.items || []);
await onFinish?.(record);
- } catch (errorInfo) {
- console.error('Validation Failed:', errorInfo);
- toast.error(t('updateArgs.formValidationFailed') || 'Please check the form for errors.');
+ } catch (error) {
+ console.error('Failed to save tool arguments:', error);
+ setSaveError(toInlineError(t('updateArgs.saveFailed'), error));
+ } finally {
+ setUpdating(false);
}
- setUpdating(false);
};
const handleCancel = () => {
@@ -153,6 +161,11 @@ const KeyValueEditor = memo<KeyValueEditorProps>(({ initialValue = {}, onFinish,
/>
</Flexbox>
))}
+ {saveError && (
+ <InlineErrorText detail={saveError.detail} style={{ marginTop: 8 }}>
+ {saveError.summary}
+ </InlineErrorText>
+ )}
<Flexbox horizontal gap={8} justify={'space-between'} style={{ marginTop: 8 }}>
<Button
icon={<Icon icon={LucidePlus} />}
diff --git a/src/features/Dashboard/DashboardFormModal.tsx b/src/features/Dashboard/DashboardFormModal.tsx
index 5093cbbc26f..83ca9accc85 100644
--- a/src/features/Dashboard/DashboardFormModal.tsx
+++ b/src/features/Dashboard/DashboardFormModal.tsx
@@ -9,13 +9,14 @@ import {
ModalFooter,
Text,
TextArea,
- toast,
useModalContext,
} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useDashboardStore } from '@/store/dashboard';
interface DashboardFormProps {
@@ -29,17 +30,20 @@ const DashboardForm = memo<DashboardFormProps>(({ onSubmit, submitText }) => {
const [title, setTitle] = useState('');
const [description, setDescription] = useState('');
const [loading, setLoading] = useState(false);
+ /** Submit failure, shown above the footer buttons: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const trimmed = title.trim();
const handleSubmit = async () => {
if (!trimmed || loading) return;
+ setError(null);
setLoading(true);
try {
await onSubmit({ description: description.trim() || undefined, title: trimmed });
close();
- } catch (error) {
- console.error('[dashboard] form submit failed', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ } catch (err) {
+ console.error('[dashboard] form submit failed', err);
+ setError(toInlineError(t('form.saveFailedRetry'), err));
} finally {
setLoading(false);
}
@@ -58,8 +62,11 @@ const DashboardForm = memo<DashboardFormProps>(({ onSubmit, submitText }) => {
maxLength={200}
placeholder={t('form.titlePlaceholder')}
value={title}
- onChange={(event) => setTitle(event.target.value)}
onPressEnter={() => void handleSubmit()}
+ onChange={(event) => {
+ setTitle(event.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
<Flexbox gap={6}>
@@ -74,6 +81,7 @@ const DashboardForm = memo<DashboardFormProps>(({ onSubmit, submitText }) => {
onChange={(event) => setDescription(event.target.value)}
/>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/Dashboard/DashboardSettingsModal.tsx b/src/features/Dashboard/DashboardSettingsModal.tsx
index 115baabbcb5..78c8b3e01c7 100644
--- a/src/features/Dashboard/DashboardSettingsModal.tsx
+++ b/src/features/Dashboard/DashboardSettingsModal.tsx
@@ -19,6 +19,8 @@ import { t as translate } from 'i18next';
import { type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import type { DashboardListItem, DashboardSettingsPatch } from '@/services/dashboard';
import { dashboardSelectors, useDashboardStore } from '@/store/dashboard';
import { useUserStore } from '@/store/user';
@@ -85,6 +87,8 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
const [visibility, setVisibility] = useState<DashboardVisibility>(dashboard.visibility);
const [pickedSchedule, setPickedSchedule] = useState<BoardScheduleChoice>();
const [saving, setSaving] = useState(false);
+ /** Save failure, shown above the footer buttons: the modal stays open with the user's edits. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
// Home boards outside a workspace are personal: there is no one to share with.
const showVisibility = !!dashboard.workspaceId;
@@ -117,6 +121,7 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
const handleSave = async () => {
if (!trimmedTitle || saving) return;
+ setError(null);
setSaving(true);
try {
const patch: DashboardSettingsPatch = {};
@@ -144,9 +149,9 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
else if (keptPrivate) toast.info(t('settings.visibilityKeptPrivate'));
else toast.success(t('settings.saved'));
close();
- } catch (error) {
- console.error('[dashboard] settings save failed', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ } catch (err) {
+ console.error('[dashboard] settings save failed', err);
+ setError(toInlineError(t('form.saveFailedRetry'), err));
} finally {
setSaving(false);
}
@@ -167,7 +172,10 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
options={scheduleOptions}
value={schedule}
variant={'filled'}
- onChange={(value) => setPickedSchedule(value as BoardScheduleChoice)}
+ onChange={(value) => {
+ setPickedSchedule(value as BoardScheduleChoice);
+ setError(null);
+ }}
/>
);
};
@@ -182,7 +190,10 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
maxLength={200}
placeholder={t('form.titlePlaceholder')}
value={title}
- onChange={(event) => setTitle(event.target.value)}
+ onChange={(event) => {
+ setTitle(event.target.value);
+ setError(null);
+ }}
/>
</Field>
<Field label={t('form.descriptionLabel')}>
@@ -191,7 +202,10 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
maxLength={2000}
placeholder={t('form.descriptionPlaceholder')}
value={description}
- onChange={(event) => setDescription(event.target.value)}
+ onChange={(event) => {
+ setDescription(event.target.value);
+ setError(null);
+ }}
/>
</Field>
{showVisibility && (
@@ -203,7 +217,10 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
{ label: t('settings.visibilityPrivate'), value: 'private' },
{ label: t('settings.visibilityPublic'), value: 'public' },
]}
- onChange={(value) => setVisibility(value as DashboardVisibility)}
+ onChange={(value) => {
+ setVisibility(value as DashboardVisibility);
+ setError(null);
+ }}
/>
</Field>
)}
@@ -222,6 +239,7 @@ const DashboardSettingsForm = ({ dashboard, level }: DashboardSettingsFormProps)
>
{renderSchedule()}
</Field>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/Dashboard/WidgetEditModal.tsx b/src/features/Dashboard/WidgetEditModal.tsx
index 1cb864f9426..16714eaeebe 100644
--- a/src/features/Dashboard/WidgetEditModal.tsx
+++ b/src/features/Dashboard/WidgetEditModal.tsx
@@ -15,6 +15,8 @@ import { t as translate } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useDashboardStore } from '@/store/dashboard';
/** Longest widget title and metric definition the API accepts. */
@@ -33,6 +35,8 @@ const WidgetEditForm = ({ widget }: WidgetEditFormProps) => {
const [title, setTitle] = useState(widget.title);
const [description, setDescription] = useState(widget.description ?? '');
const [saving, setSaving] = useState(false);
+ /** Save failure, shown above the footer buttons: the modal stays open with the user's edits. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const trimmedTitle = title.trim();
const handleSave = async () => {
@@ -46,14 +50,15 @@ const WidgetEditForm = ({ widget }: WidgetEditFormProps) => {
close();
return;
}
+ setError(null);
setSaving(true);
try {
await updateWidget(widget.id, patch);
toast.success(t('widgetEdit.saved'));
close();
- } catch (error) {
- console.error('[dashboard] widget edit failed', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ } catch (err) {
+ console.error('[dashboard] widget edit failed', err);
+ setError(toInlineError(t('widget.saveFailedRetry'), err));
} finally {
setSaving(false);
}
@@ -71,8 +76,11 @@ const WidgetEditForm = ({ widget }: WidgetEditFormProps) => {
data-widget-edit-title
maxLength={TITLE_MAX_LENGTH}
value={title}
- onChange={(event) => setTitle(event.target.value)}
onPressEnter={() => void handleSave()}
+ onChange={(event) => {
+ setTitle(event.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
<Flexbox gap={6}>
@@ -88,6 +96,7 @@ const WidgetEditForm = ({ widget }: WidgetEditFormProps) => {
onChange={(event) => setDescription(event.target.value)}
/>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/DeviceManager/ShareDeviceModal.tsx b/src/features/DeviceManager/ShareDeviceModal.tsx
index 383aa59f04a..1d4d337fdda 100644
--- a/src/features/DeviceManager/ShareDeviceModal.tsx
+++ b/src/features/DeviceManager/ShareDeviceModal.tsx
@@ -12,7 +12,6 @@ import {
Select,
Tag,
Text,
- toast,
useModalContext,
} from '@lobehub/ui';
import { t } from 'i18next';
@@ -22,12 +21,13 @@ import { useTranslation } from 'react-i18next';
import { useWorkspaceOptionLabel } from '@/business/client/hooks/useWorkspaceOptionLabel';
import { useWorkspaces } from '@/business/client/hooks/useWorkspaces';
+import InlineErrorText from '@/components/InlineErrorText';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { createWorkspaceLambdaClient } from '@/libs/trpc/client';
import { densityVars } from '@/styles/densityVars';
import { refreshDeviceList } from './const';
-import { getDeviceActionErrorMessage } from './deviceActionError';
+import { type DeviceShareErrorView, getDeviceShareErrorView } from './deviceActionError';
const styles = createStaticStyles(({ css }) => ({
footer: css`
@@ -83,6 +83,8 @@ const ShareDeviceContent = memo<ShareDeviceContentProps>(({ device }) => {
const [targetId, setTargetId] = useState<string>();
const [visibility, setVisibility] = useState<DeviceVisibility>('private');
const [sharing, setSharing] = useState(false);
+ /** Share failure, shown above the footer buttons: the modal stays open with the chosen workspace and scope. */
+ const [shareError, setShareError] = useState<DeviceShareErrorView>();
const [step, setStep] = useState<'done' | 'select-target'>('select-target');
const [completion, setCompletion] = useState<CompletionState>();
@@ -165,6 +167,7 @@ const ShareDeviceContent = memo<ShareDeviceContentProps>(({ device }) => {
const target = workspaces.find((w) => w.id === effectiveTargetId);
if (!target) return;
+ setShareError(undefined);
setSharing(true);
// Lock dismissal so the mutation can't be interrupted mid-flight.
setCanDismissByClickOutside?.(false);
@@ -197,9 +200,8 @@ const ShareDeviceContent = memo<ShareDeviceContentProps>(({ device }) => {
setCompletion({ name: target.name, slug: target.slug });
setStep('done');
} catch (error) {
- // Server messages (e.g. PRECONDITION_FAILED when the device dropped
- // offline mid-flow) are user-facing; known refusals get localized copy.
- toast.error(`${target.name}: ${getDeviceActionErrorMessage(error)}`);
+ console.error('[ShareDeviceModal] share failed:', error);
+ setShareError(getDeviceShareErrorView(error, target.name));
} finally {
setSharing(false);
setCanDismissByClickOutside?.(true);
@@ -258,7 +260,10 @@ const ShareDeviceContent = memo<ShareDeviceContentProps>(({ device }) => {
placeholder={tSetting('devices.share.selectPlaceholder')}
style={{ width: '100%' }}
value={effectiveTargetId}
- onChange={(value) => setTargetId(value as string)}
+ onChange={(value) => {
+ setTargetId(value as string);
+ setShareError(undefined);
+ }}
/>
</Flexbox>
@@ -278,6 +283,12 @@ const ShareDeviceContent = memo<ShareDeviceContentProps>(({ device }) => {
)}
</Flexbox>
+ {shareError && (
+ <Flexbox paddingBlock={'0 12px'} paddingInline={24}>
+ <InlineErrorText detail={shareError.detail}>{shareError.summary}</InlineErrorText>
+ </Flexbox>
+ )}
+
<Flexbox horizontal className={styles.footer} gap={8} justify={'space-between'}>
<Button disabled={sharing} onClick={close}>
{tSetting('cancel', { ns: 'common' })}
diff --git a/src/features/DeviceManager/deviceActionError.test.ts b/src/features/DeviceManager/deviceActionError.test.ts
index 2373959e6a6..32efebe1e95 100644
--- a/src/features/DeviceManager/deviceActionError.test.ts
+++ b/src/features/DeviceManager/deviceActionError.test.ts
@@ -1,6 +1,10 @@
import { describe, expect, it, vi } from 'vitest';
-import { DEVICE_BOUND_TO_FIXED_AGENT, getDeviceActionErrorMessage } from './deviceActionError';
+import {
+ DEVICE_BOUND_TO_FIXED_AGENT,
+ getDeviceActionErrorMessage,
+ getDeviceShareErrorView,
+} from './deviceActionError';
vi.mock('i18next', () => ({
t: (key: string, options?: { ns?: string }) => `${options?.ns}:${key}`,
@@ -33,3 +37,29 @@ describe('getDeviceActionErrorMessage', () => {
expect(getDeviceActionErrorMessage(undefined)).toBe('common:operationFailed');
});
});
+
+describe('getDeviceShareErrorView', () => {
+ it('keeps the fixed-agent refusal as the summary', () => {
+ const error = trpcError('fixed', { code: DEVICE_BOUND_TO_FIXED_AGENT });
+
+ expect(getDeviceShareErrorView(error, 'Mac')).toEqual({
+ summary: 'setting:devices.errors.boundToFixedAgent',
+ });
+ });
+
+ it('shows a retry line and folds the raw server message into detail', () => {
+ const error = trpcError('Device went offline');
+
+ expect(getDeviceShareErrorView(error, 'Mac')).toEqual({
+ detail: 'Device went offline',
+ summary: 'setting:devices.share.failedRetry',
+ });
+ });
+
+ it('omits detail when the error carries no message', () => {
+ expect(getDeviceShareErrorView(undefined, 'Mac')).toEqual({
+ detail: undefined,
+ summary: 'setting:devices.share.failedRetry',
+ });
+ });
+});
diff --git a/src/features/DeviceManager/deviceActionError.ts b/src/features/DeviceManager/deviceActionError.ts
index dc4fd2a3372..b9513c784a5 100644
--- a/src/features/DeviceManager/deviceActionError.ts
+++ b/src/features/DeviceManager/deviceActionError.ts
@@ -23,3 +23,31 @@ export const getDeviceActionErrorMessage = (error: unknown): string => {
return t('operationFailed', { ns: 'common' });
};
+
+export interface DeviceShareErrorView {
+ /** Raw server message, folded behind "Show details" */
+ detail?: string;
+ /** One actionable line shown beside the Share button */
+ summary: string;
+}
+
+/**
+ * Inline copy for a failed share in the share dialog. Known refusals keep their
+ * localized copy; anything else gets a fixed retry line, with the server message
+ * (often English, e.g. a PRECONDITION_FAILED when the device dropped offline)
+ * kept as folded detail rather than shown as the summary.
+ */
+export const getDeviceShareErrorView = (
+ error: unknown,
+ workspaceName: string,
+): DeviceShareErrorView => {
+ const data = (error as { data?: { errorData?: { code?: unknown } } } | null)?.data;
+ if (data?.errorData?.code === DEVICE_BOUND_TO_FIXED_AGENT)
+ return { summary: t('devices.errors.boundToFixedAgent', { ns: 'setting' }) };
+
+ const message = (error as { message?: unknown } | null)?.message;
+ return {
+ detail: typeof message === 'string' && message.trim() ? message : undefined,
+ summary: t('devices.share.failedRetry', { name: workspaceName, ns: 'setting' }),
+ };
+};
diff --git a/src/features/EnvironmentManager/EnvironmentForm.tsx b/src/features/EnvironmentManager/EnvironmentForm.tsx
index d7cfc238641..672eeeb0971 100644
--- a/src/features/EnvironmentManager/EnvironmentForm.tsx
+++ b/src/features/EnvironmentManager/EnvironmentForm.tsx
@@ -27,6 +27,7 @@ import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
+import InlineErrorText from '@/components/InlineErrorText';
import { parseGithubRepository } from '@/features/Projects/CreateFromGithub/githubRepository';
import { environmentService, type SandboxEnvironmentSpecification } from '@/services/environment';
import { densityVars } from '@/styles/densityVars';
@@ -283,6 +284,11 @@ const EnvironmentForm = memo<EnvironmentFormProps>(({ environment, hideBasics, o
const configuration = (environment.configuration ?? {}) as SandboxEnvironmentSpecification;
const [pickingRepository, setPickingRepository] = useState(false);
const [busy, setBusy] = useState(false);
+ /**
+ * Failure of a repository add / remove, shown in the Sources section: the page stays open and
+ * the control that failed has no confirm step of its own to hang an error on.
+ */
+ const [repositoryError, setRepositoryError] = useState('');
// Every field saves the whole specification, so two saves in flight at once
// would each start from the same snapshot and the later one would undo the
@@ -325,10 +331,12 @@ const EnvironmentForm = memo<EnvironmentFormProps>(({ environment, hideBasics, o
/** For controls with no confirm step of their own: a switch, a disconnect. */
const run = async (action: () => Promise<void>) => {
setBusy(true);
+ setRepositoryError('');
try {
await action();
} catch (error) {
- toast.error(describeError(error, t, t('environments.saveFailed')));
+ console.error('[EnvironmentForm] Save failed:', error);
+ setRepositoryError(describeError(error, t, t('environments.saveFailedRetry')));
} finally {
setBusy(false);
}
@@ -490,6 +498,7 @@ const EnvironmentForm = memo<EnvironmentFormProps>(({ environment, hideBasics, o
))}
</Flexbox>
)}
+ {repositoryError && <InlineErrorText>{repositoryError}</InlineErrorText>}
{pickingRepository ? (
<Flexbox gap={8}>
<GithubRepositoryPicker onChange={addRepository} />
diff --git a/src/features/EnvironmentManager/EnvironmentVariables.tsx b/src/features/EnvironmentManager/EnvironmentVariables.tsx
index 3f7eec7dfc8..f2678a0c40a 100644
--- a/src/features/EnvironmentManager/EnvironmentVariables.tsx
+++ b/src/features/EnvironmentManager/EnvironmentVariables.tsx
@@ -11,7 +11,6 @@ import {
Input,
Text,
TextArea,
- toast,
} from '@lobehub/ui';
import { BracesIcon, CheckIcon, PencilIcon, PlusIcon, Trash2Icon, XIcon } from 'lucide-react';
import { memo, useState } from 'react';
@@ -130,15 +129,19 @@ const EnvRow = memo<{
const { t: tCommon } = useTranslation('common');
const [draft, setDraft] = useState<Entry | null>(null);
const [busy, setBusy] = useState(false);
+ /** Shown under the row being edited (or beside the row whose remove failed), not as a toast. */
+ const [error, setError] = useState('');
const { compositionProps, isComposingRef } = useIMECompositionEvent();
const run = async (action: () => Promise<void>) => {
setBusy(true);
+ setError('');
try {
await action();
setDraft(null);
- } catch (error) {
- toast.error(describeError(error, t, t('environments.saveFailed')));
+ } catch (err) {
+ console.error('[EnvironmentVariables] Save failed:', err);
+ setError(describeError(err, t, t('environments.saveFailedRetry')));
} finally {
setBusy(false);
}
@@ -146,19 +149,29 @@ const EnvRow = memo<{
if (draft) {
return (
- <Flexbox horizontal align={'center'} className={styles.row} gap={8}>
+ <Flexbox horizontal align={'center'} className={styles.row} gap={8} wrap={'wrap'}>
<Input
autoFocus
+ aria-invalid={!!error}
+ data-invalid={error ? '' : undefined}
placeholder={'NODE_ENV'}
style={{ flex: 1 }}
value={draft[0]}
- onChange={(event) => setDraft([event.target.value, draft[1]])}
+ onChange={(event) => {
+ setDraft([event.target.value, draft[1]]);
+ setError('');
+ }}
/>
<Input
+ aria-invalid={!!error}
+ data-invalid={error ? '' : undefined}
placeholder={'production'}
style={{ flex: 1 }}
value={draft[1]}
- onChange={(event) => setDraft([draft[0], event.target.value])}
+ onChange={(event) => {
+ setDraft([draft[0], event.target.value]);
+ setError('');
+ }}
onKeyDown={(event) => {
if (event.key === 'Escape') setDraft(null);
// Not the Enter that confirms an IME candidate: a value typed in
@@ -182,14 +195,22 @@ const EnvRow = memo<{
icon={XIcon}
size={'small'}
title={tCommon('cancel')}
- onClick={() => setDraft(null)}
+ onClick={() => {
+ setDraft(null);
+ setError('');
+ }}
/>
+ {error && (
+ <Text fontSize={12} role={'alert'} style={{ flexBasis: '100%' }} type={'danger'}>
+ {error}
+ </Text>
+ )}
</Flexbox>
);
}
return (
- <Flexbox horizontal align={'center'} className={styles.row} gap={8}>
+ <Flexbox horizontal align={'center'} className={styles.row} gap={8} wrap={'wrap'}>
<span className={styles.mono} style={{ flex: 1 }}>
{entry[0]}
</span>
@@ -212,6 +233,11 @@ const EnvRow = memo<{
title={t('environments.form.removeEnv')}
onClick={() => run(onRemove)}
/>
+ {error && (
+ <Text fontSize={12} role={'alert'} style={{ flexBasis: '100%' }} type={'danger'}>
+ {error}
+ </Text>
+ )}
</Flexbox>
);
});
@@ -237,14 +263,22 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
const [adding, setAdding] = useState<Entry | null>(null);
const [raw, setRaw] = useState<string | null>(null);
const [busy, setBusy] = useState(false);
+ /**
+ * Errors of the raw editor and of the new-variable row. Both surfaces stay open on failure, so
+ * the reason renders under the textarea / inside the row instead of a corner toast.
+ */
+ const [rawError, setRawError] = useState('');
+ const [addError, setAddError] = useState('');
const { compositionProps, isComposingRef } = useIMECompositionEvent();
- const run = async (action: () => Promise<void>) => {
+ const run = async (action: () => Promise<void>, setError: (message: string) => void) => {
setBusy(true);
+ setError('');
try {
await action();
- } catch (error) {
- toast.error(describeError(error, t, t('environments.saveFailed')));
+ } catch (err) {
+ console.error('[EnvironmentVariables] Save failed:', err);
+ setError(describeError(err, t, t('environments.saveFailedRetry')));
} finally {
setBusy(false);
}
@@ -252,6 +286,8 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
const openRaw = () => {
setAdding(null);
+ setAddError('');
+ setRawError('');
setRaw(formatRawVariables(entries));
};
@@ -259,17 +295,17 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
if (raw === null) return;
const parsed = parseRawVariables(raw);
if ('error' in parsed) {
- toast.error(t(`environments.form.${parsed.error}`));
+ setRawError(t(`environments.form.${parsed.error}`));
return;
}
if ('line' in parsed) {
- toast.error(t('environments.form.rawInvalid', { line: parsed.line }));
+ setRawError(t('environments.form.rawInvalid', { line: parsed.line }));
return;
}
void run(async () => {
await onSave(parsed.entries);
setRaw(null);
- });
+ }, setRawError);
};
const addNew = () =>
@@ -278,7 +314,7 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
const key = adding[0].trim();
await onSave([...entries.filter(([k]) => k !== key), [key, adding[1]]]);
setAdding(null);
- });
+ }, setAddError);
return (
<Flexbox gap={12}>
@@ -303,14 +339,24 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
icon={<Icon icon={PlusIcon} />}
size={'small'}
type={'primary'}
- onClick={() => setAdding(['', ''])}
+ onClick={() => {
+ setAddError('');
+ setAdding(['', '']);
+ }}
>
{t('environments.form.addEnv')}
</Button>
</>
) : (
<>
- <Button disabled={busy} size={'small'} onClick={() => setRaw(null)}>
+ <Button
+ disabled={busy}
+ size={'small'}
+ onClick={() => {
+ setRaw(null);
+ setRawError('');
+ }}
+ >
{t('cancel', { ns: 'common' })}
</Button>
<Button loading={busy} size={'small'} type={'primary'} onClick={saveRaw}>
@@ -330,13 +376,23 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
</Text>
<TextArea
autoFocus
+ aria-invalid={!!rawError}
aria-label={t('environments.form.rawEditor')}
classNames={{ input: styles.editor }}
+ data-invalid={rawError ? '' : undefined}
placeholder={'{\n "NODE_ENV": "production"\n}'}
rows={Math.min(16, Math.max(6, raw.split('\n').length + 1))}
value={raw}
- onChange={(event) => setRaw(event.target.value)}
+ onChange={(event) => {
+ setRaw(event.target.value);
+ setRawError('');
+ }}
/>
+ {rawError && (
+ <Text fontSize={12} role={'alert'} type={'danger'}>
+ {rawError}
+ </Text>
+ )}
<Text fontSize={12} type={'secondary'}>
{t('environments.form.rawFormatsHint')}
</Text>
@@ -356,19 +412,29 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
) : (
<div className={styles.list}>
{adding && (
- <Flexbox horizontal align={'center'} className={styles.row} gap={8}>
+ <Flexbox horizontal align={'center'} className={styles.row} gap={8} wrap={'wrap'}>
<Input
autoFocus
+ aria-invalid={!!addError}
+ data-invalid={addError ? '' : undefined}
placeholder={'NODE_ENV'}
style={{ flex: 1 }}
value={adding[0]}
- onChange={(event) => setAdding([event.target.value, adding[1]])}
+ onChange={(event) => {
+ setAdding([event.target.value, adding[1]]);
+ setAddError('');
+ }}
/>
<Input
+ aria-invalid={!!addError}
+ data-invalid={addError ? '' : undefined}
placeholder={'production'}
style={{ flex: 1 }}
value={adding[1]}
- onChange={(event) => setAdding([adding[0], event.target.value])}
+ onChange={(event) => {
+ setAdding([adding[0], event.target.value]);
+ setAddError('');
+ }}
onKeyDown={(event) => {
if (event.key === 'Escape') setAdding(null);
if (event.key === 'Enter' && !isComposingRef.current && adding[0].trim()) {
@@ -390,8 +456,16 @@ const EnvironmentVariables = memo<EnvironmentVariablesProps>(({ entries, onSave
icon={XIcon}
size={'small'}
title={t('cancel', { ns: 'common' })}
- onClick={() => setAdding(null)}
+ onClick={() => {
+ setAdding(null);
+ setAddError('');
+ }}
/>
+ {addError && (
+ <Text fontSize={12} role={'alert'} style={{ flexBasis: '100%' }} type={'danger'}>
+ {addError}
+ </Text>
+ )}
</Flexbox>
)}
{entries.map(([key, value]) => (
diff --git a/src/features/EnvironmentManager/InlineField.tsx b/src/features/EnvironmentManager/InlineField.tsx
index 01c3f5c6611..268bbef607b 100644
--- a/src/features/EnvironmentManager/InlineField.tsx
+++ b/src/features/EnvironmentManager/InlineField.tsx
@@ -10,7 +10,6 @@ import {
Select,
Text,
TextArea,
- toast,
} from '@lobehub/ui';
import { CheckIcon, PencilIcon, XIcon } from 'lucide-react';
import { type KeyboardEvent, memo, type ReactNode, useState } from 'react';
@@ -67,7 +66,7 @@ interface InlineFieldProps {
onEditingChange?: (editing: boolean) => void;
/**
* Write the confirmed value. Rejecting keeps the field open with the
- * person's text still in it, and the reason goes to a toast.
+ * person's text still in it, and the reason shows under the field.
*/
onSave: (value: string) => Promise<void>;
/** Shown in place of an empty value, muted. Omit when no example fits every case. */
@@ -98,15 +97,22 @@ const InlineField = memo<InlineFieldProps>(
const { t: tSetting } = useTranslation('setting');
const [draft, setDraft] = useState<string | null>(null);
const [saving, setSaving] = useState(false);
+ /**
+ * Save failure, shown under the open field: the field stays open with the user's text,
+ * so the reason belongs next to it rather than in a corner toast.
+ */
+ const [error, setError] = useState('');
const { compositionProps, isComposingRef } = useIMECompositionEvent();
const editing = draft !== null;
const open = () => {
+ setError('');
setDraft(value);
onEditingChange?.(true);
};
const cancel = () => {
+ setError('');
setDraft(null);
onEditingChange?.(false);
};
@@ -118,11 +124,13 @@ const InlineField = memo<InlineFieldProps>(
return;
}
setSaving(true);
+ setError('');
try {
await onSave(next);
cancel();
- } catch (error) {
- toast.error(describeError(error, tSetting, String(error)));
+ } catch (err) {
+ console.error('[InlineField] Save failed:', err);
+ setError(describeError(err, tSetting, tSetting('environments.saveFailedRetry')));
} finally {
setSaving(false);
}
@@ -190,22 +198,32 @@ const InlineField = memo<InlineFieldProps>(
{multiline ? (
<TextArea
autoFocus
+ aria-invalid={!!error}
autoSize={{ maxRows: 10, minRows: 2 }}
+ data-invalid={error ? '' : undefined}
placeholder={placeholder}
style={{ flex: 1 }}
value={draft}
- onChange={(event) => setDraft(event.target.value)}
onKeyDown={onKeyDown}
+ onChange={(event) => {
+ setDraft(event.target.value);
+ setError('');
+ }}
{...compositionProps}
/>
) : (
<Input
autoFocus
+ aria-invalid={!!error}
+ data-invalid={error ? '' : undefined}
placeholder={placeholder}
style={{ flex: 1 }}
value={draft}
- onChange={(event) => setDraft(event.target.value)}
onKeyDown={onKeyDown}
+ onChange={(event) => {
+ setDraft(event.target.value);
+ setError('');
+ }}
{...compositionProps}
/>
)}
@@ -233,6 +251,11 @@ const InlineField = memo<InlineFieldProps>(
<ActionIcon icon={PencilIcon} size={'small'} title={t('edit')} onClick={open} />
</div>
)}
+ {editing && error && (
+ <Text fontSize={12} role={'alert'} type={'danger'}>
+ {error}
+ </Text>
+ )}
</Flexbox>
);
},
diff --git a/src/features/GenerationShareModal/GenerationShareContent.tsx b/src/features/GenerationShareModal/GenerationShareContent.tsx
index 5d19f94feda..430f4f05a9a 100644
--- a/src/features/GenerationShareModal/GenerationShareContent.tsx
+++ b/src/features/GenerationShareModal/GenerationShareContent.tsx
@@ -18,6 +18,8 @@ import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import SocialShare from '@/features/SocialShare';
import { useAppOrigin } from '@/hooks/useAppOrigin';
import { mutate as globalMutate } from '@/libs/swr';
@@ -51,6 +53,7 @@ const GenerationShareContent = memo<GenerationShareContentProps>(
const { close } = useModalContext();
const appOrigin = useAppOrigin();
const [updating, setUpdating] = useState(false);
+ const [updateError, setUpdateError] = useState<InlineErrorState | null>(null);
const { data, error, isLoading, mutate } = useSWR(
FILE_SHARE_SETTINGS_KEY(fileId),
@@ -64,12 +67,14 @@ const GenerationShareContent = memo<GenerationShareContentProps>(
const setVisibility = useCallback(
async (visibility: FileShareVisibility) => {
setUpdating(true);
+ setUpdateError(null);
let next: FileShareSettings | null;
try {
next = await lambdaClient.fileShare.updateShareSettings.mutate({ fileId, visibility });
await globalMutate(FILE_SHARE_SETTINGS_KEY(fileId), next, { revalidate: false });
- } catch {
- toast.error(t('shareModal.generation.updateError'));
+ } catch (error) {
+ console.error('[GenerationShare] Failed to update share settings:', error);
+ setUpdateError(toInlineError(t('shareModal.generation.updateFailedRetry'), error));
return;
} finally {
setUpdating(false);
@@ -125,6 +130,10 @@ const GenerationShareContent = memo<GenerationShareContentProps>(
/>
</Flexbox>
+ {updateError && (
+ <InlineErrorText detail={updateError.detail}>{updateError.summary}</InlineErrorText>
+ )}
+
{shareUrl && (
<Flexbox horizontal gap={8}>
<Input readOnly value={shareUrl} variant={'filled'} />
diff --git a/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx b/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx
index 5c30b9bbfbb..fd40934f199 100644
--- a/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx
+++ b/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx
@@ -4,6 +4,7 @@ import {
Flexbox,
Input,
ModalFooter,
+ Text,
toast,
useModalContext,
} from '@lobehub/ui';
@@ -11,6 +12,8 @@ import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { usePermission } from '@/hooks/usePermission';
import { useGlobalStore } from '@/store/global';
import { useHomeStore } from '@/store/home';
@@ -34,6 +37,10 @@ const CreateGroupContent = memo<CreateGroupModalOptions>(({ id, visibility }) =>
const [input, setInput] = useState('');
const [loading, setLoading] = useState(false);
+ /** Name validation, shown under the input it is about. */
+ const [nameError, setNameError] = useState('');
+ /** Create failure, shown above the footer buttons: the modal stays open with the typed name. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const handleCreate = async () => {
// Enter fires as fast as the user repeats it — a second pass while `addGroup`
@@ -41,8 +48,9 @@ const CreateGroupContent = memo<CreateGroupModalOptions>(({ id, visibility }) =>
// request settles last.
if (!canCreate || loading) return;
if (input.length === 0 || input.length > 20 || input.trim() === '')
- return toast.warning(t('sessionGroup.tooLong'));
+ return setNameError(t('sessionGroup.tooLong'));
+ setError(null);
setLoading(true);
try {
const groupId = await addGroup(input, visibility);
@@ -50,11 +58,11 @@ const CreateGroupContent = memo<CreateGroupModalOptions>(({ id, visibility }) =>
toggleExpandSessionGroup(groupId, true);
toast.success(t('sessionGroup.createSuccess'));
close();
- } catch (error) {
+ } catch (err) {
// Without this, a rejected create/move leaves the button stuck
// on loading and the modal open with no explanation.
- console.error('Failed to create category:', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ console.error('Failed to create category:', err);
+ setError(toInlineError(t('sessionGroup.createFailedRetry'), err));
} finally {
setLoading(false);
}
@@ -62,15 +70,26 @@ const CreateGroupContent = memo<CreateGroupModalOptions>(({ id, visibility }) =>
return (
<>
- <Flexbox paddingBlock={16} paddingInline={16}>
+ <Flexbox gap={8} paddingBlock={16} paddingInline={16}>
<Input
autoFocus
+ aria-invalid={!!nameError || undefined}
disabled={!canCreate || loading}
placeholder={t('sessionGroup.inputPlaceholder')}
value={input}
- onChange={(e) => setInput(e.target.value)}
onPressEnter={handleCreate}
+ onChange={(e) => {
+ setInput(e.target.value);
+ setNameError('');
+ setError(null);
+ }}
/>
+ {nameError && (
+ <Text fontSize={12} role="alert" type="danger">
+ {nameError}
+ </Text>
+ )}
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/LobeBench/BenchmarkModal.tsx b/src/features/LobeBench/BenchmarkModal.tsx
index 09fe464b167..481c9b32a29 100644
--- a/src/features/LobeBench/BenchmarkModal.tsx
+++ b/src/features/LobeBench/BenchmarkModal.tsx
@@ -8,13 +8,14 @@ import {
Select,
Text,
TextArea,
- toast,
useModalContext,
} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import BenchmarkStandardFields, {
type BenchmarkStandard,
isCompleteStandard,
@@ -50,11 +51,14 @@ const CreateBenchmarkForm = memo<CreateBenchmarkFormProps>(({ datasets, onCreate
const [picked, setPicked] = useState<string[]>([]);
const [standard, setStandard] = useState<BenchmarkStandard>({ protocol: DEFAULT_PROTOCOL });
const [saving, setSaving] = useState(false);
+ /** Create failure shown above the buttons; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const submit = async () => {
const trimmed = name.trim();
const { judge, protocol } = standard;
if (!trimmed || !judge || !isCompleteStandard(standard) || picked.length === 0) return;
+ setError(null);
setSaving(true);
try {
const created = (await createBenchmark({
@@ -68,15 +72,16 @@ const CreateBenchmarkForm = memo<CreateBenchmarkFormProps>(({ datasets, onCreate
name: trimmed,
})) as { data?: { id?: string }; id?: string };
const id = created?.id ?? created?.data?.id;
- if (!id) throw new Error(t('lobeBench.benchmark.create.failed'));
+ if (!id) throw new Error('Benchmark was created without an id');
await moveDatasets(
datasets.filter((dataset) => picked.includes(dataset.id)),
id,
);
close();
onCreated?.(id);
- } catch (error) {
- toast.error(error instanceof Error ? error.message : t('lobeBench.benchmark.create.failed'));
+ } catch (cause) {
+ console.error('Failed to create Lobe Bench benchmark:', cause);
+ setError(toInlineError(t('lobeBench.benchmark.create.failedRetry'), cause));
} finally {
setSaving(false);
}
@@ -91,8 +96,11 @@ const CreateBenchmarkForm = memo<CreateBenchmarkFormProps>(({ datasets, onCreate
id={'lobe-bench-benchmark-name'}
placeholder={t('lobeBench.benchmark.create.name.placeholder')}
value={name}
- onChange={(e) => setName(e.target.value)}
onPressEnter={submit}
+ onChange={(e) => {
+ setName(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
<Flexbox gap={6}>
@@ -102,10 +110,19 @@ const CreateBenchmarkForm = memo<CreateBenchmarkFormProps>(({ datasets, onCreate
id={'lobe-bench-benchmark-description'}
placeholder={t('lobeBench.benchmark.create.description.placeholder')}
value={description}
- onChange={(e) => setDescription(e.target.value)}
+ onChange={(e) => {
+ setDescription(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
- <BenchmarkStandardFields value={standard} onChange={setStandard} />
+ <BenchmarkStandardFields
+ value={standard}
+ onChange={(next) => {
+ setStandard(next);
+ setError(null);
+ }}
+ />
<Flexbox gap={6}>
<Text weight={500}>{t('lobeBench.benchmark.create.datasets')}</Text>
{datasets.length > 0 ? (
@@ -121,7 +138,10 @@ const CreateBenchmarkForm = memo<CreateBenchmarkFormProps>(({ datasets, onCreate
})}`,
value: dataset.id,
}))}
- onChange={(value) => setPicked(value as string[])}
+ onChange={(value) => {
+ setPicked(value as string[]);
+ setError(null);
+ }}
/>
<Text fontSize={12} type={'secondary'}>
{t('lobeBench.benchmark.create.datasets.hint')}
@@ -133,6 +153,7 @@ const CreateBenchmarkForm = memo<CreateBenchmarkFormProps>(({ datasets, onCreate
</Text>
)}
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={close}>{t('common.cancel')}</Button>
<Button
diff --git a/src/features/LobeBench/ExperimentEditModal.tsx b/src/features/LobeBench/ExperimentEditModal.tsx
index 1beef7e04a6..23795a7f68b 100644
--- a/src/features/LobeBench/ExperimentEditModal.tsx
+++ b/src/features/LobeBench/ExperimentEditModal.tsx
@@ -15,6 +15,8 @@ import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { isLobeBenchMeta } from '@/features/LobeBench/lobeBench';
import { agentEvalService } from '@/services/agentEval';
@@ -36,8 +38,11 @@ const ExperimentEditForm = memo<ExperimentEditFormProps>(({ experiment, onSaved
const [name, setName] = useState(experiment.name ?? '');
const [question, setQuestion] = useState(meta?.question ?? '');
const [saving, setSaving] = useState(false);
+ /** Save failure shown above the buttons; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const submit = async () => {
+ setError(null);
setSaving(true);
try {
const trimmedName = name.trim();
@@ -55,8 +60,9 @@ const ExperimentEditForm = memo<ExperimentEditFormProps>(({ experiment, onSaved
toast.success(t('lobeBench.experiment.edit.saved'));
await onSaved?.();
close();
- } catch (error) {
- toast.error(error instanceof Error ? error.message : t('lobeBench.experiment.edit.failed'));
+ } catch (cause) {
+ console.error('Failed to save Lobe Bench experiment:', cause);
+ setError(toInlineError(t('lobeBench.experiment.edit.failedRetry'), cause));
} finally {
setSaving(false);
}
@@ -70,7 +76,10 @@ const ExperimentEditForm = memo<ExperimentEditFormProps>(({ experiment, onSaved
id={'lobe-bench-experiment-name'}
placeholder={t('lobeBench.new.name.placeholder')}
value={name}
- onChange={(e) => setName(e.target.value)}
+ onChange={(e) => {
+ setName(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
<Flexbox gap={6}>
@@ -80,9 +89,13 @@ const ExperimentEditForm = memo<ExperimentEditFormProps>(({ experiment, onSaved
id={'lobe-bench-experiment-question'}
placeholder={t('lobeBench.new.question.placeholder')}
value={question}
- onChange={(e) => setQuestion(e.target.value)}
+ onChange={(e) => {
+ setQuestion(e.target.value);
+ setError(null);
+ }}
/>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={close}>{t('common.cancel')}</Button>
<Button loading={saving} type={'primary'} onClick={submit}>
diff --git a/src/features/LobeBench/PicksDatasetModal.tsx b/src/features/LobeBench/PicksDatasetModal.tsx
index c8950ec9c27..9b5f194a505 100644
--- a/src/features/LobeBench/PicksDatasetModal.tsx
+++ b/src/features/LobeBench/PicksDatasetModal.tsx
@@ -5,6 +5,8 @@ import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { createDataset, renameDataset } from '@/features/LobeBench/datasetCases';
import { type LobeBenchCase } from '@/features/LobeBench/useLobeBench';
@@ -42,8 +44,11 @@ const CreateDatasetForm = memo<CreateDatasetFormProps>(
const { close } = useModalContext();
const [name, setName] = useState('');
const [saving, setSaving] = useState(false);
+ /** Create failure shown above the buttons; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const submit = async () => {
+ setError(null);
setSaving(true);
try {
const datasetName = name.trim() || t('lobeBench.picks.defaultName');
@@ -51,8 +56,9 @@ const CreateDatasetForm = memo<CreateDatasetFormProps>(
toast.success(t('lobeBench.picks.created', { count: cases.length, dataset: datasetName }));
close();
onDone?.({ id: created.id, name: datasetName });
- } catch (error) {
- toast.error(error instanceof Error ? error.message : t('lobeBench.picks.failed'));
+ } catch (cause) {
+ console.error('Failed to create Lobe Bench dataset:', cause);
+ setError(toInlineError(t('lobeBench.picks.createFailedRetry'), cause));
} finally {
setSaving(false);
}
@@ -67,13 +73,17 @@ const CreateDatasetForm = memo<CreateDatasetFormProps>(
id={'lobe-bench-picks-name'}
placeholder={t('lobeBench.picks.name.placeholder')}
value={name}
- onChange={(e) => setName(e.target.value)}
onPressEnter={submit}
+ onChange={(e) => {
+ setName(e.target.value);
+ setError(null);
+ }}
/>
<Text fontSize={12} type={'secondary'}>
{t('lobeBench.picks.fixed')}
</Text>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={close}>{t('common.cancel')}</Button>
<Button loading={saving} type={'primary'} onClick={submit}>
@@ -106,17 +116,21 @@ const RenameDatasetForm = memo<RenameDatasetFormProps>(({ dataset, onSaved }) =>
const { close } = useModalContext();
const [name, setName] = useState(dataset.name);
const [saving, setSaving] = useState(false);
+ /** Rename failure shown above the buttons; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const submit = async () => {
const trimmed = name.trim();
if (!trimmed) return;
+ setError(null);
setSaving(true);
try {
await renameDataset(dataset, trimmed);
await onSaved?.();
close();
- } catch (error) {
- toast.error(error instanceof Error ? error.message : t('lobeBench.picks.failed'));
+ } catch (cause) {
+ console.error('Failed to rename Lobe Bench dataset:', cause);
+ setError(toInlineError(t('lobeBench.picks.renameFailedRetry'), cause));
} finally {
setSaving(false);
}
@@ -128,9 +142,13 @@ const RenameDatasetForm = memo<RenameDatasetFormProps>(({ dataset, onSaved }) =>
autoFocus
id={'lobe-bench-dataset-name'}
value={name}
- onChange={(e) => setName(e.target.value)}
onPressEnter={submit}
+ onChange={(e) => {
+ setName(e.target.value);
+ setError(null);
+ }}
/>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={close}>{t('common.cancel')}</Button>
<Button disabled={!name.trim()} loading={saving} type={'primary'} onClick={submit}>
diff --git a/src/features/MCP/MCPSettings/index.tsx b/src/features/MCP/MCPSettings/index.tsx
index 11ce71edffb..3bed52e4bb0 100644
--- a/src/features/MCP/MCPSettings/index.tsx
+++ b/src/features/MCP/MCPSettings/index.tsx
@@ -4,6 +4,8 @@ import { EditIcon, LinkIcon, Settings2Icon, TerminalIcon } from 'lucide-react';
import { useImperativeHandle, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import KeyValueEditor from '@/components/KeyValueEditor';
import MCPStdioCommandInput from '@/components/MCPStdioCommandInput';
import ArgsInput from '@/features/PluginDevModal/MCPManifestForm/ArgsInput';
@@ -161,6 +163,10 @@ const Settings = ({
const [loading, setLoading] = useState(false);
const [connectionLoading, setConnectionLoading] = useState(false);
const [isEditingConnection, setIsEditingConnection] = useState(false);
+ /** Connection save failure, shown above the form's buttons: the form stays in edit mode with the user's input. */
+ const [connectionError, setConnectionError] = useState<InlineErrorState | null>(null);
+ /** Env save failure, shown above the form's buttons: the editor keeps the user's variables. */
+ const [envError, setEnvError] = useState<InlineErrorState | null>(null);
const [updatePluginSettings, updateInstallPlugin] = useToolStore((s) => [
s.updatePluginSettings,
@@ -181,6 +187,7 @@ const Settings = ({
});
const handleConnectionSubmit = async (values: ConnectionValues) => {
+ setConnectionError(null);
setConnectionLoading(true);
try {
await updateInstallPlugin(identifier!, values);
@@ -189,20 +196,21 @@ const Settings = ({
setIsEditingConnection(false);
} catch (error) {
console.error('Connection update failed:', error);
- toast.error(t('settings.messages.connectionUpdateFailed'));
+ setConnectionError(toInlineError(t('settings.messages.connectionUpdateFailedRetry'), error));
} finally {
setConnectionLoading(false);
}
};
const handleEnvSubmit = async (values: EnvValues) => {
+ setEnvError(null);
setLoading(true);
try {
await updatePluginSettings(identifier!, values.env || {}, { override: true });
toast.success(t('settings.messages.envUpdateSuccess'));
} catch (error) {
console.error('Settings update failed:', error);
- toast.error(t('settings.messages.envUpdateFailed'));
+ setEnvError(toInlineError(t('settings.messages.envUpdateFailedRetry'), error));
} finally {
setLoading(false);
}
@@ -217,14 +225,19 @@ const Settings = ({
onSubmit: handleEnvSubmit,
});
- const resetEnvForm = () => envForm.reset({ env: pluginSettings });
+ const resetEnvForm = () => {
+ setEnvError(null);
+ envForm.reset({ env: pluginSettings });
+ };
const handleStartEdit = () => {
+ setConnectionError(null);
connectionForm.reset(getConnectionValues());
setIsEditingConnection(true);
};
const handleCancelEdit = () => {
+ setConnectionError(null);
connectionForm.reset(getConnectionValues());
setIsEditingConnection(false);
};
@@ -346,6 +359,11 @@ const Settings = ({
</Form.Field>
</>
)}
+ {connectionError && (
+ <InlineErrorText detail={connectionError.detail}>
+ {connectionError.summary}
+ </InlineErrorText>
+ )}
<Flexbox horizontal className={styles.footer} gap={8}>
<Button htmlType="submit" loading={connectionLoading} type="primary">
{t('common:save')}
@@ -374,6 +392,9 @@ const Settings = ({
keyPlaceholder="VARIABLE_NAME"
/>
</Form.Field>
+ {envError && (
+ <InlineErrorText detail={envError.detail}>{envError.summary}</InlineErrorText>
+ )}
{!hideFooter && (
<Flexbox horizontal className={styles.footer} gap={8}>
<Button htmlType="submit" loading={loading} type="primary">
diff --git a/src/features/MemoryRules/ComposeModal.tsx b/src/features/MemoryRules/ComposeModal.tsx
index 57eec7d13e3..2e3b6c21b1e 100644
--- a/src/features/MemoryRules/ComposeModal.tsx
+++ b/src/features/MemoryRules/ComposeModal.tsx
@@ -36,6 +36,8 @@ import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import GeneratingBorder from '@/components/GeneratingBorder';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { expertiseService, type RuleDraft, type RuleGroup } from '@/services/expertise';
import { shinyTextStyles } from '@/styles';
@@ -123,6 +125,8 @@ const ComposeContent = ({
const [direction, setDirection] = useState<ExpertiseRuleDirection>();
const [compilability, setCompilability] = useState<Compilability>('not-compilable');
const [busy, setBusy] = useState(false);
+ /** Save failure, shown above the footer buttons: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const [tick, setTick] = useState(0);
const group = groups.find((g) => g.id === groupId);
@@ -162,8 +166,8 @@ const ComposeContent = ({
setGroupId(undefined);
setNewGroup(drafted.newGroup);
}
- } catch (error) {
- console.error('[MemoryRules] rule draft failed:', error);
+ } catch (err) {
+ console.error('[MemoryRules] rule draft failed:', err);
setTitle(text.split('\n')[0].slice(0, 120));
toast.warning(t('rules.compose.generateFailed'));
}
@@ -182,8 +186,9 @@ const ComposeContent = ({
const submit = async () => {
if (!title.trim() || busy) return;
+ setError(null);
if (!groupId && !newGroup) {
- toast.warning(t('rules.compose.needGroup'));
+ setError(toInlineError(t('rules.compose.needGroup')));
return;
}
setBusy(true);
@@ -204,9 +209,9 @@ const ComposeContent = ({
});
if (created) onCreated(created.id);
close();
- } catch (error) {
- console.error('[MemoryRules] rule save failed:', error);
- toast.error(t('rules.saveFailed'));
+ } catch (err) {
+ console.error('[MemoryRules] rule save failed:', err);
+ setError(toInlineError(t('rules.saveFailedRetry'), err));
} finally {
setBusy(false);
}
@@ -315,6 +320,12 @@ const ComposeContent = ({
</Flexbox>
)}
+ {error && (
+ <div style={{ paddingBlock: '0 10px', paddingInline: 20 }}>
+ <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>
+ </div>
+ )}
+
<Flexbox
horizontal
align={'center'}
diff --git a/src/features/MemoryRules/DistillModal.tsx b/src/features/MemoryRules/DistillModal.tsx
index 339747a2c32..d7f25acbdaa 100644
--- a/src/features/MemoryRules/DistillModal.tsx
+++ b/src/features/MemoryRules/DistillModal.tsx
@@ -38,6 +38,8 @@ import { useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import GeneratingBorder from '@/components/GeneratingBorder';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { openLibraryFilePicker } from '@/features/LibraryModal/FilePicker';
import {
type DistillCandidate,
@@ -193,6 +195,8 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
const [result, setResult] = useState<DistillResult>();
const [drafts, setDrafts] = useState<Draft[]>([]);
const [saving, setSaving] = useState(false);
+ /** Upload, read or save failure, shown above the footer buttons: the modal stays open with the user's picks. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const recentPages = useRecentPages(tab === 'document');
const pages = recentPages.items;
@@ -227,18 +231,20 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
: picked;
const switchTab = (next: SourceTab) => {
+ setError(null);
setTab(next);
setPicked(undefined);
};
const upload = async (file: File) => {
+ setError(null);
setUploading(true);
try {
const uploaded = await uploadWithProgress({ file });
if (uploaded) setPicked({ name: file.name, source: { id: uploaded.id, type: 'file' } });
- } catch (error) {
- console.error('[MemoryRules] material upload failed:', error);
- toast.error(t('rules.distill.uploadFailed'));
+ } catch (err) {
+ console.error('[MemoryRules] material upload failed:', err);
+ setError(toInlineError(t('rules.distill.uploadFailedRetry'), err));
} finally {
setUploading(false);
}
@@ -246,6 +252,7 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
const read = async () => {
if (!source) return;
+ setError(null);
setStep('reading');
try {
const next = await expertiseService.distillRules({
@@ -270,9 +277,9 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
})),
);
setStep('review');
- } catch (error) {
- console.error('[MemoryRules] distill failed:', error);
- toast.error(t('rules.distill.readFailed'));
+ } catch (err) {
+ console.error('[MemoryRules] distill failed:', err);
+ setError(toInlineError(t('rules.distill.readFailed'), err));
setStep('pick');
}
};
@@ -284,6 +291,7 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
const save = async () => {
if (!result || kept.length === 0 || saving) return;
+ setError(null);
setSaving(true);
try {
const saved = await expertiseService.commitDistilledRules({
@@ -310,9 +318,9 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
toast.success(t('rules.distill.saved', { count: saved.length }));
onDone(saved.filter((item) => item.kind === 'create').map((item) => item.id));
close();
- } catch (error) {
- console.error('[MemoryRules] distill save failed:', error);
- toast.error(t('rules.saveFailed'));
+ } catch (err) {
+ console.error('[MemoryRules] distill save failed:', err);
+ setError(toInlineError(t('rules.saveFailedRetry'), err));
} finally {
setSaving(false);
}
@@ -602,6 +610,12 @@ const DistillContent = ({ canOpenGroup, groups, onDone }: DistillContentProps) =
</Flexbox>
)}
+ {error && (
+ <div style={{ paddingBlock: '0 10px', paddingInline: 20 }}>
+ <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>
+ </div>
+ )}
+
<Flexbox
horizontal
align={'center'}
diff --git a/src/features/MemoryRules/GroupModal.tsx b/src/features/MemoryRules/GroupModal.tsx
index 4ef30e3ee33..200db758baf 100644
--- a/src/features/MemoryRules/GroupModal.tsx
+++ b/src/features/MemoryRules/GroupModal.tsx
@@ -20,6 +20,8 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import GeneratingBorder from '@/components/GeneratingBorder';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { expertiseService, type RuleGroup } from '@/services/expertise';
import { shinyTextStyles } from '@/styles';
import { densityVars } from '@/styles/densityVars';
@@ -132,6 +134,8 @@ const GroupContent = ({ group, onDone }: GroupContentProps) => {
// Ingestion reads this literally when deciding which rejections belong, so it is kept.
const [outOfScope, setOutOfScope] = useState(group?.domain.outOfScope ?? '');
const [busy, setBusy] = useState(false);
+ /** Save failure, shown above the footer buttons: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const ready = Boolean(title.trim() && gate.trim());
const draft = async () => {
@@ -143,8 +147,8 @@ const GroupContent = ({ group, onDone }: GroupContentProps) => {
setTitle(drafted.title);
setGate(drafted.gate);
setOutOfScope(drafted.outOfScope ?? '');
- } catch (error) {
- console.error('[MemoryRules] group draft failed:', error);
+ } catch (err) {
+ console.error('[MemoryRules] group draft failed:', err);
setTitle(text.slice(0, 40));
toast.warning(t('rules.group.generateFailed'));
}
@@ -153,6 +157,7 @@ const GroupContent = ({ group, onDone }: GroupContentProps) => {
const submit = async () => {
if (!ready || busy) return;
+ setError(null);
setBusy(true);
try {
if (group) {
@@ -171,9 +176,9 @@ const GroupContent = ({ group, onDone }: GroupContentProps) => {
onDone(id ? { gate: gate.trim(), id, title: title.trim() } : undefined);
}
close();
- } catch (error) {
- console.error('[MemoryRules] group save failed:', error);
- toast.error(t('rules.saveFailed'));
+ } catch (err) {
+ console.error('[MemoryRules] group save failed:', err);
+ setError(toInlineError(t('rules.saveFailedRetry'), err));
} finally {
setBusy(false);
}
@@ -258,6 +263,12 @@ const GroupContent = ({ group, onDone }: GroupContentProps) => {
</Flexbox>
)}
+ {error && (
+ <div style={{ paddingBlock: '0 10px', paddingInline: 20 }}>
+ <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>
+ </div>
+ )}
+
<Flexbox horizontal align={'center'} className={composeStyles.footer} justify={'flex-end'}>
<Flexbox horizontal align={'center'} gap={4}>
{step === 'describe' && (
diff --git a/src/features/Messenger/PushResourceModal/PushResourceContent.tsx b/src/features/Messenger/PushResourceModal/PushResourceContent.tsx
index d2e47683ef0..907a5f1344f 100644
--- a/src/features/Messenger/PushResourceModal/PushResourceContent.tsx
+++ b/src/features/Messenger/PushResourceModal/PushResourceContent.tsx
@@ -20,6 +20,7 @@ import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import FileIcon from '@/components/FileIcon';
+import InlineErrorText from '@/components/InlineErrorText';
import { messengerActions, messengerSelectors, useMessengerStore } from '@/store/messenger';
import { formatSize } from '@/utils/format';
@@ -66,6 +67,7 @@ export const PushResourceContent = memo<PushResourceModalProps>(
const { close } = useModalContext();
const [content, setContent] = useState('');
const [sending, setSending] = useState(false);
+ const [sendError, setSendError] = useState<string | null>(null);
const [tenantId, setTenantId] = useState(targets?.[0]?.tenantId);
const [oversizeImageStrategy, setOversizeImageStrategy] =
useState<MessengerOversizeImageStrategy>(DEFAULT_OVERSIZE_IMAGE_STRATEGY);
@@ -123,6 +125,7 @@ export const PushResourceContent = memo<PushResourceModalProps>(
if (sending || !canPush) return;
setSending(true);
+ setSendError(null);
try {
// Send the file by id — the server resolves it to a stable access URL
// and reads the name/MIME type off the owned row (a client-side
@@ -169,7 +172,8 @@ export const PushResourceContent = memo<PushResourceModalProps>(
}
}
} catch (error) {
- toast.error(getMessengerErrorMessage(error, t, 'messenger.push.unavailableToast'));
+ console.error('[Messenger] Failed to push resource:', error);
+ setSendError(getMessengerErrorMessage(error, t, 'messenger.push.unavailableToast'));
} finally {
setSending(false);
}
@@ -255,7 +259,10 @@ export const PushResourceContent = memo<PushResourceModalProps>(
label: target.label,
value: target.tenantId,
}))}
- onChange={(value) => setTenantId(value as string)}
+ onChange={(value) => {
+ setTenantId(value as string);
+ setSendError(null);
+ }}
/>
</Flexbox>
)}
@@ -284,9 +291,13 @@ export const PushResourceContent = memo<PushResourceModalProps>(
disabled={sending}
placeholder={t('messenger.push.resource.placeholder')}
value={content}
- onChange={(e) => setContent(e.target.value)}
onPressEnter={handleSend}
+ onChange={(e) => {
+ setContent(e.target.value);
+ setSendError(null);
+ }}
/>
+ {sendError && <InlineErrorText>{sendError}</InlineErrorText>}
</Flexbox>
</Flexbox>
diff --git a/src/features/Messenger/Verify/Body/shared.tsx b/src/features/Messenger/Verify/Body/shared.tsx
index f4b667ee4e9..1e46f78a96d 100644
--- a/src/features/Messenger/Verify/Body/shared.tsx
+++ b/src/features/Messenger/Verify/Body/shared.tsx
@@ -1,11 +1,12 @@
'use client';
-import { Block, Button, createStaticStyles, Flexbox, Icon, Select, Text, toast } from '@lobehub/ui';
+import { Block, Button, createStaticStyles, Flexbox, Icon, Select, Text } from '@lobehub/ui';
import { AlertTriangleIcon, CheckCircle2Icon, LinkIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { ProductLogo } from '@/components/Branding';
+import InlineErrorText from '@/components/InlineErrorText';
import { marketplaceAppPath } from '@/features/Marketplace/paths';
import { messengerService } from '@/services/messenger';
import { messengerActions, messengerSelectors, useMessengerStore } from '@/store/messenger';
@@ -192,6 +193,8 @@ export const ConfirmCard = memo<ConfirmCardProps>(
);
const [confirming, setConfirming] = useState(false);
+ /** Link failure (already mapped to localized copy), shown above the confirm button so the user's agent pick stays in view. */
+ const [confirmError, setConfirmError] = useState('');
// Default-select the first agent (inbox is pinned to the top) once the
// server confirms a scope's list, and drop a pick that list no longer has.
@@ -226,12 +229,13 @@ export const ConfirmCard = memo<ConfirmCardProps>(
const handleConfirm = async () => {
if (!selectedAgentId || !isAgentsConfirmed) return;
+ setConfirmError('');
setConfirming(true);
try {
await messengerService.confirmLink({ initialAgentId: selectedAgentId, randomId });
onSuccess();
} catch (error) {
- toast.error(getMessengerErrorMessage(error, t, 'verify.error.generic'));
+ setConfirmError(getMessengerErrorMessage(error, t, 'verify.error.generic'));
} finally {
setConfirming(false);
}
@@ -286,6 +290,7 @@ export const ConfirmCard = memo<ConfirmCardProps>(
setScope((next as string | null) ?? PERSONAL_SCOPE);
// Re-default to the new scope's inbox agent.
setSelectedAgentId(undefined);
+ setConfirmError('');
}}
/>
</Flexbox>
@@ -299,7 +304,10 @@ export const ConfirmCard = memo<ConfirmCardProps>(
placeholder={t('verify.confirm.defaultAgentPlaceholder')}
value={selectedAgentId}
workspaceId={scopeWorkspaceId}
- onChange={setSelectedAgentId}
+ onChange={(id) => {
+ setSelectedAgentId(id);
+ setConfirmError('');
+ }}
/>
)}
<Text style={{ fontSize: 12 }} type="secondary">
@@ -309,6 +317,10 @@ export const ConfirmCard = memo<ConfirmCardProps>(
</Flexbox>
)}
+ {confirmError && (
+ <InlineErrorText style={{ width: '100%' }}>{confirmError}</InlineErrorText>
+ )}
+
<Button
block
disabled={isBlocked || !selectedAgentId || !isAgentsConfirmed}
diff --git a/src/features/PluginDevModal/index.tsx b/src/features/PluginDevModal/index.tsx
index c21f2eb817a..0ff0081da06 100644
--- a/src/features/PluginDevModal/index.tsx
+++ b/src/features/PluginDevModal/index.tsx
@@ -4,6 +4,7 @@ import { useForm, useWatch } from '@lobehub/ui/form';
import { memo, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import { openConnectorOAuthPopup } from '@/utils/connectorOAuth';
import MCPManifestForm from './MCPManifestForm';
@@ -65,6 +66,7 @@ const DevModal = memo<DevModalProps>(
const { t } = useTranslation('plugin');
const [submitting, setSubmitting] = useState(false);
+ const [saveError, setSaveError] = useState<{ detail?: string; summary: string } | null>(null);
const form = useForm<LobeToolCustomPlugin>({
initialValues: INITIAL_VALUES,
@@ -72,6 +74,7 @@ const DevModal = memo<DevModalProps>(
await doSave(values);
},
onValuesChange: (_, values) => {
+ setSaveError(null);
onValueChange?.(values);
},
});
@@ -102,6 +105,7 @@ const DevModal = memo<DevModalProps>(
return;
}
setSubmitting(true);
+ setSaveError(null);
try {
await onSave(pruneHiddenFields(values), ctx);
toast.success(t(isEditMode ? 'dev.updateSuccess' : 'dev.saveSuccess'));
@@ -116,7 +120,7 @@ const DevModal = memo<DevModalProps>(
'You are not allowed to modify this connector — only the creator or a workspace owner can',
)
: t(titleKey as never);
- toast.error(description ? { description, title } : title);
+ setSaveError({ detail: description, summary: title });
} finally {
ctx?.oauthPopup?.close();
setSubmitting(false);
@@ -129,9 +133,10 @@ const DevModal = memo<DevModalProps>(
// the footer save button and the in-form "Authorize" button.
const runOAuthFlow = async () => {
if (submitting) return;
+ setSaveError(null);
const popup = openConnectorOAuthPopup();
if (popup === null) {
- toast.error(t('dev.oauthError.blocked'));
+ setSaveError({ summary: t('dev.oauthError.blocked') });
return;
}
const { valid } = await form.validate();
@@ -155,40 +160,45 @@ const DevModal = memo<DevModalProps>(
}, [open]);
const footer = (
- <Flexbox horizontal flex={1} gap={12} justify={'space-between'}>
- {isEditMode ? (
- <Button
- danger
- onClick={() =>
- confirmModal({
- cancelText: t('cancel', { ns: 'common' }),
- okButtonProps: { danger: true },
- okText: t('ok', { ns: 'common' }),
- onOk: () => {
- onDelete?.();
- toast.success(t('dev.deleteSuccess'));
- },
- content: t('dev.confirmDeleteDevPlugin'),
- title: t('delete', { ns: 'common' }),
- })
- }
- >
- {t('delete', { ns: 'common' })}
- </Button>
- ) : (
- <div />
+ <Flexbox flex={1} gap={8}>
+ {saveError && (
+ <InlineErrorText detail={saveError.detail}>{saveError.summary}</InlineErrorText>
)}
- <Flexbox horizontal gap={12}>
- <Button
- onClick={() => {
- onOpenChange(false);
- }}
- >
- {t('cancel', { ns: 'common' })}
- </Button>
- <Button loading={submitting} type={'primary'} onClick={handlePrimaryClick}>
- {t(isEditMode ? 'dev.update' : 'dev.addConnector')}
- </Button>
+ <Flexbox horizontal gap={12} justify={'space-between'}>
+ {isEditMode ? (
+ <Button
+ danger
+ onClick={() =>
+ confirmModal({
+ cancelText: t('cancel', { ns: 'common' }),
+ okButtonProps: { danger: true },
+ okText: t('ok', { ns: 'common' }),
+ onOk: () => {
+ onDelete?.();
+ toast.success(t('dev.deleteSuccess'));
+ },
+ content: t('dev.confirmDeleteDevPlugin'),
+ title: t('delete', { ns: 'common' }),
+ })
+ }
+ >
+ {t('delete', { ns: 'common' })}
+ </Button>
+ ) : (
+ <div />
+ )}
+ <Flexbox horizontal gap={12}>
+ <Button
+ onClick={() => {
+ onOpenChange(false);
+ }}
+ >
+ {t('cancel', { ns: 'common' })}
+ </Button>
+ <Button loading={submitting} type={'primary'} onClick={handlePrimaryClick}>
+ {t(isEditMode ? 'dev.update' : 'dev.addConnector')}
+ </Button>
+ </Flexbox>
</Flexbox>
</Flexbox>
);
diff --git a/src/features/PluginDevModal/saveErrorToast.test.ts b/src/features/PluginDevModal/saveErrorToast.test.ts
index b6077a63447..3e97cd94453 100644
--- a/src/features/PluginDevModal/saveErrorToast.test.ts
+++ b/src/features/PluginDevModal/saveErrorToast.test.ts
@@ -23,11 +23,11 @@ describe('getSaveErrorToast', () => {
});
});
- it('keeps internal OAuth errors generic', () => {
+ it('folds an internal OAuth error under the generic title', () => {
const error = trpcError('INTERNAL_SERVER_ERROR', 500, 'connection reset');
expect(getSaveErrorToast(error, true)).toEqual({
- description: undefined,
+ description: 'connection reset',
titleKey: 'dev.oauthError.failed',
});
});
@@ -40,6 +40,7 @@ describe('getSaveErrorToast', () => {
it('reports a permission failure before anything else', () => {
expect(getSaveErrorToast(trpcError('FORBIDDEN', 403, 'nope'), true)).toEqual({
+ description: 'nope',
titleKey: 'dev.permissionDenied',
});
});
@@ -54,13 +55,14 @@ describe('getSaveErrorToast', () => {
expect(getSaveErrorToast(error, isOAuth)).toEqual({
description: reason,
- titleKey: 'mcpInstall.errorTypes.SSRF_BLOCKED',
+ titleKey: 'dev.ssrfBlockedRetry',
});
});
it('uses the plain install error outside the OAuth path', () => {
expect(getSaveErrorToast(trpcError('BAD_REQUEST', 400, 'bad url'), false)).toEqual({
- titleKey: 'dev.saveError',
+ description: 'bad url',
+ titleKey: 'dev.saveFailedRetry',
});
});
});
diff --git a/src/features/PluginDevModal/saveErrorToast.ts b/src/features/PluginDevModal/saveErrorToast.ts
index 6426b277ccf..967b1701fc1 100644
--- a/src/features/PluginDevModal/saveErrorToast.ts
+++ b/src/features/PluginDevModal/saveErrorToast.ts
@@ -13,10 +13,9 @@ export interface SaveErrorToast {
}
/**
- * Map a failed install/update to its toast. On the OAuth path a BAD_REQUEST
- * carries the authorization server's reason (discovery failed, registration
- * rejected, …) — the only thing that tells the user what to change in their
- * OAuth setup — so show it rather than collapsing it into the generic message.
+ * Map a failed install/update to its inline error: an actionable title plus the
+ * server reason as folded detail. On the OAuth path that reason (discovery failed,
+ * registration rejected, …) is the only thing that tells the user what to change.
*/
export const getSaveErrorToast = (error: unknown, isOAuth: boolean): SaveErrorToast => {
const trpcData = (error as TRPCLikeError | undefined)?.data;
@@ -25,14 +24,15 @@ export const getSaveErrorToast = (error: unknown, isOAuth: boolean): SaveErrorTo
// The server refused the MCP address (private / reserved IP): the reason says
// which address class and the self-hosting switches that allow it.
if (trpcData?.errorData?.type === 'SSRF_BLOCKED') {
- return { description: reason || undefined, titleKey: 'mcpInstall.errorTypes.SSRF_BLOCKED' };
+ return { description: reason || undefined, titleKey: 'dev.ssrfBlockedRetry' };
}
- if (trpcData?.httpStatus === 403) return { titleKey: 'dev.permissionDenied' };
if (error instanceof ConnectorOAuthError) return { titleKey: `dev.oauthError.${error.reason}` };
- if (!isOAuth) return { titleKey: 'dev.saveError' };
- return {
- description: trpcData?.code === 'BAD_REQUEST' && reason ? reason : undefined,
- titleKey: 'dev.oauthError.failed',
- };
+ // Every other failure keeps the server reason as folded detail, so the user can
+ // see why it failed (e.g. a rejected OAuth registration) behind "Show details".
+ const description = reason || undefined;
+ if (trpcData?.httpStatus === 403) return { description, titleKey: 'dev.permissionDenied' };
+ if (!isOAuth) return { description, titleKey: 'dev.saveFailedRetry' };
+
+ return { description, titleKey: 'dev.oauthError.failed' };
};
diff --git a/src/features/Projects/CreateFromGithub/Content.tsx b/src/features/Projects/CreateFromGithub/Content.tsx
index 567a1560ff0..f1132fc61ee 100644
--- a/src/features/Projects/CreateFromGithub/Content.tsx
+++ b/src/features/Projects/CreateFromGithub/Content.tsx
@@ -1,16 +1,9 @@
-import {
- Button,
- cssVar,
- Flexbox,
- Input,
- ModalFooter,
- Text,
- toast,
- useModalContext,
-} from '@lobehub/ui';
+import { Button, cssVar, Flexbox, Input, ModalFooter, Text, useModalContext } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { buildConnectorPagePath } from '@/features/Integrations/connectorPage';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { useHomeStore } from '@/store/home';
@@ -70,6 +63,9 @@ const CreateFromGithubContent = () => {
// Taken once per open dialog: the dedicated agent's previewed character is seeded by it.
const [reservedIds] = useState(reserveProjectIds);
+ /** Create failure that no field explains, shown above the footer buttons: the dialog stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
+
const repository = main && parseGithubRepository(main.url);
const defaultMainAgentId = useDefaultMainAgent();
const mainAgentId = form.mainAgentId ?? defaultMainAgentId;
@@ -97,6 +93,7 @@ const CreateFromGithubContent = () => {
const updateName = (name: string) => {
setForm((current) => ({ ...current, duplicate: undefined, name, nameEdited: true }));
+ setError(null);
};
const connectGithub = () => {
@@ -106,6 +103,7 @@ const CreateFromGithubContent = () => {
const handleCreate = async () => {
if (!createInput || !repository || form.loading) return;
+ setError(null);
setForm((current) => ({ ...current, loading: true }));
try {
const project = await createProject({
@@ -133,16 +131,16 @@ const CreateFromGithubContent = () => {
}
close();
navigate(`/project/${project.slug ?? project.id}`);
- } catch (error) {
+ } catch (err) {
// A taken slug also comes back as a conflict; this dialog has no slug
// input, so it reports it on the name the slug is derived from.
- const field = getProjectConflictField(error);
+ const field = getProjectConflictField(err);
const duplicate = field === 'slug' ? 'name' : field;
if (duplicate) {
setForm((current) => ({ ...current, duplicate }));
} else {
- console.error('Failed to create project from GitHub', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ console.error('Failed to create project from GitHub', err);
+ setError(toInlineError(t('create.failedRetry'), err));
}
} finally {
setForm((current) => ({ ...current, loading: false }));
@@ -222,6 +220,7 @@ const CreateFromGithubContent = () => {
onChange={changeRepositories}
onConnect={connectGithub}
/>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/Projects/CreateProjectContent.tsx b/src/features/Projects/CreateProjectContent.tsx
index 05518538211..987d775aa82 100644
--- a/src/features/Projects/CreateProjectContent.tsx
+++ b/src/features/Projects/CreateProjectContent.tsx
@@ -1,7 +1,9 @@
-import { Button, Flexbox, Input, ModalFooter, Text, toast, useModalContext } from '@lobehub/ui';
+import { Button, Flexbox, Input, ModalFooter, Text, useModalContext } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { useAgentStore } from '@/store/agent';
import { builtinAgentSelectors } from '@/store/agent/selectors';
@@ -78,6 +80,8 @@ const CreateProjectContent = memo<CreateProjectOptions>(({ onCreated }) => {
});
// Taken once per open modal: both generated avatars are seeded by these ids.
const [reservedIds] = useState(reserveProjectIds);
+ /** Create failure that no field explains, shown above the footer buttons: the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);
const mainAgentId = form.mainAgentId ?? inboxAgentId;
const createInput = getCreateProjectInput(form);
@@ -115,6 +119,7 @@ const CreateProjectContent = memo<CreateProjectOptions>(({ onCreated }) => {
return;
const submittedIdentifier = createInput.identifier ?? '';
const submittedSlug = createInput.slug ?? '';
+ setError(null);
updateForm({ loading: true });
try {
const project = await createProject(
@@ -133,13 +138,13 @@ const CreateProjectContent = memo<CreateProjectOptions>(({ onCreated }) => {
close();
if (onCreated) onCreated(project);
else navigate(`/project/${project.slug ?? project.id}`);
- } catch (error) {
- console.error('Failed to create project', error);
+ } catch (err) {
+ console.error('Failed to create project', err);
// The unique index stays the final authority: a concurrent create, or a
// private project by another member that the loaded list cannot see, can
// still collide after the inline check. The server names the field it
// rejected, so the error lands on that input instead of a generic toast.
- const conflict = getProjectConflictField(error);
+ const conflict = getProjectConflictField(err);
if (conflict === 'identifier') {
setForm((current) => ({
...current,
@@ -157,7 +162,7 @@ const CreateProjectContent = memo<CreateProjectOptions>(({ onCreated }) => {
}));
return;
}
- toast.error(t('operationFailed', { ns: 'common' }));
+ setError(toInlineError(t('create.failedRetry'), err));
} finally {
updateForm({ loading: false });
}
@@ -183,8 +188,11 @@ const CreateProjectContent = memo<CreateProjectOptions>(({ onCreated }) => {
maxLength={255}
placeholder={t('create.namePlaceholder')}
value={form.name}
- onChange={(event) => updateName(event.target.value)}
onPressEnter={handleCreate}
+ onChange={(event) => {
+ updateName(event.target.value);
+ setError(null);
+ }}
/>
</ProjectAvatarField>
</Flexbox>
@@ -212,6 +220,7 @@ const CreateProjectContent = memo<CreateProjectOptions>(({ onCreated }) => {
<Text fontSize={12} type="secondary">
{t('create.afterCreateHint')}
</Text>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/Projects/KnowledgeBases/AddKnowledgeBaseModal.tsx b/src/features/Projects/KnowledgeBases/AddKnowledgeBaseModal.tsx
index f8ac3d3baaa..0344c8d43b9 100644
--- a/src/features/Projects/KnowledgeBases/AddKnowledgeBaseModal.tsx
+++ b/src/features/Projects/KnowledgeBases/AddKnowledgeBaseModal.tsx
@@ -1,10 +1,12 @@
-import { Button, createModal, Empty, Flexbox, SearchBar, Text, toast } from '@lobehub/ui';
+import { Button, createModal, Empty, Flexbox, SearchBar, Text } from '@lobehub/ui';
import { t } from 'i18next';
import { BookOpenIcon, CheckIcon, PlusIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import AsyncError from '@/components/AsyncError';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import KnowledgeIcon from '@/components/KnowledgeIcon';
import { knowledgeBaseSelectors, useKnowledgeBaseStore } from '@/store/library';
import { useProjectStore } from '@/store/project';
@@ -25,6 +27,7 @@ function AddKnowledgeBaseContent({ existingIds, projectId, visibility }: AddKnow
const [search, setSearch] = useState('');
const [added, setAdded] = useState<string[]>(existingIds);
const [pendingId, setPendingId] = useState<string>();
+ const [addError, setAddError] = useState<InlineErrorState | null>(null);
const addProjectKnowledgeBases = useProjectStore((s) => s.addProjectKnowledgeBases);
const useFetchKnowledgeBaseList = useKnowledgeBaseStore((s) => s.useFetchKnowledgeBaseList);
const { error, isHydrated, isValidating, revalidate } = useFetchKnowledgeBaseList(visibility);
@@ -40,12 +43,13 @@ function AddKnowledgeBaseContent({ existingIds, projectId, visibility }: AddKnow
const add = async (knowledgeBaseId: string) => {
setPendingId(knowledgeBaseId);
+ setAddError(null);
try {
await addProjectKnowledgeBases(projectId, [knowledgeBaseId]);
setAdded((ids) => [...ids, knowledgeBaseId]);
} catch (error) {
console.error('Failed to add project knowledge base', error);
- toast.error(t('knowledgeBases.addFailed'));
+ setAddError(toInlineError(t('knowledgeBases.addFailedRetry'), error));
} finally {
setPendingId(undefined);
}
@@ -61,6 +65,7 @@ function AddKnowledgeBaseContent({ existingIds, projectId, visibility }: AddKnow
value={search}
onChange={(e) => setSearch(e.target.value)}
/>
+ {addError && <InlineErrorText detail={addError.detail}>{addError.summary}</InlineErrorText>}
{error && !list ? (
<AsyncError error={error} onRetry={() => revalidate()} />
) : loading ? (
diff --git a/src/features/Projects/ProjectAvatarField.tsx b/src/features/Projects/ProjectAvatarField.tsx
index c020b821391..11c19c55ba2 100644
--- a/src/features/Projects/ProjectAvatarField.tsx
+++ b/src/features/Projects/ProjectAvatarField.tsx
@@ -1,4 +1,4 @@
-import { Flexbox, Icon, toast, Tooltip } from '@lobehub/ui';
+import { Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
import { ImagePlusIcon, LoaderCircleIcon } from 'lucide-react';
@@ -68,63 +68,79 @@ interface ProjectAvatarFieldProps {
const ProjectAvatarField = memo<ProjectAvatarFieldProps>(
({ avatar, children, disabled, id, name, onChange, onUploadingChange }) => {
const { t } = useTranslation('project');
- const { upload, uploading } = useProjectAvatarUpload({ onChange, onUploadingChange });
+ const { error, setError, upload, uploading } = useProjectAvatarUpload({
+ onChange,
+ onUploadingChange,
+ });
const { dragging, dropProps } = useAvatarFileDrop({
disabled: disabled || uploading,
onFile: (file) => void upload(file, { crop: true }),
- onReject: () => toast.error(t('create.avatarInvalidType')),
+ onReject: () => setError(t('create.avatarInvalidType')),
});
return (
- <Flexbox horizontal align={'center'} gap={8} {...dropProps}>
- <EmojiPicker
- allowDelete={!!avatar}
- allowUpload={{ enableEmoji: true }}
- loading={uploading}
- open={disabled ? false : undefined}
- popupProps={{ placement: 'bottomLeft' }}
- size={TILE_SIZE}
- value={avatar}
- customRender={(value) => (
- <Tooltip title={t('create.avatarHint')}>
- <div
- aria-label={t('create.avatarHint')}
- {...stylex.props(styles.tile, dragging && styles.dragging)}
- role={'button'}
- >
- {/* Until one is picked, the project's own generated avatar: the one
- it keeps after creation, seeded by its reserved id so typing the
- name does not reshuffle it. */}
- <ProjectAvatar
- avatar={value}
- id={id}
- name={name.trim() || t('create.title')}
- size={TILE_SIZE}
- />
+ <Flexbox gap={4}>
+ <Flexbox horizontal align={'center'} gap={8} {...dropProps}>
+ <EmojiPicker
+ allowDelete={!!avatar}
+ allowUpload={{ enableEmoji: true }}
+ loading={uploading}
+ open={disabled ? false : undefined}
+ popupProps={{ placement: 'bottomLeft' }}
+ size={TILE_SIZE}
+ value={avatar}
+ customRender={(value) => (
+ <Tooltip title={t('create.avatarHint')}>
<div
- {...stylex.props(styles.overlay, (dragging || uploading) && styles.overlayShown)}
+ aria-label={t('create.avatarHint')}
+ {...stylex.props(styles.tile, dragging && styles.dragging)}
+ role={'button'}
>
- <Icon
- icon={uploading ? LoaderCircleIcon : ImagePlusIcon}
- size={16}
- spin={uploading}
+ {/* Until one is picked, the project's own generated avatar: the one
+ it keeps after creation, seeded by its reserved id so typing the
+ name does not reshuffle it. */}
+ <ProjectAvatar
+ avatar={value}
+ id={id}
+ name={name.trim() || t('create.title')}
+ size={TILE_SIZE}
/>
+ <div
+ {...stylex.props(
+ styles.overlay,
+ (dragging || uploading) && styles.overlayShown,
+ )}
+ >
+ <Icon
+ icon={uploading ? LoaderCircleIcon : ImagePlusIcon}
+ size={16}
+ spin={uploading}
+ />
+ </div>
</div>
- </div>
- </Tooltip>
- )}
- onDelete={() => onChange(undefined)}
- onUpload={(file) => void upload(file, { crop: false })}
- // Typed as a string, but delete reports `null`.
- onChange={(next: string | null) => {
- // The uploader reports a local preview first; keep only the stored URL.
- if (!isLocalAvatarPreview(next)) onChange(next || undefined);
- }}
- />
- <Flexbox flex={1} style={{ minWidth: 0 }}>
- {children}
+ </Tooltip>
+ )}
+ onDelete={() => onChange(undefined)}
+ onUpload={(file) => void upload(file, { crop: false })}
+ // Typed as a string, but delete reports `null`.
+ onChange={(next: string | null) => {
+ // The uploader reports a local preview first; keep only the stored URL.
+ if (!isLocalAvatarPreview(next)) {
+ setError('');
+ onChange(next || undefined);
+ }
+ }}
+ />
+ <Flexbox flex={1} style={{ minWidth: 0 }}>
+ {children}
+ </Flexbox>
</Flexbox>
+ {error && (
+ <Text fontSize={12} role={'alert'} type={'danger'}>
+ {error}
+ </Text>
+ )}
</Flexbox>
);
},
diff --git a/src/features/Projects/useProjectAvatarUpload.test.ts b/src/features/Projects/useProjectAvatarUpload.test.ts
index 200c302d69f..11f66031341 100644
--- a/src/features/Projects/useProjectAvatarUpload.test.ts
+++ b/src/features/Projects/useProjectAvatarUpload.test.ts
@@ -5,6 +5,8 @@ import { useProjectAvatarUpload } from './useProjectAvatarUpload';
const uploadWithProgress = vi.fn();
+vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => key }) }));
+
vi.mock('@/store/file', () => ({
useFileStore: (selector: (state: unknown) => unknown) => selector({ uploadWithProgress }),
}));
@@ -56,4 +58,21 @@ describe('useProjectAvatarUpload', () => {
expect(onChange).not.toHaveBeenCalled();
expect(onUploadingChange.mock.calls).toEqual([[true], [false]]);
});
+
+ it('keeps the failure as an inline error instead of a toast, and clears it on the next try', async () => {
+ uploadWithProgress.mockRejectedValueOnce(new Error('network'));
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ const { result } = renderHook(() => useProjectAvatarUpload({ onChange: vi.fn() }));
+
+ await act(async () => {
+ await result.current.upload(pickedFile(), { crop: false });
+ });
+ expect(result.current.error).toBe('create.avatarUploadFailed');
+
+ uploadWithProgress.mockResolvedValueOnce({ url: 'https://files.example.com/a.webp' });
+ await act(async () => {
+ await result.current.upload(pickedFile(), { crop: false });
+ });
+ expect(result.current.error).toBe('');
+ });
});
diff --git a/src/features/Projects/useProjectAvatarUpload.ts b/src/features/Projects/useProjectAvatarUpload.ts
index 295b2e746f7..11e1465f0ce 100644
--- a/src/features/Projects/useProjectAvatarUpload.ts
+++ b/src/features/Projects/useProjectAvatarUpload.ts
@@ -1,4 +1,3 @@
-import { toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -36,6 +35,11 @@ export const useProjectAvatarUpload = ({
const { t } = useTranslation('project');
const uploadWithProgress = useFileStore((s) => s.uploadWithProgress);
const [uploading, setUploadingState] = useState(false);
+ /**
+ * Why the last upload failed (or was refused); the avatar field renders it under the row,
+ * since the create modal stays open. It clears when the next upload starts.
+ */
+ const [error, setError] = useState('');
const setUploading = (next: boolean) => {
setUploadingState(next);
onUploadingChange?.(next);
@@ -43,18 +47,19 @@ export const useProjectAvatarUpload = ({
/** `crop` center-crops a raw image; the picker's uploader has already done it. */
const upload = async (file: File, { crop }: { crop: boolean }) => {
+ setError('');
setUploading(true);
try {
const result = await uploadWithProgress({ file: crop ? await toAvatarFile(file) : file });
if (!result?.url) throw new Error('Upload returned no URL');
onChange(result.url);
- } catch (error) {
- console.error('Failed to upload project avatar', error);
- toast.error(t('create.avatarUploadFailed'));
+ } catch (err) {
+ console.error('Failed to upload project avatar', err);
+ setError(t('create.avatarUploadFailed'));
} finally {
setUploading(false);
}
};
- return { upload, uploading };
+ return { error, setError, upload, uploading };
};
diff --git a/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx b/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx
index 02d4d5e8c9b..af3f0fed7f6 100644
--- a/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx
+++ b/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx
@@ -5,6 +5,7 @@ import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import ImperativeModal from '@/components/ImperativeModal';
+import InlineErrorText from '@/components/InlineErrorText';
import PluginAvatar from '@/components/Plugins/PluginAvatar';
import PluginTag from '@/components/Plugins/PluginTag';
import { usePermission } from '@/hooks/usePermission';
@@ -26,6 +27,9 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(
({ installRequest, isMarketplace = false, onComplete }) => {
const { t } = useTranslation('plugin');
const [loading, setLoading] = useState(false);
+ const [installError, setInstallError] = useState<{ detail?: string; summary: string } | null>(
+ null,
+ );
const { allowed: canCreate } = usePermission('create_content');
const { allowed: canEdit } = usePermission('edit_own_content');
@@ -50,6 +54,7 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(
useEffect(() => {
if (!installRequest) {
setLoading(false);
+ setInstallError(null);
setUpdatedConfig({});
}
}, [installRequest]);
@@ -58,6 +63,7 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(
if (!canCreate || !canEdit || !installRequest || !schema) return;
setLoading(true);
+ setInstallError(null);
try {
// Merge original config with user-updated config
const finalConfig = {
@@ -100,7 +106,10 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(
onComplete?.();
} catch (error) {
console.error('Plugin installation error:', error);
- toast.error(t('protocolInstall.messages.installError'));
+ setInstallError({
+ detail: error instanceof Error ? error.message : undefined,
+ summary: t('protocolInstall.messages.installFailedRetry'),
+ });
setLoading(false);
}
}, [
@@ -197,7 +206,13 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(
</Block>
<Flexbox>
- <ConfigDisplay schema={schema} onConfigUpdate={setUpdatedConfig} />
+ <ConfigDisplay
+ schema={schema}
+ onConfigUpdate={(config) => {
+ setInstallError(null);
+ setUpdatedConfig(config);
+ }}
+ />
{/* Show connection test error */}
{testState.error && (
<Alert
@@ -210,6 +225,10 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(
/>
)}
</Flexbox>
+
+ {installError && (
+ <InlineErrorText detail={installError.detail}>{installError.summary}</InlineErrorText>
+ )}
</Flexbox>
</ImperativeModal>
);
diff --git a/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx b/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx
index 0b2fd51d63d..c5a59eaa3d2 100644
--- a/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx
+++ b/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx
@@ -1,10 +1,12 @@
'use client';
import { Block, Text, toast } from '@lobehub/ui';
-import { memo, useCallback } from 'react';
+import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import ImperativeModal from '@/components/ImperativeModal';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import DetailLoading from '@/features/MCP/MCPDetail/Loading';
import { usePermission } from '@/hooks/usePermission';
import { useAgentStore } from '@/store/agent';
@@ -28,6 +30,7 @@ const OfficialPluginInstallModal = memo<OfficialPluginInstallModalProps>(
const { t } = useTranslation(['plugin', 'common']);
const { allowed: canCreate } = usePermission('create_content');
const { allowed: canEdit } = usePermission('edit_own_content');
+ const [installError, setInstallError] = useState<InlineErrorState | null>(null);
// Fetch MCP plugin details
const useMcpDetail = useDiscoverStore((s) => s.useFetchMcpDetail);
@@ -57,7 +60,7 @@ const OfficialPluginInstallModal = memo<OfficialPluginInstallModalProps>(
};
const handleError = (error: unknown) => {
console.error('Official plugin installation error:', error);
- toast.error(t('protocolInstall.messages.installError'));
+ setInstallError(toInlineError(t('protocolInstall.messages.installFailedRetry'), error));
};
const { confirm, dismiss, loading } = useProtocolPluginInstall({
cancel,
@@ -70,6 +73,7 @@ const OfficialPluginInstallModal = memo<OfficialPluginInstallModalProps>(
const handleConfirm = () => {
if (!canCreate || !canEdit || !installRequest || !data) return;
+ setInstallError(null);
return confirm();
};
@@ -114,6 +118,11 @@ const OfficialPluginInstallModal = memo<OfficialPluginInstallModalProps>(
}}
>
{renderContent()}
+ {installError && (
+ <div style={{ marginTop: 12 }}>
+ <InlineErrorText detail={installError.detail}>{installError.summary}</InlineErrorText>
+ </div>
+ )}
</ImperativeModal>
);
},
diff --git a/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx b/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx
index 72fc28d30fe..c33548a590d 100644
--- a/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx
+++ b/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx
@@ -13,6 +13,8 @@ import { FolderIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import FolderTree from '@/features/ResourceManager/components/FolderTree';
import { type FolderTreeItem } from '@/features/ResourceManager/components/FolderTree';
import { fileService } from '@/services/file';
@@ -35,6 +37,7 @@ const MoveToFolderModalContent = memo<MoveToFolderModalContentProps>(
const [expandedFolders, setExpandedFolders] = useState<Set<string>>(() => new Set());
const [loadedFolders, setLoadedFolders] = useState<Set<string>>(() => new Set());
const [isCreatingFolder, setIsCreatingFolder] = useState(false);
+ const [createFolderError, setCreateFolderError] = useState<InlineErrorState | null>(null);
const createFolder = useFileStore((s) => s.createFolder);
const moveItem = useTreeStore((s) => s.moveItem);
@@ -191,6 +194,7 @@ const MoveToFolderModalContent = memo<MoveToFolderModalContentProps>(
const handleCreateNewFolder = useCallback(async () => {
try {
setIsCreatingFolder(true);
+ setCreateFolderError(null);
// Create folder with default "Untitled" name
const newFolderId = await createFolder(
@@ -213,7 +217,9 @@ const MoveToFolderModalContent = memo<MoveToFolderModalContentProps>(
setSelectedFolderId(newFolderId);
} catch (error) {
console.error('Failed to create folder:', error);
- toast.error(t('FileManager.actions.renameError'));
+ setCreateFolderError(
+ toInlineError(t('FileManager.actions.createFolderFailedRetry'), error),
+ );
} finally {
setIsCreatingFolder(false);
}
@@ -296,6 +302,13 @@ const MoveToFolderModalContent = memo<MoveToFolderModalContentProps>(
/>
)}
</Flexbox>
+ {createFolderError && (
+ <div style={{ marginTop: 12 }}>
+ <InlineErrorText detail={createFolderError.detail}>
+ {createFolderError.summary}
+ </InlineErrorText>
+ </div>
+ )}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx b/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx
index 7ab5e192918..d7a5947253d 100644
--- a/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx
@@ -6,6 +6,9 @@ import { useMutation } from '@tanstack/react-query';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
+
import { credErrorKey } from '../credError';
import CredFormFooter from '../CredFormFooter';
import { createExtras, type CredsApi } from '../useCredsApi';
@@ -29,6 +32,13 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
const [fileHashId, setFileHashId] = useState<string | null>(null);
const [fileName, setFileName] = useState<string>('');
const [isUploading, setIsUploading] = useState(false);
+ /**
+ * Upload failures render under the upload control, create failures (including Market's 409
+ * slot conflicts) above the submit row: the modal stays open, so the user fixes things
+ * here rather than reading a corner toast.
+ */
+ const [uploadError, setUploadError] = useState<InlineErrorState | null>(null);
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
const createMutation = useMutation({
mutationFn: async (values: FormValues) => {
@@ -48,7 +58,8 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
});
},
onError: (error) => {
- toast.error(t(credErrorKey(error, 'creds.errors.createFailed')));
+ console.error('[FileCredForm] Create failed:', error);
+ setSubmitError(toInlineError(t(credErrorKey(error, 'creds.errors.createFailed')), error));
},
onSuccess: () => {
onSuccess();
@@ -59,6 +70,7 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
if (disabled) return;
setIsUploading(true);
+ setUploadError(null);
try {
// Convert file to base64
@@ -82,7 +94,8 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
toast.success(t('creds.file.uploadSuccess'));
} catch (error) {
console.error('[FileCredForm] Upload failed:', error);
- toast.error(error instanceof Error ? error.message : t('creds.file.uploadFailed'));
+ // The server message is untranslated; it is folded behind the details toggle
+ setUploadError(toInlineError(t('creds.file.uploadFailedRetry'), error));
} finally {
setIsUploading(false);
}
@@ -92,9 +105,10 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
if (disabled) return;
if (!fileHashId) {
- toast.error(t('creds.form.fileRequired'));
+ setUploadError(toInlineError(t('creds.form.fileRequired')));
return;
}
+ setSubmitError(null);
createMutation.mutate(values);
};
@@ -109,6 +123,11 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
title={isUploading ? t('creds.file.uploading') : t('creds.form.uploadHint')}
onFiles={([file]) => handleUpload(file)}
/>
+ {uploadError && (
+ <InlineErrorText detail={uploadError.detail} style={{ marginTop: 8 }}>
+ {uploadError.summary}
+ </InlineErrorText>
+ )}
{fileName && (
<div style={{ alignItems: 'center', display: 'flex', gap: 8, marginTop: 8 }}>
<span>
@@ -152,6 +171,10 @@ const FileCredForm: FC<FileCredFormProps> = ({ credsApi, disabled, onCancel, onS
/>
</Form.Field>
+ {submitError && (
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ )}
+
<CredFormFooter>
<Button type="fill" onClick={onCancel}>
{t('creds.form.cancel')}
diff --git a/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx b/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx
index 7016b420d0e..97f2556b6d3 100644
--- a/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx
@@ -1,11 +1,14 @@
'use client';
-import { Button, Input, TextArea, toast } from '@lobehub/ui';
+import { Button, Input, TextArea } from '@lobehub/ui';
import { Form, useForm } from '@lobehub/ui/form';
import { useMutation } from '@tanstack/react-query';
-import { type FC } from 'react';
+import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
+
import { credErrorKey } from '../credError';
import CredFormFooter from '../CredFormFooter';
import KVPairsField from '../KVPairsField';
@@ -57,6 +60,12 @@ const KVCredForm: FC<KVCredFormProps> = ({
onSubmit: (values) => handleSubmit(values),
});
+ /**
+ * Create failures (including Market's 409 slot conflicts) render above the submit row: the
+ * modal stays open and the user's next move is on this form, not behind a corner toast.
+ */
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
+
const createMutation = useMutation({
mutationFn: async (values: FormValues) => {
if (disabled) return;
@@ -82,7 +91,8 @@ const KVCredForm: FC<KVCredFormProps> = ({
});
},
onError: (error) => {
- toast.error(t(credErrorKey(error, 'creds.errors.createFailed')));
+ console.error('[KVCredForm] Create failed:', error);
+ setSubmitError(toInlineError(t(credErrorKey(error, 'creds.errors.createFailed')), error));
},
onSuccess: () => {
onSuccess();
@@ -92,6 +102,7 @@ const KVCredForm: FC<KVCredFormProps> = ({
const handleSubmit = (values: FormValues) => {
if (disabled) return;
+ setSubmitError(null);
createMutation.mutate(values);
};
@@ -126,6 +137,10 @@ const KVCredForm: FC<KVCredFormProps> = ({
/>
</Form.Field>
+ {submitError && (
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ )}
+
<CredFormFooter>
<Button type="fill" onClick={onCancel}>
{t('creds.form.cancel')}
diff --git a/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx b/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx
index ea40fc5fc3f..2b8ee41f3a9 100644
--- a/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx
@@ -1,13 +1,16 @@
'use client';
-import { Avatar, Button, Empty, Flexbox, Input, Select, Spin, TextArea, toast } from '@lobehub/ui';
+import { Avatar, Button, Empty, Flexbox, Input, Select, Spin, TextArea } from '@lobehub/ui';
import { Form, useForm } from '@lobehub/ui/form';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
import { useMutation } from '@tanstack/react-query';
-import { type FC } from 'react';
+import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
+
import { credErrorKey } from '../credError';
import CredFormFooter from '../CredFormFooter';
import { createExtras, type CredsApi } from '../useCredsApi';
@@ -58,6 +61,12 @@ const OAuthCredForm: FC<OAuthCredFormProps> = ({ credsApi, disabled, onCancel, o
};
});
+ /**
+ * Create failures (including Market's 409 slot conflicts) render above the submit row: the
+ * modal stays open and the user's next move is on this form, not behind a corner toast.
+ */
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
+
const createMutation = useMutation({
mutationFn: async (values: FormValues) => {
if (disabled) return;
@@ -71,7 +80,8 @@ const OAuthCredForm: FC<OAuthCredFormProps> = ({ credsApi, disabled, onCancel, o
});
},
onError: (error) => {
- toast.error(t(credErrorKey(error, 'creds.errors.createFailed')));
+ console.error('[OAuthCredForm] Create failed:', error);
+ setSubmitError(toInlineError(t(credErrorKey(error, 'creds.errors.createFailed')), error));
},
onSuccess: () => {
onSuccess();
@@ -81,6 +91,7 @@ const OAuthCredForm: FC<OAuthCredFormProps> = ({ credsApi, disabled, onCancel, o
const handleSubmit = (values: FormValues) => {
if (disabled) return;
+ setSubmitError(null);
createMutation.mutate(values);
};
@@ -143,6 +154,10 @@ const OAuthCredForm: FC<OAuthCredFormProps> = ({ credsApi, disabled, onCancel, o
/>
</Form.Field>
+ {submitError && (
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ )}
+
<CredFormFooter>
<Button type="fill" onClick={onCancel}>
{t('creds.form.cancel')}
diff --git a/src/features/Settings/creds/features/ShareCredModal.tsx b/src/features/Settings/creds/features/ShareCredModal.tsx
index f0909ffd4ee..6cfb37db147 100644
--- a/src/features/Settings/creds/features/ShareCredModal.tsx
+++ b/src/features/Settings/creds/features/ShareCredModal.tsx
@@ -1,7 +1,16 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { Button, createModal, Flexbox, Icon, Select, Tag, Text, toast } from '@lobehub/ui';
+import {
+ Button,
+ createModal,
+ Flexbox,
+ Icon,
+ Select,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
import { t } from 'i18next';
@@ -11,6 +20,8 @@ import { useTranslation } from 'react-i18next';
import { useWorkspaceOptionLabel } from '@/business/client/hooks/useWorkspaceOptionLabel';
import { useWorkspaces } from '@/business/client/hooks/useWorkspaces';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { createWorkspaceLambdaClient, lambdaQuery } from '@/libs/trpc/client';
import { densityTokens } from '@/styles/density.stylex';
@@ -63,6 +74,11 @@ const ShareCredContent = memo<ShareCredContentProps>(({ credId }) => {
const [targetId, setTargetId] = useState<string>();
const [visibility, setVisibility] = useState<Visibility>('private');
const [sharing, setSharing] = useState(false);
+ /**
+ * Share / revoke failures (including Market's 409 slot conflicts) render above the Share
+ * button: the modal stays open, so the user picks another target or visibility right here.
+ */
+ const [shareError, setShareError] = useState<InlineErrorState | null>(null);
const sharedVisibility = useMemo(
() =>
@@ -138,6 +154,7 @@ const ShareCredContent = memo<ShareCredContentProps>(({ credId }) => {
const target = workspaces.find((w) => w.id === effectiveTargetId);
if (!target) return;
+ setShareError(null);
setSharing(true);
try {
await createWorkspaceLambdaClient(target.id).market.creds.share.mutate({
@@ -148,7 +165,8 @@ const ShareCredContent = memo<ShareCredContentProps>(({ credId }) => {
setTargetId(undefined);
toast.success(tSetting('creds.share.success', { name: target.name }));
} catch (error) {
- toast.error(tSetting(credErrorKey(error, 'creds.share.error')));
+ console.error('[ShareCredModal] Share failed:', error);
+ setShareError(toInlineError(tSetting(credErrorKey(error, 'creds.share.error')), error));
} finally {
setSharing(false);
}
@@ -164,9 +182,11 @@ const ShareCredContent = memo<ShareCredContentProps>(({ credId }) => {
await createWorkspaceLambdaClient(workspaceId).market.creds.unshare.mutate({
id: credId,
});
+ setShareError(null);
await refetch();
} catch (error) {
- toast.error(tSetting(credErrorKey(error, 'creds.share.error')));
+ console.error('[ShareCredModal] Revoke failed:', error);
+ setShareError(toInlineError(tSetting(credErrorKey(error, 'creds.share.error')), error));
}
},
title: tSetting('creds.share.revokeConfirmTitle', { name }),
@@ -228,7 +248,10 @@ const ShareCredContent = memo<ShareCredContentProps>(({ credId }) => {
placeholder={tSetting('creds.share.selectPlaceholder')}
style={{ width: '100%' }}
value={effectiveTargetId}
- onChange={(value) => setTargetId(value as string)}
+ onChange={(value) => {
+ setTargetId(value as string);
+ setShareError(null);
+ }}
/>
</Flexbox>
@@ -240,10 +263,17 @@ const ShareCredContent = memo<ShareCredContentProps>(({ credId }) => {
options={visibilityOptions}
style={{ width: '100%' }}
value={visibility}
- onChange={(value) => setVisibility(value as Visibility)}
+ onChange={(value) => {
+ setVisibility(value as Visibility);
+ setShareError(null);
+ }}
/>
</Flexbox>
+ {shareError && (
+ <InlineErrorText detail={shareError.detail}>{shareError.summary}</InlineErrorText>
+ )}
+
<Flexbox horizontal justify={'flex-end'}>
<Button
disabled={!effectiveTargetId}
diff --git a/src/features/Settings/hotkey/features/Desktop.tsx b/src/features/Settings/hotkey/features/Desktop.tsx
index ba0b8ca2c48..a65a9f527fe 100644
--- a/src/features/Settings/hotkey/features/Desktop.tsx
+++ b/src/features/Settings/hotkey/features/Desktop.tsx
@@ -47,16 +47,26 @@ const HotkeySetting = memo(() => {
const updateHotkey = async (id: DesktopHotkeyItem['id'], value: string) => {
setLoading(true);
+ // Hotkeys save as soon as they are recorded, so the failure belongs on the hotkey input the
+ // user just changed (conflict, bad format) rather than a corner toast away from it.
try {
const result = await updateDesktopHotkey(id, value);
if (result.success) {
+ form.setErrors({ [id]: undefined });
toast.success(t('hotkey.updateSuccess', { ns: 'setting' }));
} else {
- // Show the appropriate error message based on error type
- toast.error(t(`hotkey.errors.${result.errorType}` as any, { ns: 'setting' }));
+ form.setErrors({
+ [id]: t(
+ result.errorType && result.errorType !== 'UNKNOWN'
+ ? (`hotkey.errors.${result.errorType}` as any)
+ : 'hotkey.updateErrorRetry',
+ { ns: 'setting' },
+ ),
+ });
}
- } catch {
- toast.error(t('hotkey.updateError', { ns: 'setting' }));
+ } catch (error) {
+ console.error('[Hotkey] Failed to update desktop hotkey:', error);
+ form.setErrors({ [id]: t('hotkey.updateErrorRetry', { ns: 'setting' }) });
} finally {
setLoading(false);
}
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx
index 6f203bcf24b..6b082eeccca 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, Flexbox, Input, TextArea } from '@lobehub/ui';
+import { Button, Flexbox, Input, Text, TextArea } from '@lobehub/ui';
import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -37,7 +37,7 @@ const BasicInfoCard: FC<BasicInfoCardProps> = ({ canEdit, detail, onSubmit }) =>
// inline `data:` logo the server no longer accepts, and renaming such an app
// must not fail on a field nobody edited.
const [logoChanged, setLogoChanged] = useState(false);
- const { upload: uploadLogo, uploading: logoUploading } = useLogoUpload();
+ const { error: logoError, upload: uploadLogo, uploading: logoUploading } = useLogoUpload();
const saved = { description: detail.description ?? '', name: detail.name };
@@ -111,6 +111,11 @@ const BasicInfoCard: FC<BasicInfoCardProps> = ({ canEdit, detail, onSubmit }) =>
/>
</Form.Field>
</Flexbox>
+ {logoError && (
+ <Text fontSize={12} role={'alert'} type={'danger'}>
+ {logoError}
+ </Text>
+ )}
<Form.Field
label={t('oauthApp.form.description.label')}
diff --git a/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx b/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx
index c11c9d2b340..56fc007c238 100644
--- a/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx
+++ b/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx
@@ -135,7 +135,7 @@ const CreateAppModalContent: FC<CreateAppModalContentProps> = ({ onSubmit }) =>
});
const type = useWatch(form, 'type');
- const { upload: uploadLogo, uploading: logoUploading } = useLogoUpload();
+ const { error: logoError, upload: uploadLogo, uploading: logoUploading } = useLogoUpload();
const handleUpload = async (file: File) => {
const url = await uploadLogo(file);
@@ -189,6 +189,11 @@ const CreateAppModalContent: FC<CreateAppModalContentProps> = ({ onSubmit }) =>
<Input placeholder={t('oauthApp.form.name.placeholder')} />
</Form.Field>
</Flexbox>
+ {logoError && (
+ <Text fontSize={12} role={'alert'} type={'danger'}>
+ {logoError}
+ </Text>
+ )}
<Form.Field
label={t('oauthApp.form.type.label')}
diff --git a/src/features/Settings/oauth-apps/useLogoUpload.test.ts b/src/features/Settings/oauth-apps/useLogoUpload.test.ts
index ab05444326b..316beb797f8 100644
--- a/src/features/Settings/oauth-apps/useLogoUpload.test.ts
+++ b/src/features/Settings/oauth-apps/useLogoUpload.test.ts
@@ -4,12 +4,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { useLogoUpload } from './useLogoUpload';
const mocks = vi.hoisted(() => ({
- toastError: vi.fn(),
uploadWithProgress: vi.fn(),
}));
-vi.mock('@lobehub/ui', () => ({ toast: { error: mocks.toastError } }));
-
vi.mock('@/store/file', () => ({
useFileStore: (selector: (s: unknown) => unknown) =>
selector({ uploadWithProgress: mocks.uploadWithProgress }),
@@ -58,7 +55,7 @@ describe('useLogoUpload', () => {
expect(url).toBeUndefined();
expect(mocks.uploadWithProgress).not.toHaveBeenCalled();
- expect(mocks.toastError).toHaveBeenCalledWith('oauthApp.form.logo.tooLarge');
+ expect(result.current.error).toBe('oauthApp.form.logo.tooLarge');
});
it('reports a failed upload and returns nothing', async () => {
@@ -72,7 +69,22 @@ describe('useLogoUpload', () => {
});
expect(url).toBeUndefined();
- expect(mocks.toastError).toHaveBeenCalledWith('oauthApp.form.logo.uploadFailed');
+ expect(result.current.error).toBe('oauthApp.form.logo.uploadFailed');
expect(result.current.uploading).toBe(false);
});
+
+ it('clears the error when the next upload starts', async () => {
+ mocks.uploadWithProgress.mockResolvedValue({ url: 'https://files.lobehub.com/logo.png' });
+ const { result } = renderHook(() => useLogoUpload());
+
+ await act(async () => {
+ await result.current.upload(file(2 * 1024 * 1024 + 1));
+ });
+ expect(result.current.error).toBe('oauthApp.form.logo.tooLarge');
+
+ await act(async () => {
+ await result.current.upload(file());
+ });
+ expect(result.current.error).toBe('');
+ });
});
diff --git a/src/features/Settings/oauth-apps/useLogoUpload.ts b/src/features/Settings/oauth-apps/useLogoUpload.ts
index f691b1efcd3..4cb150ab592 100644
--- a/src/features/Settings/oauth-apps/useLogoUpload.ts
+++ b/src/features/Settings/oauth-apps/useLogoUpload.ts
@@ -1,4 +1,3 @@
-import { toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -17,10 +16,16 @@ export const useLogoUpload = () => {
const { t } = useTranslation('auth');
const uploadWithProgress = useFileStore((s) => s.uploadWithProgress);
const [uploading, setUploading] = useState(false);
+ /**
+ * Why the last upload was refused or failed. The form that owns the logo control stays open,
+ * so it renders this next to the control instead of a corner toast; it clears on the next try.
+ */
+ const [error, setError] = useState('');
const upload = async (file: File): Promise<string | undefined> => {
+ setError('');
if (file.size > MAX_LOGO_SIZE) {
- toast.error(t('oauthApp.form.logo.tooLarge'));
+ setError(t('oauthApp.form.logo.tooLarge'));
return;
}
@@ -28,19 +33,19 @@ export const useLogoUpload = () => {
try {
const result = await uploadWithProgress({ file });
if (!result?.url) {
- toast.error(t('oauthApp.form.logo.uploadFailed'));
+ setError(t('oauthApp.form.logo.uploadFailed'));
return;
}
// Local storage returns a path; the provider needs an absolute URL.
return result.url.startsWith('/') ? `${window.location.origin}${result.url}` : result.url;
- } catch (error) {
- console.error('[OAuthApps] Logo upload failed:', error);
- toast.error(t('oauthApp.form.logo.uploadFailed'));
+ } catch (err) {
+ console.error('[OAuthApps] Logo upload failed:', err);
+ setError(t('oauthApp.form.logo.uploadFailed'));
} finally {
setUploading(false);
}
};
- return { upload, uploading };
+ return { error, upload, uploading };
};
diff --git a/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx b/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx
index ebe9e7eab3f..87f4e9a5d82 100644
--- a/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx
@@ -1,10 +1,12 @@
'use client';
-import { Button, ModalFooter, toast, useModalContext } from '@lobehub/ui';
+import { Button, Flexbox, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FormInstance } from '@lobehub/ui/form';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useAiInfraStore } from '@/store/aiInfra';
import { pickModelConfigFormValues } from './utils';
@@ -19,37 +21,43 @@ const ModelConfigFooter = memo<ModelConfigFooterProps>(({ formRef, id, showDeplo
const { t } = useTranslation(['common', 'error']);
const { close } = useModalContext();
const [loading, setLoading] = useState(false);
+ /** Save failure, shown above the footer buttons: the modal stays open with the edited form. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const [editingProvider, updateAiModelsConfig] = useAiInfraStore((s) => [
s.activeAiProvider!,
s.updateAiModelsConfig,
]);
return (
- <ModalFooter>
- <Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
- <Button
- loading={loading}
- type="primary"
- onClick={async () => {
- const form = formRef.current;
- if (!editingProvider || !id || !form) return;
- const data = pickModelConfigFormValues(form.getValues(), { showDeployName });
-
- setLoading(true);
- try {
- await updateAiModelsConfig(id, editingProvider, data);
- close();
- } catch (error) {
- console.error(error);
- toast.error(t('saveState.saveFailed', { ns: 'error' }));
- } finally {
- setLoading(false);
- }
- }}
- >
- {t('ok', { ns: 'common' })}
- </Button>
- </ModalFooter>
+ <Flexbox gap={8}>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
+ <ModalFooter>
+ <Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
+ <Button
+ loading={loading}
+ type="primary"
+ onClick={async () => {
+ const form = formRef.current;
+ if (!editingProvider || !id || !form) return;
+ const data = pickModelConfigFormValues(form.getValues(), { showDeployName });
+
+ setError(null);
+ setLoading(true);
+ try {
+ await updateAiModelsConfig(id, editingProvider, data);
+ close();
+ } catch (err) {
+ console.error(err);
+ setError(toInlineError(t('saveState.saveFailed', { ns: 'error' }), err));
+ } finally {
+ setLoading(false);
+ }
+ }}
+ >
+ {t('ok', { ns: 'common' })}
+ </Button>
+ </ModalFooter>
+ </Flexbox>
);
});
diff --git a/src/features/Settings/proxy/features/ProxyForm.test.tsx b/src/features/Settings/proxy/features/ProxyForm.test.tsx
index 9fd93a207d2..694a4fb4605 100644
--- a/src/features/Settings/proxy/features/ProxyForm.test.tsx
+++ b/src/features/Settings/proxy/features/ProxyForm.test.tsx
@@ -40,11 +40,13 @@ vi.mock('@/store/electron', () => ({
vi.mock('./SaveBar', () => ({
default: ({
+ error,
isDirty,
isSaving,
onReset,
onSave,
}: {
+ error?: string;
isDirty: boolean;
isSaving: boolean;
onReset: () => void;
@@ -52,6 +54,7 @@ vi.mock('./SaveBar', () => ({
}) =>
isDirty ? (
<div>
+ {error && <div role="alert">{error}</div>}
<button disabled={isSaving} onClick={onReset}>
proxy.resetButton
</button>
@@ -200,7 +203,7 @@ describe('ProxyForm', () => {
});
});
- it('reverts the enable switch and shows an error when auto-saving fails', async () => {
+ it('reverts the enable switch and shows the error on the switch, not a toast, when auto-saving fails', async () => {
const user = userEvent.setup({ delay: null });
render(<ProxyForm />);
@@ -214,7 +217,8 @@ describe('ProxyForm', () => {
await user.click(screen.getAllByRole('switch')[0]);
await waitFor(() => {
- expect(toastErrorMock).toHaveBeenCalledWith('proxy.saveFailed');
+ expect(screen.getByText('proxy.saveFailedRetry')).toBeInTheDocument();
+ expect(toastErrorMock).not.toHaveBeenCalled();
expect(screen.getAllByRole('switch')[0]).toHaveAttribute('aria-checked', 'true');
});
});
@@ -258,7 +262,31 @@ describe('ProxyForm', () => {
await user.click(screen.getByRole('button', { name: 'proxy.testButton' }));
await waitFor(() => {
- expect(toastErrorMock).toHaveBeenCalledWith('proxy.testFailed: connect ECONNREFUSED');
+ expect(screen.getByText('proxy.testFailed. proxy.testFailedHint')).toBeInTheDocument();
+ expect(toastErrorMock).not.toHaveBeenCalled();
+ });
+ // The raw provider message stays folded until the user asks for it.
+ expect(screen.queryByText('connect ECONNREFUSED')).not.toBeInTheDocument();
+ await user.click(screen.getByRole('button', { name: 'asyncState.showDetails' }));
+ expect(screen.getByText('connect ECONNREFUSED')).toBeInTheDocument();
+ });
+
+ it('shows a failed Save in the Save bar instead of a toast, and keeps the changes', async () => {
+ const user = userEvent.setup({ delay: null });
+
+ render(<ProxyForm />);
+
+ await user.click(screen.getAllByRole('switch')[0]);
+ await user.type(screen.getByPlaceholderText('127.0.0.1'), '127.0.0.1');
+ await user.type(screen.getByPlaceholderText('7890'), '7890');
+
+ setProxySettingsMock.mockRejectedValueOnce(new Error('boom'));
+ await user.click(await screen.findByRole('button', { name: 'proxy.saveButton' }));
+
+ await waitFor(() => {
+ expect(screen.getByRole('alert')).toHaveTextContent('proxy.saveFailedRetry');
});
+ expect(toastErrorMock).not.toHaveBeenCalled();
+ expect(screen.getByRole('button', { name: 'proxy.saveButton' })).toBeInTheDocument();
});
}, 10000);
diff --git a/src/features/Settings/proxy/features/ProxyForm.tsx b/src/features/Settings/proxy/features/ProxyForm.tsx
index fa6ab8d8c75..4db24ecaf76 100644
--- a/src/features/Settings/proxy/features/ProxyForm.tsx
+++ b/src/features/Settings/proxy/features/ProxyForm.tsx
@@ -6,6 +6,7 @@ import { Form, type FormGroupItem, useForm, useWatch } from '@lobehub/ui/form';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import ProxySkeleton from '@/components/Skeleton/Settings/tabs/Proxy';
import { FORM_STYLE } from '@/const/layoutTokens';
import { SettingsSearchAnchor } from '@/features/SettingsSearch/anchor';
@@ -49,6 +50,13 @@ const ProxyForm = () => {
const [testUrl, setTestUrl] = useState('https://www.google.com');
const [isTesting, setIsTesting] = useState(false);
const [isSaving, setIsSaving] = useState(false);
+ /**
+ * Failures render on the surface that caused them instead of a toast: a failed Save shows
+ * above the Save bar, a failed connection test under the Test button. (A failed enable-switch
+ * autosave shows on the switch through `form.setErrors`.)
+ */
+ const [saveError, setSaveError] = useState('');
+ const [testError, setTestError] = useState<{ detail?: string }>();
const [setProxySettings, useGetProxySettings] = useElectronStore((s) => [
s.setProxySettings,
@@ -128,6 +136,8 @@ const ProxyForm = () => {
const handleValuesChange = useCallback(
(changed: Partial<NetworkProxySettings>, allValues: NetworkProxySettings) => {
+ // An edit after a failed save makes that failure stale; the next save reports afresh.
+ setSaveError('');
if ('enableProxy' in changed) {
const next = changed.enableProxy;
@@ -136,8 +146,8 @@ const ProxyForm = () => {
const valuesToSave = next ? allValues : { enableProxy: false };
setProxySettings(valuesToSave).catch((error) => {
form.setValue('enableProxy', !next);
- const message = error instanceof Error ? error.message : String(error);
- toast.error(t('proxy.saveFailed', { error: message }));
+ console.error('[ProxyForm] Failed to auto-save proxy switch:', error);
+ form.setErrors({ enableProxy: t('proxy.saveFailedRetry') });
});
}
},
@@ -152,23 +162,26 @@ const ProxyForm = () => {
try {
setIsSaving(true);
+ setSaveError('');
await setProxySettings(values);
toast.success(t('proxy.saveSuccess'));
} catch (error) {
- const message = error instanceof Error ? error.message : String(error);
- toast.error(t('proxy.saveFailed', { error: message }));
+ console.error('[ProxyForm] Failed to save proxy settings:', error);
+ setSaveError(t('proxy.saveFailedRetry'));
} finally {
setIsSaving(false);
}
}, [form, setProxySettings, t]);
const handleReset = useCallback(() => {
+ setSaveError('');
if (proxySettings) form.reset(proxySettings);
}, [form, proxySettings]);
const handleTest = useCallback(async () => {
try {
setIsTesting(true);
+ setTestError(undefined);
const { valid } = await form.validate();
if (!valid) return;
@@ -182,11 +195,11 @@ const ProxyForm = () => {
if (result.success) {
toast.success(t('proxy.testSuccessWithTime', { time: result.responseTime }));
} else {
- toast.error(`${t('proxy.testFailed')}: ${result.message ?? ''}`);
+ setTestError({ detail: result.message });
}
} catch (error) {
- const errorMessage = error instanceof Error ? error.message : 'Unknown error';
- toast.error(`${t('proxy.testFailed')}: ${errorMessage}`);
+ console.error('[ProxyForm] Proxy connection test crashed:', error);
+ setTestError({});
} finally {
setIsTesting(false);
}
@@ -280,16 +293,26 @@ const ProxyForm = () => {
children: [
{
children: (
- <Flexbox horizontal align={'center'} gap={8} width={'100%'}>
- <Input
- placeholder={t('proxy.testUrlPlaceholder')}
- style={{ flex: 1 }}
- value={testUrl}
- onChange={(e) => setTestUrl(e.target.value)}
- />
- <Button loading={isTesting} type="default" onClick={handleTest}>
- {t('proxy.testButton')}
- </Button>
+ <Flexbox gap={8} width={'100%'}>
+ <Flexbox horizontal align={'center'} gap={8} width={'100%'}>
+ <Input
+ placeholder={t('proxy.testUrlPlaceholder')}
+ style={{ flex: 1 }}
+ value={testUrl}
+ onChange={(e) => {
+ setTestUrl(e.target.value);
+ setTestError(undefined);
+ }}
+ />
+ <Button loading={isTesting} type="default" onClick={handleTest}>
+ {t('proxy.testButton')}
+ </Button>
+ </Flexbox>
+ {testError && (
+ <InlineErrorText detail={testError.detail}>
+ {`${t('proxy.testFailed')}. ${t('proxy.testFailedHint')}`}
+ </InlineErrorText>
+ )}
</Flexbox>
),
desc: t('proxy.testDescription'),
@@ -310,7 +333,13 @@ const ProxyForm = () => {
variant={'filled'}
{...FORM_STYLE}
/>
- <SaveBar isDirty={isDirty} isSaving={isSaving} onReset={handleReset} onSave={handleSave} />
+ <SaveBar
+ error={saveError}
+ isDirty={isDirty}
+ isSaving={isSaving}
+ onReset={handleReset}
+ onSave={handleSave}
+ />
</>
);
};
diff --git a/src/features/Settings/proxy/features/SaveBar.tsx b/src/features/Settings/proxy/features/SaveBar.tsx
index 927b5514bd8..b9ab86d0ae2 100644
--- a/src/features/Settings/proxy/features/SaveBar.tsx
+++ b/src/features/Settings/proxy/features/SaveBar.tsx
@@ -8,11 +8,16 @@ import * as m from 'motion/react-m';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
import { densityTokens } from '@/styles/density.stylex';
const styles = stylex.create({
container: {
pointerEvents: 'none',
+ display: 'flex',
+ flexDirection: 'column',
+ gap: '8px',
+ alignItems: 'center',
position: 'fixed',
zIndex: 1000,
insetBlockEnd: '24px',
@@ -38,6 +43,7 @@ const styles = stylex.create({
backdropFilter: 'blur(16px) saturate(1.2)',
boxShadow: cssVar.boxShadowSecondary,
},
+ error: { pointerEvents: 'auto', maxWidth: '480px' },
dot: {
flexShrink: 0,
width: '6px',
@@ -74,13 +80,15 @@ const styles = stylex.create({
});
interface SaveBarProps {
+ /** Why the last Save failed; shown right above the pill, next to the Save button that caused it. */
+ error?: string;
isDirty: boolean;
isSaving: boolean;
onReset: () => void;
onSave: () => void;
}
-const SaveBar = memo<SaveBarProps>(({ isDirty, isSaving, onReset, onSave }) => {
+const SaveBar = memo<SaveBarProps>(({ error, isDirty, isSaving, onReset, onSave }) => {
const { t } = useTranslation('electron');
return (
@@ -95,6 +103,11 @@ const SaveBar = memo<SaveBarProps>(({ isDirty, isSaving, onReset, onSave }) => {
role="status"
transition={{ duration: 0.18, ease: 'easeOut' }}
>
+ {error && (
+ <div {...stylex.props(styles.error)}>
+ <InlineErrorText>{error}</InlineErrorText>
+ </div>
+ )}
<div {...stylex.props(styles.pill)}>
<span {...stylex.props(styles.dot)} />
<span {...stylex.props(styles.message)}>{t('proxy.unsavedChanges')}</span>
diff --git a/src/features/Settings/skill/features/ConnectorRowFeedback.tsx b/src/features/Settings/skill/features/ConnectorRowFeedback.tsx
index 71abf1dd8dd..9f74e705da8 100644
--- a/src/features/Settings/skill/features/ConnectorRowFeedback.tsx
+++ b/src/features/Settings/skill/features/ConnectorRowFeedback.tsx
@@ -6,9 +6,8 @@ import { SquareArrowOutUpRight } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
-import ConnectorActionErrorText, {
- InlineErrorText,
-} from '@/features/Connectors/ConnectorActionErrorText';
+import InlineErrorText from '@/components/InlineErrorText';
+import ConnectorActionErrorText from '@/features/Connectors/ConnectorActionErrorText';
import { type ConnectorLinkSummary } from '@/store/tool/slices/connector';
import { type ConnectorActionError } from '@/utils/connectorActionError';
diff --git a/src/features/ShareModal/SharePdf/index.tsx b/src/features/ShareModal/SharePdf/index.tsx
index 676c6e6be7a..56deb6b1646 100644
--- a/src/features/ShareModal/SharePdf/index.tsx
+++ b/src/features/ShareModal/SharePdf/index.tsx
@@ -4,6 +4,8 @@ import { DownloadIcon, RotateCwIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { densityVars } from '@/styles/densityVars';
import ExportLayout from '../components/ExportLayout';
@@ -66,17 +68,19 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
const SharePdf = memo<{ message?: UIChatMessage }>(({ message }) => {
const [fieldValue, setFieldValue] = useState(DEFAULT_FIELD_VALUE);
+ const [downloadError, setDownloadError] = useState<InlineErrorState | null>(null);
const { t } = useTranslation(['chat', 'common']);
const { downloadPdf, error, isEmpty, loading, messageCount, pdfData, regenerate } =
useSharePdfExport(fieldValue, message);
const handleDownload = async () => {
+ setDownloadError(null);
try {
await downloadPdf();
toast.success(t('shareModal.downloadSuccess'));
- } catch {
- toast.error(t('shareModal.downloadError'));
+ } catch (cause) {
+ setDownloadError(toInlineError(t('shareModal.downloadFailedRetry'), cause));
}
};
@@ -84,8 +88,6 @@ const SharePdf = memo<{ message?: UIChatMessage }>(({ message }) => {
return (
<ExportLayout
- meta={[t('shareModal.meta.messages', { count: messageCount }), '.pdf'].join(' · ')}
- toolbar={<TextOptions value={fieldValue} onChange={setFieldValue} />}
actions={
<Button
disabled={!pdfData || loading || !!error}
@@ -96,6 +98,13 @@ const SharePdf = memo<{ message?: UIChatMessage }>(({ message }) => {
{t('shareModal.actions.download')}
</Button>
}
+ meta={
+ downloadError ? (
+ <InlineErrorText detail={downloadError.detail}>{downloadError.summary}</InlineErrorText>
+ ) : (
+ [t('shareModal.meta.messages', { count: messageCount }), '.pdf'].join(' · ')
+ )
+ }
overlay={
loading &&
pdfData && (
@@ -105,6 +114,15 @@ const SharePdf = memo<{ message?: UIChatMessage }>(({ message }) => {
</div>
)
}
+ toolbar={
+ <TextOptions
+ value={fieldValue}
+ onChange={(value) => {
+ setDownloadError(null);
+ setFieldValue(value);
+ }}
+ />
+ }
>
{isEmpty ? (
<Center height={'100%'} paddingBlock={48}>
diff --git a/src/features/SkillStore/SkillImportModal/GithubImportRecovery.tsx b/src/features/SkillStore/SkillImportModal/GithubImportRecovery.tsx
index db5c6e4c0ac..2a2f497af82 100644
--- a/src/features/SkillStore/SkillImportModal/GithubImportRecovery.tsx
+++ b/src/features/SkillStore/SkillImportModal/GithubImportRecovery.tsx
@@ -1,9 +1,11 @@
import type { TaskTemplateConnectorReference } from '@lobechat/const';
-import { Alert, Button, Flexbox, Icon, toast, Tooltip } from '@lobehub/ui';
+import { Alert, Button, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { ArrowUpRight, LockKeyhole } from 'lucide-react';
-import { useEffect, useRef } from 'react';
+import { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import {
ConnectorConnectionMarketAuthRequiredError,
ConnectorConnectionPopupBlockedError,
@@ -25,6 +27,7 @@ export const GithubImportRecovery = ({ recovery, onConnected }: GithubImportReco
const edit = usePermission('edit_own_content');
const { connect, isConnecting, isAllConnected } = useConnectorConnection(github);
const startedHere = useRef(false);
+ const [connectError, setConnectError] = useState<InlineErrorState | null>(null);
useEffect(() => {
if (startedHere.current && isAllConnected) {
@@ -35,16 +38,21 @@ export const GithubImportRecovery = ({ recovery, onConnected }: GithubImportReco
const authorize = async () => {
startedHere.current = true;
+ setConnectError(null);
try {
await connect();
} catch (error) {
startedHere.current = false;
if (error instanceof ConnectorConnectionMarketAuthRequiredError) return;
- toast.error(
- t(
- error instanceof ConnectorConnectionPopupBlockedError
- ? 'common:taskTemplate.action.connect.popupBlocked'
- : 'common:taskTemplate.action.connect.error',
+ console.error('[GithubImportRecovery] Failed to connect GitHub:', error);
+ setConnectError(
+ toInlineError(
+ t(
+ error instanceof ConnectorConnectionPopupBlockedError
+ ? 'common:taskTemplate.action.connect.popupBlocked'
+ : 'agentSkillModal.github.connectFailedRetry',
+ ),
+ error,
),
);
}
@@ -52,34 +60,39 @@ export const GithubImportRecovery = ({ recovery, onConnected }: GithubImportReco
const showSettings = recovery === 'access' || isAllConnected;
return (
- <Alert
- icon={LockKeyhole}
- title={t(showSettings ? 'error:import.github.access' : 'error:import.github.connect')}
- type="warning"
- action={
- showSettings ? (
- <WorkspaceLink
- rel="noopener noreferrer"
- target="_blank"
- to="/settings/connector?open=lobehub-connector%3Agithub"
- >
- <Flexbox horizontal align="center" as="span" gap={4}>
- {t('agentSkillModal.github.connectionSettings')}
- <Icon icon={ArrowUpRight} size={14} />
- </Flexbox>
- </WorkspaceLink>
- ) : (
- <Tooltip title={create.reason ?? edit.reason}>
- <Button
- disabled={!create.allowed || !edit.allowed}
- loading={isConnecting}
- onClick={authorize}
+ <Flexbox gap={8}>
+ <Alert
+ icon={LockKeyhole}
+ title={t(showSettings ? 'error:import.github.access' : 'error:import.github.connect')}
+ type="warning"
+ action={
+ showSettings ? (
+ <WorkspaceLink
+ rel="noopener noreferrer"
+ target="_blank"
+ to="/settings/connector?open=lobehub-connector%3Agithub"
>
- {t('environments.github.connect')}
- </Button>
- </Tooltip>
- )
- }
- />
+ <Flexbox horizontal align="center" as="span" gap={4}>
+ {t('agentSkillModal.github.connectionSettings')}
+ <Icon icon={ArrowUpRight} size={14} />
+ </Flexbox>
+ </WorkspaceLink>
+ ) : (
+ <Tooltip title={create.reason ?? edit.reason}>
+ <Button
+ disabled={!create.allowed || !edit.allowed}
+ loading={isConnecting}
+ onClick={authorize}
+ >
+ {t('environments.github.connect')}
+ </Button>
+ </Tooltip>
+ )
+ }
+ />
+ {connectError && (
+ <InlineErrorText detail={connectError.detail}>{connectError.summary}</InlineErrorText>
+ )}
+ </Flexbox>
);
};
diff --git a/src/features/TaskLabels/Settings/TaskLabelFormModal.tsx b/src/features/TaskLabels/Settings/TaskLabelFormModal.tsx
index 83dab144005..00b37ba0ae2 100644
--- a/src/features/TaskLabels/Settings/TaskLabelFormModal.tsx
+++ b/src/features/TaskLabels/Settings/TaskLabelFormModal.tsx
@@ -11,7 +11,6 @@ import {
Input,
ModalFooter,
Select,
- toast,
useModalContext,
} from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
@@ -20,6 +19,8 @@ import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { isDuplicateLabelNameError } from '@/features/WorkspaceSetting/Labels/errors';
import { useTaskStore } from '@/store/task';
import { taskLabelSelectors } from '@/store/task/selectors';
@@ -66,12 +67,22 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
const [color, setColor] = useState<string>(label?.color ?? DEFAULT_TASK_LABEL_COLOR);
const [group, setGroup] = useState<string>(label?.parentId ?? parentId ?? NO_GROUP);
const [loading, setLoading] = useState(false);
+ /**
+ * Save failures stay in the modal: a name clash shows under the name input, a regroup
+ * conflict under the group select, any other failure above the footer buttons.
+ */
+ const [nameError, setNameError] = useState('');
+ const [groupError, setGroupError] = useState('');
+ const [saveError, setSaveError] = useState<InlineErrorState | null>(null);
const handleSave = async () => {
const trimmed = name.trim();
if (!trimmed || loading) return;
const nextParentId = editingGroup || group === NO_GROUP ? null : group;
+ setNameError('');
+ setGroupError('');
+ setSaveError(null);
setLoading(true);
try {
if (label) {
@@ -93,7 +104,7 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
close();
} catch (error) {
if (isDuplicateLabelNameError(error)) {
- toast.error(t('taskLabels.form.duplicateName'));
+ setNameError(t('taskLabels.form.duplicateName'));
return;
}
// Server messages are English (they also serve the CLI and agents), so
@@ -101,11 +112,12 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
// collides with tasks already carrying a sibling.
const code = (error as { data?: { code?: string } })?.data?.code;
const isRegroup = !!label && !!nextParentId && nextParentId !== (label.parentId ?? null);
- toast.error(
- code === 'BAD_REQUEST' && isRegroup
- ? t('taskLabels.form.groupConflict')
- : t('operationFailed', { ns: 'common' }),
- );
+ if (code === 'BAD_REQUEST' && isRegroup) {
+ setGroupError(t('taskLabels.form.groupConflict'));
+ } else {
+ console.error('Failed to save task label:', error);
+ setSaveError(toInlineError(t('taskLabels.form.saveFailedRetry'), error));
+ }
} finally {
setLoading(false);
}
@@ -118,6 +130,8 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
<span>{t('taskLabels.form.name')}</span>
<Input
autoFocus
+ aria-invalid={!!nameError}
+ data-invalid={nameError ? '' : undefined}
maxLength={TASK_LABEL_NAME_MAX_LENGTH}
value={name}
placeholder={t(
@@ -125,9 +139,17 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
? 'taskLabels.form.groupNamePlaceholder'
: 'taskLabels.form.namePlaceholder',
)}
- onChange={(e) => setName(e.target.value)}
onPressEnter={handleSave}
+ onChange={(e) => {
+ setName(e.target.value);
+ setNameError('');
+ }}
/>
+ {nameError && (
+ <span role={'alert'} style={{ color: cssVar.colorError, fontSize: 12 }}>
+ {nameError}
+ </span>
+ )}
</Flexbox>
{!editingGroup && groups.length > 0 && (
<Flexbox gap={8}>
@@ -138,8 +160,16 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
{ label: t('taskLabels.form.noGroup'), value: NO_GROUP },
...groups.map((item) => ({ label: item.name, value: item.id })),
]}
- onChange={(value: string) => setGroup(value)}
+ onChange={(value: string) => {
+ setGroup(value);
+ setGroupError('');
+ }}
/>
+ {groupError && (
+ <span role={'alert'} style={{ color: cssVar.colorError, fontSize: 12 }}>
+ {groupError}
+ </span>
+ )}
</Flexbox>
)}
<Flexbox gap={8}>
@@ -158,6 +188,9 @@ const TaskLabelFormContent = memo<TaskLabelFormModalOptions>(({ isGroup, label,
))}
</Flexbox>
</Flexbox>
+ {saveError && (
+ <InlineErrorText detail={saveError.detail}>{saveError.summary}</InlineErrorText>
+ )}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/features/TopicDoctorModal/Content.tsx b/src/features/TopicDoctorModal/Content.tsx
index 427dfb75414..24c537e6410 100644
--- a/src/features/TopicDoctorModal/Content.tsx
+++ b/src/features/TopicDoctorModal/Content.tsx
@@ -17,6 +17,8 @@ import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { messageService } from '@/services/message';
import { useChatStore } from '@/store/chat';
import { densityVars } from '@/styles/densityVars';
@@ -40,6 +42,7 @@ const TopicDoctorContent = memo<TopicDoctorContentProps>(({ agentId, topicId })
const refreshMessages = useChatStore((s) => s.refreshMessages);
const [repairing, setRepairing] = useState(false);
+ const [repairError, setRepairError] = useState<InlineErrorState | null>(null);
const { data, error, isLoading, mutate } = useSWR(['topic-doctor', agentId, topicId], () =>
messageService.diagnoseTopic({ agentId, topicId }),
@@ -97,13 +100,15 @@ const TopicDoctorContent = memo<TopicDoctorContentProps>(({ agentId, topicId })
const handleRepair = async () => {
setRepairing(true);
+ setRepairError(null);
try {
const { restoredMessageIds } = await messageService.repairTopic({ agentId, topicId });
await refreshMessages({ agentId: agentId ?? undefined, topicId });
toast.success(t('doctor.repaired', { count: restoredMessageIds.length }));
close();
- } catch {
- toast.error(t('doctor.repairFailed'));
+ } catch (error) {
+ console.error('[TopicDoctor] Failed to repair topic:', error);
+ setRepairError(toInlineError(t('doctor.repairFailedRetry'), error));
} finally {
setRepairing(false);
}
@@ -139,6 +144,10 @@ const TopicDoctorContent = memo<TopicDoctorContentProps>(({ agentId, topicId })
))}
</Flexbox>
+ {repairError && (
+ <InlineErrorText detail={repairError.detail}>{repairError.summary}</InlineErrorText>
+ )}
+
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
<Button
diff --git a/src/features/WorkingDirectory/SandboxDirectoryModal.tsx b/src/features/WorkingDirectory/SandboxDirectoryModal.tsx
index d469fa1d193..f713e6d3981 100644
--- a/src/features/WorkingDirectory/SandboxDirectoryModal.tsx
+++ b/src/features/WorkingDirectory/SandboxDirectoryModal.tsx
@@ -9,7 +9,6 @@ import {
type ModalInstance,
Segmented,
Spin,
- toast,
useModalContext,
} from '@lobehub/ui';
import { t } from 'i18next';
@@ -18,6 +17,8 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { SandboxStorageUpgradeGuide } from '@/business/client/features/SandboxStorageUpsell';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useSandboxDriveEntitlement } from '@/hooks/useSandboxDriveEntitlement';
import { confirmPick } from './confirmPick';
@@ -49,6 +50,7 @@ const SandboxDirectoryContent = ({
const { close } = useModalContext();
const { entitled } = useSandboxDriveEntitlement();
const [saving, setSaving] = useState(false);
+ const [pickError, setPickError] = useState<InlineErrorState | null>(null);
const [drive, setDrive] = useState<SandboxDrive>(
isWorkspace ? (initialDrive ?? 'public') : 'personal',
);
@@ -87,7 +89,10 @@ const SandboxDirectoryContent = ({
value: 'personal',
},
]}
- onChange={(value) => setDrive(value as SandboxDrive)}
+ onChange={(value) => {
+ setPickError(null);
+ setDrive(value as SandboxDrive);
+ }}
/>
)}
{/* Keyed on the drive, so its navigation starts over: a folder on one
@@ -101,16 +106,23 @@ const SandboxDirectoryContent = ({
onCancel={close}
onSelect={async (path) => {
setSaving(true);
+ setPickError(null);
await confirmPick({
// The root is a choice of its own — `.` — distinct from "no
// folder", which is the temporary sandbox.
apply: () => onPick({ drive, workingDirectory: path || '.' }),
close,
- fail: () => toast.error(tDevice('workingDirectory.drive.pickFailed')),
+ fail: (error) => {
+ console.error('[SandboxDirectory] Failed to pick folder:', error);
+ setPickError(toInlineError(tDevice('workingDirectory.drive.pickFailedRetry'), error));
+ },
});
setSaving(false);
}}
/>
+ {pickError && (
+ <InlineErrorText detail={pickError.detail}>{pickError.summary}</InlineErrorText>
+ )}
</Flexbox>
);
};
diff --git a/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx b/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx
index 2f195395682..c21dbe97da3 100644
--- a/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx
+++ b/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx
@@ -13,6 +13,8 @@ import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useHomeStore } from '@/store/home';
/** The word the user must type to arm the Delete button (mirrors Linear). */
@@ -38,19 +40,21 @@ const DeleteLabelContent = memo<DeleteLabelContentProps>(({ label }) => {
const [confirmText, setConfirmText] = useState('');
const [loading, setLoading] = useState(false);
const [archiving, setArchiving] = useState(false);
+ const [actionError, setActionError] = useState<InlineErrorState | null>(null);
const armed = confirmText.trim().toLowerCase() === DELETE_CONFIRM_WORD;
const handleDelete = async () => {
if (!armed || loading || archiving) return;
setLoading(true);
+ setActionError(null);
try {
await removeAgentLabel(label.id);
toast.success(t('workspaceSetting.labels.delete.success'));
close();
} catch (error) {
console.error('Failed to delete label:', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ setActionError(toInlineError(t('workspaceSetting.labels.delete.failedRetry'), error));
} finally {
setLoading(false);
}
@@ -59,13 +63,14 @@ const DeleteLabelContent = memo<DeleteLabelContentProps>(({ label }) => {
const handleArchive = async () => {
if (loading || archiving) return;
setArchiving(true);
+ setActionError(null);
try {
await updateAgentLabel(label.id, { archived: true });
toast.success(t('workspaceSetting.labels.archive.success'));
close();
} catch (error) {
console.error('Failed to archive label:', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ setActionError(toInlineError(t('workspaceSetting.labels.archive.failedRetry'), error));
} finally {
setArchiving(false);
}
@@ -86,9 +91,15 @@ const DeleteLabelContent = memo<DeleteLabelContentProps>(({ label }) => {
disabled={loading || archiving}
placeholder={DELETE_CONFIRM_WORD}
value={confirmText}
- onChange={(e) => setConfirmText(e.target.value)}
onPressEnter={handleDelete}
+ onChange={(e) => {
+ setConfirmText(e.target.value);
+ setActionError(null);
+ }}
/>
+ {actionError && (
+ <InlineErrorText detail={actionError.detail}>{actionError.summary}</InlineErrorText>
+ )}
</Flexbox>
{/* Archive and Delete both mutate the same label, so each locks the other
out — `loading` alone only disables the button that owns it. */}
diff --git a/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx b/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx
index 5871ac622c7..3b41929b310 100644
--- a/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx
+++ b/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx
@@ -1,19 +1,13 @@
import { type AgentLabelListItem } from '@lobechat/types';
-import {
- Button,
- createModal,
- Flexbox,
- Input,
- ModalFooter,
- toast,
- useModalContext,
-} from '@lobehub/ui';
+import { Button, createModal, Flexbox, Input, ModalFooter, useModalContext } from '@lobehub/ui';
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useHomeStore } from '@/store/home';
import { DEFAULT_LABEL_COLOR, isValidLabelColor, LABEL_COLOR_PRESETS } from './constants';
@@ -64,11 +58,19 @@ const LabelFormContent = memo<LabelFormModalOptions>(({ assignTo, label, restore
const [description, setDescription] = useState(label?.description ?? '');
const [color, setColor] = useState<string>(label?.color ?? DEFAULT_LABEL_COLOR);
const [loading, setLoading] = useState(false);
+ /**
+ * Save failures stay in the modal: a name clash shows under the name input (the field the
+ * user must change), any other failure shows above the footer buttons.
+ */
+ const [nameError, setNameError] = useState('');
+ const [saveError, setSaveError] = useState<InlineErrorState | null>(null);
const handleSave = async () => {
const trimmed = name.trim();
if (!trimmed || loading) return;
+ setNameError('');
+ setSaveError(null);
setLoading(true);
try {
if (label) {
@@ -96,11 +98,11 @@ const LabelFormContent = memo<LabelFormModalOptions>(({ assignTo, label, restore
// Keep the modal open on a name clash — the user's next move is to edit
// the name they already typed, not to start over.
if (isDuplicateLabelNameError(error)) {
- toast.error(t('workspaceSetting.labels.form.duplicateName'));
+ setNameError(t('workspaceSetting.labels.form.duplicateName'));
return;
}
console.error('Failed to save label:', error);
- toast.error(t('operationFailed', { ns: 'common' }));
+ setSaveError(toInlineError(t('workspaceSetting.labels.form.saveFailedRetry'), error));
} finally {
setLoading(false);
}
@@ -113,11 +115,21 @@ const LabelFormContent = memo<LabelFormModalOptions>(({ assignTo, label, restore
<span>{t('workspaceSetting.labels.form.name')}</span>
<Input
autoFocus
+ aria-invalid={!!nameError}
+ data-invalid={nameError ? '' : undefined}
maxLength={40}
placeholder={t('workspaceSetting.labels.form.namePlaceholder')}
value={name}
- onChange={(e) => setName(e.target.value)}
+ onChange={(e) => {
+ setName(e.target.value);
+ setNameError('');
+ }}
/>
+ {nameError && (
+ <span role={'alert'} style={{ color: cssVar.colorError, fontSize: 12 }}>
+ {nameError}
+ </span>
+ )}
</Flexbox>
<Flexbox gap={8}>
<span>{t('workspaceSetting.labels.form.description')}</span>
@@ -151,6 +163,9 @@ const LabelFormContent = memo<LabelFormModalOptions>(({ assignTo, label, restore
/>
</Flexbox>
</Flexbox>
+ {saveError && (
+ <InlineErrorText detail={saveError.detail}>{saveError.summary}</InlineErrorText>
+ )}
</Flexbox>
<ModalFooter>
<Button onClick={close}>{t('cancel', { ns: 'common' })}</Button>
diff --git a/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx b/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx
index 571ddbff9c5..7548bb8371a 100644
--- a/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx
+++ b/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx
@@ -6,6 +6,8 @@ import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import ImperativeModal from '@/components/ImperativeModal';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { usePermission } from '@/hooks/usePermission';
import { lambdaClient } from '@/libs/trpc/client';
@@ -27,6 +29,7 @@ export const ClaimResourcesModal = memo<ClaimResourcesModalProps>(
const [selectedPlugins, setSelectedPlugins] = useState<Set<string>>(() => new Set());
const [selectedSkills, setSelectedSkills] = useState<Set<string>>(() => new Set());
const [isClaiming, setIsClaiming] = useState(false);
+ const [claimError, setClaimError] = useState<InlineErrorState | null>(null);
useEffect(() => {
if (!open) {
@@ -40,6 +43,7 @@ export const ClaimResourcesModal = memo<ClaimResourcesModalProps>(
}, [open, resources]);
const togglePlugin = useCallback((id: string) => {
+ setClaimError(null);
setSelectedPlugins((prev) => {
const next = new Set(prev);
if (next.has(id)) {
@@ -52,6 +56,7 @@ export const ClaimResourcesModal = memo<ClaimResourcesModalProps>(
}, []);
const toggleSkill = useCallback((id: string) => {
+ setClaimError(null);
setSelectedSkills((prev) => {
const next = new Set(prev);
if (next.has(id)) {
@@ -74,6 +79,7 @@ export const ClaimResourcesModal = memo<ClaimResourcesModalProps>(
}
setIsClaiming(true);
+ setClaimError(null);
try {
await lambdaClient.market.socialProfile.claimResources.mutate({
pluginIds,
@@ -91,10 +97,13 @@ export const ClaimResourcesModal = memo<ClaimResourcesModalProps>(
onClose();
} catch (error) {
console.error('[ClaimResources] Failed to claim:', error);
- toast.error(
- t('claimResources.error', {
- defaultValue: 'Failed to claim resources. Please try again.',
- }),
+ setClaimError(
+ toInlineError(
+ t('claimResources.failedRetry', {
+ defaultValue: "Couldn't claim these resources. Check your network and try again.",
+ }),
+ error,
+ ),
);
} finally {
setIsClaiming(false);
@@ -219,6 +228,12 @@ export const ClaimResourcesModal = memo<ClaimResourcesModalProps>(
})}
</Text>
)}
+
+ {claimError && (
+ <div style={{ marginTop: 12 }}>
+ <InlineErrorText detail={claimError.detail}>{claimError.summary}</InlineErrorText>
+ </div>
+ )}
</ImperativeModal>
);
},
diff --git a/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx b/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx
index 8e791f35b22..21f1f24ae0b 100644
--- a/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx
+++ b/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx
@@ -21,6 +21,8 @@ import { z } from 'zod';
import EmojiPicker from '@/components/EmojiPicker';
import ImperativeModal from '@/components/ImperativeModal';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { lambdaClient } from '@/libs/trpc/client';
import { useFileStore } from '@/store/file';
import { useGlobalStore } from '@/store/global';
@@ -101,6 +103,13 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
// Avatar state
const [avatarUrl, setAvatarUrl] = useState<string | null>(null);
const [avatarUploading, setAvatarUploading] = useState(false);
+ /**
+ * Upload and save failures render beside the control that caused them: the modal stays
+ * open, so a corner toast would sit far from the avatar / banner / footer buttons.
+ */
+ const [avatarError, setAvatarError] = useState('');
+ const [bannerError, setBannerError] = useState<InlineErrorState | null>(null);
+ const [submitError, setSubmitError] = useState<InlineErrorState | null>(null);
// Banner state
const [bannerUrl, setBannerUrl] = useState<string | null>(null);
@@ -179,8 +188,9 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
// Handle avatar upload
const handleAvatarUpload = useCallback(
async (file: File) => {
+ setAvatarError('');
if (file.size > MAX_FILE_SIZE) {
- toast.error(t('profileSetup.errors.fileTooLarge'));
+ setAvatarError(t('profileSetup.errors.fileTooLarge'));
return;
}
@@ -192,7 +202,7 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
}
} catch (error) {
console.error('[ProfileSetupModal] Avatar upload failed:', error);
- toast.error(t('profileSetup.errors.uploadFailed'));
+ setAvatarError(t('profileSetup.errors.uploadFailed'));
} finally {
setAvatarUploading(false);
}
@@ -208,8 +218,9 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
// Handle banner upload
const handleBannerUpload = useCallback(
async (file: File) => {
+ setBannerError(null);
if (file.size > MAX_FILE_SIZE) {
- toast.error(t('profileSetup.errors.fileTooLarge'));
+ setBannerError(toInlineError(t('profileSetup.errors.fileTooLarge')));
return;
}
@@ -221,7 +232,7 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
}
} catch (error) {
console.error('[ProfileSetupModal] Banner upload failed:', error);
- toast.error(t('profileSetup.errors.uploadFailed'));
+ setBannerError(toInlineError(t('profileSetup.errors.uploadFailed'), error));
} finally {
setBannerUploading(false);
}
@@ -236,8 +247,9 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
const doSubmit = useCallback(async () => {
// If not in automatic authorization mode, need to validate accessToken
+ setSubmitError(null);
if (!enableMarketTrustedClient && !accessToken) {
- toast.error(t('profileSetup.errors.notAuthenticated'));
+ setSubmitError(toInlineError(t('profileSetup.errors.notAuthenticated')));
return;
}
@@ -314,9 +326,10 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
errorMessage.toLowerCase().includes('already taken') ||
errorMessage.includes('CONFLICT')
) {
- toast.error(t('profileSetup.errors.usernameTaken'));
+ // Shown under the User ID field; form.setErrors clears it when the user edits it
+ form.setErrors({ userName: t('profileSetup.errors.usernameTaken') });
} else {
- toast.error(t('profileSetup.errors.updateFailed'));
+ setSubmitError(toInlineError(t('profileSetup.errors.updateFailed'), error));
}
}
} finally {
@@ -445,20 +458,27 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
</Flexbox>
{/* Avatar Section */}
<Form.Field>
- <EmojiPicker
- allowDelete={!!avatarUrl}
- loading={avatarUploading}
- locale={locale}
- shape="square"
- size={80}
- value={avatarUrl || undefined}
- allowUpload={{
- enableEmoji: false,
- }}
- onChange={handleAvatarChange}
- onDelete={handleAvatarDelete}
- onUpload={handleAvatarUpload}
- />
+ <Flexbox align="center" gap={6} style={{ maxWidth: 120 }}>
+ <EmojiPicker
+ allowDelete={!!avatarUrl}
+ loading={avatarUploading}
+ locale={locale}
+ shape="square"
+ size={80}
+ value={avatarUrl || undefined}
+ allowUpload={{
+ enableEmoji: false,
+ }}
+ onChange={handleAvatarChange}
+ onDelete={handleAvatarDelete}
+ onUpload={handleAvatarUpload}
+ />
+ {avatarError && (
+ <Text style={{ color: cssVar.colorError, fontSize: 12, textAlign: 'center' }}>
+ {avatarError}
+ </Text>
+ )}
+ </Flexbox>
</Form.Field>
</Flexbox>
<Form.Field
@@ -547,6 +567,11 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
</Center>
</div>
</Upload>
+ {bannerError && (
+ <InlineErrorText detail={bannerError.detail}>
+ {bannerError.summary}
+ </InlineErrorText>
+ )}
{bannerUrl && (
<Flexbox horizontal align="center" gap={8} justify="flex-end">
<Text
@@ -620,6 +645,9 @@ const ProfileSetupModal = memo<ProfileSetupModalProps>(
</Form.Field>
</>
)}
+ {submitError && (
+ <InlineErrorText detail={submitError.detail}>{submitError.summary}</InlineErrorText>
+ )}
</Form>
</ImperativeModal>
);
diff --git a/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx b/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx
index 8e7a8249e9b..3cc1ef7ce27 100644
--- a/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx
@@ -6,6 +6,8 @@ import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import ImperativeModal from '@/components/ImperativeModal';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { lambdaClient } from '@/libs/trpc/client';
import { isGithubRepoUrl } from './githubRepoUrl';
@@ -24,8 +26,11 @@ export const SubmitRepoModal = memo<SubmitRepoModalProps>(
const form = useForm<{ gitUrl?: string }>();
const [isSubmitting, setIsSubmitting] = useState(false);
+ /** Submit failure, shown above the modal buttons: the modal stays open with the typed URL. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const handleSubmit = useCallback(async () => {
+ setError(null);
try {
const { valid } = await form.validate();
if (!valid) return;
@@ -49,15 +54,16 @@ export const SubmitRepoModal = memo<SubmitRepoModalProps>(
onSuccess?.();
onClose();
form.reset();
- } catch (error) {
- console.error('[SubmitRepoModal] Failed to submit:', error);
- toast.error(error instanceof Error ? error.message : t('user.submitRepoError'));
+ } catch (err) {
+ console.error('[SubmitRepoModal] Failed to submit:', err);
+ setError(toInlineError(t('user.submitRepoError'), err));
} finally {
setIsSubmitting(false);
}
}, [beforeSubmit, form, t, onSuccess, onClose]);
const handleCancel = useCallback(() => {
+ setError(null);
form.reset();
onClose();
}, [form, onClose]);
@@ -99,6 +105,11 @@ export const SubmitRepoModal = memo<SubmitRepoModalProps>(
{t('user.submitRepoHint')}
</Text>
</Flexbox>
+ {error && (
+ <InlineErrorText detail={error.detail} style={{ marginTop: 12 }}>
+ {error.summary}
+ </InlineErrorText>
+ )}
</ImperativeModal>
);
},
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx
index 1cf74ea3f9c..af11731e584 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx
@@ -29,6 +29,8 @@ import {
updateCommunityWorkspaceProfile,
} from '@/business/client/services/communityWorkspaceProfile';
import AvatarUpload from '@/components/AvatarUpload';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useFileStore } from '@/store/file';
import type { DiscoverUserInfo } from '@/types/discover';
@@ -83,6 +85,13 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
const [bannerUrl, setBannerUrl] = useState<string | null>(user.bannerUrl ?? null);
const [bannerUploading, setBannerUploading] = useState(false);
const [loading, setLoading] = useState(false);
+ /**
+ * Upload and save failures render beside the control that caused them: the modal stays
+ * open, so a corner toast would sit far from the avatar / banner / Save button.
+ */
+ const [avatarError, setAvatarError] = useState('');
+ const [bannerError, setBannerError] = useState<InlineErrorState | null>(null);
+ const [saveError, setSaveError] = useState<InlineErrorState | null>(null);
const isSetup = !user.namespace;
// Live namespace-availability check (setup only — the handle is immutable once
@@ -126,15 +135,23 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
return (
<Flexbox horizontal align="center" gap={6} style={{ color, fontSize: 12 }}>
{namespaceAvailability === 'checking' && <Spin size={13} />}
- {t(`user.workspaceProfile.fields.namespace.${namespaceAvailability}` as any)}
+ {
+ // Static keys, so type-check fails if a status loses its copy.
+ {
+ available: t('user.workspaceProfile.fields.namespace.available'),
+ checking: t('user.workspaceProfile.fields.namespace.checking'),
+ taken: t('user.workspaceProfile.fields.namespace.taken'),
+ }[namespaceAvailability]
+ }
</Flexbox>
);
}, [isSetup, namespaceAvailability, t]);
const handleAvatarUpload = useCallback(
async (file: File) => {
+ setAvatarError('');
if (file.size > MAX_FILE_SIZE) {
- toast.error(t('user.workspaceProfile.errors.fileTooLarge'));
+ setAvatarError(t('user.workspaceProfile.errors.fileTooLarge'));
return;
}
@@ -142,7 +159,7 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
try {
const result = await uploadWithProgress({ file });
if (!result?.url) {
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setAvatarError(t('user.workspaceProfile.errors.uploadFailedRetry'));
return;
}
setAvatarUrl(
@@ -150,7 +167,7 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
);
} catch (error) {
console.error('[WorkspaceProfileModal] Avatar upload failed:', error);
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setAvatarError(t('user.workspaceProfile.errors.uploadFailedRetry'));
} finally {
setAvatarUploading(false);
}
@@ -160,8 +177,9 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
const handleBannerUpload = useCallback(
async (file: File) => {
+ setBannerError(null);
if (file.size > MAX_FILE_SIZE) {
- toast.error(t('user.workspaceProfile.errors.fileTooLarge'));
+ setBannerError(toInlineError(t('user.workspaceProfile.errors.fileTooLarge')));
return;
}
@@ -169,7 +187,7 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
try {
const result = await uploadWithProgress({ file });
if (!result?.url) {
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setBannerError(toInlineError(t('user.workspaceProfile.errors.uploadFailedRetry')));
return;
}
const url = result.url.startsWith('/')
@@ -178,7 +196,7 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
setBannerUrl(url);
} catch (error) {
console.error('[WorkspaceProfileModal] Banner upload failed:', error);
- toast.error(t('user.workspaceProfile.errors.uploadFailed'));
+ setBannerError(toInlineError(t('user.workspaceProfile.errors.uploadFailedRetry'), error));
} finally {
setBannerUploading(false);
}
@@ -193,11 +211,10 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
if (!valid) return;
const values = form.getValues();
- if (isSetup && namespaceAvailability === 'taken') {
- toast.error(t('user.workspaceProfile.fields.namespace.taken'));
- return;
- }
+ // The namespace field already shows the red "taken" status and the Save button is disabled.
+ if (isSetup && namespaceAvailability === 'taken') return;
+ setSaveError(null);
setLoading(true);
try {
const profile = {
@@ -227,12 +244,10 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
// Surface a namespace conflict (e.g. the handle was claimed between the
// live check and submit) as a taken-handle message instead of a generic one.
if (isSetup && isCommunityWorkspaceNamespaceTakenError(error)) {
+ // Rendered as the red status under the namespace field (namespaceStatusNode)
setNamespaceAvailability('taken');
- toast.error(t('user.workspaceProfile.fields.namespace.taken'));
} else {
- toast.error(
- t(isSetup ? 'user.workspaceProfile.setup.failed' : 'user.workspaceProfile.failed'),
- );
+ setSaveError(toInlineError(t('user.workspaceProfile.errors.saveFailed'), error));
}
} finally {
setLoading(false);
@@ -320,6 +335,9 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
</Center>
</div>
</Upload>
+ {bannerError && (
+ <InlineErrorText detail={bannerError.detail}>{bannerError.summary}</InlineErrorText>
+ )}
{bannerUrl && (
<Flexbox horizontal align="center" gap={8} justify="flex-end">
<Text
@@ -344,7 +362,7 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
</Form.Field>
</>
),
- [bannerUploading, bannerUrl, handleBannerUpload, t],
+ [bannerError, bannerUploading, bannerUrl, handleBannerUpload, t],
);
return (
@@ -370,15 +388,22 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
</Form.Field>
</Flexbox>
- <AvatarUpload
- allowDelete={!!avatarUrl}
- loading={avatarUploading}
- shape="square"
- size={80}
- value={avatarUrl || undefined}
- onDelete={() => setAvatarUrl(null)}
- onUpload={handleAvatarUpload}
- />
+ <Flexbox align="center" gap={6} style={{ maxWidth: 120 }}>
+ <AvatarUpload
+ allowDelete={!!avatarUrl}
+ loading={avatarUploading}
+ shape="square"
+ size={80}
+ value={avatarUrl || undefined}
+ onDelete={() => setAvatarUrl(null)}
+ onUpload={handleAvatarUpload}
+ />
+ {avatarError && (
+ <Text style={{ color: cssVar.colorError, fontSize: 12, textAlign: 'center' }}>
+ {avatarError}
+ </Text>
+ )}
+ </Flexbox>
</Flexbox>
{isSetup && (
@@ -435,6 +460,9 @@ export const Content = memo<ContentProps>(({ user, onSuccess }) => {
/>
</Form>
+ {saveError && (
+ <InlineErrorText detail={saveError.detail}>{saveError.summary}</InlineErrorText>
+ )}
<Flexbox horizontal gap={8} justify="flex-end">
<Button disabled={loading} onClick={close}>
{t('user.workspaceProfile.cancel')}
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx
index af5cabd4917..cc9d385ad81 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx
@@ -21,6 +21,8 @@ import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceSlug } from '@/business/client/hooks/useActiveWorkspaceSlug';
import AgentAvatar from '@/components/AgentAvatar';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { buildWorkspaceAwarePath } from '@/features/Workspace/workspaceAwarePath';
import { agentService } from '@/services/agent';
@@ -104,6 +106,8 @@ const RunCreateContent: FC<RunCreateContentProps> = ({
const startRun = useEvalStore((s) => s.startRun);
const datasetList = useEvalStore(datasetSelectors.datasetList(benchmarkId));
const isDatasetMode = !!datasetId && !!datasetName;
+ /** Create failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const form = useForm<RunCreateFormValues>({
initialValues: {
datasetId: datasetId && !isDatasetMode ? datasetId : undefined,
@@ -111,6 +115,7 @@ const RunCreateContent: FC<RunCreateContentProps> = ({
maxSteps: DEFAULT_MAX_STEPS,
timeoutMinutes: DEFAULT_TIMEOUT_MINUTES,
},
+ onValuesChange: () => setError(null),
});
const kValue = useWatch(form, 'k') ?? 1;
@@ -179,6 +184,7 @@ const RunCreateContent: FC<RunCreateContentProps> = ({
const { valid } = await form.validate();
if (!valid) return;
const values = form.getValues();
+ setError(null);
onLoadingChange?.(true);
try {
const maxSteps = values.maxSteps ?? DEFAULT_MAX_STEPS;
@@ -204,11 +210,10 @@ const RunCreateContent: FC<RunCreateContentProps> = ({
navigate(`/eval/bench/${benchmarkId}/runs/${run.id}`);
}
close();
- } catch (error) {
- // createRun failure: toast and keep the modal open for retry (ux Act).
- toast.error(
- error instanceof Error && error.message ? error.message : t('run.create.error'),
- );
+ } catch (cause) {
+ // createRun failure: keep the modal open and show the reason inline for retry.
+ console.error('Failed to create eval run:', cause);
+ setError(toInlineError(t('run.create.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
@@ -372,6 +377,7 @@ const RunCreateContent: FC<RunCreateContentProps> = ({
},
]}
/>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx
index 5876c89a36a..11e9592f052 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx
@@ -22,6 +22,8 @@ import { useParams } from 'react-router';
import { useActiveWorkspaceSlug } from '@/business/client/hooks/useActiveWorkspaceSlug';
import AgentAvatar from '@/components/AgentAvatar';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { buildWorkspaceAwarePath } from '@/features/Workspace/workspaceAwarePath';
import { agentService } from '@/services/agent';
@@ -71,6 +73,8 @@ const RunEditContent: FC<RunEditContentProps> = ({ formId, onLoadingChange, run
const datasetList = useEvalStore(datasetSelectors.datasetList(benchmarkId));
const [agents, setAgents] = useState<AgentOption[]>([]);
const [loadingAgents, setLoadingAgents] = useState(false);
+ /** Save failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
const canChangeConfig = run?.status === 'idle';
const isFinished = run?.status === 'completed';
@@ -139,6 +143,7 @@ const RunEditContent: FC<RunEditContentProps> = ({ formId, onLoadingChange, run
);
const handleFinish = async (values: any) => {
+ setError(null);
onLoadingChange?.(true);
try {
const config: EvalRunInputConfig = {};
@@ -156,8 +161,9 @@ const RunEditContent: FC<RunEditContentProps> = ({ formId, onLoadingChange, run
});
toast.success(t('run.edit.success'));
close();
- } catch {
- toast.error(t('run.edit.error'));
+ } catch (cause) {
+ console.error('Failed to update eval run:', cause);
+ setError(toInlineError(t('run.edit.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
@@ -172,6 +178,7 @@ const RunEditContent: FC<RunEditContentProps> = ({ formId, onLoadingChange, run
timeoutMinutes: run.config?.timeout ? run.config.timeout / 60_000 : undefined,
},
onSubmit: handleFinish,
+ onValuesChange: () => setError(null),
});
const kValue = useWatch(form, 'k') ?? 1;
@@ -296,6 +303,7 @@ const RunEditContent: FC<RunEditContentProps> = ({ formId, onLoadingChange, run
},
]}
/>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx b/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx
index 01b08c9f655..215bed76fbf 100644
--- a/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx
+++ b/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx
@@ -2,9 +2,11 @@
import { Input, TextArea, toast, useModalContext } from '@lobehub/ui';
import { Form, useForm } from '@lobehub/ui/form';
-import { type FC } from 'react';
+import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useEvalStore } from '@/store/eval';
export interface BenchmarkEditContentProps {
@@ -31,7 +33,11 @@ const BenchmarkEditContent: FC<BenchmarkEditContentProps> = ({
const updateBenchmark = useEvalStore((s) => s.updateBenchmark);
+ /** Save failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
+
const handleFinish = async (values: any) => {
+ setError(null);
onLoadingChange?.(true);
try {
await updateBenchmark({
@@ -42,8 +48,9 @@ const BenchmarkEditContent: FC<BenchmarkEditContentProps> = ({
toast.success(t('benchmark.edit.success'));
close();
onSuccess?.();
- } catch {
- toast.error(t('benchmark.edit.error'));
+ } catch (cause) {
+ console.error('Failed to update eval benchmark:', cause);
+ setError(toInlineError(t('benchmark.edit.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
@@ -55,6 +62,7 @@ const BenchmarkEditContent: FC<BenchmarkEditContentProps> = ({
name: benchmark.name,
},
onSubmit: handleFinish,
+ onValuesChange: () => setError(null),
});
return (
@@ -70,6 +78,7 @@ const BenchmarkEditContent: FC<BenchmarkEditContentProps> = ({
<Form.Field label={t('benchmark.create.description.label')} name="description">
<TextArea placeholder={t('benchmark.create.description.placeholder')} rows={3} />
</Form.Field>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx b/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx
index 9debb151d24..063f04356bb 100644
--- a/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx
+++ b/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx
@@ -5,6 +5,8 @@ import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { useEvalStore } from '@/store/eval';
@@ -28,7 +30,11 @@ const CreateBenchmarkContent: FC<CreateBenchmarkContentProps> = ({ formId, onLoa
const [identifierTouched, setIdentifierTouched] = useState(false);
const createBenchmark = useEvalStore((s) => s.createBenchmark);
+ /** Submit failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
+
const handleFinish = async (values: any) => {
+ setError(null);
onLoadingChange?.(true);
try {
const result = await createBenchmark({
@@ -41,8 +47,9 @@ const CreateBenchmarkContent: FC<CreateBenchmarkContentProps> = ({ formId, onLoa
if (result?.id) {
navigate(`/eval/bench/${result.id}`);
}
- } catch {
- toast.error(t('benchmark.create.error'));
+ } catch (cause) {
+ console.error('Failed to create eval benchmark:', cause);
+ setError(toInlineError(t('benchmark.create.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
@@ -50,6 +57,7 @@ const CreateBenchmarkContent: FC<CreateBenchmarkContentProps> = ({ formId, onLoa
const form = useForm({
onSubmit: handleFinish,
+ onValuesChange: () => setError(null),
});
const nameValue = useWatch(form, 'name');
@@ -84,6 +92,7 @@ const CreateBenchmarkContent: FC<CreateBenchmarkContentProps> = ({ formId, onLoa
<Form.Field label={t('benchmark.create.description.label')} name="description">
<TextArea placeholder={t('benchmark.create.description.placeholder')} rows={3} />
</Form.Field>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx b/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx
index 70c1a22af52..a0a672be131 100644
--- a/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx
+++ b/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx
@@ -10,7 +10,6 @@ import {
Select,
Text,
TextArea,
- toast,
useModalContext,
} from '@lobehub/ui';
import { Form, useForm, useWatch } from '@lobehub/ui/form';
@@ -18,6 +17,8 @@ import { CheckIcon } from 'lucide-react';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { agentEvalService } from '@/services/agentEval';
import { densityVars } from '@/styles/densityVars';
@@ -135,7 +136,11 @@ const DatasetCreateContent: FC<DatasetCreateContentProps> = ({
const [selectedPreset, setSelectedPreset] = useState<string>('custom');
const [identifierTouched, setIdentifierTouched] = useState(false);
+ /** Submit failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | null>(null);
+
const handleFinish = async (values: any) => {
+ setError(null);
onLoadingChange?.(true);
try {
const result = await agentEvalService.createDataset({
@@ -159,14 +164,15 @@ const DatasetCreateContent: FC<DatasetCreateContentProps> = ({
name: result.name,
preset: selectedPreset,
});
- } catch (error: any) {
- toast.error(error?.message || t('dataset.create.error'));
+ } catch (cause) {
+ console.error('Failed to create eval dataset:', cause);
+ setError(toInlineError(t('dataset.create.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
};
- const form = useForm({ onSubmit: handleFinish });
+ const form = useForm({ onSubmit: handleFinish, onValuesChange: () => setError(null) });
const nameValue = useWatch(form, 'name');
const evalModeValue = useWatch(form, 'evalMode');
@@ -305,6 +311,7 @@ const DatasetCreateContent: FC<DatasetCreateContentProps> = ({
</Flexbox>
)}
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx b/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx
index 3c70a75a3d1..5a8d1c44a21 100644
--- a/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx
+++ b/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx
@@ -18,6 +18,8 @@ import { CheckIcon } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { agentEvalService } from '@/services/agentEval';
import { densityVars } from '@/styles/densityVars';
@@ -131,7 +133,11 @@ const DatasetEditContent: FC<DatasetEditContentProps> = ({
([, presets]) => presets.length > 0,
);
+ /** Submit failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | undefined>();
+
const handleFinish = async (values: any) => {
+ setError(undefined);
onLoadingChange?.(true);
try {
await agentEvalService.updateDataset({
@@ -154,8 +160,9 @@ const DatasetEditContent: FC<DatasetEditContentProps> = ({
toast.success(t('dataset.edit.success'));
close();
onSuccess?.();
- } catch {
- toast.error(t('dataset.edit.error'));
+ } catch (cause) {
+ console.error('Failed to update eval dataset:', cause);
+ setError(toInlineError(t('dataset.edit.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
@@ -176,6 +183,7 @@ const DatasetEditContent: FC<DatasetEditContentProps> = ({
name: dataset.name,
},
onSubmit: handleFinish,
+ onValuesChange: () => setError(undefined),
});
const evalModeValue = useWatch(form, 'evalMode');
@@ -289,6 +297,7 @@ const DatasetEditContent: FC<DatasetEditContentProps> = ({
</Flexbox>
))}
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx b/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx
index 96a3daaa265..a1832cead0a 100644
--- a/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx
+++ b/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx
@@ -13,9 +13,11 @@ import {
} from '@lobehub/ui';
import { Form, useForm } from '@lobehub/ui/form';
import { t } from 'i18next';
-import { memo } from 'react';
+import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { benchmarkSelectors, useEvalStore } from '@/store/eval';
import { createFormModal } from '@/utils/createFormModal';
@@ -41,11 +43,15 @@ const ExperimentModalContent = memo<ExperimentModalContentProps>(
useFetchBenchmarks();
+ /** Save failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | undefined>();
+
const handleSubmit = async (values: {
benchmarkIds: string[];
description?: string;
name: string;
}) => {
+ setError(undefined);
onLoadingChange(true);
try {
const result = experiment
@@ -55,13 +61,13 @@ const ExperimentModalContent = memo<ExperimentModalContentProps>(
toast.success(experiment ? t('experiment.edit.success') : t('experiment.create.title'));
close();
onSuccess?.(result.id);
- } catch (error) {
- toast.error(
- error instanceof Error
- ? error.message
- : experiment
- ? t('experiment.edit.error')
- : t('experiment.create.error'),
+ } catch (cause) {
+ console.error('Failed to save eval experiment:', cause);
+ setError(
+ toInlineError(
+ experiment ? t('experiment.edit.failedRetry') : t('experiment.create.failedRetry'),
+ cause,
+ ),
);
} finally {
onLoadingChange(false);
@@ -77,6 +83,7 @@ const ExperimentModalContent = memo<ExperimentModalContentProps>(
}
: undefined,
onSubmit: handleSubmit,
+ onValuesChange: () => setError(undefined),
});
return (
@@ -107,6 +114,7 @@ const ExperimentModalContent = memo<ExperimentModalContentProps>(
}))}
/>
</Form.Field>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
},
diff --git a/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx b/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx
index 1206b048134..b9d86614bd8 100644
--- a/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx
+++ b/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx
@@ -13,9 +13,11 @@ import {
useModalContext,
} from '@lobehub/ui';
import { Form, useForm, useWatch } from '@lobehub/ui/form';
-import { type FC } from 'react';
+import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { agentEvalService } from '@/services/agentEval';
const styles = createStaticStyles(({ css }) => ({
@@ -43,7 +45,11 @@ const TestCaseCreateContent: FC<TestCaseCreateContentProps> = ({
const { t } = useTranslation('eval');
const { close } = useModalContext();
+ /** Save failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | undefined>();
+
const handleFinish = async (values: any) => {
+ setError(undefined);
onLoadingChange?.(true);
try {
const tags = values.tags
@@ -76,16 +82,15 @@ const TestCaseCreateContent: FC<TestCaseCreateContentProps> = ({
}, 0);
close();
onSuccess?.(datasetId);
- } catch {
- setTimeout(() => {
- toast.error(t('testCase.create.error'));
- }, 0);
+ } catch (cause) {
+ console.error('Failed to create eval test case:', cause);
+ setError(toInlineError(t('testCase.create.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
};
- const form = useForm({ onSubmit: handleFinish });
+ const form = useForm({ onSubmit: handleFinish, onValuesChange: () => setError(undefined) });
const evalModeValue = useWatch(form, 'evalMode');
return (
@@ -175,6 +180,7 @@ const TestCaseCreateContent: FC<TestCaseCreateContentProps> = ({
},
]}
/>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx b/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx
index 9e15d9b8255..92ebbdd2c3c 100644
--- a/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx
+++ b/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx
@@ -13,9 +13,11 @@ import {
useModalContext,
} from '@lobehub/ui';
import { Form, useForm, useWatch } from '@lobehub/ui/form';
-import { type FC } from 'react';
+import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { agentEvalService } from '@/services/agentEval';
const styles = createStaticStyles(({ css }) => ({
@@ -43,7 +45,11 @@ const TestCaseEditContent: FC<TestCaseEditContentProps> = ({
const { t } = useTranslation('eval');
const { close } = useModalContext();
+ /** Save failure shown below the form; the modal stays open with the user's input. */
+ const [error, setError] = useState<InlineErrorState | undefined>();
+
const handleFinish = async (values: any) => {
+ setError(undefined);
onLoadingChange?.(true);
try {
const tags = values.tags
@@ -75,8 +81,9 @@ const TestCaseEditContent: FC<TestCaseEditContentProps> = ({
await onSuccess?.(testCase.datasetId);
toast.success(t('testCase.edit.success'));
close();
- } catch {
- toast.error(t('testCase.edit.error'));
+ } catch (cause) {
+ console.error('Failed to update eval test case:', cause);
+ setError(toInlineError(t('testCase.edit.failedRetry'), cause));
} finally {
onLoadingChange?.(false);
}
@@ -93,6 +100,7 @@ const TestCaseEditContent: FC<TestCaseEditContentProps> = ({
tags: testCase.metadata?.tags?.join(', '),
},
onSubmit: handleFinish,
+ onValuesChange: () => setError(undefined),
});
const evalModeValue = useWatch(form, 'evalMode');
@@ -190,6 +198,7 @@ const TestCaseEditContent: FC<TestCaseEditContentProps> = ({
},
]}
/>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
</Form>
);
};
diff --git a/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx b/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx
index 57fcd2198a0..2bfb2cc648b 100644
--- a/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx
+++ b/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx
@@ -16,6 +16,8 @@ import { t as i18nT } from 'i18next';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import InlineErrorText from '@/components/InlineErrorText';
+import { type InlineErrorState, toInlineError } from '@/components/InlineErrorText/errorDetail';
import { useMemoryAnalysisAsyncTask } from '@/routes/(main)/memory/features/MemoryAnalysis/useTask';
import { memoryExtractionService } from '@/services/userMemory/extraction';
@@ -26,6 +28,8 @@ const DateRangeContent = memo(() => {
const { refresh } = useMemoryAnalysisAsyncTask();
const [range, setRange] = useState<DayjsDateRangeValue | null>(null);
const [submitting, setSubmitting] = useState(false);
+ /** Request failure, shown above the buttons: the modal stays open with the chosen range. */
+ const [error, setError] = useState<InlineErrorState | undefined>();
const disabledDate = useCallback((current: Dayjs) => current.isAfter(dayjs(), 'day'), []);
@@ -41,6 +45,7 @@ const DateRangeContent = memo(() => {
);
const handleSubmit = async () => {
+ setError(undefined);
setSubmitting(true);
try {
const [from, to] = range ?? [null, null];
@@ -52,9 +57,9 @@ const DateRangeContent = memo(() => {
await refresh();
toast.success(result.deduped ? t('analysis.toast.deduped') : t('analysis.toast.started'));
close();
- } catch (error) {
- console.error(error);
- toast.error(t('analysis.toast.failed'));
+ } catch (err) {
+ console.error(err);
+ setError(toInlineError(t('analysis.toast.failed'), err));
} finally {
setSubmitting(false);
}
@@ -70,12 +75,16 @@ const DateRangeContent = memo(() => {
format={'YYYY/MM/DD'}
style={{ width: '100%' }}
value={range}
- onChange={setRange}
+ onChange={(value) => {
+ setRange(value);
+ setError(undefined);
+ }}
/>
<Text fontSize={12} type={'secondary'}>
{footerNote}
</Text>
</Flexbox>
+ {error && <InlineErrorText detail={error.detail}>{error.summary}</InlineErrorText>}
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button disabled={submitting} onClick={close}>
{t('analysis.modal.cancel')}