Is this an issue with unions or my fault?
Reproduced myself as well. You’re not doing anything wrong, so it looks like a bug – moved to Studio Bugs.
We’ve just disabled a flag that was causing a similar issue. Could you verify whether this one’s now fixed also (as I hope it is)