Automatic neighbour focus working differently in 4.4.1

Godot Version

4.4.1

Context

Note: Keyboard-only game, 2D.
I’m using Godot’s default button focusing (Not via script) and it always worked as expected, except this one scenario. (Note: This worked in 4.3, so I don’t know why this is happening now.)
I have a basic BoxContainer which contains a two-column GridContainer holding 2 Buttons (punch & dev_attack), and a Back (“Cancel”) button under it.
Back in 4.3, when pressing up from the Back Button, it would select Punch first, as expected, and I could press Right to select dev_attack and vice versa.

Problem

Suddenly in 4.4.1, it can only select dev_attack, and when pressing left, it goes back down to the Back Button instead of punch, despite being on the left side. Essentially, I can’t select the Punch button at all even though nothing has changed.
Why can it not focus “punch” in this scenario anymore? Or at least, how can I ensure to make it focus the correct button in this list, assuming the list itself could change?
I thought of using the focus_neighbour_ stuff but the attack list is going to have buttons added dynamically so I can’t do it so easily.


Edit: I realize that this has something to do with the length of the top buttons, it always favors the wider button and ignores the smaller one. While this may be intentional behaviour, that doesn’t explain why it didn’t happen in 4.3…

It may be a regression.

Search if the issue is already reported in the issue tracker. If you can’t find it then try to reproduce it on a new project and open a new issue giving as much information as possible attaching that new project as the MRP (minimum reproduction project), thanks.

Turns out it is! Someone already made a post about it, so I’ll just leave it at that. Thank you.

(Although, if anyone has suggestions on how to do this via script without relying on the automatic focus system, that would also be appreciated!)