Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(web): show text input for adding projects on Linux desktop (#1075)
eggfriedricefb18b2de1619
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsxindex beacd1d94..bcef110c1 100644--- a/apps/web/src/components/Sidebar.tsx+++ b/apps/web/src/components/Sidebar.tsx@@ -39,7 +39,7 @@ import { useLocation, useNavigate, useParams } from "@tanstack/react-router";import { useAppSettings } from "../appSettings";import { isElectron } from "../env";import { APP_STAGE_LABEL, APP_VERSION } from "../branding";-import { isMacPlatform, newCommandId, newProjectId } from "../lib/utils";+import { isLinuxPlatform, isMacPlatform, newCommandId, newProjectId } from "../lib/utils";import { useStore } from "../store";import { shortcutLabelForCommand } from "../keybindings";import { derivePendingApprovals, derivePendingUserInputs } from "../session-logic";@@ -305,7 +305,8 @@ export default function Sidebar() {const clearSelection = useThreadSelectionStore((s) => s.clearSelection);const removeFromSelection = useThreadSelectionStore((s) => s.removeFromSelection);const setSelectionAnchor = useThreadSelectionStore((s) => s.setAnchor);- const shouldBrowseForProjectImmediately = isElectron;+ const isLinuxDesktop = isElectron && isLinuxPlatform(navigator.platform);+ const shouldBrowseForProjectImmediately = isElectron && !isLinuxDesktop;const shouldShowProjectPathEntry = addingProject && !shouldBrowseForProjectImmediately;const projectCwdById = useMemo(() => new Map(projects.map((project) => [project.id, project.cwd] as const)),diff --git a/apps/web/src/lib/utils.ts b/apps/web/src/lib/utils.tsindex 08a5de91e..b5834606b 100644--- a/apps/web/src/lib/utils.ts+++ b/apps/web/src/lib/utils.ts@@ -16,6 +16,10 @@ export function isWindowsPlatform(platform: string): boolean {return /^win(dows)?/i.test(platform);}+export function isLinuxPlatform(platform: string): boolean {+ return /linux/i.test(platform);+}+export function randomUUID(): string {if (typeof crypto.randomUUID === "function") {return crypto.randomUUID();