hermes-agent/apps/desktop/src/i18n
Teknium 620fd59b8e
feat(model-picker): add Refresh Models control to bust stale model cache (#48691)
The desktop model picker had no way to force a fresh model fetch: model.options
went through the 1h-cached provider_models_cache.json, and there was no flag to
bust it. When a provider's cached list expired and its next live fetch failed,
the picker fell back to the curated static list — silently dropping live-only
models (e.g. OpenCode Zen's free tier like deepseek-v4-flash-free) the user had
been using.

- Thread refresh through model.options (RPC + REST /api/model/options) ->
  build_models_payload -> list_authenticated_providers, which calls
  clear_provider_models_cache() up front when set so every row re-fetches live.
- Add a 'Refresh Models' control to the desktop picker (5-locale i18n, spinning
  sync icon). Normal opens leave refresh=false to stay snappy on the cache.

Verified: stale cache hides deepseek-v4-flash-free -> refresh busts it -> live
re-fetch surfaces it. refresh=false never touches the cache.
2026-06-18 21:37:41 -07:00
..
catalog.ts feat: Add desktop language switching for Japanese and Traditional Chinese 2026-06-06 07:51:44 -07:00
context.test.tsx feat: Add desktop language switching for Japanese and Traditional Chinese 2026-06-06 07:51:44 -07:00
context.tsx feat(desktop): persist i18n language in config 2026-06-05 10:32:26 -07:00
define-locale.ts feat: Add desktop language switching for Japanese and Traditional Chinese 2026-06-06 07:51:44 -07:00
en.ts feat(model-picker): add Refresh Models control to bust stale model cache (#48691) 2026-06-18 21:37:41 -07:00
index.ts feat(desktop): persist i18n language in config 2026-06-05 10:32:26 -07:00
ja.ts feat(model-picker): add Refresh Models control to bust stale model cache (#48691) 2026-06-18 21:37:41 -07:00
languages.test.ts feat: Add desktop language switching for Japanese and Traditional Chinese 2026-06-06 07:51:44 -07:00
languages.ts Add searchable language picker 2026-06-06 07:51:44 -07:00
runtime.test.ts Refactor desktop settings i18n keys to camelCase 2026-06-06 07:51:44 -07:00
runtime.ts feat(desktop): persist i18n language in config 2026-06-05 10:32:26 -07:00
types.ts feat(model-picker): add Refresh Models control to bust stale model cache (#48691) 2026-06-18 21:37:41 -07:00
zh-hant.ts feat(model-picker): add Refresh Models control to bust stale model cache (#48691) 2026-06-18 21:37:41 -07:00
zh.ts feat(model-picker): add Refresh Models control to bust stale model cache (#48691) 2026-06-18 21:37:41 -07:00