You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mobile Custom Vocabulary: adding a word when the saved list failed to load replaces the whole list with that word #22308
Primary loop layer: Understand (custom vocabulary for transcription)
Involves data loss, failed capture, or broken sync/trust
Your saved Custom Vocabulary words are erased from your account, with no error. Transcripts stop using them on every device.
Describe the bug
On mobile, the Custom Vocabulary list is read from the server once, when the app starts. If that read fails (offline at launch, a timeout, a server error, or the profile request that runs before it failing), the app keeps its locally cached copy. That copy is empty after a reinstall or sign-out, and out of date if you edited the list on the web or Mac app. Saving always sends the whole list, and the server replaces its list with it. So adding a word sends just that word (or the old cached list plus it), and the other saved words are gone. Removing a word has the same problem.
To Reproduce
Save a few words in Custom Vocabulary, e.g. on the web app.
Install the mobile app fresh (or sign out and back in) so the cached copy is empty.
Make the startup read fail: open the app on a flaky connection, or block GET /v1/users/transcription-preferences with a proxy.
Open Settings → Custom Vocabulary. The list shows 0 words.
With the connection working again (unblock the request), add a word, e.g. Omi.
Current behavior
The app sends ["Omi"], and the server replaces the saved list with it. All the other words are gone, on every device.
Expected behavior
Adding or removing a word never replaces the saved list with one that didn't load. The app loads the saved list first, or saves nothing if it can't.
Evidence (upstream main at def12bf04e2abdacc03c5c0281ec7a21fffc6b1f)
The web app had the same bug and fixed it in #15244 (#15243). #5628 shows the starting state on Android: after a reinstall the list showed empty while the server still had the words.
Activity