Skip to content

[Bitwarden] Add Windows support - #21940

Merged
raycastbot merged 21 commits into
raycast:mainfrom
jomifepe:ext/bitwarden
Oct 15, 2025
Merged

raycastbot merged 21 commits into
raycast:mainfrom
jomifepe:ext/bitwarden

Conversation

@jomifepe

@jomifepe jomifepe commented Oct 2, 2025 •

Copy link
Copy Markdown
Contributor

Description

#21338

Add support for Windows.

Changes:

  • Add Windows to platforms
  • Download Windows Bitwarden CLI binary
  • Use OS-specific commands in BugReportCollectDataAction action
  • Fix posix node import
  • Adapt shortcuts to work with alt
  • Adapt some descriptions for Windows
  • Make lock vault on system lock & sleep feature macOS specific. Haven't found a way to do it in Windows.
  • Update Raycast and some other dependencies
  • Breaking change: Change all macOS shortcuts to use option instead of command. I've seen multiple shortcuts clash with Raycast ones, so this was due to be changed.

Checklist

- Merge branch \'contributions/merge-1759449361682\'
- Pull contributions
- feat: windows support
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: bitwarden Issues related to the bitwarden extension OP is author The OP of the PR is the author of the extension labels Oct 2, 2025
@raycastbot

raycastbot commented Oct 2, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@jomifepe jomifepe changed the title Update bitwarden extension [Bitwarden] Add Windows support Oct 2, 2025
@raycastbot raycastbot added the OP is contributor The OP of the PR is a contributor of the extension label Oct 3, 2025
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Is this ready @jomifepe

@pernielsentikaer pernielsentikaer self-assigned this Oct 3, 2025
@jomifepe

jomifepe commented Oct 3, 2025 •

Copy link
Copy Markdown
Contributor Author

Is this ready @jomifepe

Not yet, I still haven't successfully tested it on Windows. It's also my first time using Raycast there 😁

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Awesome, I'll await 😊

@yuiidev

yuiidev commented Oct 9, 2025

Copy link
Copy Markdown

Any updates? I've been eagerly awaiting this since I've gotten access to the beta.
If you need help testing this on Windows then I could perhaps help, I would just need to know how I can "sideload" the extension, in that case.

@jomifepe

Copy link
Copy Markdown
Contributor Author

Any updates? I've been eagerly awaiting this since I've gotten access to the beta. If you need help testing this on Windows then I could perhaps help, I would just need to know how I can "sideload" the extension, in that case.

Honestly, I've been struggling to test it, I even sent a message in slack to try to understand my issue, but I didn't get any answers. I haven't been able to run it there at all 😕

If you need help testing this on Windows then I could perhaps help, I would just need to know how I can "sideload" the extension, in that case.

You could, yes, feel free to do so by following this guide: https://developers.raycast.com/basics/review-pullrequest

@yuiidev

yuiidev commented Oct 10, 2025

Copy link
Copy Markdown

I'm getting a "Error: Missing executable. You might need to build the extension." when trying to search, generate a password etc.
Setting the credentials does work, and the extension loads, fwiw.

fix: remove duplicate platforms
@jomifepe

Copy link
Copy Markdown
Contributor Author

I'm getting a "Error: Missing executable. You might need to build the extension." when trying to search, generate a password etc. Setting the credentials does work, and the extension loads, fwiw.

I was able to test it. I believe it was a matter of updating Raycast's dependencies. Give it a try if you can 🙏

@yuiidev

yuiidev commented Oct 13, 2025

Copy link
Copy Markdown

Yep, this works great for me, thanks!

@jomifepe
jomifepe marked this pull request as ready for review October 14, 2025 23:18
@jomifepe

Copy link
Copy Markdown
Contributor Author

Should be ready @pernielsentikaer!

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Greptile Overview

Summary

This PR adds Windows support to the Bitwarden extension, enabling it to run on both macOS and Windows platforms. The implementation includes:

Key Changes:

  • Added Windows to the platforms array in package.json
  • Implemented platform-specific CLI binary download with Windows SHA256 hash
  • Changed all keyboard shortcuts from cmd to opt (macOS) / alt (Windows) to avoid conflicts with Raycast shortcuts
  • Added Windows-specific PowerShell commands for bug report data collection
  • Made system lock/sleep vault timeout features macOS-only (marked as experimental in preferences)
  • Updated documentation and descriptions for cross-platform CLI paths
  • Removed Homebrew-specific installation helpers

Issue Found:

  • The platform detection utility assumes all non-macOS systems are Windows, which could cause runtime errors if someone attempts to run the extension on Linux (even though Linux isn't officially supported in platforms)

Confidence Score: 4/5

  • This PR is mostly safe to merge with one logical issue that should be addressed
  • The implementation is thorough and well-structured with proper platform-specific handling throughout. However, the platform detection logic has a critical flaw that assumes non-macOS equals Windows, which could cause issues. The shortcut changes are breaking but justified to avoid conflicts. All Windows-specific features appear properly implemented.
  • Pay close attention to extensions/bitwarden/src/utils/platform.ts - the platform detection logic needs to handle edge cases better

Important Files Changed

File Analysis

Filename Score Overview
extensions/bitwarden/src/utils/platform.ts 2/5 New platform detection utility - assumes non-macOS is Windows, which could cause issues on Linux
extensions/bitwarden/package.json 4/5 Added Windows to platforms array and updated CLI path descriptions for cross-platform support
extensions/bitwarden/src/api/bitwarden.ts 4/5 Implemented Windows CLI binary download support with platform-specific SHA256 hashes and paths
extensions/bitwarden/src/components/actions/BugReportCollectDataAction.tsx 4/5 Added Windows-specific PowerShell commands for system info collection in bug reports
extensions/bitwarden/src/context/session/session.tsx 5/5 Restricted system lock/sleep vault timeout features to macOS only

29 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@@ -0,0 +1 @@
export const platform = process.platform === "darwin" ? "macos" : "windows";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

logic: This assumes all non-macOS platforms are Windows, which will cause issues on Linux systems. While package.json only lists macOS and Windows in the platforms field, Raycast runs on Linux too. The extension will crash or behave incorrectly if someone tries to run it on Linux.

Consider using:

Suggested change
export const platform = process.platform === "darwin" ? "macos" : "windows";
export const platform = process.platform === "darwin" ? "macos" : process.platform === "win32" ? "windows" : "linux";

And handle Linux appropriately in other parts of the code (CLI download URLs, shortcuts, commands, etc.), or ensure Linux is explicitly not supported everywhere this is used.

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 76a9f08 into raycast:main Oct 15, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

tktcorporation added a commit to tktcorporation/extensions that referenced this pull request Nov 2, 2025