I have further narrowed it down. The bug has started happening because of the changes done in 2025.7.0-256+6c316c2178
This change has enabled this behaviour: #1 and #2