bitwarden / bitwarden/android

App switch refreshes generated password/passphrase

Open
#5,525 2 comments 1 reaction 0 assignees View on GitHub
app:password-manager bug
Dominant language
Kotlin
Stars
9.4k
Forks
1.1k
Avg merge
1d 14h
Merged PRs (30d)
67

Description

### Steps To Reproduce

1. Open some login entry
2. Click "edit" (pen icon)
3. Click "generate" icon (rightmost in the "password" text field)
4. Click "Yes" on "Are you sure you want to overwrite the current password"
5. Exit app by going to the home screen (up-swipe gesture)
6. Reenter the app from the icon or recents view

OR

1. Go to the "Generator" tab
2. Swipe up from the bottom (go to home screen)
3. Reenter the app from the icon or recents view

### Expected Result

The generated password/passphrase stays the same after exiting/reentering the app (without closing it).

### Actual Result

The generated password/passphrase is different every time you leave/enter the Bitwarden app (without closing the app).

### Screenshots or Videos

_No response_

### Additional Context

For me, this behavior is annoying, as I often want to do something like this when prompted to change a password:
1. Open the entry of that site/service/app in bitwarden
2. Generate a new password for it in the edit view (without saving), copy it
3. Switch to the website/app of the service and paste this generated password
4. Go back to Bitwarden and save the entry

This does not currently work, as reopening bitwarden will refresh the generated password with a new one. I get that I could save the generated password in bitwarden -> go to site and enter it, but often it takes multiple attempts to generate a password that the site accepts as it might want a password with a specific length, minimum count of special symbols etc.

This same behavior is also seen when using the "Generate" tab as well.

### Build Version

2025.6.1 (20398)

### What server are you connecting to?

EU

### Self-host Server Version

_No response_

### Environment Details

- Device: Pixel 7 Pro
- OS: Android 16 QPR1 Beta 2

### Issue Tracking Info

- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the refresh in the login-entry edit view and the Generator tab using the listed steps on Android. Trace how each generated password or passphrase is retained when the app leaves and re-enters, and verify that the value remains unchanged until the user generates another one.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.