The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed app/src/components/layout/shell/RootShellLayout.tsx
Steven Enamakel461b2d443fae
diff --git a/app/src/components/layout/shell/RootShellLayout.tsx b/app/src/components/layout/shell/RootShellLayout.tsxindex 272ce40a3d..1ad8aaee98 100644--- a/app/src/components/layout/shell/RootShellLayout.tsx+++ b/app/src/components/layout/shell/RootShellLayout.tsx@@ -1,6 +1,7 @@import debugFactory from 'debug';import { type ReactNode, useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';+import { useT } from '../../../lib/i18n/I18nContext';import { useAppDispatch, useAppSelector } from '../../../store/hooks';import {@@ -109,6 +110,25 @@ export default function RootShellLayout({ sidebar, children, unframed }: RootSheconst persistedWidth = clamp(layout.sidebarWidth);const isOpen = layout.sidebarVisible;+ // Collapsed, the sidebar header — the app's stand-in for a title bar, and the+ // row the traffic lights are aligned to — is gone, leaving window controls+ // floating on bare content with no title anywhere. Hand the title bar back to+ // macOS for as long as the rail is collapsed, and take it back on expand.+ //+ // Driven from `isOpen` rather than from `handleOpenChange` so the window+ // agrees with a collapsed state restored from persisted layout on boot, not+ // only with states the user toggles into during this session.+ //+ // Fire-and-forget through `safeInvoke`: this is cosmetic chrome, and the+ // command is a no-op off macOS, so a failure must never break the shell+ // render. Outside Tauri there is no window at all.+ useEffect(() => {+ if (!isTauri()) return;+ void safeInvoke('set_titlebar_for_sidebar', { collapsed: !isOpen }).catch(err => {+ log('titlebar sync failed: %o', err);+ });+ }, [isOpen]);+// Seed persisted geometry once so the selector returns a stable stored// reference on subsequent renders (avoids the new-object memoization warning).useEffect(() => {