Fixed in https://github.com/badbundle/vault-app/pull/726 (merged as 004a9f3a).
- Cause: as suspected. macOS shows Touch ID and the Mac's password from a process of its own, so Vault stops being the active app while its own prompt is up.
VaultMacLockTriggerstook that for the user leaving. Vault locked again behind the prompt, threw its answer away, and started unlocking again when it came back, over and over. With Require Unlock at Immediately, the prompt for a locked item, a backup or a setting locked the whole app the same way. - Fix: while Vault's own prompt is up, Vault stopping being the active app makes it only inactive, as the iOS app is under its own Face ID prompt. An ordinary app other than Vault coming to the front is still leaving, and locks as before: either the app in front as Vault stops being active, or one that comes to the front afterwards. The agents that show Touch ID and the Mac's password aren't ordinary apps. The AutoFill sheet's lock observer follows the same rule.
- Tests: new
VaultMacLockTriggersTestsandVaultMacAutofillLockObserverTestscases. With the fix turned off, the unlock test fails as Bradley saw: a second prompt, still at the Touch ID step. - Docs: docs/mac-app.md ("Locking", AutoFill), G86 and G95 are updated. RELEASE.md's Mac checks now unlock with real Touch ID and with the Mac's password, open a locked item with Immediately, and leave during the prompt.
- Validation: validated with
VAULT_SKIP_MAC_UI_TESTS=1(VAULT-120), as the Mac was locked. The Mac UI tests haven't run on this commit, and real Touch ID hasn't been tried. Both are for when the Mac is next unlocked: a fullmake validateon main, then RELEASE.md's Mac locking checks.