I am aware of that note, as I’ve seen when we discussed it over on Discord. However, I believe the vast majority of nodejs and electron apps out there uses writeFile instead of managing their own file handles and write streams. Obsidian’s fs access is serialized; any attempt to write would have to wait for the previous write to finish, so it should be impossible to call write multiple times without having the promise resolve first.
Another thought: could a 3rd party plugin that modifies the buffer contents possibly be triggering this to happen, e.g. if the timing was “just right” such that Obsidian was executing it’s periodic scheduled save while the user simultaneously triggered a file-altering action such as a Templater script?
This should be safe as long as the plugin uses Obsidian’s file system adapter, or the vault API, instead of directly accessing the through the node.js fs package. As far as I know, most plugins don’t use the fs package because it’s not compatible with mobile.