Skip to content

The agent that grows with you

fix: a switched-off local model server never suggests /retry, and names both ways to start it

Teknium7b62fb095d29
diff --git a/apps/desktop/src/i18n/ar_assistant.ts b/apps/desktop/src/i18n/ar_assistant.ts
index 9ea554a7139..f3651a519c7 100644
--- a/apps/desktop/src/i18n/ar_assistant.ts
+++ b/apps/desktop/src/i18n/ar_assistant.ts
@@ -210,7 +210,9 @@ export const arAssistant = {
},
local_runtime_unavailable: {
title: 'تعذّر الوصول إلى خادم النماذج المحلي',
- body: 'خادم النماذج المحلي لا يعمل: ربما لا يزال قيد التشغيل، أو تم إيقافه. أعد المحاولة بعد لحظة، أو انتقل إلى نموذج آخر.'
+ body: 'خادم النماذج المحلي لا يعمل بعد: ربما لا يزال قيد التشغيل. أعد المحاولة بعد لحظة، أو انتقل إلى نموذج آخر.',
+ bodyNoRetry:
+ 'خادم النماذج المحلي متوقف. شغّله من تطبيق Hermes لسطح المكتب أو عبر `hermes model` في الطرفية، أو انتقل إلى نموذج آخر.'
}
},
errorAuthKinds: {
diff --git a/apps/desktop/src/i18n/de_error_codes.ts b/apps/desktop/src/i18n/de_error_codes.ts
index b3c39a71345..12039b5781d 100644
--- a/apps/desktop/src/i18n/de_error_codes.ts
+++ b/apps/desktop/src/i18n/de_error_codes.ts
@@ -22,6 +22,8 @@ export const deErrorCodes: Partial<ThreadCopy['errorCodes']> = {
},
local_runtime_unavailable: {
title: 'Lokaler Modellserver nicht erreichbar',
- body: 'Der lokale Modellserver läuft nicht: Er startet möglicherweise noch oder wurde ausgeschaltet. Versuchen Sie es gleich noch einmal oder wechseln Sie zu einem anderen Modell.'
+ body: 'Der lokale Modellserver läuft noch nicht: Er startet möglicherweise noch. Versuchen Sie es gleich noch einmal oder wechseln Sie zu einem anderen Modell.',
+ bodyNoRetry:
+ 'Der lokale Modellserver ist ausgeschaltet. Starten Sie ihn in der Hermes-Desktop-App oder mit `hermes model` im Terminal, oder wechseln Sie zu einem anderen Modell.'
}
}
diff --git a/apps/desktop/src/i18n/en_error_codes.ts b/apps/desktop/src/i18n/en_error_codes.ts
index 5b0e8e775d3..4dfcf926b59 100644
--- a/apps/desktop/src/i18n/en_error_codes.ts
+++ b/apps/desktop/src/i18n/en_error_codes.ts
@@ -123,7 +123,9 @@ export const enErrorCodes: ThreadCopy['errorCodes'] = {
},
local_runtime_unavailable: {
title: "Can't reach the local model server",
- body: "The local model server isn't running: it may still be starting, or it was turned off. Retry in a moment, or switch to another model."
+ body: "The local model server isn't serving yet: it may still be starting. Retry in a moment, or switch to another model.",
+ bodyNoRetry:
+ 'The local model server is turned off. Start it from the Hermes desktop app or `hermes model` in a terminal, or switch to another model.'
},
SESSION_OWNER_UNCONFIRMED: {
title: 'Your message may already be queued',
diff --git a/apps/desktop/src/i18n/es_error_codes.ts b/apps/desktop/src/i18n/es_error_codes.ts
index 8e39c484a14..524b4936545 100644
--- a/apps/desktop/src/i18n/es_error_codes.ts
+++ b/apps/desktop/src/i18n/es_error_codes.ts
@@ -22,6 +22,8 @@ export const esErrorCodes: Partial<ThreadCopy['errorCodes']> = {
},
local_runtime_unavailable: {
title: 'No se puede acceder al servidor de modelos local',
- body: 'El servidor de modelos local no está en ejecución: puede que aún se esté iniciando o que se haya apagado. Reintenta en un momento o cambia a otro modelo.'
+ body: 'El servidor de modelos local aún no está en ejecución: puede que todavía se esté iniciando. Reintenta en un momento o cambia a otro modelo.',
+ bodyNoRetry:
+ 'El servidor de modelos local está apagado. Inícialo desde la app de escritorio de Hermes o con `hermes model` en una terminal, o cambia a otro modelo.'
}
}
diff --git a/apps/desktop/src/i18n/fr_error_codes.ts b/apps/desktop/src/i18n/fr_error_codes.ts
index 90352a51c85..216cd3c3f11 100644
--- a/apps/desktop/src/i18n/fr_error_codes.ts
+++ b/apps/desktop/src/i18n/fr_error_codes.ts
@@ -22,6 +22,8 @@ export const frErrorCodes: Partial<ThreadCopy['errorCodes']> = {
},
local_runtime_unavailable: {
title: 'Impossible de joindre le serveur de modèles local',
- body: 'Le serveur de modèles local ne tourne pas : il est peut-être encore en train de démarrer, ou il a été arrêté. Réessayez dans un instant, ou passez à un autre modèle.'
+ body: 'Le serveur de modèles local ne tourne pas encore : il est peut-être encore en train de démarrer. Réessayez dans un instant, ou passez à un autre modèle.',
+ bodyNoRetry:
+ 'Le serveur de modèles local est arrêté. Démarrez-le depuis l’application de bureau Hermes ou avec `hermes model` dans un terminal, ou passez à un autre modèle.'
}
}
diff --git a/apps/desktop/src/i18n/ja_error_codes.ts b/apps/desktop/src/i18n/ja_error_codes.ts
index 0016ded6001..37100f0c36e 100644
--- a/apps/desktop/src/i18n/ja_error_codes.ts
+++ b/apps/desktop/src/i18n/ja_error_codes.ts
@@ -108,6 +108,8 @@ export const jaErrorCodes: Partial<ThreadCopy['errorCodes']> = {
},
local_runtime_unavailable: {
title: 'ローカルモデルサーバーに接続できません',
- body: 'ローカルモデルサーバーが動作していません。まだ起動中か、オフになっている可能性があります。少し待ってから再試行するか、別のモデルに切り替えてください。'
+ body: 'ローカルモデルサーバーはまだ動作していません。起動中の可能性があります。少し待ってから再試行するか、別のモデルに切り替えてください。',
+ bodyNoRetry:
+ 'ローカルモデルサーバーはオフになっています。Hermes デスクトップアプリか、ターミナルの `hermes model` から起動するか、別のモデルに切り替えてください。'
}
}
diff --git a/apps/desktop/src/i18n/ru_error_codes.ts b/apps/desktop/src/i18n/ru_error_codes.ts
index f49080fba14..12407411d99 100644
--- a/apps/desktop/src/i18n/ru_error_codes.ts
+++ b/apps/desktop/src/i18n/ru_error_codes.ts
@@ -22,7 +22,9 @@ export const ruErrorCodes: Partial<ThreadCopy['errorCodes']> = {
},
local_runtime_unavailable: {
title: 'Не удаётся связаться с локальным сервером моделей',
- body: 'Локальный сервер моделей не запущен: возможно, он ещё запускается или был выключен. Повторите попытку через минуту или переключитесь на другую модель.'
+ body: 'Локальный сервер моделей ещё не работает: возможно, он ещё запускается. Повторите попытку через минуту или переключитесь на другую модель.',
+ bodyNoRetry:
+ 'Локальный сервер моделей выключен. Запустите его в настольном приложении Hermes или командой `hermes model` в терминале, либо переключитесь на другую модель.'
},
agent_init_failed: {
title: 'Не удалось начать этот чат',
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index e3e1610532d..4711d48d884 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -50,6 +50,9 @@ export type Locale = string
export interface ErrorCardCopy {
title: string | ((provider: string, model: string) => string)
body: string | ((provider: string, model: string) => string)
+ /** Body when the failure says a retry will not help (`retryable: false`), for a code whose body
+ * otherwise tells the user to retry. */
+ bodyNoRetry?: string | ((provider: string, model: string) => string)
}
export type ToolTitleKey =
diff --git a/apps/desktop/src/i18n/zh-hant_assistant.ts b/apps/desktop/src/i18n/zh-hant_assistant.ts
index 466862a354a..3ec1ba90823 100644
--- a/apps/desktop/src/i18n/zh-hant_assistant.ts
+++ b/apps/desktop/src/i18n/zh-hant_assistant.ts
@@ -229,7 +229,9 @@ export const zhHantAssistant = {
},
local_runtime_unavailable: {
title: '無法連線到本機模型伺服器',
- body: '本機模型伺服器未執行:它可能仍在啟動中,或已被關閉。請稍後重試,或切換到其他模型。'
+ body: '本機模型伺服器尚未執行:它可能仍在啟動中。請稍後重試,或切換到其他模型。',
+ bodyNoRetry:
+ '本機模型伺服器已關閉。請在 Hermes 桌面應用程式或終端機中的 `hermes model` 啟動它,或切換到其他模型。'
}
},
errorLayers: {
diff --git a/apps/desktop/src/i18n/zh_error_codes.ts b/apps/desktop/src/i18n/zh_error_codes.ts
index 716a4ee7079..619cc59beb9 100644
--- a/apps/desktop/src/i18n/zh_error_codes.ts
+++ b/apps/desktop/src/i18n/zh_error_codes.ts
@@ -103,6 +103,8 @@ export const zhErrorCodes: Partial<ThreadCopy['errorCodes']> = {
},
local_runtime_unavailable: {
title: '无法连接本地模型服务器',
- body: '本地模型服务器未运行:它可能仍在启动,或已被关闭。请稍后重试,或切换到其他模型。'
+ body: '本地模型服务器尚未运行:它可能仍在启动。请稍后重试,或切换到其他模型。',
+ bodyNoRetry:
+ '本地模型服务器已关闭。请在 Hermes 桌面应用或终端中的 `hermes model` 启动它,或切换到其他模型。'
}
}
diff --git a/apps/desktop/src/lib/error-surface-copy.ts b/apps/desktop/src/lib/error-surface-copy.ts
index 32660781f98..6a132f5821b 100644
--- a/apps/desktop/src/lib/error-surface-copy.ts
+++ b/apps/desktop/src/lib/error-surface-copy.ts
@@ -78,8 +78,10 @@ export function errorCardText(
// wait, the model, the way forward); the table body is only the fallback for an older backend.
const ownSentence = isFreeTierSurface(surface) || surface?.code === 'usage_window'
+ const body = surface?.retryable === false && copy.bodyNoRetry ? copy.bodyNoRetry : copy.body
+
return {
- body: (ownSentence && surface?.message) || render(copy.body, provider, model),
+ body: (ownSentence && surface?.message) || render(body, provider, model),
title: render(copy.title, provider, model)
}
}
diff --git a/apps/desktop/src/lib/error-surface.test.ts b/apps/desktop/src/lib/error-surface.test.ts
index 5cd4bda5fe0..e9d27b8b2f1 100644
--- a/apps/desktop/src/lib/error-surface.test.ts
+++ b/apps/desktop/src/lib/error-surface.test.ts
@@ -1,5 +1,6 @@
import { describe, expect, it } from 'vitest'
+import { TRANSLATIONS } from '@/i18n'
import { en } from '@/i18n/en'
import {
@@ -223,6 +224,20 @@ describe('managed local model server down', () => {
expect(errorCardActions(surface)).toEqual({ primary: 'retry', secondary: 'switch_provider' })
})
+
+ it('says Retry only while the server is starting, in every locale', () => {
+ const card = (retryable: boolean, thread = en.assistant.thread) =>
+ errorCardText(thread, parseErrorSurface({ layer: 'endpoint', code: 'local_runtime_unavailable', retryable }))
+
+ expect(card(true).body).toMatch(/retry/i)
+ expect(card(false).body).not.toMatch(/retry/i)
+ expect(card(false).body).toContain('hermes model')
+
+ for (const copy of Object.values(TRANSLATIONS)) {
+ expect(card(false, copy.assistant.thread).body).not.toBe(card(true, copy.assistant.thread).body)
+ expect(card(false, copy.assistant.thread).body).toContain('hermes model')
+ }
+ })
})
describe('usage-window refusal', () => {
diff --git a/apps/desktop/src/store/onboarding-local-runtime.test.ts b/apps/desktop/src/store/onboarding-local-runtime.test.ts
index 295f10174ac..87b4efd18aa 100644
--- a/apps/desktop/src/store/onboarding-local-runtime.test.ts
+++ b/apps/desktop/src/store/onboarding-local-runtime.test.ts
@@ -9,7 +9,7 @@ import { $desktopOnboarding, type DesktopOnboardingState, type OnboardingContext
markOnboardingDecided()
const SERVER_OFF =
- 'The local model server is turned off. Turn it back on in the Hermes desktop app, or switch to another model with /model.'
+ 'The local model server is turned off. Start it from the Hermes desktop app or `hermes model` → Local models, or switch to another model with /model.'
function coldState(): DesktopOnboardingState {
return {
diff --git a/apps/desktop/src/store/onboarding.ts b/apps/desktop/src/store/onboarding.ts
index 109aa9a125d..2243a1b70a0 100644
--- a/apps/desktop/src/store/onboarding.ts
+++ b/apps/desktop/src/store/onboarding.ts
@@ -336,7 +336,7 @@ export function settleLocalRuntimeNotice(runtime: RuntimeReadinessResult) {
// The Webapp has no Local models pane (the flag is Electron-only), so there the way forward it can
// offer is another model, and the sentence must not send the user to a pane they cannot open.
const WEBAPP_LOCAL_RUNTIME_DOWN =
- "The local model server isn't serving. Start it from the Hermes desktop app, or choose another model."
+ "The local model server isn't serving. Start it from the Hermes desktop app or `hermes model` in a terminal, or choose another model."
// Desktop has the pane, so its notice names it next to the button that opens it.
const DESKTOP_LOCAL_RUNTIME_DOWN =
diff --git a/hermes_cli/runtime_provider_custom.py b/hermes_cli/runtime_provider_custom.py
index 72913cf22a2..02e56363108 100644
--- a/hermes_cli/runtime_provider_custom.py
+++ b/hermes_cli/runtime_provider_custom.py
@@ -619,10 +619,11 @@ def _resolve_llamacpp_runtime(requested_provider: str, explicit_api_key: Optiona
raise LocalRuntimeUnavailableError("The local model server isn't running. It may still be "
"starting — try again in a moment, or switch to another "
"model with /model.", retryable=True)
- # Every chat surface (messaging, TUI, Webapp) shows this sentence, so it names no Desktop-only
- # pane; the Desktop client links its Local models pane itself.
- raise LocalRuntimeUnavailableError("The local model server is turned off. Turn it back on in the "
- "Hermes desktop app, or switch to another model with /model.")
+ # Every chat surface (messaging, TUI, Webapp) shows this sentence, so it names both places a
+ # user can start the server and no Desktop-only pane; the Desktop client links its pane itself.
+ raise LocalRuntimeUnavailableError("The local model server is turned off. Start it from the Hermes "
+ "desktop app or `hermes model` → Local models, or switch to "
+ "another model with /model.")
def _custom_runtime(rp, base_url: str, api_key: Any, api_mode: Optional[str], **extra: Any) -> dict[str, Any]:
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index bafd125d847..a72ddae9ed8 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -251,6 +251,7 @@
"assistant.thread.errorCodes.launch_credentials_unavailable.body",
"assistant.thread.errorCodes.launch_credentials_unavailable.title",
"assistant.thread.errorCodes.local_runtime_unavailable.body",
+ "assistant.thread.errorCodes.local_runtime_unavailable.bodyNoRetry",
"assistant.thread.errorCodes.local_runtime_unavailable.title",
"assistant.thread.errorCodes.loop_error.body",
"assistant.thread.errorCodes.loop_error.title",
diff --git a/locales/af.tui.yaml b/locales/af.tui.yaml
index 502cc7f46c6..243ea194a53 100644
--- a/locales/af.tui.yaml
+++ b/locales/af.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "Die gesprek is te lank vir hierdi
userMessages.turn.code.formatError.hint: "Probeer /retry; as dit aanhou, wissel met /model."
userMessages.turn.code.formatError.hintNoRetry: "Kies 'n ander model met /model; as dit aanhou, wissel met /model."
userMessages.turn.code.formatError.title: "Die modelverskaffer het die versoekformaat verwerp"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Probeer /retry sodra dit aan die gang is, of wissel met /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Begin die plaaslike modelbediener (Hermes-rekenaartoep, of `hermes model` → Local models), of wissel met /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "Die plaaslike modelbediener loop nie"
userMessages.turn.code.modelNotFound.hint: "Kies 'n ander model met /model."
userMessages.turn.code.modelNotFound.title: "Die modelverskaffer ken hierdie model nie"
userMessages.turn.code.overloaded.hint: "Wag 'n oomblik, dan /retry."
diff --git a/locales/ar.tui.yaml b/locales/ar.tui.yaml
index d3c7c213b69..f7c1eb381ec 100644
--- a/locales/ar.tui.yaml
+++ b/locales/ar.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "المحادثة أطول من أ
userMessages.turn.code.formatError.hint: "جرّب /retry؛ وإن استمرّ الأمر، بدّل عبر /model."
userMessages.turn.code.formatError.hintNoRetry: "اختر نموذجًا آخر عبر /model؛ وإن استمرّ الأمر، بدّل عبر /model."
userMessages.turn.code.formatError.title: "رفض مزوّد النموذج تنسيق الطلب"
+userMessages.turn.code.localRuntimeUnavailable.hint: "جرّب /retry بمجرد تشغيله، أو بدّل باستخدام /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "شغّل خادم النماذج المحلي (تطبيق Hermes لسطح المكتب، أو `hermes model` → Local models)، أو بدّل باستخدام /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "خادم النماذج المحلي لا يعمل"
userMessages.turn.code.modelNotFound.hint: "اختر نموذجًا آخر عبر /model."
userMessages.turn.code.modelNotFound.title: "مزوّد النموذج لا يعرف هذا النموذج"
userMessages.turn.code.overloaded.hint: "انتظر قليلًا، ثم /retry."
diff --git a/locales/de.tui.yaml b/locales/de.tui.yaml
index 61dd99ff26f..ba71b43fbd6 100644
--- a/locales/de.tui.yaml
+++ b/locales/de.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "Die Konversation ist zu lang für
userMessages.turn.code.formatError.hint: "/retry versuchen; bleibt es bestehen, mit /model wechseln."
userMessages.turn.code.formatError.hintNoRetry: "Anderes Modell mit /model wählen; bleibt es bestehen, erneut wechseln."
userMessages.turn.code.formatError.title: "Der Modellanbieter hat das Anfrageformat abgelehnt"
+userMessages.turn.code.localRuntimeUnavailable.hint: "/retry versuchen, sobald er läuft, oder mit /model wechseln."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Lokalen Modellserver starten (Hermes-Desktop-App oder `hermes model` → Local models) oder mit /model wechseln."
+userMessages.turn.code.localRuntimeUnavailable.title: "Der lokale Modellserver läuft nicht"
userMessages.turn.code.modelNotFound.hint: "Anderes Modell mit /model wählen."
userMessages.turn.code.modelNotFound.title: "Der Modellanbieter kennt dieses Modell nicht"
userMessages.turn.code.overloaded.hint: "Kurz warten, dann /retry."
diff --git a/locales/es.tui.yaml b/locales/es.tui.yaml
index c67a9e1eec9..c9fd35bbf2c 100644
--- a/locales/es.tui.yaml
+++ b/locales/es.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "La conversación es demasiado lar
userMessages.turn.code.formatError.hint: "Prueba /retry; si persiste, cambia de modelo con /model."
userMessages.turn.code.formatError.hintNoRetry: "Elige otro modelo con /model; si persiste, cambia de modelo con /model."
userMessages.turn.code.formatError.title: "El proveedor del modelo rechazó el formato de la solicitud"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Prueba /retry cuando esté activo, o cambia con /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Inicia el servidor de modelos local (app de escritorio de Hermes, o `hermes model` → Local models), o cambia con /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "El servidor de modelos local no está en ejecución"
userMessages.turn.code.modelNotFound.hint: "Elige otro modelo con /model."
userMessages.turn.code.modelNotFound.title: "El proveedor del modelo no conoce este modelo"
userMessages.turn.code.overloaded.hint: "Espera un momento y luego /retry."
diff --git a/locales/fr.tui.yaml b/locales/fr.tui.yaml
index f3ff0f8d4c1..76d7b4c402e 100644
--- a/locales/fr.tui.yaml
+++ b/locales/fr.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "La conversation est trop longue p
userMessages.turn.code.formatError.hint: "Essayez /retry ; si le problème persiste, changez de modèle avec /model."
userMessages.turn.code.formatError.hintNoRetry: "Choisissez un autre modèle avec /model ; si le problème persiste, changez de fournisseur avec /model."
userMessages.turn.code.formatError.title: "Le fournisseur de modèle a rejeté le format de la requête"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Essayez /retry une fois qu’il est démarré, ou changez avec /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Démarrez le serveur de modèles local (application de bureau Hermes, ou `hermes model` → Local models), ou changez avec /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "Le serveur de modèles local ne tourne pas"
userMessages.turn.code.modelNotFound.hint: "Choisissez un autre modèle avec /model."
userMessages.turn.code.modelNotFound.title: "Le fournisseur de modèle ne connaît pas ce modèle"
userMessages.turn.code.overloaded.hint: "Patientez un instant, puis /retry."
diff --git a/locales/ga.tui.yaml b/locales/ga.tui.yaml
index 3bce3d263f4..215dc3d3485 100644
--- a/locales/ga.tui.yaml
+++ b/locales/ga.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "Tá an comhrá rófhada don tsamh
userMessages.turn.code.formatError.hint: "Bain triail as /retry; má leanann sé, athraigh le /model."
userMessages.turn.code.formatError.hintNoRetry: "Roghnaigh samhail eile le /model; má leanann sé, athraigh le /model."
userMessages.turn.code.formatError.title: "Dhiúltaigh soláthraí na samhla d'fhormáid an iarratais"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Bain triail as /retry nuair a bheidh sé ar siúl, nó athraigh le /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Tosaigh an freastalaí samhlacha áitiúil (aip deisce Hermes, nó `hermes model` → Local models), nó athraigh le /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "Níl an freastalaí samhlacha áitiúil ag rith"
userMessages.turn.code.modelNotFound.hint: "Roghnaigh samhail eile le /model."
userMessages.turn.code.modelNotFound.title: "Ní aithníonn soláthraí na samhla an tsamhail seo"
userMessages.turn.code.overloaded.hint: "Fan nóiméad, ansin /retry."
diff --git a/locales/hu.tui.yaml b/locales/hu.tui.yaml
index 46831d807cf..bd8a9ed3b38 100644
--- a/locales/hu.tui.yaml
+++ b/locales/hu.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "A beszélgetés túl hosszú ehhe
userMessages.turn.code.formatError.hint: "Próbáld a /retry parancsot; ha nem múlik, válts a /model paranccsal."
userMessages.turn.code.formatError.hintNoRetry: "Válassz másik modellt a /model paranccsal; ha nem múlik, válts szolgáltatót is ugyanott."
userMessages.turn.code.formatError.title: "A modellszolgáltató elutasította a kérés formátumát"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Próbáld a /retry parancsot, ha elindult, vagy válts a /model paranccsal."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Indítsd el a helyi modellszervert (Hermes asztali alkalmazás, vagy `hermes model` → Local models), vagy válts a /model paranccsal."
+userMessages.turn.code.localRuntimeUnavailable.title: "A helyi modellszerver nem fut"
userMessages.turn.code.modelNotFound.hint: "Válassz másik modellt a /model paranccsal."
userMessages.turn.code.modelNotFound.title: "A modellszolgáltató nem ismeri ezt a modellt"
userMessages.turn.code.overloaded.hint: "Várj egy kicsit, majd /retry."
diff --git a/locales/it.tui.yaml b/locales/it.tui.yaml
index b17d790d427..644f6ca1be1 100644
--- a/locales/it.tui.yaml
+++ b/locales/it.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "La conversazione è troppo lunga
userMessages.turn.code.formatError.hint: "Prova /retry; se persiste, cambia modello con /model."
userMessages.turn.code.formatError.hintNoRetry: "Scegli un altro modello con /model; se persiste, cambia provider con /model."
userMessages.turn.code.formatError.title: "Il provider del modello ha rifiutato il formato della richiesta"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Prova /retry quando è attivo, oppure cambia con /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Avvia il server dei modelli locale (app desktop di Hermes, oppure `hermes model` → Local models), oppure cambia con /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "Il server dei modelli locale non è in esecuzione"
userMessages.turn.code.modelNotFound.hint: "Scegli un altro modello con /model."
userMessages.turn.code.modelNotFound.title: "Il provider del modello non conosce questo modello"
userMessages.turn.code.overloaded.hint: "Attendi un istante, poi /retry."
diff --git a/locales/ja.tui.yaml b/locales/ja.tui.yaml
index 8d94ee6c9c9..dc4547be9ed 100644
--- a/locales/ja.tui.yaml
+++ b/locales/ja.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "このモデルには会話が長
userMessages.turn.code.formatError.hint: "/retry をお試しください。続く場合は /model で切り替えてください。"
userMessages.turn.code.formatError.hintNoRetry: "/model で別のモデルを選んでください。続く場合は /model で切り替えてください。"
userMessages.turn.code.formatError.title: "モデルプロバイダーがリクエスト形式を拒否しました"
+userMessages.turn.code.localRuntimeUnavailable.hint: "起動したら /retry を試すか、/model で切り替えてください。"
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "ローカルモデルサーバーを起動する(Hermes デスクトップアプリ、または `hermes model` → Local models)か、/model で切り替えてください。"
+userMessages.turn.code.localRuntimeUnavailable.title: "ローカルモデルサーバーが動作していません"
userMessages.turn.code.modelNotFound.hint: "/model で別のモデルを選んでください。"
userMessages.turn.code.modelNotFound.title: "モデルプロバイダーがこのモデルを認識できません"
userMessages.turn.code.overloaded.hint: "少し待ってから /retry してください。"
diff --git a/locales/ko.tui.yaml b/locales/ko.tui.yaml
index e6e1e313d55..303abb1bce9 100644
--- a/locales/ko.tui.yaml
+++ b/locales/ko.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "이 모델에는 대화가 너무
userMessages.turn.code.formatError.hint: "/retry 를 시도하고, 계속되면 /model 로 전환하세요."
userMessages.turn.code.formatError.hintNoRetry: "/model 로 다른 모델을 선택하고, 계속되면 /model 로 전환하세요."
userMessages.turn.code.formatError.title: "모델 제공자가 요청 형식을 거부했어요"
+userMessages.turn.code.localRuntimeUnavailable.hint: "실행되면 /retry를 시도하거나 /model로 전환하세요."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "로컬 모델 서버를 시작하거나(Hermes 데스크톱 앱 또는 `hermes model` → Local models) /model로 전환하세요."
+userMessages.turn.code.localRuntimeUnavailable.title: "로컬 모델 서버가 실행 중이 아닙니다"
userMessages.turn.code.modelNotFound.hint: "/model 로 다른 모델을 선택하세요."
userMessages.turn.code.modelNotFound.title: "모델 제공자가 이 모델을 알지 못해요"
userMessages.turn.code.overloaded.hint: "잠시 기다린 뒤 /retry 하세요."
diff --git a/locales/pt.tui.yaml b/locales/pt.tui.yaml
index 06ee17325ac..04f62cb620c 100644
--- a/locales/pt.tui.yaml
+++ b/locales/pt.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "A conversa é longa demais para e
userMessages.turn.code.formatError.hint: "Tente /retry; se persistir, troque com /model."
userMessages.turn.code.formatError.hintNoRetry: "Escolha outro modelo com /model; se persistir, troque com /model."
userMessages.turn.code.formatError.title: "O fornecedor do modelo rejeitou o formato da solicitação"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Tente /retry quando ele estiver ativo, ou troque com /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Inicie o servidor de modelos local (app de desktop do Hermes, ou `hermes model` → Local models), ou troque com /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "O servidor de modelos local não está em execução"
userMessages.turn.code.modelNotFound.hint: "Escolha outro modelo com /model."
userMessages.turn.code.modelNotFound.title: "O fornecedor do modelo não reconhece este modelo"
userMessages.turn.code.overloaded.hint: "Aguarde um momento e depois /retry."
diff --git a/locales/ru.tui.yaml b/locales/ru.tui.yaml
index b823d9b931d..ee3c692ac86 100644
--- a/locales/ru.tui.yaml
+++ b/locales/ru.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "Беседа слишком дл
userMessages.turn.code.formatError.hint: "Попробуйте /retry; если повторяется, переключитесь через /model."
userMessages.turn.code.formatError.hintNoRetry: "Выберите другую модель через /model; если повторяется, переключитесь через /model."
userMessages.turn.code.formatError.title: "Провайдер модели отклонил формат запроса"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Попробуйте /retry, когда он заработает, или переключитесь через /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Запустите локальный сервер моделей (настольное приложение Hermes или `hermes model` → Local models) или переключитесь через /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "Локальный сервер моделей не запущен"
userMessages.turn.code.modelNotFound.hint: "Выберите другую модель через /model."
userMessages.turn.code.modelNotFound.title: "Провайдеру модели неизвестна эта модель"
userMessages.turn.code.overloaded.hint: "Подождите немного, затем /retry."
diff --git a/locales/tr.tui.yaml b/locales/tr.tui.yaml
index 1f8e9f86bc1..426464adf08 100644
--- a/locales/tr.tui.yaml
+++ b/locales/tr.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "Konuşma bu model için fazla uzu
userMessages.turn.code.formatError.hint: "/retry deneyin; sürerse /model ile geçiş yapın."
userMessages.turn.code.formatError.hintNoRetry: "/model ile başka bir model seçin; sürerse /model ile geçiş yapın."
userMessages.turn.code.formatError.title: "Model sağlayıcısı istek biçimini reddetti"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Çalışmaya başladığında /retry deneyin veya /model ile değiştirin."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Yerel model sunucusunu başlatın (Hermes masaüstü uygulaması veya `hermes model` → Local models) ya da /model ile değiştirin."
+userMessages.turn.code.localRuntimeUnavailable.title: "Yerel model sunucusu çalışmıyor"
userMessages.turn.code.modelNotFound.hint: "/model ile başka bir model seçin."
userMessages.turn.code.modelNotFound.title: "Model sağlayıcısı bu modeli tanımıyor"
userMessages.turn.code.overloaded.hint: "Biraz bekleyin, ardından /retry."
diff --git a/locales/uk.tui.yaml b/locales/uk.tui.yaml
index cc8aa46d883..ba0bca0e36b 100644
--- a/locales/uk.tui.yaml
+++ b/locales/uk.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "Розмова надто дов
userMessages.turn.code.formatError.hint: "Спробуйте /retry; якщо не зникає, перемкніться через /model."
userMessages.turn.code.formatError.hintNoRetry: "Виберіть іншу модель через /model; якщо не зникає, перемкніться через /model."
userMessages.turn.code.formatError.title: "Провайдер моделі відхилив формат запиту"
+userMessages.turn.code.localRuntimeUnavailable.hint: "Спробуйте /retry, коли він запрацює, або перемкніться через /model."
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "Запустіть локальний сервер моделей (настільний застосунок Hermes або `hermes model` → Local models) або перемкніться через /model."
+userMessages.turn.code.localRuntimeUnavailable.title: "Локальний сервер моделей не запущено"
userMessages.turn.code.modelNotFound.hint: "Виберіть іншу модель через /model."
userMessages.turn.code.modelNotFound.title: "Провайдер моделі не знає такої моделі"
userMessages.turn.code.overloaded.hint: "Зачекайте трохи, потім /retry."
diff --git a/locales/zh-hant.tui.yaml b/locales/zh-hant.tui.yaml
index b57ca41f308..fe392ae87eb 100644
--- a/locales/zh-hant.tui.yaml
+++ b/locales/zh-hant.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "對話過長,超出了此模型
userMessages.turn.code.formatError.hint: "試試 /retry;如果仍然失敗,用 /model 切換。"
userMessages.turn.code.formatError.hintNoRetry: "用 /model 選擇其他模型;如果仍然失敗,用 /model 切換。"
userMessages.turn.code.formatError.title: "模型提供方拒絕了請求格式"
+userMessages.turn.code.localRuntimeUnavailable.hint: "待其啟動後試試 /retry,或用 /model 切換。"
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "啟動本機模型伺服器(Hermes 桌面應用程式,或 `hermes model` → Local models),或用 /model 切換。"
+userMessages.turn.code.localRuntimeUnavailable.title: "本機模型伺服器未執行"
userMessages.turn.code.modelNotFound.hint: "用 /model 選擇其他模型。"
userMessages.turn.code.modelNotFound.title: "模型提供方不認識此模型"
userMessages.turn.code.overloaded.hint: "稍候片刻,然後 /retry。"
diff --git a/locales/zh.tui.yaml b/locales/zh.tui.yaml
index f807e183d89..894fe53c86a 100644
--- a/locales/zh.tui.yaml
+++ b/locales/zh.tui.yaml
@@ -1365,6 +1365,9 @@ userMessages.turn.code.contextOverflow.title: "对话过长,超出了此模型
userMessages.turn.code.formatError.hint: "试试 /retry;如果仍然失败,用 /model 切换。"
userMessages.turn.code.formatError.hintNoRetry: "用 /model 选择其他模型;如果仍然失败,用 /model 切换。"
userMessages.turn.code.formatError.title: "模型提供方拒绝了请求格式"
+userMessages.turn.code.localRuntimeUnavailable.hint: "待其启动后试试 /retry,或用 /model 切换。"
+userMessages.turn.code.localRuntimeUnavailable.hintNoRetry: "启动本地模型服务器(Hermes 桌面应用,或 `hermes model` → Local models),或用 /model 切换。"
+userMessages.turn.code.localRuntimeUnavailable.title: "本地模型服务器未运行"
userMessages.turn.code.modelNotFound.hint: "用 /model 选择其他模型。"
userMessages.turn.code.modelNotFound.title: "模型提供方不认识此模型"
userMessages.turn.code.overloaded.hint: "稍等片刻,然后 /retry。"
diff --git a/tests/hermes_cli/test_local_runtime_unavailable_surface.py b/tests/hermes_cli/test_local_runtime_unavailable_surface.py
index e3c543845e9..0b5eb09bab5 100644
--- a/tests/hermes_cli/test_local_runtime_unavailable_surface.py
+++ b/tests/hermes_cli/test_local_runtime_unavailable_surface.py
@@ -98,5 +98,26 @@ def test_chat_text_names_the_local_server_and_no_desktop_only_pane(llamacpp_home
assert "custom model endpoint" not in tui
for text in (reply, tui):
assert "local model server" in text
- assert "Settings" not in text and "Local models" not in text
+ assert "Settings" not in text
assert "/model" in text
+
+
[email protected]("enabled", [False, True])
+def test_chat_text_suggests_retry_only_while_the_server_can_come_up(llamacpp_home, enabled):
+ """A switched-off server never comes up on its own: the TUI/dashboard text (built from the
+ error surface, as a turn builds it) names where to start it, never /retry."""
+ from agent.error_surface import build_error_surface_from_result
+ from tui_gateway.user_messages import turn_error_text
+
+ llamacpp_home({"enabled": enabled})
+ exc = _resolution_error()
+ surface = build_error_surface_from_result(
+ {"failed": True, "error": str(exc), "failure_reason": exc.error_code, "failure_retryable": exc.retryable},
+ provider="llamacpp")
+ hint = turn_error_text(str(exc), surface).splitlines()[-1]
+
+ assert ("/retry" in hint) is enabled
+ if not enabled:
+ assert "hermes model" in hint and "/model" in hint
+ # Surface-neutral: the backend sentence names the terminal path too, not only the Desktop app.
+ assert "hermes model" in str(exc)
diff --git a/tui_gateway/user_messages.py b/tui_gateway/user_messages.py
index 6b58b909cd5..009271bd0e6 100644
--- a/tui_gateway/user_messages.py
+++ b/tui_gateway/user_messages.py
@@ -48,6 +48,14 @@ _TURN_ERROR_LAYER_COPY: dict[str, tuple[str, str]] = {
"provider": ("The model provider returned an error", "Send /retry, or switch with /model."),
}
+# Next step when the failure is not worth a retry (``recoverable`` false, or the surface says
+# ``retryable: false``), for codes whose retry hint cannot be reworded mechanically.
+_TURN_ERROR_NO_RETRY_HINT: dict[str, str] = {
+ # Switched off: nothing comes up on its own, so the user starts it or picks another model.
+ "local_runtime_unavailable": ("Start the local model server (Hermes desktop app, or `hermes model` → "
+ "Local models), or switch with /model."),
+}
+
_TURN_ERROR_DEFAULT = ("The request failed", "Send /retry, or switch with /model.")
_DETAIL_LIMIT = 400
@@ -68,8 +76,11 @@ def turn_error_title(surface: dict | None) -> str:
def turn_error_hint(surface: dict | None, recoverable: bool = True) -> str:
surface = surface if isinstance(surface, dict) else {}
- _, hint = _TURN_ERROR_CODE_COPY.get(str(surface.get("code") or "")) \
+ code = str(surface.get("code") or "")
+ _, hint = _TURN_ERROR_CODE_COPY.get(code) \
or _TURN_ERROR_LAYER_COPY.get(str(surface.get("layer") or "")) or _TURN_ERROR_DEFAULT
+ if code in _TURN_ERROR_NO_RETRY_HINT and (not recoverable or surface.get("retryable") is False):
+ return _TURN_ERROR_NO_RETRY_HINT[code]
return hint if recoverable else hint.replace("Send /retry", "Pick another model with /model")
diff --git a/ui-tui/src/__tests__/userMessages.test.ts b/ui-tui/src/__tests__/userMessages.test.ts
index 613b275f3e7..ee8b517bc92 100644
--- a/ui-tui/src/__tests__/userMessages.test.ts
+++ b/ui-tui/src/__tests__/userMessages.test.ts
@@ -54,6 +54,16 @@ describe('describeTurnFailure', () => {
expect(text).toContain('/model')
})
+ it('names where to start a switched-off local model server, and never suggests /retry', () => {
+ const text = describeTurnFailure({
+ error: 'The local model server is turned off.',
+ error_surface: { code: 'local_runtime_unavailable', layer: 'endpoint', provider: 'llamacpp', retryable: false }
+ })
+
+ expect(text).not.toContain('/retry')
+ expect(text).toContain('hermes model')
+ })
+
it('falls back to the layer copy, and to a generic title, when the code is unknown', () => {
const streaming = describeTurnFailure({
error: 'peer closed connection',
diff --git a/ui-tui/src/i18n/en/userMessages.ts b/ui-tui/src/i18n/en/userMessages.ts
index 99e029416ef..bf9a1b3b529 100644
--- a/ui-tui/src/i18n/en/userMessages.ts
+++ b/ui-tui/src/i18n/en/userMessages.ts
@@ -103,7 +103,7 @@ export const userMessagesEn = {
localRuntimeUnavailable: {
title: 'The local model server is not running',
hint: 'Try /retry once it is up, or switch with /model.',
- hintNoRetry: 'Turn it back on, or switch with /model.'
+ hintNoRetry: 'Start the local model server (Hermes desktop app, or `hermes model` → Local models), or switch with /model.'
},
modelNotFound: {
title: 'The model provider does not know this model',