Ok turns out Cursor was using the .gitconfig file from the default install location "C:\Users\USERNAME\.gitconfig"
but global git commands in terminal were editing a config file where my project files were "D:\Git Projects\.gitconfig"
.
git config --show-origin --global user.name
was very helpful to debug
Resolved the issue with a symlink file in the C:\Users
install location linking to where the config was actually stored.