Realm App in weird draft state after CLI deploy

I use the realm-cli in my CI/CD pipeline to deploy my realm-app. For awhile now, after I deploy from my CI/CD pipeline I’ll notice that the app gets stuck in a weird state when I enter the UI. It basically thinks that all the previous code of the app is like a draft, and I have to discard that draft. I also think this causes the latest code to not be activated sometimes. Has anyone experienced this?