The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): allow setTheme(default) — drop default from RETIRED_SKINS
686f6c61d753222ee793
diff --git a/apps/desktop/src/themes/backend-sync.test.ts b/apps/desktop/src/themes/backend-sync.test.tsindex aa7594780a3..84036c4039d 100644--- a/apps/desktop/src/themes/backend-sync.test.ts+++ b/apps/desktop/src/themes/backend-sync.test.ts@@ -86,6 +86,26 @@ describe('ingestBackendSkin', () => {expect($pendingSkinApply.get()).toBe('default')})+ it('lets the provider resolve and keep default (not retired → nous)', async () => {+ // skinPref / normalizeSkin must accept `default` once the backend registers+ // it; RETIRED_SKINS no longer includes default (#76743 review).+ const { skinPref } = await import('./context')+ const { resolveTheme } = await import('./user-themes')++ ingestBackendSkin(+ {+ name: 'default',+ description: 'Classic Hermes — gold and kawaii',+ colors: { background: '#1a1a2e', ui_accent: '#FFBF00', banner_text: '#FFF8DC' }+ },+ { apply: false }+ )++ expect(resolveTheme('default')?.name).toBe('default')+ skinPref.assign('work', 'default')+ expect(skinPref.resolve('work')).toBe('default')+ })+it('does not apply default on the connect-time seed', () => {ingestBackendSkin(skin('default'), { apply: false })diff --git a/apps/desktop/src/themes/context.tsx b/apps/desktop/src/themes/context.tsxindex 892802c8045..3f20d17387f 100644--- a/apps/desktop/src/themes/context.tsx+++ b/apps/desktop/src/themes/context.tsx@@ -50,7 +50,9 @@ const PROFILE_MODES_KEY = 'hermes-desktop-profile-modes-v1'const LAST_PROFILE_KEY = 'hermes-desktop-active-profile-v1'// Skins that no longer exist. A profile still pointing at one falls back to// DEFAULT_SKIN_NAME rather than painting a name nothing resolves.-const RETIRED_SKINS = new Set(['nous-light', 'default', 'gold'])+// `default` is the live CLI classic skin (Classic Hermes gold) once registered+// by backend-sync — not retired. `gold` remains a legacy alias (see use-skin-command).+const RETIRED_SKINS = new Set(['nous-light', 'gold'])export type ThemeMode = 'light' | 'dark' | 'system'