Skip to content

fix(web): show text input for adding projects on Linux desktop#1075

Open
eggfriedrice24 wants to merge 1 commit intopingdotgg:mainfrom
eggfriedrice24:feat/linux-manual-project-path
Open

fix(web): show text input for adding projects on Linux desktop#1075
eggfriedrice24 wants to merge 1 commit intopingdotgg:mainfrom
eggfriedrice24:feat/linux-manual-project-path

Conversation

@eggfriedrice24
Copy link
Contributor

@eggfriedrice24 eggfriedrice24 commented Mar 14, 2026

Summary

On Linux/Wayland, the GTK file picker is broken for folder selection in Electron apps, completely blocking adding projects. This shows the web-style text input on Linux desktop instead of immediately opening the native file picker.

Closes #966
Closes #270

Changes

  • Skip the immediate file picker open on Linux desktop (isElectron && /linux/i.test(navigator.platform))
  • Linux users now see the path text input with an Add button (same UX as web mode)
  • Mac/Windows behavior is unchanged

Test plan

  • On Linux desktop: clicking "+" shows text input instead of opening file picker
  • On Mac/Windows desktop: clicking "+" still opens native file picker immediately
  • On web: behavior unchanged
  • Typing a path and pressing Enter adds the project

Note

Show text input for adding projects on Linux desktop in Electron

On Linux, the native file browser dialog is not triggered immediately when adding a project in Electron. Instead, Sidebar.tsx now detects Linux via a case-insensitive check on navigator.platform and shows the project path text input instead.

Macroscope summarized 387d58a.

image

@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8b732b6d-859e-4696-a5c9-3632ceb9963b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.

OpenGrep is compatible with Semgrep configurations. Add an opengrep.yml or semgrep.yml configuration file to your project to enable OpenGrep analysis.

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: allow manual directory path entry when adding projects Stuck on "Picking folder..." and "Adding..." when selecting project

2 participants