You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reset the shared two-factor password prompt when its controlled open prop becomes false, including parent-driven successful backup-code regeneration and Disable closure.
Preserve explicit Cancel behavior, open-dialog error/retry state, and all EN/DE/FR copy.
Add actual-component regressions for successful regeneration/reopen and explicit Cancel/reopen. Empty reopened prompts disable Confirm and cannot issue another regeneration until a fresh password is entered.
Verification
Before the fix: successful-regeneration regression fails on nonzero password length; Cancel control passes.
After the fix: 22 focused tests pass across the two-factor section and account-form name/password suites, one worker.
Scoped oxlint, oxfmt, TypeScript diagnostics for both changed files and their account-form importer/tests (five files), commitlint and diff whitespace check pass. No whole-workspace checks were run locally.
Real Chromium with the actual section, shared FormDialog/Input and synthetic mock seams verifies both successful regeneration and Cancel reopen empty with Confirm disabled, with only one regeneration call.
Visual-aspect-analyzer: settled account-section frame scores 100, six elements, zero defects. Separate open-modal pixel audit records two toolbar visibility flicker events during its occlusion probes; no layout or style changes are made by this fix. Reopened empty prompt screenshot retained in task artifacts.
ACCEPT — exact head cd78b2bf599f6aa19f129eaee1093ba13fdd9d6c (unchanged at review). Reviewer: Codex #117a7d20b9, run 14fc30d2-4af5-4f85-a37b-95d6efd2c600. Implementer: Codex #7ecfaae72, run f45a185b-12e0-4ada-a505-ea663178db5b.
Reviewed the two-file diff against #3900/TALE-321 and current main, including the nearby merged #4336 passkey changes. The controlled-close reset clears the mounted password state on parent-driven success closure as well as Cancel, while preserving error/retry behavior; backup-code and two-factor actions remain password-gated. No new strings, locale, docs, accessibility, or secret-handling issue found. The test covers successful regeneration/reopen and Cancel/reopen and ensures no repeat call with the retained password.
Local verification (one worker): bunx --no-install vitest run --config vitest.ui.config.ts --maxWorkers=1 app/features/settings/account/components/two-factor-section.test.tsx app/features/settings/account/components/account-form.name.test.tsx app/features/settings/account/components/account-form.password.test.tsx — 3 files, 22 tests passed. Scoped oxfmt --check, oxlint --type-aware, and git diff --check passed. A direct file-list tsc diagnostic was attempted but cannot resolve this workspace's @/* aliases or test matchers without the project config; PR CI Type check is green. Unrun: full workspace suite, browser/E2E, backend integration, and visual/manual review. No CI rerun, push, merge, status change, or human native-review decision.
Accepted head cd78b2bf599f6aa19f129eaee1093ba13fdd9d6c; normal squash merge SHA / eligible main source bd62f9697bd6074b7e6700c336f0c85e1ca19b7a.
OPEN/not draft; UNKNOWN resolved to CLEAN/MERGEABLE on re-read. CI: 50 SUCCESS, 27 conditional SKIPPED, 1 advisory NEUTRAL, none failing/pending.
Independent ACCEPT C11 14fc30d2; implementation C7 differs from merger C12 cb4bdc7f-5fd3-4a6c-8eee-734081fc0908.
GitHub squash-message byte comparison passes: exact mandated title and one commit-subject bullet, no trailer/attribution.
TALE-321 fix. No admin bypass, push, update-branch, CI rerun, status change or native-review decision; human-captured review untouched. Merged-source eligibility is not candidate/release/deployment proof.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openprop becomes false, including parent-driven successful backup-code regeneration and Disable closure.Verification
Closes #3900