The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): Interface mode in the layout editor, Settings, ⌘K and onboarding
brooklyn!ddeed59afd7d
diff --git a/apps/desktop/DESIGN.md b/apps/desktop/DESIGN.mdindex 61e0514a2b3..974101afa7a 100644--- a/apps/desktop/DESIGN.md+++ b/apps/desktop/DESIGN.md@@ -290,6 +290,9 @@ existing traffic-light and Window Controls Overlay measurements.The left cluster shows sidebar, settings, layout editor, and HUD controls. Flipand the right-sidebar toggle sit on the right; haptics remain in settings.+In Simple interface mode only sidebar, settings and the layout editor render,+and the reserved cluster width shrinks with them (`TITLEBAR_FIXED_TOOLS` is the+one table both the buttons and the width reservation read).Holding Cmd (Ctrl off macOS) reveals small slot numbers over the target strip'sstatus dots after 400ms, without changing tab widths. Hints follow the samebinding and hovered/focused-zone resolver as the number shortcuts.diff --git a/apps/desktop/e2e/interface-mode.spec.ts b/apps/desktop/e2e/interface-mode.spec.tsnew file mode 100644index 00000000000..9339a29474e--- /dev/null+++ b/apps/desktop/e2e/interface-mode.spec.ts@@ -0,0 +1,96 @@+/**+ * E2E: Interface mode round trip against a real backend.+ *+ * Simple is a resolver input, not a preference writer. The scenario walks the+ * Advanced → Simple → Advanced loop from the layout editor and asserts what an+ * install would notice: the instrumentation leaves (titlebar tools beyond+ * Settings + Layout editor, the statusbar, the machinery rows in the sidebar),+ * the one-key reveal still opens the terminal for the session, and on the way+ * back every stored preference is byte-identical — nothing under+ * `hermes.desktop.*` changed except the mode key itself, which is gone again.+ *+ * Prerequisite: `npm run build` must have been run so dist/ exists.+ */+import { type MockBackendFixture, setupMockBackend, waitForAppReady } from './fixtures'+import { expect, test } from './test'++const MODE_KEY = 'hermes.desktop.interfaceMode.v1'++let fixture: MockBackendFixture | null = null++test.beforeAll(async () => {+ fixture = await setupMockBackend()+ await waitForAppReady(fixture)+})++test.afterAll(async () => {+ await fixture?.cleanup()+ fixture = null+})++/** Every `hermes.desktop.*` record except the mode key — the user's actual preferences. */+async function preferenceSnapshot(page: MockBackendFixture['page']): Promise<Record<string, string>> {+ return page.evaluate((modeKey: string) => {+ const out: Record<string, string> = {}+ for (let i = 0; i < window.localStorage.length; i += 1) {+ const key = window.localStorage.key(i)+ if (key && key.startsWith('hermes.desktop.') && key !== modeKey) {+ out[key] = window.localStorage.getItem(key) ?? ''+ }+ }+ return out+ }, MODE_KEY)+}++async function pickMode(page: MockBackendFixture['page'], mode: 'Simple' | 'Advanced'): Promise<void> {+ await page.getByRole('button', { name: 'Layout editor', exact: true }).click()+ const card = page.getByRole('button', { name: new RegExp(`^${mode}\\b`) })+ await expect(card).toBeVisible()+ await card.click()+ await expect(card).toHaveAttribute('aria-pressed', 'true')+ await page.getByRole('button', { name: 'Done', exact: true }).click()+}++test('Simple hides the machinery, keeps the doors, and leaves preferences untouched on the way back', async () => {+ const page = fixture!.page+ const appControls = page.getByRole('toolbar', { name: 'App controls' }).or(page.locator('[aria-label="App controls"]')).first()++ // Advanced (default): the usual chrome, and no mode record on disk.+ await expect(appControls.getByRole('button', { name: 'HUD mode', exact: true })).toBeVisible()+ await expect(page.locator('[data-slot="statusbar"]')).toBeVisible()+ expect(await page.evaluate((key: string) => window.localStorage.getItem(key), MODE_KEY)).toBeNull()++ const before = await preferenceSnapshot(page)++ await pickMode(page, 'Simple')++ // Titlebar: only Settings and the layout editor remain among the app actions.+ await expect(appControls.getByRole('button', { name: 'HUD mode', exact: true })).toHaveCount(0)+ await expect(appControls.getByRole('button', { name: 'Swap sidebar sides', exact: true })).toHaveCount(0)+ await expect(page.getByRole('button', { name: 'Open settings', exact: true })).toBeVisible()+ await expect(page.getByRole('button', { name: 'Layout editor', exact: true })).toBeVisible()++ // Statusbar and the sidebar's machinery rows are gone; the conversation isn't.+ await expect(page.locator('[data-slot="statusbar"]')).toHaveCount(0)+ await expect(page.getByRole('button', { name: /^Scheduled jobs/ })).toHaveCount(0)+ await expect(page.getByRole('button', { name: /^Capabilities/ })).toHaveCount(0)+ await expect(page.locator('textarea, [contenteditable="true"]').first()).toBeVisible()++ // Simple is a default, not a lock: the terminal reveal still answers for the session.+ await expect(page.locator('[data-terminal]').first()).toBeHidden()+ await page.keyboard.press('Control+`')+ await expect(page.locator('[data-terminal]').first()).toBeVisible()++ // Simple wrote exactly one thing: the mode key.+ expect(await page.evaluate((key: string) => window.localStorage.getItem(key), MODE_KEY)).not.toBeNull()+ expect(await preferenceSnapshot(page)).toEqual(before)++ await pickMode(page, 'Advanced')++ // Everything is back, the session reveal is cleared, and the disk looks like we were never here.+ await expect(appControls.getByRole('button', { name: 'HUD mode', exact: true })).toBeVisible()+ await expect(page.locator('[data-slot="statusbar"]')).toBeVisible()+ await expect(page.locator('[data-terminal]').first()).toBeHidden()+ expect(await page.evaluate((key: string) => window.localStorage.getItem(key), MODE_KEY)).toBeNull()+ expect(await preferenceSnapshot(page)).toEqual(before)+})diff --git a/apps/desktop/src/app/settings/appearance-settings.tsx b/apps/desktop/src/app/settings/appearance-settings.tsxindex cab5769ad31..bbfcf8a5f75 100644--- a/apps/desktop/src/app/settings/appearance-settings.tsx+++ b/apps/desktop/src/app/settings/appearance-settings.tsx@@ -17,6 +17,13 @@ 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 {+ $interfaceMode,+ $modeShadowed,+ INTERFACE_MODES,+ type InterfaceMode,+ setInterfaceMode+} from '@/store/interface-mode'import { $introSplash, setIntroSplash } from '@/store/intro-splash'import { notifyError } from '@/store/notifications'import { $activeGatewayProfile, $profiles, normalizeProfileKey } from '@/store/profile'@@ -409,9 +416,13 @@ export function AppearanceSettings({ subpage }: AppearanceSettingsProps = {}) {const { t, isSavingLocale } = useI18n()const { themeName, mode, resolvedMode, availableThemes, setTheme, setMode } = useTheme()const toolViewMode = useStore($toolViewMode)+ const toolViewShadowed = useStore($modeShadowed('toolViewMode'))const hideCodeDiffs = useStore($hideCodeDiffs)+ const hideCodeDiffsShadowed = useStore($modeShadowed('hideCodeDiffs'))const hideThreadTimeline = useStore($hideThreadTimeline)const reasoningCollapsedByDefault = useStore($reasoningCollapsedByDefault)+ const reasoningCollapsedShadowed = useStore($modeShadowed('reasoningCollapsedByDefault'))+ const interfaceMode = useStore($interfaceMode)const sessionListDensity = useStore($sessionListDensity)const tabStripDefault = useStore($tabStripDefault)const titlebarAppActionsSide = useStore($titlebarAppActionsSide)@@ -503,6 +514,16 @@ export function AppearanceSettings({ subpage }: AppearanceSettingsProps = {}) {{ id: 'detailed', label: a.sessionDensityDetailed }] as const satisfies readonly { id: SessionListDensity; label: string }[]+ const interfaceModeOptions = INTERFACE_MODES.map(id => ({ id, label: t.interfaceMode[id].label })) satisfies readonly {+ id: InterfaceMode+ label: string+ }[]++ // A row whose value Simple mode currently decides says so where the+ // preference text would otherwise promise a persistence it cannot deliver.+ const withModeNote = (description: string, shadowed: boolean) =>+ shadowed ? `${description} ${t.interfaceMode.sessionNote}` : description+const tabStripOptions = [{ id: 'auto', label: a.tabStripAuto },{ id: 'always', label: a.tabStripAlways },@@ -676,6 +697,24 @@ export function AppearanceSettings({ subpage }: AppearanceSettingsProps = {}) {</>)}+ {show('window-layout') && (+ <ListRow+ action={+ <SegmentedControl+ onChange={id => {+ triggerHaptic('selection')+ setInterfaceMode(id)+ }}+ options={interfaceModeOptions}+ value={interfaceMode}+ />+ }+ description={t.interfaceMode.hint}+ id={appearanceSettingElementId(APPEARANCE_SETTING_IDS.interfaceMode)}+ title={t.interfaceMode.title}+ />+ )}+{show('window-layout') && (<ListRowaction={@@ -1020,7 +1059,7 @@ export function AppearanceSettings({ subpage }: AppearanceSettingsProps = {}) {value={toolViewMode}/>}- description={a.toolViewDesc}+ description={withModeNote(a.toolViewDesc, toolViewShadowed)}id={appearanceSettingElementId(APPEARANCE_SETTING_IDS.toolView)}title={a.toolViewTitle}/>@@ -1041,7 +1080,7 @@ export function AppearanceSettings({ subpage }: AppearanceSettingsProps = {}) {value={hideCodeDiffs ? 'on' : 'off'}/>}- description={a.hideCodeDiffsDesc}+ description={withModeNote(a.hideCodeDiffsDesc, hideCodeDiffsShadowed)}id={appearanceSettingElementId(APPEARANCE_SETTING_IDS.hideCodeDiffs)}title={a.hideCodeDiffsTitle}/>@@ -1062,7 +1101,7 @@ export function AppearanceSettings({ subpage }: AppearanceSettingsProps = {}) {value={reasoningCollapsedByDefault ? 'on' : 'off'}/>}- description={a.reasoningCollapsedDesc}+ description={withModeNote(a.reasoningCollapsedDesc, reasoningCollapsedShadowed)}title={a.reasoningCollapsedTitle}/>)}diff --git a/apps/desktop/src/app/settings/appearance-subpages.ts b/apps/desktop/src/app/settings/appearance-subpages.tsindex 23a22989444..e67ae0966e7 100644--- a/apps/desktop/src/app/settings/appearance-subpages.ts+++ b/apps/desktop/src/app/settings/appearance-subpages.ts@@ -22,6 +22,7 @@ const SETTING_SUBPAGES: Readonly<Record<string, AppearanceSubpageId>> = {'appearance.pet': 'pet','appearance.theme': 'theme','appearance.tool-view': 'chat-display',+ 'appearance.interface-mode': 'window-layout','appearance.translucency': 'window-layout','appearance.ui-scale': 'typography','appearance.user-bubble': 'chat-display',diff --git a/apps/desktop/src/app/settings/settings-search.ts b/apps/desktop/src/app/settings/settings-search.tsindex e399fe7d429..135b78e150f 100644--- a/apps/desktop/src/app/settings/settings-search.ts+++ b/apps/desktop/src/app/settings/settings-search.ts@@ -22,6 +22,7 @@ export const APPEARANCE_SETTING_IDS = {minimizeToTray: 'appearance.minimize-to-tray',theme: 'appearance.theme',toolView: 'appearance.tool-view',+ interfaceMode: 'appearance.interface-mode',translucency: 'appearance.translucency',uiScale: 'appearance.ui-scale',userBubble: 'appearance.user-bubble'diff --git a/apps/desktop/src/app/settings/use-settings-search.ts b/apps/desktop/src/app/settings/use-settings-search.tsindex 02b77da61f6..36ed0ee91ae 100644--- a/apps/desktop/src/app/settings/use-settings-search.ts+++ b/apps/desktop/src/app/settings/use-settings-search.ts@@ -206,6 +206,15 @@ export function useSettingsSearchCatalog(enabled: boolean) {label: appearance.introSplashTitle,target: { setting: APPEARANCE_SETTING_IDS.introSplash, view: 'config:appearance' }},+ {+ context: appearanceContext,+ description: t.interfaceMode.hint,+ icon: Palette,+ id: `setting:${APPEARANCE_SETTING_IDS.interfaceMode}`,+ keywords: ['simple', 'advanced', 'mode', 'interface', 'chrome', 'minimal', 'focus'],+ label: t.interfaceMode.title,+ target: { setting: APPEARANCE_SETTING_IDS.interfaceMode, view: 'config:appearance' }+ },{context: appearanceContext,description: appearance.toolViewDesc,diff --git a/apps/desktop/src/components/onboarding-chat/cards/setup.tsx b/apps/desktop/src/components/onboarding-chat/cards/setup.tsxindex be3daf49203..a04fbf403ea 100644--- a/apps/desktop/src/components/onboarding-chat/cards/setup.tsx+++ b/apps/desktop/src/components/onboarding-chat/cards/setup.tsx@@ -25,6 +25,7 @@ import { SearchField } from '@/components/ui/search-field'import { registry } from '@/contrib/registry'import { connectorIconUrl, connectorTitle } from '@/lib/connector-tools'import { useConnectorCatalog } from '@/store/connector-catalog'+import { setInterfaceMode } from '@/store/interface-mode'import { $onboardingAnswers, setOnboardingAnswers } from '@/store/onboarding-answers'import { useTheme } from '@/themes'import { setAccentOverride } from '@/themes/accent-override'@@ -204,6 +205,14 @@ export function LayoutCard({ locked }: CardProps) {$chatLayoutPicked.set(true)setOnboardingAnswers({ layout: id })+ // The pick answers "how much of the machinery do you want to see" too;+ // Skip leaves the mode alone, so only an actual choice sets it.+ const layout = LAYOUTS.find(candidate => candidate.id === id)++ if (layout) {+ setInterfaceMode(layout.mode)+ }+const preset = registry.getArea('layouts').find(contribution => contribution.id === id)if (!preset?.data) {@@ -233,6 +242,7 @@ export function LayoutCard({ locked }: CardProps) {{LAYOUTS.map(layout => (<LayoutPreviewCardactive={picked && answers.layout === layout.id}+ description={layout.description}key={layout.id}name={layout.name}onSelect={() => pickLayout(layout.id)}diff --git a/apps/desktop/src/components/onboarding-chat/options.tsx b/apps/desktop/src/components/onboarding-chat/options.tsxindex 941a648992f..3bb6ed33719 100644--- a/apps/desktop/src/components/onboarding-chat/options.tsx+++ b/apps/desktop/src/components/onboarding-chat/options.tsx@@ -3,6 +3,7 @@ import { Codicon } from '@/components/ui/codicon'import { Tip } from '@/components/ui/tooltip'import { IS_MAC } from '@/lib/keybinds/combo'import { cn } from '@/lib/utils'+import type { InterfaceMode } from '@/store/interface-mode'import { readableInk } from '@/themes/color'// Curated leaders for the first-run picker. Other enabled catalog entries@@ -120,10 +121,23 @@ export type MiniNode = 1 | { dir: 'column' | 'row'; children: MiniNode[]; weightexport const ELITE_LAYOUT_ID = 'terminal-deck'-export const LAYOUTS: Array<{ id: string; name: string; tree: MiniNode }> = [- { id: 'basic', name: 'Basic', tree: { children: [1, 1], dir: 'row', weights: [1, 4.6] } },+// Each pick is an arrangement AND an interface mode. First launch is the one+// place a single question can answer both: someone here to talk to Hermes+// should not have to find Simple mode afterwards, and a developer who asked+// for the terminal deck wants the tooling on. Basic applies Simple's own+// preset so its shelf shows the pick as active.+export const LAYOUTS: Array<{ description: string; id: string; mode: InterfaceMode; name: string; tree: MiniNode }> = [{+ description: 'For talking to Hermes.',+ id: 'sidebar-left',+ mode: 'simple',+ name: 'Basic',+ tree: { children: [1, 1], dir: 'row', weights: [1, 4.6] }+ },+ {+ description: 'For developers: terminal, files, diffs.',id: ELITE_LAYOUT_ID,+ mode: 'advanced',name: 'Elite',tree: {children: [{ children: [1, 1, 1], dir: 'row', weights: [1, 3.2, 1.2] }, 1],@@ -181,11 +195,13 @@ function MiniWindowButtons() {export function LayoutPreviewCard({active,+ description,name,onSelect,tree}: {active: boolean+ description?: stringname: stringonSelect: () => voidtree: MiniNode@@ -198,7 +214,10 @@ export function LayoutPreviewCard({<MiniTree node={tree} /></span></span>- <span className={cn('text-xs', active ? 'text-foreground' : 'text-muted-foreground')}>{name}</span>+ <span className="flex flex-col items-center gap-0.5">+ <span className={cn('text-xs', active ? 'text-foreground' : 'text-muted-foreground')}>{name}</span>+ {description && <span className="text-[0.68rem] text-muted-foreground/70">{description}</span>}+ </span></button>)}diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/layout-picker.tsx b/apps/desktop/src/components/pane-shell/tree/renderer/layout-picker.tsxindex 95b303501f5..0fc339cd1cf 100644--- a/apps/desktop/src/components/pane-shell/tree/renderer/layout-picker.tsx+++ b/apps/desktop/src/components/pane-shell/tree/renderer/layout-picker.tsx@@ -2,7 +2,10 @@* Layout picker — the preset card grid inside the edit palette. Thumbnails* are a miniature render of each preset's layout tree; clicking a card* applies it, and "Save current arrangement" captures the live tree as a- * user preset. The "New grid layout" button opens the zone editor.+ * user preset. The "New grid layout" button opens the zone editor. Above the+ * templates sits the interface mode — Simple / Advanced — because mode and+ * arrangement are the two axes of "what does this window look like", and+ * this palette is where the user comes to answer that.*/import { useStore } from '@nanostores/react'@@ -15,22 +18,46 @@ import { useContributions } from '@/contrib/react/use-contributions'import type { Contribution } from '@/contrib/types'import { useI18n } from '@/i18n'import { cn } from '@/lib/utils'+import {+ $interfaceMode,+ INTERFACE_MODES,+ type InterfaceMode,+ setInterfaceMode,+ shownInMode+} from '@/store/interface-mode'import type { LayoutNode } from '../model'import { isLayoutNode } from '../model'-import { applyLayoutPreset, deleteUserPreset, isUserPreset, LAYOUTS_AREA, saveCurrentLayoutAs } from '../presets'+import {+ applyLayoutPreset,+ deleteUserPreset,+ isUserPreset,+ layoutPresetResting,+ layoutPresetTier,+ LAYOUTS_AREA,+ saveCurrentLayoutAs+} from '../presets'import { $activePresetId } from '../store'import { $zoneEditorOpen } from '../zone-editor'-/** Miniature render of a layout tree — the preset card thumbnail. */-function TreeThumbnail({ node }: { node: LayoutNode }) {+/** Miniature render of a layout tree — the preset card thumbnail. A zone whose+ * every pane the preset leaves resting is drawn as a ghost: the slot is there,+ * nothing is in it yet. */+function TreeThumbnail({ node, resting }: { node: LayoutNode; resting: ReadonlySet<string> }) {if (node.type === 'group') {+ const ghost = node.panes.every(id => resting.has(id))+return (// currentColor-derived fill: light zones on dark themes, dark zones on- // light — legible everywhere without leaning on the accent.+ // light — legible everywhere without leaning on the accent. A ghost is+ // an outlined empty slot, not a fainter block.<divclassName="min-h-0 min-w-0 flex-1 rounded-[2px]"- style={{ background: 'color-mix(in srgb, currentColor 16%, transparent)' }}+ style={+ ghost+ ? { border: '1px dashed color-mix(in srgb, currentColor 30%, transparent)' }+ : { background: 'color-mix(in srgb, currentColor 16%, transparent)' }+ }/>)}@@ -43,7 +70,7 @@ function TreeThumbnail({ node }: { node: LayoutNode }) {key={child.id}style={{ flex: `${node.weights[i]} ${node.weights[i]} 0px` }}>- <TreeThumbnail node={child} />+ <TreeThumbnail node={child} resting={resting} /></div>))}</div>@@ -83,7 +110,7 @@ function PresetCard({ preset }: { preset: Contribution }) {type="button"><div className="flex h-12 w-full">- <TreeThumbnail node={tree} />+ <TreeThumbnail node={tree} resting={layoutPresetResting(preset.id)} /></div><spanclassName={cn('truncate text-[0.68rem] font-medium', active ? 'text-foreground' : 'text-muted-foreground/80')}@@ -108,14 +135,50 @@ function PresetCard({ preset }: { preset: Contribution }) {)}+// No thumbnail on purpose: the grey-block miniature is the templates' language+// for ARRANGEMENT, and a mode is not an arrangement — it is what rests on top+// of whichever one is picked. Words carry it; the card chrome ties the rows.+function ModeCard({ mode }: { mode: InterfaceMode }) {+ const { t } = useI18n()+ const current = useStore($interfaceMode)+ const active = mode === current+ const copy = t.interfaceMode[mode]++ return (+ <button+ aria-pressed={active}+ className={cn(+ 'flex w-full flex-col gap-0.5 rounded-lg border px-2.5 py-2 text-left transition-colors',+ active+ ? 'border-(--ui-accent) bg-(--ui-row-active-background)'+ : 'border-(--ui-stroke-secondary) hover:border-(--ui-stroke-primary) hover:bg-(--ui-row-hover-background)'+ )}+ onClick={() => setInterfaceMode(mode)}+ type="button"+ >+ <span className={cn('text-[0.68rem] font-medium', active ? 'text-foreground' : 'text-muted-foreground/80')}>+ {copy.label}+ </span>+ <span className="text-[0.62rem] leading-snug text-(--ui-text-tertiary)">{copy.description}</span>+ </button>+ )+}+export function LayoutPicker() {const { t } = useI18n()const presets = useContributions(LAYOUTS_AREA)+ const mode = useStore($interfaceMode)const [name, setName] = useState('')const [saving, setSaving] = useState(false)- const templates = presets.filter(p => !isUserPreset(p.id) && isLayoutNode(p.data))- const custom = presets.filter(p => isUserPreset(p.id) && isLayoutNode(p.data))+ // Simple is always the Basic arrangement — its shelf is the two sidebar+ // sides (layout-presets.ts) and nothing to arrange or save. The decks and+ // saved layouts are Advanced.+ const shown = shownInMode(mode)+ const arranges = shown({ tier: 'advanced' })+ const layouts = presets.filter(p => isLayoutNode(p.data) && shown({ tier: layoutPresetTier(p.id) }))+ const templates = layouts.filter(p => !isUserPreset(p.id))+ const custom = layouts.filter(p => isUserPreset(p.id))const commitSave = () => {if (!name.trim()) {@@ -129,6 +192,16 @@ export function LayoutPicker() {return (<div className="flex flex-col gap-4">+ <section className="flex flex-col gap-2">+ <PickerSectionLabel>{t.interfaceMode.title}</PickerSectionLabel>+ <div className="grid grid-cols-2 gap-2">+ {INTERFACE_MODES.map(mode => (+ <ModeCard key={mode} mode={mode} />+ ))}+ </div>+ <p className="text-[0.62rem] text-(--ui-text-quaternary)">{t.interfaceMode.hint}</p>+ </section>+<section className="flex flex-col gap-2"><PickerSectionLabel>{t.zones.templates}</PickerSectionLabel><div className="grid grid-cols-4 gap-2">@@ -138,65 +211,70 @@ export function LayoutPicker() {</div></section>- <section className="flex flex-col gap-2">- <PickerSectionLabel>{t.zones.custom}</PickerSectionLabel>- {custom.length > 0 && (- <div className="grid grid-cols-4 gap-2">- {custom.map(preset => (- <PresetCard key={`${preset.source ?? 'core'}:${preset.id}`} preset={preset} />- ))}- </div>- )}- <Button- className="h-8 w-full justify-center gap-1.5 border border-dashed border-(--ui-stroke-secondary) text-muted-foreground hover:border-(--ui-stroke-primary) hover:text-foreground"- onClick={() => $zoneEditorOpen.set(true)}- size="sm"- variant="ghost"- >- <Codicon name="add" size="0.875rem" />- {t.zones.newGridLayout}- </Button>- </section>+ {/* Arranging and saving are Advanced: Simple is always Basic. */}+ {arranges && (+ <>+ <section className="flex flex-col gap-2">+ <PickerSectionLabel>{t.zones.custom}</PickerSectionLabel>+ {custom.length > 0 && (+ <div className="grid grid-cols-4 gap-2">+ {custom.map(preset => (+ <PresetCard key={`${preset.source ?? 'core'}:${preset.id}`} preset={preset} />+ ))}+ </div>+ )}+ <Button+ className="h-8 w-full justify-center gap-1.5 border border-dashed border-(--ui-stroke-secondary) text-muted-foreground hover:border-(--ui-stroke-primary) hover:text-foreground"+ onClick={() => $zoneEditorOpen.set(true)}+ size="sm"+ variant="ghost"+ >+ <Codicon name="add" size="0.875rem" />+ {t.zones.newGridLayout}+ </Button>+ </section>- {/* Save-current lives behind a reveal so the raw input doesn't clash+ {/* Save-current lives behind a reveal so the raw input doesn't clashwith the card grid until it's actually needed. */}- {saving ? (- <form- className="flex items-center gap-1.5"- onSubmit={e => {- e.preventDefault()- commitSave()- }}- >- <Input- autoFocus- className="h-7 flex-1 text-xs"- onChange={e => setName(e.target.value)}- onKeyDown={e => {- if (e.key === 'Escape') {- setSaving(false)- setName('')- }- }}- placeholder={t.zones.nameLayoutPlaceholder}- value={name}- />- <Button disabled={!name.trim()} size="sm" type="submit" variant="outline">- {t.common.save}- </Button>- <Button onClick={() => setSaving(false)} size="sm" variant="ghost">- {t.common.cancel}- </Button>- </form>- ) : (- <button- className="flex items-center gap-1.5 self-start text-xs text-muted-foreground/80 transition-colors hover:text-foreground"- onClick={() => setSaving(true)}- type="button"- >- <Codicon name="save" size="0.8125rem" />- {t.zones.saveCurrentAs}- </button>+ {saving ? (+ <form+ className="flex items-center gap-1.5"+ onSubmit={e => {+ e.preventDefault()+ commitSave()+ }}+ >+ <Input+ autoFocus+ className="h-7 flex-1 text-xs"+ onChange={e => setName(e.target.value)}+ onKeyDown={e => {+ if (e.key === 'Escape') {+ setSaving(false)+ setName('')+ }+ }}+ placeholder={t.zones.nameLayoutPlaceholder}+ value={name}+ />+ <Button disabled={!name.trim()} size="sm" type="submit" variant="outline">+ {t.common.save}+ </Button>+ <Button onClick={() => setSaving(false)} size="sm" variant="ghost">+ {t.common.cancel}+ </Button>+ </form>+ ) : (+ <button+ className="flex items-center gap-1.5 self-start text-xs text-muted-foreground/80 transition-colors hover:text-foreground"+ onClick={() => setSaving(true)}+ type="button"+ >+ <Codicon name="save" size="0.8125rem" />+ {t.zones.saveCurrentAs}+ </button>+ )}+ </>)}</div>)diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex fee005446a6..bfc050225a5 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -2835,6 +2835,19 @@ export const ar = defineLocale({fallbackTitle: 'معاينة'}},+ interfaceMode: {+ title: 'وضع الواجهة',+ hint: 'يغيّر ما يظهر، وليس ما يستطيع Hermes فعله.',+ sessionNote: 'يحدده الوضع البسيط. التغيير هنا يستمر لهذه الجلسة فقط؛ بدّل إلى المتقدم لجعله خيارك.',+ simple: {+ label: 'بسيط',+ description: 'للتحدث مع Hermes. الشريط الجانبي والدردشة؛ بلا طرفية أو لوحات ملفات أو فروقات.'+ },+ advanced: {+ label: 'متقدم',+ description: 'للمطورين. الطرفية والملفات والفروقات وشريط الحالة والتخطيطات، كما أعددتها.'+ }+ },zones: {showTabStrip: 'إظهار علامات التبويب',hideTabStrip: 'إخفاء علامات التبويب',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex b3492c76da5..dbcc6c02262 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -665,6 +665,7 @@ export const en: Translations = {'view.toggleStatusbar': 'Toggle status bar','view.toggleTabStrip': 'Toggle tabs','view.toggleProfileRail': 'Toggle profile rail',+ 'view.toggleSimpleMode': 'Toggle Simple mode','view.showFiles': 'Show file browser','view.showBrowser': 'Open browser','view.toggleHud': 'Toggle HUD mode',@@ -4229,6 +4230,20 @@ export const en: Translations = {}},+ interfaceMode: {+ title: 'Interface mode',+ hint: 'Changes what is shown, not what Hermes can do.',+ sessionNote: 'Set by Simple mode. A change here lasts for this session; switch to Advanced to make it yours.',+ simple: {+ label: 'Simple',+ description: 'For talking to Hermes. Sidebar and chat; no terminal, file or diff panes.'+ },+ advanced: {+ label: 'Advanced',+ description: 'For developers. Terminal, files, diffs, statusbar and layouts, as you set them.'+ }+ },+zones: {showTabStrip: 'Show tabs',hideTabStrip: 'Hide tabs',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 7ede310be56..d1841e290a5 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -3298,6 +3298,22 @@ export const ja = defineLocale({}},+ interfaceMode: {+ title: 'インターフェースモード',+ hint: '表示される内容が変わるだけで、Hermes にできることは変わりません。',+ sessionNote:+ 'シンプルモードで設定されています。ここでの変更はこのセッション中のみ有効です。自分の設定にするには詳細モードに切り替えてください。',+ simple: {+ label: 'シンプル',+ description:+ 'Hermes と話すための表示。サイドバーとチャットのみ。ターミナル、ファイル、差分のペインは表示しません。'+ },+ advanced: {+ label: '詳細',+ description: '開発者向け。ターミナル、ファイル、差分、ステータスバー、レイアウトを設定したとおりに。'+ }+ },+zones: {showTabStrip: 'タブを表示',hideTabStrip: 'タブを隠す',diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex 74615b24760..29bd3d24ed1 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -339,6 +339,7 @@ export const ru = defineLocale({'view.toggleStatusbar': 'Показать / скрыть строку состояния','view.toggleTabStrip': 'Показать / скрыть вкладки','view.toggleProfileRail': 'Показать / скрыть панель профилей',+ 'view.toggleSimpleMode': 'Переключить простой режим','view.showFiles': 'Показать браузер файлов','view.showBrowser': 'Открыть браузер','view.toggleHud': 'Включить / выключить режим HUD',@@ -3583,6 +3584,20 @@ export const ru = defineLocale({fallbackTitle: 'Предпросмотр'}},+ interfaceMode: {+ title: 'Режим интерфейса',+ hint: 'Меняет то, что показано, а не то, что умеет Hermes.',+ sessionNote:+ 'Задано простым режимом. Изменение здесь действует до конца сеанса; переключитесь в расширенный, чтобы сделать его своим.',+ simple: {+ label: 'Простой',+ description: 'Для общения с Hermes. Боковая панель и чат; без терминала, файлов и панелей diff.'+ },+ advanced: {+ label: 'Расширенный',+ description: 'Для разработчиков. Терминал, файлы, diff, строка состояния и раскладки — как вы их настроили.'+ }+ },zones: {showTabStrip: 'Показать вкладки',hideTabStrip: 'Скрыть вкладки',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 5ec10410909..1ea4fa38e12 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -3650,6 +3650,14 @@ export interface Translations {}}+ interfaceMode: {+ title: string+ hint: string+ sessionNote: string+ simple: { label: string; description: string }+ advanced: { label: string; description: string }+ }+zones: {showTabStrip: stringhideTabStrip: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex cb42f2c867d..8baf0db46bc 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -3254,6 +3254,20 @@ export const zhHant = defineLocale({}},+ interfaceMode: {+ title: '介面模式',+ hint: '只改變顯示的內容,不改變 Hermes 的能力。',+ sessionNote: '由簡潔模式設定。此處的變更僅在本次工作階段內生效;切換到進階模式即可保留為你的設定。',+ simple: {+ label: '簡潔',+ description: '用於與 Hermes 對話。只有側邊欄和聊天;沒有終端機、檔案或差異面板。'+ },+ advanced: {+ label: '進階',+ description: '面向開發者。終端機、檔案、差異、狀態列和版面配置,按你的設定顯示。'+ }+ },+zones: {showTabStrip: '顯示分頁',hideTabStrip: '隱藏分頁',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex fb28a58ad5b..a7f674cec89 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -383,6 +383,7 @@ export const zh = defineLocale({'view.toggleStatusbar': '切换状态栏','view.toggleTabStrip': '切换标签','view.toggleProfileRail': '切换配置档案栏',+ 'view.toggleSimpleMode': '切换简洁模式','view.showFiles': '显示文件浏览器','view.showBrowser': '打开浏览器','view.showTerminal': '显示终端',@@ -4036,6 +4037,20 @@ export const zh = defineLocale({}},+ interfaceMode: {+ title: '界面模式',+ hint: '只改变显示的内容,不改变 Hermes 的能力。',+ sessionNote: '由简洁模式设定。此处的更改仅在本次会话内生效;切换到高级模式即可保留为你的设置。',+ simple: {+ label: '简洁',+ description: '用于与 Hermes 对话。只有侧边栏和聊天;没有终端、文件或差异面板。'+ },+ advanced: {+ label: '高级',+ description: '面向开发者。终端、文件、差异、状态栏和布局,按你的设置显示。'+ }+ },+zones: {showTabStrip: '显示标签',hideTabStrip: '隐藏标签',diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.mdindex 075b2a1bf35..862361e64c8 100644--- a/website/docs/user-guide/desktop.md+++ b/website/docs/user-guide/desktop.md@@ -128,6 +128,17 @@ The app is built for working on several things at once:- **Multiple windows** — **Cmd/Ctrl+Shift+N** opens a new window, and any session can be popped out via its context menu (**New window**) or from the command palette. A popped-out window renders that single chat without the global sidebar — handy for parking a long-running session on another monitor. Live agent output streams into every window showing the session.- **Panes** — **Cmd/Ctrl+B** toggles the left sidebar, **Cmd/Ctrl+J** the right one, and **Cmd/Ctrl+\\** swaps which side the sidebars sit on.+#### Interface mode++The layout editor (titlebar button, or **Cmd/Ctrl+Shift+\\**) opens with an **Interface mode** choice — also under **Settings → Appearance → Window & layout** and as *Simple mode* in the command palette. It changes what is shown, not what Hermes can do.++- **Advanced** (default) is the app exactly as you have set it up. Picking it writes nothing.+- **Simple** is chat-first: the statusbar, profile rail, terminal, file browser and review panes, the technical tool-call view, inline code diffs, and the Artifacts / Scheduled jobs rows rest out of the way (Capabilities and Messaging stay — they are how you set Hermes up); thinking starts collapsed; session rows show the title, a preview and when they were last active. The titlebar keeps Settings and the layout editor. Simple is always the *Basic* arrangement; its one layout choice is *Sidebar left* or *Sidebar right*. The templates and saved layouts are Advanced.++A layout says what is on screen, not just where things sit: applying one opens every pane it places and closes the ones it leaves *resting*, so **Ctrl+`**, **Cmd/Ctrl+J** and **Cmd/Ctrl+G** always agree with what you see. *Basic* is sessions and chat with the terminal resting as a collapsed rail under the chat and the file browser and review resting in a right column — **Ctrl+`** opens the terminal under the chat, **Cmd/Ctrl+J** opens the tree on the right. *Focus* keeps files and review as tabs behind the chat, with the same terminal rail. *Default*, *Terminal deck* and *Quad* open everything they place. A layout you save remembers which of its panes were closed.++Simple shadows your preferences instead of overwriting them, so switching back to Advanced restores every setting exactly. Every keybind still works in Simple — **Ctrl+`**, **Cmd/Ctrl+J** and **Cmd/Ctrl+G** open the terminal, file browser and review for the current session, and the next launch is quiet again. With more than one profile the profile rail stays, since it is then the only way to switch. First-run onboarding sets the mode from the layout you pick: *Basic* starts in Simple, *Elite* in Advanced; skipping leaves it on Advanced.+#### Minimize to trayEnable **Settings → Appearance → Window layout → Minimize to tray** to hide minimized windows from the taskbar or Dock while their sessions keep running. The setting is off by default and applies only to this device.