Skip to content

The agent that grows with you

Merge origin/main into window-plans

Tekniumc00f999ba46e
diff --cc apps/desktop/src/i18n/ar_assistant.ts
index 10e53bda6a6,7576eaab83e..20bb8fbc65c
--- a/apps/desktop/src/i18n/ar_assistant.ts
+++ b/apps/desktop/src/i18n/ar_assistant.ts
@@@ -61,9 -61,9 +61,13 @@@ export const arAssistant =
title: 'هذه المحادثة تابعة لمهمة مجدولة',
body: 'إنها تشغّل تلك المهمة فقط، لذا لم تُنفَّذ رسالتك. ابدأ محادثة جديدة لإرسالها.'
},
+ usage_window: {
+ title: 'نفد الاستخدام المضمّن',
+ body: 'نفد الاستخدام المضمّن في خطتك حتى إعادة التعيين. أضف رصيدًا عبر /topup للمتابعة.'
++ },
+ workspace_unavailable: {
+ title: 'مجلد هذه المحادثة غير موجود',
+ body: 'نُقل المجلد الذي تعمل فيه هذه المحادثة أو حُذف، لذا لم تُنفَّذ رسالتك. أعد إنشاء المجلد، أو استخدم «Move to project» لتعيين مجلد آخر للمحادثة، ثم أعد المحاولة.'
}
},
errorRetry: 'إعادة المحاولة',
diff --cc apps/desktop/src/i18n/en_error_codes.ts
index 00000000000,11d950e6839..37850be0fae
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/en_error_codes.ts
+++ b/apps/desktop/src/i18n/en_error_codes.ts
@@@ -1,0 -1,157 +1,161 @@@
+ import type { Translations } from './types'
+
+ type ThreadCopy = Translations['assistant']['thread']
+
+ // The error card's per-code title and body (lib/error-surface-copy.ts), keyed by error_surface.code.
+ export const enErrorCodes: ThreadCopy['errorCodes'] = {
+ auth: {
+ title: provider => `${provider} rejected your sign-in`,
+ body: provider =>
+ `The credentials saved for ${provider} were not accepted. Fix them in Settings or switch provider, then send your message again.`
+ },
+ auth_permanent: {
+ title: provider => `${provider} rejected your sign-in`,
+ body: provider =>
+ `The credentials saved for ${provider} are invalid or were revoked. Update them or switch provider, then send your message again.`
+ },
+ billing: {
+ title: 'Out of credits',
+ body: provider => `Your ${provider} account has no credits left. Top up or switch provider, then send again.`
+ },
+ rate_limit: {
+ title: 'The AI service is busy',
+ body: provider => `${provider} is limiting requests right now. Wait a minute, then retry.`
+ },
+ upstream_rate_limit: {
+ title: 'The AI service is busy',
+ body: provider => `${provider} is limiting requests right now. Wait a minute, then retry.`
+ },
+ overloaded: {
+ title: 'The AI service is overloaded',
+ body: provider => `${provider} is having problems right now. Retry in a moment or switch provider.`
+ },
+ server_error: {
+ title: 'The AI service had a problem',
+ body: provider => `${provider} returned a server error. Retry in a moment or switch provider.`
+ },
+ timeout: {
+ title: 'Could not reach the AI service',
+ body: provider =>
+ `${provider} could not be reached or did not answer in time. Check your internet connection, then retry.`
+ },
+ stream_drop: {
+ title: 'The reply was cut off',
+ body: 'The connection dropped before the reply finished. Retry to send it again.'
+ },
+ no_reply: {
+ title: "The reply didn't finish",
+ body: 'Hermes ended this turn without a reply. Retry to send it again.'
+ },
+ upstream_blocked: {
+ title: 'A firewall blocked the request',
+ body: provider =>
+ `A firewall or CDN in front of ${provider} blocked the request before it reached the model — your key is probably fine. Set a User-Agent header via the provider's extra_headers in Settings, or switch provider, then send your message again.`
+ },
+ ssl_cert_verification: {
+ title: 'Secure connection failed',
+ body: provider =>
+ `Hermes could not verify the secure connection to ${provider}. Check your network or proxy settings, or switch provider, then send your message again.`
+ },
+ context_overflow: {
+ title: 'This conversation is too long',
+ body: 'The conversation no longer fits the model. Compress it or start a new chat, then send again.'
+ },
+ payload_too_large: {
+ title: 'This message is too large',
+ body: 'The request was too big for the model. Compress the conversation or start a new chat, then send again.'
+ },
+ model_not_found: {
+ title: 'This model is not available',
+ body: provider =>
+ `${provider} does not offer this model on your account. Choose another model, then send your message again.`
+ },
+ provider_policy_blocked: {
+ title: 'This model is blocked by your account settings',
+ body: provider =>
+ `${provider} would not route this request under your account's data or privacy settings. Choose another model or switch provider.`
+ },
+ content_policy_blocked: {
+ title: 'The AI service declined this request',
+ body: provider => `${provider} would not answer this message. Edit it and send again.`
+ },
+ format_error: {
+ title: 'The AI service rejected the request',
+ body: provider =>
+ `${provider} did not accept how this request was built. Switch provider or send diagnostics so we can look into it.`
+ },
+ truncated: {
+ title: 'The reply was cut short',
+ body: 'The model stopped before finishing. Retry to get a complete reply.'
+ },
+ invalid_response: {
+ title: 'The AI service sent an unreadable reply',
+ body: provider => `${provider} returned something Hermes could not read. Retry in a moment.`
+ },
+ empty_response: {
+ title: 'The AI service sent an empty reply',
+ body: provider => `${provider} returned nothing for this message. Retry in a moment.`
+ },
+ loop_error: {
+ title: 'Hermes got stuck in a loop',
+ body: 'The reply kept repeating the same steps, so Hermes stopped it. Retry, or start a new chat if it happens again.'
+ },
+ SESSION_OWNER_BUSY: {
+ title: 'Hermes is busy in this chat',
+ body: 'Another turn is running here and your message could not join its queue. Nothing was sent. Retry once that turn ends.'
+ },
+ cron_session_read_only: {
+ title: 'This chat belongs to a scheduled job',
+ body: 'It only runs that job, so your message was not run. Start a new chat to send it.'
+ },
+ workspace_unavailable: {
+ title: "This chat's folder is gone",
+ body: 'The folder this chat works in was moved or deleted, so your message was not run. Recreate the folder, or use Move to project to give the chat another one, then retry.'
+ },
+ SESSION_OWNER_UNCONFIRMED: {
+ title: 'Your message may already be queued',
+ body: 'The gateway did not confirm your message in time. If it was queued, it runs once the earlier turn finishes or is resolved. Check the chat before sending it again.'
+ },
+ SESSION_NOT_OWNED: {
+ title: 'This chat is open somewhere else',
+ body: 'This chat is currently open in another Hermes window or terminal. Close it there and send your message again, or start a new chat here.'
+ },
+ disk_full: {
+ title: 'Disk full',
+ body: 'Your disk is full, so Hermes could not save this conversation. Free some space, then retry.'
+ },
+ // Nous free tier. The body is normally the backend's own sentence (it names the wait
+ // and the way forward); these bodies stand in for an older backend that sent none.
+ free_tier_disabled: {
+ title: 'Using Hermes without signing in is switched off right now',
+ body: "Sign in with a Nous account to keep chatting, it's free."
+ },
+ free_tier_rate_limited: {
+ title: "You've used up the allowance for chatting without signing in",
+ body: "It refreshes shortly. Sign in with a Nous account for a bigger allowance, it's free."
+ },
+ free_tier_at_capacity: {
+ title: 'Chatting without signing in is really busy right now',
+ body: "Sign in to skip the queue, it's free, or try again in a little while."
+ },
+ free_tier_model_not_free: {
+ title: "That model isn't available without signing in",
+ body: "Hermes uses the free model for now. Sign in with a Nous account for more models, it's free."
+ },
+ free_tier_route: {
+ title: "Hermes couldn't reach the free model on this route",
+ body: "Sign in with a Nous account, it's free, or check the NOUS_INFERENCE_BASE_URL setting."
+ },
+ free_tier_outage: {
+ title: 'The free model is having trouble responding right now',
+ body: 'Try sending your message again in a minute.'
+ },
+ free_tier_refused: {
+ title: "Hermes couldn't send that without signing in",
+ body: 'Signing in with a Nous account is free.'
++ },
++ usage_window: {
++ title: 'Included usage used up',
++ body: "Your plan's included usage is used up until it resets. Add credits in /topup to keep going."
+ }
+ }
diff --cc apps/desktop/src/i18n/ja.ts
index 69827f2dbd4,1542c4e401f..528b88448a8
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@@ -3423,29 -3364,12 +3415,22 @@@ export const jaOverrides =
title: 'このチャットはスケジュールされたジョブ用です',
body: 'このチャットはそのジョブの実行専用のため、メッセージは実行されませんでした。送信するには新しいチャットを開始してください。'
},
+ usage_window: {
+ title: '含まれる利用量を使い切りました',
+ body: 'プランに含まれる利用量はリセットまで使い切りました。続けるには /topup でクレジットを追加してください。'
++ },
+ workspace_unavailable: {
+ title: 'このチャットのフォルダーが見つかりません',
+ body: 'このチャットの作業フォルダーが移動または削除されたため、メッセージは実行されませんでした。フォルダーを作り直すか、「Move to project」で別のフォルダーを割り当ててから、もう一度お試しください。'
}
},
- errorLayers: {
- auth: '認証エラー',
- billing: 'クレジット不足',
- disk: 'ディスク容量不足',
- endpoint: 'カスタムエンドポイントのエラー',
- gateway: 'ゲートウェイのエラー',
- generic: 'ターンが失敗しました',
- provider: 'プロバイダーのエラー',
- runtime: 'ローカルランタイムのエラー',
- streaming: 'ストリーミング接続のエラー'
- },
errorRetry: '再試行',
+ errorSwitchToModel: (model, note) => (note ? `${model} に切り替え(${note})` : `${model} に切り替え`),
+ errorSwitchModelFailed: 'モデルを切り替えられませんでした',
+ errorUseCredits: 'クレジットで続行を有効にする',
+ errorUseCreditsFailed: 'クレジットで続行を有効にできませんでした',
+ errorAddCredits: 'クレジットを追加',
+ errorOpenBillingSettings: '請求設定を開く',
errorLimitResets: time => `制限は ${time} にリセットされます`,
errorRetryAtReset: time => `制限のリセット時に再試行(${time})`,
errorRetryScheduled: (time, wait) => `${time} に再試行 — 残り ${wait}`,
diff --cc apps/desktop/src/i18n/ru_error_codes.ts
index 00000000000,14024deb62c..ecb423e8c47
mode 000000,100644..100644
--- a/apps/desktop/src/i18n/ru_error_codes.ts
+++ b/apps/desktop/src/i18n/ru_error_codes.ts
@@@ -1,0 -1,15 +1,19 @@@
+ import type { Translations } from './types'
+
+ type ThreadCopy = Translations['assistant']['thread']
+
+ // The error card's per-code title and body (lib/error-surface-copy.ts), keyed by error_surface.code.
+ export const ruErrorCodes: Partial<ThreadCopy['errorCodes']> = {
+ cron_session_read_only: {
+ title: 'Этот чат относится к запланированной задаче',
+ body: 'Он только выполняет эту задачу, поэтому ваше сообщение не было выполнено. Начните новый чат, чтобы отправить его.'
+ },
+ workspace_unavailable: {
+ title: 'Папка этого чата пропала',
+ body: 'Папка, в которой работает этот чат, была перемещена или удалена, поэтому ваше сообщение не было выполнено. Создайте папку заново или назначьте чату другую через «Переместить в проект», затем повторите попытку.'
++ },
++ usage_window: {
++ title: 'Включённый объём исчерпан',
++ body: 'Включённый объём вашего плана исчерпан до сброса. Пополните кредиты в /topup, чтобы продолжить.'
+ }
+ }
diff --cc apps/desktop/src/i18n/zh-hant_assistant.ts
index 307a6685dbe,e435313b281..967cc86fcfb
--- a/apps/desktop/src/i18n/zh-hant_assistant.ts
+++ b/apps/desktop/src/i18n/zh-hant_assistant.ts
@@@ -101,9 -101,9 +101,13 @@@ export const zhHantAssistant =
title: '此聊天屬於一個排程工作',
body: '它只會執行該工作,因此你的訊息未被執行。請開始新的聊天後再傳送。'
},
+ usage_window: {
+ title: '包含用量已用完',
+ body: '你的方案包含的用量已用完,將在重設後恢復。在 /topup 中新增額度即可繼續。'
++ },
+ workspace_unavailable: {
+ title: '此聊天的資料夾已不存在',
+ body: '此聊天使用的資料夾已被移動或刪除,因此你的訊息未被執行。請重新建立該資料夾,或使用「Move to project」為聊天指定其他資料夾,然後重試。'
}
},
errorLayers: {
diff --cc apps/desktop/src/i18n/zh.ts
index ce7ae8de1b0,7d07e1f6cbb..6984feb0b4d
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@@ -4398,29 -4349,12 +4393,22 @@@ export const zhOverrides =
title: '此聊天属于一个定时任务',
body: '它只运行该任务,因此你的消息未被执行。请新建聊天后再发送。'
},
+ usage_window: {
+ title: '包含用量已用完',
+ body: '你的方案包含的用量已用完,将在重置后恢复。在 /topup 中添加额度即可继续。'
++ },
+ workspace_unavailable: {
+ title: '此聊天的文件夹已不存在',
+ body: '此聊天使用的文件夹已被移动或删除,因此你的消息未被执行。请重新创建该文件夹,或使用“移动到项目”为聊天指定其他文件夹,然后重试。'
}
},
- errorLayers: {
- auth: '认证错误',
- billing: '额度不足',
- disk: '磁盘已满',
- endpoint: '自定义端点错误',
- gateway: '网关错误',
- generic: '本轮失败',
- provider: '模型服务商错误',
- runtime: '本地运行时错误',
- streaming: '流式连接错误'
- },
errorRetry: '重试',
+ errorSwitchToModel: (model, note) => (note ? `切换到 ${model}(${note})` : `切换到 ${model}`),
+ errorSwitchModelFailed: '无法切换模型',
+ errorUseCredits: '开启用额度继续',
+ errorUseCreditsFailed: '无法开启用额度继续',
+ errorAddCredits: '添加额度',
+ errorOpenBillingSettings: '打开账单设置',
errorLimitResets: time => `限额将于 ${time} 重置`,
errorRetryAtReset: time => `限额重置后重试(${time})`,
errorRetryScheduled: (time, wait) => `将于 ${time} 重试 — 还剩 ${wait}`,
diff --cc locales/_keys.desktop.json
index de883e1dc02,2e8913e52b4..38f113c7bcb
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@@ -273,8 -272,8 +273,10 @@@
"assistant.thread.errorCodes.upstream_blocked.title",
"assistant.thread.errorCodes.upstream_rate_limit.body",
"assistant.thread.errorCodes.upstream_rate_limit.title",
+ "assistant.thread.errorCodes.usage_window.body",
+ "assistant.thread.errorCodes.usage_window.title",
+ "assistant.thread.errorCodes.workspace_unavailable.body",
+ "assistant.thread.errorCodes.workspace_unavailable.title",
"assistant.thread.errorCompressConversation",
"assistant.thread.errorCompressFailed",
"assistant.thread.errorCopyDiagnostics",