The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): add an Appearance toggle that disables the intro splash
ethernetfdf6f1d4c80f
diff --git a/apps/desktop/src/app/chat/index.tsx b/apps/desktop/src/app/chat/index.tsxindex f3e72d7378e..beda30da849 100644--- a/apps/desktop/src/app/chat/index.tsx+++ b/apps/desktop/src/app/chat/index.tsx@@ -26,6 +26,7 @@ import { modelOptionsQueryKey, requestModelOptions } from '@/lib/model-options'import { cn } from '@/lib/utils'import { migrateSessionDraft } from '@/store/composer'import { migrateQueuedPrompts, parkQueuedPrompts } from '@/store/composer-queue'+import { $introSplash } from '@/store/intro-splash'import { $pinnedSessionIds } from '@/store/layout'import { $petActive } from '@/store/pet'import { $petOverlayActive } from '@/store/pet-overlay'@@ -60,6 +61,7 @@ import { ComposerSurfaceProvider, useComposerScope, useComposerSurfaceId } fromimport type { ChatBarState } from './composer/types'import { type DroppedFile, partitionDroppedFiles } from './hooks/use-composer-actions'import { type DragKind, useFileDropZone } from './hooks/use-file-drop-zone'+import { shouldShowIntro } from './intro-visibility'import { ProfileTag } from './profile-tag'import { isRouteSessionMismatch } from './route-session-state'import { useRuntimeMessageRepository } from './runtime-repository'@@ -391,6 +393,7 @@ const ChatViewContent = memo(function ChatViewContent({const gatewayOpen = gatewayState === 'open'const introPersonality = useStore($introPersonality)const introSeed = useStore($introSeed)+ const introSplash = useStore($introSplash)// PERF: ChatView must not subscribe to the view's $messages — the atom is// replaced on every streaming delta flush (~30×/s) and a subscription here// re-renders the entire chat shell (header, chat bar, thread wrapper) per@@ -455,15 +458,18 @@ const ChatViewContent = memo(function ChatViewContent({const routeSessionMismatch = isPrimary ? isRouteSessionMismatch(routedSessionId, selectedSessionId, sessions) : false// The compact new-session pop-out skips the wordmark/tagline intro — it's a- // scratch window, not the full-height empty state.- const showIntro =- isPrimary &&- !isAuxiliaryWindow() &&- freshDraftReady &&- !isRoutedSessionView &&- !selectedSessionId &&- !activeSessionId &&- messagesEmpty+ // scratch window, not the full-height empty state. The Appearance toggle+ // turns it off everywhere else.+ const showIntro = shouldShowIntro({+ activeSessionId,+ auxiliaryWindow: isAuxiliaryWindow(),+ enabled: introSplash,+ freshDraftReady,+ messagesEmpty,+ primary: isPrimary,+ routedSessionView: isRoutedSessionView,+ selectedSessionId+ })// Session is still loading if the route references a session we haven't// resumed yet. Once `activeSessionId` is set (runtime has resumed), thediff --git a/apps/desktop/src/app/chat/intro-visibility.test.ts b/apps/desktop/src/app/chat/intro-visibility.test.tsnew file mode 100644index 00000000000..7589b66fe16--- /dev/null+++ b/apps/desktop/src/app/chat/intro-visibility.test.ts@@ -0,0 +1,48 @@+import { describe, expect, it } from 'vitest'++import { shouldShowIntro } from './intro-visibility'++const showing = {+ activeSessionId: null,+ auxiliaryWindow: false,+ enabled: true,+ freshDraftReady: true,+ messagesEmpty: true,+ primary: true,+ routedSessionView: false,+ selectedSessionId: null+} as const++describe('shouldShowIntro', () => {+ it('shows on a fresh draft in the primary window', () => {+ expect(shouldShowIntro(showing)).toBe(true)+ })++ it('hides when the Appearance toggle is off', () => {+ expect(shouldShowIntro({ ...showing, enabled: false })).toBe(false)+ })++ it('keeps the toggle authoritative over every other clause', () => {+ // Off means off: no window, session, or draft state re-enables the splash.+ const inputs = [+ { ...showing, auxiliaryWindow: true, enabled: false },+ { ...showing, enabled: false, freshDraftReady: false },+ { ...showing, enabled: false, primary: false },+ { ...showing, enabled: false, messagesEmpty: false }+ ]++ for (const input of inputs) {+ expect(shouldShowIntro(input)).toBe(false)+ }+ })++ it('hides on surfaces that are not an empty primary draft', () => {+ expect(shouldShowIntro({ ...showing, primary: false })).toBe(false)+ expect(shouldShowIntro({ ...showing, auxiliaryWindow: true })).toBe(false)+ expect(shouldShowIntro({ ...showing, freshDraftReady: false })).toBe(false)+ expect(shouldShowIntro({ ...showing, routedSessionView: true })).toBe(false)+ expect(shouldShowIntro({ ...showing, selectedSessionId: 'session-1' })).toBe(false)+ expect(shouldShowIntro({ ...showing, activeSessionId: 'session-1' })).toBe(false)+ expect(shouldShowIntro({ ...showing, messagesEmpty: false })).toBe(false)+ })+})diff --git a/apps/desktop/src/app/chat/intro-visibility.ts b/apps/desktop/src/app/chat/intro-visibility.tsnew file mode 100644index 00000000000..575df1ba135--- /dev/null+++ b/apps/desktop/src/app/chat/intro-visibility.ts@@ -0,0 +1,32 @@+/**+ * Whether the empty-chat intro splash renders.+ *+ * The splash is the full-height empty state of the primary chat: it belongs to+ * a fresh draft in the main window and nothing else. Auxiliary and non-primary+ * windows are scratch surfaces, a routed or active session already owns the+ * view, and any transcript at all means the conversation started.+ *+ * `enabled` is the user's Appearance toggle and outranks every other clause:+ * turning the splash off never depends on which window asks.+ */+export function shouldShowIntro(input: {+ activeSessionId: null | string+ auxiliaryWindow: boolean+ enabled: boolean+ freshDraftReady: boolean+ messagesEmpty: boolean+ primary: boolean+ routedSessionView: boolean+ selectedSessionId: null | string+}): boolean {+ return (+ input.enabled &&+ input.primary &&+ !input.auxiliaryWindow &&+ input.freshDraftReady &&+ !input.routedSessionView &&+ !input.selectedSessionId &&+ !input.activeSessionId &&+ input.messagesEmpty+ )+}diff --git a/apps/desktop/src/app/settings/appearance-settings.tsx b/apps/desktop/src/app/settings/appearance-settings.tsxindex 1195e4cc08c..b677ae069f2 100644--- a/apps/desktop/src/app/settings/appearance-settings.tsx+++ b/apps/desktop/src/app/settings/appearance-settings.tsx@@ -16,6 +16,7 @@ import { cn } from '@/lib/utils'import { $backdrop, setBackdrop } from '@/store/backdrop'import { $composerPopoutGesturesEnabled, setComposerPopoutGesturesEnabled } from '@/store/composer-popout'import { $embedAllowed, $embedMode, clearEmbedAllowed, type EmbedMode, setEmbedMode } from '@/store/embed-consent'+import { $introSplash, setIntroSplash } from '@/store/intro-splash'import { $activeGatewayProfile, $profiles, normalizeProfileKey } from '@/store/profile'import { $reactionsEnabled, setReactionsEnabled } from '@/store/reactions-enabled'import { $reasoningCollapsedByDefault, setReasoningCollapsedByDefault } from '@/store/reasoning-disclosure'@@ -352,6 +353,7 @@ export function AppearanceSettings() {const glassMode = translucency.mode === 'glass' && GLASS_SUPPORTEDconst reactionsEnabled = useStore($reactionsEnabled)const backdrop = useStore($backdrop)+ const introSplash = useStore($introSplash)const installs = useStore($marketplaceInstalls)const profiles = useStore($profiles)const activeProfileKey = normalizeProfileKey(useStore($activeGatewayProfile))@@ -684,6 +686,25 @@ export function AppearanceSettings() {title={a.backdropTitle}/>+ <ListRow+ action={+ <SegmentedControl+ onChange={id => {+ triggerHaptic('selection')+ setIntroSplash(id === 'on')+ }}+ options={[+ { id: 'off', label: t.common.off },+ { id: 'on', label: t.common.on }+ ]}+ value={introSplash ? 'on' : 'off'}+ />+ }+ description={a.introSplashDesc}+ id={appearanceSettingElementId(APPEARANCE_SETTING_IDS.introSplash)}+ title={a.introSplashTitle}+ />+<ToggleRowchecked={composerPopoutGesturesEnabled}description={a.composerPopoutDesc}diff --git a/apps/desktop/src/app/settings/settings-search.ts b/apps/desktop/src/app/settings/settings-search.tsindex 4fc75eebd32..31a246d7e65 100644--- a/apps/desktop/src/app/settings/settings-search.ts+++ b/apps/desktop/src/app/settings/settings-search.ts@@ -13,6 +13,7 @@ export type CredentialSettingsView = 'settings' | 'tools'export const APPEARANCE_SETTING_IDS = {backdrop: 'appearance.backdrop',embeds: 'appearance.embeds',+ introSplash: 'appearance.intro-splash',language: 'appearance.language',theme: 'appearance.theme',toolView: 'appearance.tool-view',diff --git a/apps/desktop/src/app/settings/use-settings-search.ts b/apps/desktop/src/app/settings/use-settings-search.tsindex 74171dedac1..19de61cab0e 100644--- a/apps/desktop/src/app/settings/use-settings-search.ts+++ b/apps/desktop/src/app/settings/use-settings-search.ts@@ -160,6 +160,15 @@ export function useSettingsSearchCatalog(enabled: boolean) {label: appearance.backdropTitle,target: { setting: APPEARANCE_SETTING_IDS.backdrop, view: 'config:appearance' }},+ {+ context: appearanceContext,+ description: appearance.introSplashDesc,+ icon: Palette,+ id: `setting:${APPEARANCE_SETTING_IDS.introSplash}`,+ keywords: ['splash', 'wordmark', 'empty chat', 'new chat'],+ label: appearance.introSplashTitle,+ target: { setting: APPEARANCE_SETTING_IDS.introSplash, view: 'config:appearance' }+ },{context: appearanceContext,description: appearance.toolViewDesc,diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex f5fdcf6b4e4..d848009254b 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -433,6 +433,8 @@ export const ar = defineLocale({},backdropTitle: 'خلفية النافذة',backdropDesc: 'اختيار مقدار مزج خلفية سطح المكتب مع سطح Hermes.',+ introSplashTitle: 'شاشة المقدمة',+ introSplashDesc: 'الشعار النصي والعبارة التمهيدية في محادثة فارغة.',reactionsTitle: 'تفاعلات الرسائل',reactionsDesc: 'تفاعلات إيموجي بأسلوب iMessage — تفاعل مع الرسائل، ويمكن لـ Hermes التفاعل مع رسائلك.',composerPopoutTitle: 'محرر عائم',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 8f36885c34b..f4217322e02 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -542,6 +542,8 @@ export const en: Translations = {},backdropTitle: 'Chat Backdrop',backdropDesc: 'The faint statue image behind the conversation.',+ introSplashTitle: 'Intro Splash',+ introSplashDesc: 'The wordmark and prompt shown on an empty chat.',reactionsTitle: 'Message Reactions',reactionsDesc: 'iMessage-style emoji tapbacks — react to messages, and Hermes can react to yours.',composerPopoutTitle: 'Floating Composer',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex e69ead64489..550f16062d5 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -366,6 +366,8 @@ export const ja = defineLocale({},backdropTitle: 'チャット背景',backdropDesc: '会話の背後に表示される淡い彫像の画像。',+ introSplashTitle: 'イントロ表示',+ introSplashDesc: '空のチャットに表示されるワードマークとプロンプト。',reactionsTitle: 'メッセージリアクション',reactionsDesc:'iMessage風の絵文字タップバック — メッセージにリアクションでき、Hermesもあなたのメッセージにリアクションします。',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 31d56344167..47210ce65be 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -440,6 +440,8 @@ export interface Translations {}backdropTitle: stringbackdropDesc: string+ introSplashTitle: string+ introSplashDesc: stringreactionsTitle: stringreactionsDesc: stringcomposerPopoutTitle: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 4ce0694b29e..51ac0958784 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -358,6 +358,8 @@ export const zhHant = defineLocale({},backdropTitle: '聊天背景',backdropDesc: '對話後方那張淡淡的雕像圖片。',+ introSplashTitle: '開場標識',+ introSplashDesc: '空白對話中顯示的字標和提示語。',reactionsTitle: '訊息回應',reactionsDesc: 'iMessage 風格的表情回應 — 你可以對訊息做出回應,Hermes 也能回應你的訊息。',composerPopoutTitle: '懸浮輸入框',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex a96ed21efa4..46708723c51 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -531,6 +531,8 @@ export const zh: Translations = {},backdropTitle: '聊天背景',backdropDesc: '对话后方那张淡淡的雕像图片。',+ introSplashTitle: '开场标识',+ introSplashDesc: '空白对话中显示的字标和提示语。',reactionsTitle: '消息回应',reactionsDesc: 'iMessage 风格的表情回应 — 你可以给消息添加回应,Hermes 也能回应你的消息。',composerPopoutTitle: '悬浮输入框',diff --git a/apps/desktop/src/store/intro-splash.ts b/apps/desktop/src/store/intro-splash.tsnew file mode 100644index 00000000000..ba6937dac18--- /dev/null+++ b/apps/desktop/src/store/intro-splash.ts@@ -0,0 +1,14 @@+import { atom } from 'nanostores'++import { persistBoolean, storedBoolean } from '@/lib/storage'++const KEY = 'hermes.desktop.intro-splash.v1'++/** Whether the wordmark + tagline splash renders on an empty chat. */+export const $introSplash = atom(storedBoolean(KEY, true))++$introSplash.subscribe(on => persistBoolean(KEY, on))++export function setIntroSplash(on: boolean) {+ $introSplash.set(on)+}