| ... | @@ -39,7 +39,7 @@ import { useLocation, useNavigate, useParams } from "@tanstack/react-router"; | ... | @@ -39,7 +39,7 @@ import { useLocation, useNavigate, useParams } from "@tanstack/react-router"; |
| 39 | import { useAppSettings } from "../appSettings"; | 39 | import { useAppSettings } from "../appSettings"; |
| 40 | import { isElectron } from "../env"; | 40 | import { isElectron } from "../env"; |
| 41 | import { APP_STAGE_LABEL, APP_VERSION } from "../branding"; | 41 | import { APP_STAGE_LABEL, APP_VERSION } from "../branding"; |
| 42 | import { isMacPlatform, newCommandId, newProjectId } from "../lib/utils"; | 42 | import { isLinuxPlatform, isMacPlatform, newCommandId, newProjectId } from "../lib/utils"; |
| 43 | import { useStore } from "../store"; | 43 | import { useStore } from "../store"; |
| 44 | import { shortcutLabelForCommand } from "../keybindings"; | 44 | import { shortcutLabelForCommand } from "../keybindings"; |
| 45 | import { derivePendingApprovals, derivePendingUserInputs } from "../session-logic"; | 45 | import { derivePendingApprovals, derivePendingUserInputs } from "../session-logic"; |
| ... | @@ -305,7 +305,8 @@ export default function Sidebar() { | ... | @@ -305,7 +305,8 @@ export default function Sidebar() { |
| 305 | const clearSelection = useThreadSelectionStore((s) => s.clearSelection); | 305 | const clearSelection = useThreadSelectionStore((s) => s.clearSelection); |
| 306 | const removeFromSelection = useThreadSelectionStore((s) => s.removeFromSelection); | 306 | const removeFromSelection = useThreadSelectionStore((s) => s.removeFromSelection); |
| 307 | const setSelectionAnchor = useThreadSelectionStore((s) => s.setAnchor); | 307 | const setSelectionAnchor = useThreadSelectionStore((s) => s.setAnchor); |
| 308 | const shouldBrowseForProjectImmediately = isElectron; | 308 | const isLinuxDesktop = isElectron && isLinuxPlatform(navigator.platform); |
| | 309 | const shouldBrowseForProjectImmediately = isElectron && !isLinuxDesktop; |
| 309 | const shouldShowProjectPathEntry = addingProject && !shouldBrowseForProjectImmediately; | 310 | const shouldShowProjectPathEntry = addingProject && !shouldBrowseForProjectImmediately; |
| 310 | const projectCwdById = useMemo( | 311 | const projectCwdById = useMemo( |
| 311 | () => new Map(projects.map((project) => [project.id, project.cwd] as const)), | 312 | () => new Map(projects.map((project) => [project.id, project.cwd] as const)), |