I am not sure if it is a bug, but I can’t find the option “toggle fold on the current line” in the command pallet.
However, I can find it in the hotkeys menu. And if I set a hotkey for said command, I am able to use it normally.
Here is a video to show what happens:
I’m using the sandbox 1.4.16