I’m using the Cursor IDE, and am also having a similar issue (coding in TypeScript) with suggested code overlaying original code (the background of the code changes is somewhat transparent). Even after I accept/undo suggestions, the suggested code changes do not go away.
Exiting and reopening the Cursor window always does the trick, though. This doesn’t happen consistently, so still looking into how this behavior gets reproduced.