diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index e8c5bbe0b1..732d30e34e 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -3,6 +3,7 @@ import { ArrowUpDownIcon, ChevronRightIcon, CloudIcon, + ContainerIcon, FolderPlusIcon, SearchIcon, SettingsIcon, @@ -355,8 +356,15 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP const remoteEnvSavedLabel = useSavedEnvironmentRegistryStore( (s) => s.byId[thread.environmentId]?.label ?? null, ); + // desktopLocal entries (e.g. the WSL backend) live in the + // saved-environment registry alongside true remote envs, but they + // run on the user's own machine. The cloud icon is misleading for + // them, so we render a container icon instead. + const isDesktopLocalThread = useSavedEnvironmentRegistryStore((s) => + Boolean(s.byId[thread.environmentId]?.desktopLocal), + ); const threadEnvironmentLabel = isRemoteThread - ? (remoteEnvLabel ?? remoteEnvSavedLabel ?? "Remote") + ? (remoteEnvLabel ?? remoteEnvSavedLabel ?? (isDesktopLocalThread ? "Local" : "Remote")) : null; // For grouped projects, the thread may belong to a different environment // than the representative project. Look up the thread's own project cwd @@ -679,12 +687,18 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP } > - + {isDesktopLocalThread ? ( + + ) : ( + + )} {threadEnvironmentLabel}