From 2377263a8ebc828d31755ad9741157d44a65b3a6 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 4 Mar 2026 12:15:12 +0200 Subject: [PATCH] fix: clean up VSCode settings duplication and hide irrelevant sections Remove mermaidRendering, userMessageRendering, stickyUserHeader from Appearance in VSCode (already in Chat) Hide Navigation settings (navRail, terminalQuickKeys) in VSCode Appearance Hide Shortcuts section entirely in VSCode --- .../sections/openchamber/OpenChamberPage.tsx | 13 +++---------- .../openchamber/OpenChamberVisualSettings.tsx | 2 +- packages/ui/src/lib/settings/metadata.ts | 1 + 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/ui/src/components/sections/openchamber/OpenChamberPage.tsx b/packages/ui/src/components/sections/openchamber/OpenChamberPage.tsx index c539bc34..0a5f394f 100644 --- a/packages/ui/src/components/sections/openchamber/OpenChamberPage.tsx +++ b/packages/ui/src/components/sections/openchamber/OpenChamberPage.tsx @@ -103,7 +103,7 @@ const ShortcutsSectionContent: React.FC = () => { // Visual section: Theme Mode, Font Size, Spacing, Corner Radius, Input Bar Offset (mobile), Nav Rail const VisualSectionContent: React.FC = () => { const isVSCode = isVSCodeRuntime(); - const visibleSettings: Array<'theme' | 'pwaInstallName' | 'fontSize' | 'terminalFontSize' | 'spacing' | 'cornerRadius' | 'inputBarOffset' | 'terminalQuickKeys' | 'navRail' | 'mermaidRendering' | 'userMessageRendering' | 'stickyUserHeader'> = [ + return { 'spacing', 'cornerRadius', 'inputBarOffset', - 'terminalQuickKeys', - 'navRail', - ]; - - if (isVSCode) { - visibleSettings.push('mermaidRendering', 'userMessageRendering', 'stickyUserHeader'); - } - - return ; + ...(!isVSCode ? ['terminalQuickKeys' as const, 'navRail' as const] : []), + ]} />; }; // Chat section: Default Tool Output, User message rendering, Diff layout, Mobile status bar, Show reasoning traces, Queue mode, Persist draft diff --git a/packages/ui/src/components/sections/openchamber/OpenChamberVisualSettings.tsx b/packages/ui/src/components/sections/openchamber/OpenChamberVisualSettings.tsx index 038ec89e..1515730a 100644 --- a/packages/ui/src/components/sections/openchamber/OpenChamberVisualSettings.tsx +++ b/packages/ui/src/components/sections/openchamber/OpenChamberVisualSettings.tsx @@ -418,7 +418,7 @@ export const OpenChamberVisualSettings: React.FC
Install App Name - Used by Chrome install prompt before install. + Used by PWA installation process.
!ctx.isVSCode, }, { slug: 'sessions',