Done in #738, merged 2026-10-11 as 5c03f973 after a full make validate with the Mac UI tests.
The Mac has iOS's widget (small size), built from the same code: VaultiOSWidgets and VaultiOSShared now also build for macOS, and only where the codes come from differs.
- Codes: while Vault is unlocked, the app hands the widget extension the next five minutes of each time-based code a widget may show, refreshed every 2.5 minutes. Never a secret, a locked or hidden item, or an HOTP code.
- Where they're kept: a keychain item, readable only while the Mac is unlocked and never synced, in
442P244AFS.com.badbundle.vault.widgets, which only the app and the widget extension have. - Taking them back: any lock takes them back, and so do quitting, every launch and an erase. If the delete fails, the item is replaced with an expired one, and the app tries again.
- No App Group: the widget extension has none, because every App Group is also a keychain access group.
local-check.config.tsand an in-app test check that. The same exposure on iOS is VAULT-129. - Copying: copying asks for the Mac to be unlocked. The widget leaves a note (never the code) in the widgets' keychain group and posts a Darwin notification, and the app clears the copy like its own.
- Docs: decision 9 and the Widgets section in docs/mac-app.md; G98, plus the Mac's G44/G45 lines, in the security model; hand checks in RELEASE.md.
Still open for Bradley:
- With a duress vault open, a widget set up for another vault's code shows "Unavailable", as for a deleted code. It's recorded as an accepted limit.
- Is the 5-minute window, refreshed every 2.5 minutes, right?
- The extension's name is "Vault Widgets".
- The App Store needs a Mac distribution profile for
com.badbundle.vault.Widgets(VAULT-114).