Sync Fails after App Crashes

So I’m using Debian Bookworm and installed Mailspring through Flatpak; Version 1.14.0-07c62cca. This one is rather annoying and makes the app borderline unusable for me. If I force close the app when I restart it back up, I get this error

image

When I have a lot of accounts added re-authenticating them plus regenerating app passwords on yahoo gets quite tedious. I hope this is fixed quickly. I can consistently recreate this if I kill the app using either system monitor on gnome or through the app’s pid.

attached is the error details for just Gmail.

Mailspring Version: 1.14.0-07c62cca
Platform: linux
Account State: sync_error
Account Provider: gmail
IMAP Server: imap.gmail.com
SMTP Server: smtp.gmail.com
--------------------------------------------
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"connectIfNeeded","key":"ErrorConnection","retryable":true,"what":"std::exception"}
***

605 [2024-12-07 20:44:06.274] [foreground] [info] --sleeping
605 [2024-12-07 20:46:06.262] [main] [info] Waking all workers...
605 [2024-12-07 20:46:06.262] [background] [info] Marking all folders as `busy`
605 [2024-12-07 20:46:06.264] [background] [info] Syncing folder list...
605 [2024-12-07 20:46:07.269] [metadataExpiration] [info] Scanning for expired metadata
605 [2024-12-07 20:46:07.271] [metadataExpiration] [info] -- Will wake for next expiration in 7200sec
605 [2024-12-07 20:46:09.262] [main] [info] Waking all workers...
605 [2024-12-07 20:46:10.281] [metadataExpiration] [info] Scanning for expired metadata
605 [2024-12-07 20:46:10.281] [metadataExpiration] [info] -- Will wake for next expiration in 7200sec
605 [2024-12-07 20:46:12.471] [foreground] [info] syncFolderChangesViaCondstore - [Gmail]/All Mail: modseq 5453305 to 5453305, uidnext 44523 to 44523
605 [2024-12-07 20:46:12.563] [foreground] [info] Idling on folder [Gmail]/All Mail
605 [2024-12-07 20:46:18.209] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 1 - 0, Heavy: false
605 [2024-12-07 20:46:25.700] [background] [info] - [Gmail]/All Mail: remote=15681, local=15678, remoteUID=123456789012345678901
605 [2024-12-07 20:46:25.834] [background] [info] - Fetching full headers for 3 (of 3 needed)
605 [2024-12-07 20:46:26.349] [background] [info] - Updating message 3wy49PADCZXCL2qBzKLpuNUFgTCGMTTe8eyXkYFbz
605 [2024-12-07 20:46:26.349] [background] [info] -- UID (44 to 43)
605 [2024-12-07 20:46:26.349] [background] [info] -- XGMLabels (["[Imap]/Sent"] to ["\\Sent"])
605 [2024-12-07 20:46:26.369] [background] [info] - Updating message 4CsPZZXDVZmGX264pEX17LRTBY42J8W28dCuXGPj6
605 [2024-12-07 20:46:26.369] [background] [info] -- UID (7 to 6)
605 [2024-12-07 20:46:26.369] [background] [info] -- XGMLabels (["[Imap]/Sent"] to ["\\Sent"])
605 [2024-12-07 20:46:26.382] [background] [info] - Updating message DrBbHYukvtgsdCtrdysSyhxbPy8FEVqoJadLPfy22
605 [2024-12-07 20:46:26.382] [background] [info] -- UID (5 to 4)
605 [2024-12-07 20:46:26.382] [background] [info] -- XGMLabels (["[Imap]/Sent"] to ["\\Sent"])
605 [2024-12-07 20:46:26.781] [background] [info] syncFolderUIDRange for [Gmail]/Trash, UIDs: 1 - 0, Heavy: false
605 [2024-12-07 20:46:29.252] [background] [info] - [Gmail]/Trash: remote=7, local=7, remoteUID=123456789012345678901
605 [2024-12-07 20:46:29.805] [background] [info] syncFolderUIDRange for [Gmail]/Spam, UIDs: 1 - 0, Heavy: false
605 [2024-12-07 20:46:32.580] [background] [info] - [Gmail]/Spam: remote=0, local=0, remoteUID=123456789012345678901
605 [2024-12-07 20:46:32.581] [background] [info] Sync loop deleting unlinked messages with phase 2.
605 [2024-12-07 20:46:32.593] [background] [info] Sync loop complete.