Skip to content

The agent that grows with you

Revert "fix(desktop): allow setTheme(default) — drop default from RETIRED_SKINS"

teknium1a45aa85d5299
diff --git a/apps/desktop/src/themes/backend-sync.test.ts b/apps/desktop/src/themes/backend-sync.test.ts
index 84036c4039d..aa7594780a3 100644
--- a/apps/desktop/src/themes/backend-sync.test.ts
+++ b/apps/desktop/src/themes/backend-sync.test.ts
@@ -86,26 +86,6 @@ 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.tsx
index 3f20d17387f..892802c8045 100644
--- a/apps/desktop/src/themes/context.tsx
+++ b/apps/desktop/src/themes/context.tsx
@@ -50,9 +50,7 @@ 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.
-// `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'])
+const RETIRED_SKINS = new Set(['nous-light', 'default', 'gold'])
export type ThemeMode = 'light' | 'dark' | 'system'