Fix sidebar web port icon and remove unreachable fallback in WebPortInspector

- Replace TerminalIcon with Globe for the web-port button in Sidebar.tsx
- Remove dead code branch in WebPortInspector.ts: after the success guard,
  both results are failures, so propagate the IPv4 error directly (tried first,
  more commonly relevant)
This commit is contained in:
Cursor Agent committed 2026-04-17 08:18:34 +00:00
1 parent b0bc101eb6
commit 5d70913a22
2 files changed
+2 -5

No files matched your search

@@ -164,10 +164,6 @@ const makeWebPortInspector = Effect.gen(function* () {
return false;
}
if (ipv6Result._tag === "Failure") {
return yield* Effect.failCause(ipv6Result.cause);
}
return yield* Effect.failCause(ipv4Result.cause);
});
+2 -1
View File
@@ -8,6 +8,7 @@ import {
SearchIcon,
SettingsIcon,
SquarePenIcon,
Globe,
TerminalIcon,
TriangleAlertIcon,
} from "lucide-react";
@@ -674,7 +675,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
className={`inline-flex cursor-pointer items-center justify-center rounded-sm ${terminalStatus.colorClass} outline-hidden transition-colors hover:bg-accent hover:text-sky-700 focus-visible:ring-1 focus-visible:ring-ring dark:hover:text-sky-200`}
onClick={handleTerminalStatusClick}
>
<TerminalIcon className={`size-3 ${terminalStatus.pulse ? "animate-pulse" : ""}`} />
<Globe className={`size-3 ${terminalStatus.pulse ? "animate-pulse" : ""}`} />
</button>
))}
<div className="flex min-w-12 justify-end">