Skip to content

[PM-44412] fix: Keep autofill context after editing cipher - #7448

Merged
aj-rosado merged 1 commit into
mainfrom
PM-44412/editing-returns-to-item-selection-screen
Oct 6, 2026
Merged

aj-rosado merged 1 commit into
mainfrom
PM-44412/editing-returns-to-item-selection-screen

Conversation

@aj-rosado

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-44412

📔 Objective

Editing a cipher during autofill selection lost autofill context. User landed on main vault list.

Cause: update save always cleared special circumstance. Create path already guards with shouldClearSpecialCircumstance.

Fix: same guard on update path. Edit now returns to previous screen, autofill selection stays.

🤖 AI-assisted review

Local code review (Standard). No findings.

@aj-rosado aj-rosado added ai-review Request a Claude code review t:bug Change Type - Bug labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This change guards the UpdateCipherResult.Success branch of VaultAddEditViewModel with state.shouldClearSpecialCircumstance so an in-progress autofill selection survives an item edit, mirroring the guard already present on the CreateCipherResult.Success path. Since shouldClearSpecialCircumstance is only false when autofillSelectionData != null, all other special circumstances (autofill save, credential provider, TOTP link) continue to be cleared exactly as before, and the shouldExitOnSave branch is unaffected. The accompanying unit test covers edit-mode save during an AutofillSelection circumstance, asserting NavigateBack, retained circumstance, and the CIPHER_UPDATED snackbar relay. No findings.

@aj-rosado aj-rosado added ai-review Request a Claude code review t:bug Change Type - Bug labels Oct 6, 2026
@github-actions github-actions Bot added the app:password-manager Bitwarden Password Manager app context label Oct 6, 2026
@aj-rosado
aj-rosado marked this pull request as ready for review October 6, 2026 14:26
@aj-rosado
aj-rosado requested review from a team and david-livefront as code owners October 6, 2026 14:26
@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.26%. Comparing base (9255edb) to head (d53c1f2).

❗ There is a different number of reports uploaded between BASE (9255edb) and HEAD (d53c1f2). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (9255edb) HEAD (d53c1f2)
app-data 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7448       +/-   ##
===========================================
- Coverage   86.11%   68.26%   -17.86%     
===========================================
  Files         911     1072      +161     
  Lines       66078    68528     +2450     
  Branches     9364     9380       +16     
===========================================
- Hits        56904    46779    -10125     
- Misses       5703    19205    +13502     
+ Partials     3471     2544      -927     
Flag Coverage Δ
app-data ?
app-ui-auth-tools 18.82% <0.00%> (+0.20%) ⬆️
app-ui-platform 16.46% <0.00%> (-0.02%) ⬇️
app-ui-vault 27.44% <100.00%> (+0.56%) ⬆️
authenticator 5.97% <0.00%> (+<0.01%) ⬆️
lib-core-network-bridge 4.08% <0.00%> (-0.01%) ⬇️
lib-data-ui 1.22% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aj-rosado

Copy link
Copy Markdown
Contributor Author

thanks @david-livefront

@aj-rosado
aj-rosado added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 098c08a Oct 6, 2026
35 of 42 checks passed
@aj-rosado
aj-rosado deleted the PM-44412/editing-returns-to-item-selection-screen branch October 6, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review app:password-manager Bitwarden Password Manager app context t:bug Change Type - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants