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