Faced such a problem. Sometimes, whole functions disappear in Codeless, and this is not the first time I come across this.
I made changes to one function, then saved it. Switched to another function. But instead of it, there was the first function that I saved before, i.e. Codeless duplicated the first function.
I cannot return the original state. But in the files I found the source code of the function that was overwritten. And he is correct. Question. How can I return a function that has disappeared? Function is not big, I can rewrite it, but check please why such failures occur.