So this happened to me multiple times already (just cause I’m not very careful): I start writing a comment on a patch in the app, then check out a different branch (of the desktop-app repo) to look something up and the app hot-reloads losing all my drafted text. I know this is an edge case that probably only affects me right now. But it can also happen that a user mis-clicks somewhere in the UI navigating away from a form, which will lead to the same outcome. Same happens if the app crashes for some reason or using the back/forward navigation buttons.
A lot of web apps pre-save form content in small intervals to local storage in case the user uses the back button to navigate away and then come back to resume writing the text they started. We could do something similar in the desktop app. Have a setInterval that saves stuff to local storage by object id and have some heuristic to restore the content if it wasn’t saved.