Skip to main content

backfill_emails

Function backfill_emails 

Source
fn backfill_emails(
    accounts: &mut [IdentityAccount],
    mstore: &Store,
    identity_store: &Store,
)
Expand description

SPEC_ACCOUNT_EMAIL_IN_ARMORY_2026_09_23.md §4: backfill each OAuth account’s login email from its own config dir, so accounts signed in before #3541, and every Claude login (whose transcript prints no email), show it. Written only when it changed, and only that one field, in this store and the global mirror (a full upsert here could re-create an account deleted since the list, undo a status written meanwhile, or repoint the mirror’s secret_ref). A failed write still returns the email.