I have the same issue here (Windows 11). Switching to "vanilla" MS Agent seems to solve the problem, but, of course, the ugly magenta background happens.
Running Love2D within NppExec doesnt show anything
Running a script with prompt-sync in NppExec fails
Windows Defender detect 2.0.0.23 installer as Win32/Spursint.F!cl
Disable preview in Context Menu (nested or not)