@@ -31,14 +31,13 @@ import { selectActiveRightPanel, useRightPanelStore } from "../rightPanelStore";
3131import { selectThreadTerminalUiState , useTerminalUiStateStore } from "../terminalUiStateStore" ;
3232import { cn , isMacPlatform } from "../lib/utils" ;
3333import { primaryServerKeybindingsAtom } from "../state/server" ;
34- import { useEnvironmentIdentificationMode , useLegacySidebarEnabled } from "../hooks/useSettings" ;
34+ import { useEnvironmentIdentificationMode } from "../hooks/useSettings" ;
3535import {
3636 PanelAnimationSuppressionProvider ,
3737 usePanelAnimationSettings ,
3838 usePanelNavigationSuppression ,
3939} from "../panelAnimations" ;
4040import { BackgroundThreadAnnouncer } from "./BackgroundThreadAnnouncer" ;
41- import LegacyThreadSidebar from "./LegacySidebar" ;
4241import ThreadSidebar from "./Sidebar" ;
4342import { SidebarBrandWidthProbe } from "./sidebar/SidebarChrome" ;
4443import { isAppModalPage } from "./sidebar/mainAppLocation" ;
@@ -403,7 +402,6 @@ function SidebarControl() {
403402
404403export function AppSidebarLayout ( { children } : { children : ReactNode } ) {
405404 const sidebarArea = workspaceAreaProps ( "sidebar" , 0 , "Threads" ) ;
406- const legacySidebarEnabled = useLegacySidebarEnabled ( ) ;
407405 const [ sidebarRouteReveal ] = useState < SidebarRouteReveal > ( ( ) => ( {
408406 observedKey : null ,
409407 pendingKey : null ,
@@ -470,11 +468,7 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
470468 } }
471469 style = { windowControlsInsetStyle }
472470 >
473- { legacySidebarEnabled ? (
474- < LegacyThreadSidebar routeReveal = { sidebarRouteReveal } />
475- ) : (
476- < ThreadSidebar routeReveal = { sidebarRouteReveal } />
477- ) }
471+ < ThreadSidebar routeReveal = { sidebarRouteReveal } />
478472 < SidebarRail onDoubleClick = { resetSidebarWidth } />
479473 </ Sidebar >
480474 { children }
0 commit comments