fix(web): drop per-thread container icon when the whole project is WSL

The project header now carries the container icon for WSL-only
project groups (943e1ed9), so repeating the icon on every thread
inside the group is just noise: a WSL project's threads are
implicitly all WSL.

Skip the per-thread indicator when the thread's env is desktopLocal.
The CloudIcon path for true remote envs stays in place because the
project header doesn't differentiate "remote project A" from "remote
project B" - the cloud icon on the thread row carries the env label
tooltip for those.
This commit is contained in:
Josh Gratton committed 2026-05-18 10:15:05 -04:00
1 parent 3558e216c6
commit a7a2e1bd15
1 file changed
+3 -9
+3 -9
View File
@@ -687,23 +687,17 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
) : null}
<span className={threadMetaClassName}>
<span className="inline-flex items-center gap-1">
{isRemoteThread && (
{isRemoteThread && !isDesktopLocalThread && (
<Tooltip>
<TooltipTrigger
render={
<span
aria-label={
threadEnvironmentLabel ?? (isDesktopLocalThread ? "Local" : "Remote")
}
aria-label={threadEnvironmentLabel ?? "Remote"}
className="inline-flex h-5 items-center justify-center"
/>
}
>
{isDesktopLocalThread ? (
<ContainerIcon className="block size-3 text-muted-foreground/60" />
) : (
<CloudIcon className="block size-3 text-muted-foreground/60" />
)}
<CloudIcon className="block size-3 text-muted-foreground/60" />
</TooltipTrigger>
<TooltipPopup side="top">{threadEnvironmentLabel}</TooltipPopup>
</Tooltip>