The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): translate the unconfirmed legacy-send notice in every locale
Tekniuma28d86a40785
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsxindex beae0b57789..61e4b594229 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx@@ -277,7 +277,7 @@ describe('submit timeout admission fences', () => {// The restored draft keeps its identity; pressing Enter again after the notice sends it.expect(await handle!.submitText('hello there', { submission_id: 'legacy-lost' })).toBe(true)expect(submits).toHaveLength(4)- expect(shown).toContain(en.desktop.legacySendUnconfirmed)+ expect(shown).toContain(en.promptNotices.legacySendUnconfirmed)})it('retries an identified timeout with the same admission identity after resume', async () => {diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.tsindex 3e456edac13..8d79ab77199 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts@@ -459,7 +459,7 @@ export function useSubmitPrompt(deps: SubmitPromptDeps) {// the words again afterwards is the user's informed new turn.if (retained?.legacyAttempted && retainedKey) {await removePreparedSubmission(retainedKey, retained.id).catch(error => console.warn('[prepared-submission-retire]', error))- notify({ kind: 'warning', title: copy.promptFailed, message: copy.legacySendUnconfirmed })+ notify({ kind: 'warning', title: copy.promptFailed, message: translateNow('promptNotices.legacySendUnconfirmed') })return false}diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 2d0fb2fa5f3..b8af0a04c6b 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -22,6 +22,7 @@ export const arOverrides = {notifications: arDiagnostics.notifications,remoteDisplayBanner: arBoot.remoteDisplayBanner,butterbar: arBoot.butterbar,+ promptNotices: arBoot.promptNotices,titlebar: arChrome.titlebar,keybinds: arChrome.keybinds,language: arSettings.language,diff --git a/apps/desktop/src/i18n/ar_boot.ts b/apps/desktop/src/i18n/ar_boot.tsindex cdbd5addefd..0477244b7de 100644--- a/apps/desktop/src/i18n/ar_boot.ts+++ b/apps/desktop/src/i18n/ar_boot.ts@@ -67,6 +67,10 @@ export const arBoot = {after: ' الخاصة بنا.'}},+ promptNotices: {+ legacySendUnconfirmed:+ 'تعذّر على هذا الخادم تأكيد الإرسال السابق لهذه الرسالة، لذا ربما تم تنفيذها بالفعل. راجع المحادثة قبل إرسالها مرة أخرى.'+ },updates: {discontinuedTitle: 'لم يعد إصدار Hermes هذا مدعومًا',discontinuedBody: 'لم يعد إصدار Hermes هذا مدعومًا وقد يتوقف عن العمل — ألغِ تثبيته. ستبقى بياناتك على القرص.',@@ -333,5 +337,5 @@ export const arBoot = {}} satisfies Pick<TranslationOverrides,- 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'updates' | 'install' | 'onboarding'+ 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'promptNotices' | 'updates' | 'install' | 'onboarding'>diff --git a/apps/desktop/src/i18n/de_notices.ts b/apps/desktop/src/i18n/de_notices.tsindex 35d96396b9b..c4b8c971e08 100644--- a/apps/desktop/src/i18n/de_notices.ts+++ b/apps/desktop/src/i18n/de_notices.ts@@ -15,5 +15,9 @@ export const deNotices = {privacy: 'Datenschutzerklärung',after: '.'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ 'Dieser Server konnte das frühere Senden dieser Nachricht nicht bestätigen; sie wurde möglicherweise bereits ausgeführt. Prüfe die Unterhaltung, bevor du sie erneut sendest.'}-} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 6c72e4792e8..e0c93290a83 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -5057,8 +5057,6 @@ export const en: Translations = {sessionUnavailable: 'Session unavailable',createSessionFailed: 'Could not create a new session',promptFailed: 'Prompt failed',- legacySendUnconfirmed:- 'This server could not confirm the earlier send of this message, so it may already have run. Check the conversation before sending it again.',providerCredentialRequired: 'Add a provider credential before sending your first message.',emptySlashCommand: 'empty slash command',slashCommandIgnoredTitle: 'Command not sent',diff --git a/apps/desktop/src/i18n/en_notices.ts b/apps/desktop/src/i18n/en_notices.tsindex a668aff823f..cb09ce6a2f8 100644--- a/apps/desktop/src/i18n/en_notices.ts+++ b/apps/desktop/src/i18n/en_notices.ts@@ -15,5 +15,9 @@ export const enNotices = {privacy: 'Privacy Policy',after: '.'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ 'This server could not confirm the earlier send of this message, so it may already have run. Check the conversation before sending it again.'}-} satisfies Pick<Translations, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<Translations, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/apps/desktop/src/i18n/es_notices.ts b/apps/desktop/src/i18n/es_notices.tsindex c9c2affffdb..bdfa10c5eb6 100644--- a/apps/desktop/src/i18n/es_notices.ts+++ b/apps/desktop/src/i18n/es_notices.ts@@ -15,5 +15,9 @@ export const esNotices = {privacy: 'Política de privacidad',after: '.'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ 'Este servidor no pudo confirmar el envío anterior de este mensaje, así que es posible que ya se haya ejecutado. Revisa la conversación antes de volver a enviarlo.'}-} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/apps/desktop/src/i18n/fr_notices.ts b/apps/desktop/src/i18n/fr_notices.tsindex 2262902e386..b31a7186117 100644--- a/apps/desktop/src/i18n/fr_notices.ts+++ b/apps/desktop/src/i18n/fr_notices.ts@@ -15,5 +15,9 @@ export const frNotices = {privacy: 'Politique de confidentialité',after: '.'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ "Ce serveur n'a pas pu confirmer l'envoi précédent de ce message ; il a peut-être déjà été exécuté. Vérifiez la conversation avant de le renvoyer."}-} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/apps/desktop/src/i18n/ja_notices.ts b/apps/desktop/src/i18n/ja_notices.tsindex 1307b347757..15b7df888b1 100644--- a/apps/desktop/src/i18n/ja_notices.ts+++ b/apps/desktop/src/i18n/ja_notices.ts@@ -15,5 +15,9 @@ export const jaNotices = {privacy: 'プライバシーポリシー',after: 'が適用されます。'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ 'このサーバーはこのメッセージの前回の送信を確認できなかったため、すでに実行された可能性があります。再送信する前に会話を確認してください。'}-} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/apps/desktop/src/i18n/ru_notices.ts b/apps/desktop/src/i18n/ru_notices.tsindex 6b41c5de16a..1fe0dd721d1 100644--- a/apps/desktop/src/i18n/ru_notices.ts+++ b/apps/desktop/src/i18n/ru_notices.ts@@ -15,5 +15,9 @@ export const ruNotices = {privacy: 'Политикой конфиденциальности',after: '.'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ 'Этот сервер не смог подтвердить предыдущую отправку этого сообщения, поэтому оно, возможно, уже выполнено. Проверьте беседу, прежде чем отправлять его снова.'}-} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 7647d0ad7dd..d7680227b48 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -4298,7 +4298,6 @@ export interface Translations extends NoticeTranslations {sessionUnavailable: stringcreateSessionFailed: stringpromptFailed: string- legacySendUnconfirmed: stringproviderCredentialRequired: stringemptySlashCommand: stringslashCommandIgnoredTitle: stringdiff --git a/apps/desktop/src/i18n/types_notices.ts b/apps/desktop/src/i18n/types_notices.tsindex 14a52bbbd63..107a055af86 100644--- a/apps/desktop/src/i18n/types_notices.ts+++ b/apps/desktop/src/i18n/types_notices.ts@@ -1,5 +1,5 @@-// Shell notice strings: the remote-display toast and the butterbar; `Translations`-// spreads this in.+// Shell notice strings: the remote-display toast, the butterbar and send-outcome toasts;+// `Translations` spreads this in.export interface NoticeTranslations {remoteDisplayBanner: {message: (reason: string) => string@@ -9,4 +9,9 @@ export interface NoticeTranslations {goTo: (index: number, total: number) => stringlegal: { before: string; terms: string; between: string; privacy: string; after: string }}++ promptNotices: {+ /** An explicit retry of a send whose identityless (legacy) acknowledgement was lost. */+ legacySendUnconfirmed: string+ }}diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 0d75b5f65b0..23e4de80519 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -69,6 +69,7 @@ export const zhHantOverrides = {notifications: zhHantDiagnostics.notifications,remoteDisplayBanner: zhHantBoot.remoteDisplayBanner,butterbar: zhHantBoot.butterbar,+ promptNotices: zhHantBoot.promptNotices,billingBlock: zhHantCommon.billingBlock,sendDiagnostics: zhHantDiagnostics.sendDiagnostics,titlebar: zhHantChrome.titlebar,diff --git a/apps/desktop/src/i18n/zh-hant_boot.ts b/apps/desktop/src/i18n/zh-hant_boot.tsindex 5f6aa70b4cd..15445b5a4ff 100644--- a/apps/desktop/src/i18n/zh-hant_boot.ts+++ b/apps/desktop/src/i18n/zh-hant_boot.ts@@ -71,6 +71,10 @@ export const zhHantBoot = {after: '約束。'}},+ promptNotices: {+ legacySendUnconfirmed:+ '此伺服器無法確認這則訊息先前的傳送,它可能已經執行過。再次傳送前請先查看對話。'+ },updates: {discontinuedTitle: '此版本的 Hermes 已停止支援',@@ -338,5 +342,5 @@ export const zhHantBoot = {}} satisfies Pick<TranslationOverrides,- 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'updates' | 'install' | 'onboarding'+ 'boot' | 'remoteDisplayBanner' | 'butterbar' | 'promptNotices' | 'updates' | 'install' | 'onboarding'>diff --git a/apps/desktop/src/i18n/zh_notices.ts b/apps/desktop/src/i18n/zh_notices.tsindex 12186636040..c2455f6146f 100644--- a/apps/desktop/src/i18n/zh_notices.ts+++ b/apps/desktop/src/i18n/zh_notices.ts@@ -14,5 +14,9 @@ export const zhNotices = {privacy: '隐私政策',after: '约束。'}+ },+ promptNotices: {+ legacySendUnconfirmed:+ '此服务器无法确认这条消息之前的发送,它可能已经运行过。再次发送前请先查看对话。'}-} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>+} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar' | 'promptNotices'>diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.jsonindex 468cd721665..94e686b0bf8 100644--- a/locales/_keys.desktop.json+++ b/locales/_keys.desktop.json@@ -1427,7 +1427,6 @@"desktop.imagePreviewFailed","desktop.imageSaved","desktop.imageWriteFailed",- "desktop.legacySendUnconfirmed","desktop.modelSwitchConfirmBody","desktop.modelSwitchConfirmLabel","desktop.modelSwitchConfirmTitle",@@ -2388,6 +2387,7 @@"profiles.switchToProfile","profiles.title","profiles.unsavedChanges",+ "promptNotices.legacySendUnconfirmed","prompts.gatewayDisconnected","prompts.reconnect","prompts.secretDesc",