Open desktop folder picker immediately when adding projects in Electron by juliusmarminge · Pull Request #697 · pingdotgg/t3code

@juliusmarminge

- add `shouldOpenProjectFolderPickerImmediately` to centralize Sidebar behavior
- trigger folder browse directly when adding a project in desktop Electron
- keep manual path entry for mobile layouts and non-Electron, with tests for all cases

@github-actions bot added the vouch:trusted

PR author is trusted by repo permissions or the VOUCHED list.

label

Mar 9, 2026

cursor[bot]

@juliusmarminge

- remove mobile-width gating from sidebar project picker behavior
- simplify picker logic/tests to depend only on Electron runtime

@juliusmarminge

- Replace `shouldOpenProjectFolderPickerImmediately` with direct `isElectron` usage
- Remove obsolete `Sidebar.logic.ts` and its tests

cursor[bot]

macroscopeapp[bot]

cursor[bot]

@juliusmarminge

- Use a toast error for add-project failures during immediate folder browse
- Keep inline add-project error state for non-immediate flows
- Include `shouldBrowseForProjectImmediately` in callback dependencies