Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(sidebar): remove duplicate "New Chat" button

Steven Enamakel82e7d64224d7
diff --git a/app/src/components/layout/shell/SidebarHeader.tsx b/app/src/components/layout/shell/SidebarHeader.tsx
index c55ef3da9d..9a26ebb769 100644
--- a/app/src/components/layout/shell/SidebarHeader.tsx
+++ b/app/src/components/layout/shell/SidebarHeader.tsx
@@ -29,8 +29,12 @@ export default function SidebarHeader() {
// turns it into a right-aligned row. Right-aligned so the macOS traffic
// lights (top-left, overlay title bar) sit in the empty left space — the
// icons stay clear of the window controls and inline with them (no extra
- // top padding).
- <SidebarHeaderShell className="flex-row items-center justify-end gap-1">
+ // top padding). `data-tauri-drag-region` lives directly on the primitive
+ // (rather than a wrapping div in `AppSidebar`) so the header band is
+ // draggable window chrome without an extra hand-rolled layout element.
+ <SidebarHeaderShell
+ data-tauri-drag-region
+ className="flex-row items-center justify-end gap-1">
<div className="flex items-center gap-0.5">
{/* Keyboard shortcuts — one-click open of the help directory (also ? / ⌘/). */}
<Tooltip label={t('shortcuts.title')}>
@@ -41,20 +45,7 @@ export default function SidebarHeader() {
className={ICON_BTN}
analyticsId="sidebar-header-shortcuts"
aria-label={t('shortcuts.title')}>
- <svg className="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={1.8}
- d="M4 6h16a1 1 0 011 1v10a1 1 0 01-1 1H4a1 1 0 01-1-1V7a1 1 0 011-1z"
- />
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={1.8}
- d="M7 10h.01M11 10h.01M15 10h.01M17 10h.01M7 13h.01M9 16h6"
- />
- </svg>
+ <LuKeyboard className="h-4 w-4" />
</Button>
</Tooltip>
@@ -66,20 +57,7 @@ export default function SidebarHeader() {
className={ICON_BTN}
analyticsId="sidebar-header-settings"
aria-label={t('nav.settings')}>
- <svg className="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={1.8}
- d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
- />
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={1.8}
- d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
- />
- </svg>
+ <LuSettings className="h-4 w-4" />
</Button>
</Tooltip>
@@ -92,14 +70,7 @@ export default function SidebarHeader() {
className={ICON_BTN}
analyticsId="sidebar-header-collapse"
aria-label={t('chat.hideSidebar')}>
- <svg className="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={1.8}
- d="M15 19l-7-7 7-7M20 5v14"
- />
- </svg>
+ <LuPanelLeftClose className="h-4 w-4" />
</Button>
</Tooltip>
</div>