mirror of
https://github.com/spartanz51/tutabridge.git
synced 2026-06-24 10:54:32 +02:00
Onboarding now works on a fresh install with no saved session. The login does a single initiate_session like the CLI: the two factor callback fires only when the account actually needs a code, emits bridge://need-totp so the dashboard reveals the code field, and blocks until submit_totp delivers it. One auth either way, so it no longer trips Tuta's rate limit the way the old two step flow did. First run also gets an email field (the start command bootstraps a config from the address entered on the dashboard instead of erroring out). Fixes the dashboard showing zero mails and frozen uptime: stats were purely event driven, so once the store went quiet after the initial sync no further snapshot was pushed and uptime stopped climbing. stream_stats now also emits on a one second tick, which advances uptime and recovers any pulse the UI missed while the start lock was held through the 2FA wait.