Files
hermes-agent/apps
mengyuyuan 5353fc9b32 fix(desktop): bound i18n locale retries and keep English fallback
Address review feedback on the startup-race fix:

- Restore the permanent-failure contract: a rejected config load settles
  on English (DEFAULT_LOCALE) so the UI stays usable, as enforced by
  context.test.tsx.
- Bound the retry loop to MAX_LOCALE_RETRIES (10) at 3s intervals instead
  of retrying forever — permanent auth/backend failures reach a terminal
  English state instead of scheduling requests indefinitely.

Tests: add coverage for transient-failure recovery (first attempt rejects,
retry applies persisted display.language) and for bounded-budget exhaustion
(no retry fires after the budget is spent).
2026-09-09 03:52:03 -07:00
..