I was editing https://www.wikidata.org/wiki/Q18028483 . Top right is showing that I was logged in, but turns out that some of my edits were done logged out. This should have never happened. This is a privacy issue.
As a logged in user I don't ever want to silently have edits happening when I get logged out. The interface should give a warning.
All the Wikidata interface logic uses the API. The API offers "assert" to make sure someone is a member of a group ("user" in this case). This could probably be used to solve this.
* All editing api actions made by the UI should use the assert parameter as described in T124451#2216703 when the page indicates that the user is logged in.
* If the user gets logged out and the page still shows the user being logged in the user should be displayed an error
**Notes on assert param:**
Verify the user is logged in if set to user, or has the bot user right if bot.
One of the following values: user, bot
Verify the current user is the named user.
Type: user name