Skip to content

Fix: Enable birda binary selection on non-Windows platforms#35

Merged
tphakala merged 1 commit intomainfrom
fix/wizard-birda-path-selection
Feb 15, 2026
Merged

Fix: Enable birda binary selection on non-Windows platforms#35
tphakala merged 1 commit intomainfrom
fix/wizard-birda-path-selection

Conversation

@tphakala
Copy link
Copy Markdown
Owner

@tphakala tphakala commented Feb 15, 2026

Summary

Fixes two issues in the first-time setup wizard:

  • File picker now works correctly on Linux/macOS
  • Corrected misleading message about automatic birda installation

Changes

1. Platform-aware file picker (src/main/ipc/settings.ts:150-164)

The openExecutableDialog handler now detects the platform:

  • Windows: Filters for .exe, .cmd, .bat extensions
  • Linux/macOS: Shows all files (executables don't have extensions)

Previously, the dialog was hardcoded to Windows extensions, preventing users on non-Windows systems from selecting the birda binary.

2. Fixed misleading wizard message

Updated wizard_cli_notFoundHint in all 10 language files:

  • Old: "birda should have been installed automatically..."
  • New: "You can set the path manually if birda is installed, or download it from the link below."

The birda CLI requires separate installation and is not bundled with the GUI.

Test plan

  • On Linux/macOS, open the setup wizard
  • Verify the file picker allows selecting any file (not just .exe)
  • Verify the wizard message no longer mentions automatic installation
  • Test in multiple UI languages

Testing checklist

  • File picker works on Linux
  • File picker works on macOS
  • File picker still works on Windows
  • All language translations are correct

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Updated CLI tool not-found guidance message across all languages to clarify manual path configuration and download options.
    • Improved Windows file dialog filtering for executable selection.

- Make file picker platform-aware in openExecutableDialog handler
  - Windows: Filter for .exe, .cmd, .bat extensions
  - Linux/macOS: Show all files (executables don't have extensions)
- Fix misleading wizard message claiming automatic installation
  - Updated all 10 language translations
  - New message: "You can set the path manually if birda is installed, or download it from the link below"

Fixes #<issue-number>
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @tphakala, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the first-time setup wizard by improving the file selection experience for the birda CLI on non-Windows platforms and by clarifying the installation guidance for birda across all supported languages. These changes aim to provide a more accurate and user-friendly initial setup process.

Highlights

  • Platform-aware file picker: The openExecutableDialog handler now dynamically sets file filters based on the operating system. Windows will filter for .exe, .cmd, .bat files, while Linux/macOS will show all files, resolving an issue where non-Windows users could not select the birda binary.
  • Corrected misleading wizard message: The wizard_cli_notFoundHint message in multiple language files has been updated. The previous message incorrectly implied birda was automatically installed; the new message clarifies that users can manually set the path or download birda.
Changelog
  • messages/de.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/en.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/es.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/fi.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/fr.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/it.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/nl.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/pl.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/pt.json
    • Updated the wizard_cli_notFoundHint message.
  • messages/sv.json
    • Updated the wizard_cli_notFoundHint message.
  • src/main/ipc/settings.ts
    • Modified the fs:open-executable-dialog handler to apply platform-specific file filters.
Activity
  • The author has provided a detailed test plan and testing checklist, outlining steps to verify the file picker functionality on Linux, macOS, and Windows, and to confirm the correctness of all language translations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 15, 2026

Walkthrough

This PR updates the wizard_cli_notFoundHint message across all language translation files, replacing guidance that implied automatic installation with clearer instructions for manual path setting if birda is installed or downloading via a link. Additionally, it introduces platform-specific file filters to the open-executable-dialog handler on Windows.

Changes

Cohort / File(s) Summary
Translation Files - CLI Not Found Hint
messages/de.json, messages/en.json, messages/es.json, messages/fi.json, messages/fr.json, messages/it.json, messages/nl.json, messages/pl.json, messages/pt.json, messages/sv.json
Updated wizard_cli_notFoundHint message across all 10 language files. Changed from implying automatic installation to conditional guidance: manually set path if birda is installed or download via provided link.
IPC Settings Handler
src/main/ipc/settings.ts
Implemented platform-specific file filters for open-executable-dialog. Windows now filters for Executables (exe, cmd, bat) plus All Files; other platforms use All Files only. Fixes invalid empty string in previous Windows filter configuration.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the primary change: enabling birda binary selection on non-Windows platforms by fixing platform-specific file filter handling.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/wizard-birda-path-selection

No actionable comments were generated in the recent review. 🎉


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.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request successfully addresses the issue of selecting the birda binary on non-Windows platforms by implementing platform-aware file filters in the Electron main process. It also improves the user experience by correcting a misleading message in the setup wizard across all supported languages, clarifying that the birda CLI requires manual installation and is not bundled with the GUI. The changes are clean, follow the project's architectural patterns (such as using shared types and centralized IPC handlers), and maintain consistency across translations. No issues of medium or higher severity were identified during the review.

@tphakala tphakala merged commit d879fbb into main Feb 15, 2026
5 checks passed
@tphakala tphakala deleted the fix/wizard-birda-path-selection branch February 15, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant