@@ -22,7 +22,7 @@ import {
2222 useLinkedThreadPullRequest ,
2323} from "./ThreadStatusIndicators" ;
2424import { ProjectFavicon } from "./ProjectFavicon" ;
25- import { LinuxIcon } from "./LinuxIcon " ;
25+ import { getEnvironmentIcon } from "./Icons " ;
2626import { useAtomValue } from "@effect/atom-react" ;
2727import { autoAnimate } from "@formkit/auto-animate" ;
2828import React , { useCallback , useEffect , memo , useMemo , useRef , useState } from "react" ;
@@ -397,8 +397,8 @@ export const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThr
397397 const remoteEnvLabel = environment ?. label ?? null ;
398398 // A desktop-local secondary backend (e.g. the WSL backend) shows up as a
399399 // bearer environment whose connection id is prefixed "local:". It runs on the
400- // user's own machine, so the cloud icon is misleading — label it "Local" and
401- // suppress the cloud icon (the project header already shows a container icon
400+ // user's own machine, so the cloud icon is misleading, label it "Local" and
401+ // suppress the cloud icon (the project header already shows a Linux icon
402402 // for desktop-local projects, see sidebarProjectGrouping).
403403 const isDesktopLocalThread =
404404 environment !== null && isDesktopLocalConnectionTarget ( environment . entry . target ) ;
@@ -1123,6 +1123,10 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
11231123 isManualProjectSorting,
11241124 dragHandleProps,
11251125 } = props ;
1126+ const EnvironmentIcon = getEnvironmentIcon ( {
1127+ isPrimary : false ,
1128+ isDesktopLocal : project . allRemoteMembersAreDesktopLocal ,
1129+ } ) ;
11261130 const threadSortOrder = useClientSettings < SidebarThreadSortOrder > (
11271131 ( settings ) => settings . sidebarThreadSortOrder ,
11281132 ) ;
@@ -2328,7 +2332,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
23282332 }
23292333 >
23302334 { project . allRemoteMembersAreDesktopLocal ? (
2331- < LinuxIcon className = "size-3" />
2335+ < EnvironmentIcon className = "size-3" />
23322336 ) : (
23332337 < CloudIcon className = "size-3" />
23342338 ) }
0 commit comments