hermes-agent/apps/desktop/src/i18n
ethernet e026fd61d8 lint(desktop): ban atom-mirrored refs via no-restricted-syntax eslint rule
A ref synced from a nanostores atom via useEffect lags the atom by one
render. Callbacks that read the ref instead of the atom get stale values —
cancelRun sent session.interrupt to the wrong session (#66485), and
steerPrompt/restoreToMessage/editMessage had closure-priority stale reads.

The rule catches the three shapes of this antipattern:
  - useEffect(() => { ref.current = value }, [value])
  - useEffect(() => { ref.current = value; ... }, [value])
  - useEffect(() => { setMutableRef(ref, value) }, [value])

All 79 existing hits get eslint-disable-next-line with a comment. The
legitimate ref writes (DOM instances, mount flags, request tokens,
prev-value tracking, prop mirrors) stay suppressed; the 11 real bug
sites will be fixed in the next commit so their suppressions can be
removed.

Rule is scoped to apps/desktop only — ui-tui and tests-js don't use
nanostores and don't have this pattern.
2026-07-25 18:12:48 -07:00
..
ar.ts feat(desktop): add Arabic (ar) locale with RTL support 2026-07-24 12:09:57 -05:00
catalog.ts feat(desktop): add Arabic (ar) locale with RTL support 2026-07-24 12:09:57 -05:00
context.test.tsx feat(desktop): add Arabic (ar) locale with RTL support 2026-07-24 12:09:57 -05:00
context.tsx lint(desktop): ban atom-mirrored refs via no-restricted-syntax eslint rule 2026-07-25 18:12:48 -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 refactor(desktop): fold cron Blueprints into the New Job dialog 2026-07-24 19:16:45 -05:00
index.ts feat(desktop): plugin-scoped i18n registry + usePluginI18n 2026-07-19 00:05:08 -04:00
ja.ts refactor(desktop): fold cron Blueprints into the New Job dialog 2026-07-24 19:16:45 -05:00
languages.test.ts feat(desktop): add Arabic (ar) locale with RTL support 2026-07-24 12:09:57 -05:00
languages.ts feat(desktop): add Arabic (ar) locale with RTL support 2026-07-24 12:09:57 -05:00
plugin-i18n.test.tsx feat(desktop): plugin-scoped i18n registry + usePluginI18n 2026-07-19 00:05:08 -04:00
plugin-i18n.ts fmt(js): npm run fix on merge (#67311) 2026-07-19 04:31:52 +00:00
runtime.test.ts Refactor desktop settings i18n keys to camelCase 2026-06-06 07:51:44 -07:00
runtime.ts refactor(desktop): share one active→default→key i18n resolver 2026-07-19 00:05:08 -04:00
types.ts refactor(desktop): fold cron Blueprints into the New Job dialog 2026-07-24 19:16:45 -05:00
zh-hant.ts refactor(desktop): fold cron Blueprints into the New Job dialog 2026-07-24 19:16:45 -05:00
zh.ts refactor(desktop): fold cron Blueprints into the New Job dialog 2026-07-24 19:16:45 -05:00