I found the issue: it happens when you move between rooms during an enemy turn, usually because you defeated the last enemy as a counterattack. I fixed the issue, and pushed a new build!