Skip to content

Update bitwarden extension - #25553

Closed
mabraithwaite wants to merge 1 commit into
raycast:mainfrom
mabraithwaite:ext/bitwarden
Closed

mabraithwaite wants to merge 1 commit into
raycast:mainfrom
mabraithwaite:ext/bitwarden

Conversation

@mabraithwaite

@mabraithwaite mabraithwaite commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Open issue: #25549 (comment)

There's a bug when trying to generate passwords. It's looking like we're passing false for flags like --passphrase when they should instead by omitted from the cli call.

Updated getPasswordGeneratingArgs() to only allow args for the either passphrase type passwords or regular type passwords, and filtered out flags when the value is false.

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: bitwarden Issues related to the bitwarden extension platform: macOS platform: Windows labels Feb 18, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your first contribution! 🎉

🔔 @jomifepe @daniel-stoneuk @andreaselia @pernielsentikaer @eth-p @YamenSharaf @undefinedzack @anirudhganwal06 @ivaarsson @gasparhabif @marinsokol @jose-elias-alvarez @krambono @clins1994 you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="ext/bitwarden"
FORK_URL="https://github.com/mabraithwaite/raycast-extensions.git"
EXTENSION_NAME="bitwarden"
REPO_NAME="raycast-extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Comment on lines +219 to +221
if (existsSync(dataJsonPath)) {
await tryExec(() => unlink(dataJsonPath));
}

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.

Did you have any issues with this line? Curious if it's a failing point

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah when first forking the project it kept failing on build because the json wasn't present

Comment on lines +50 to +56
export const PASSPHRASE_OPTION_KEYS: readonly string[] = asOptionKeys<PassphraseOptions>()([
"passphrase",
"words",
"separator",
"capitalize",
"includeNumber",
]);

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.

This is an ok solution, but in the end, the issue was only that boolean args were being passed with a value, as you described. The generate command doesn't really care about password args being mixed with passphrase ones, or vice-versa.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah though when debugging it gets confusing when all params are passed but only a select few are taking effect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Didn't realize you had closed this already so opened another PR after pulling most recent changes, added additional tests to if you want to take a look. #25598

@mabraithwaite mabraithwaite mentioned this pull request Feb 18, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: bitwarden Issues related to the bitwarden extension extension fix / improvement Label for PRs with extension's fix improvements platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants