Background Agent doesn't go to Environment Setup Wizard in Remote SSH

I’m using a RunPod VM and have SSH’d into it. I’d like to use background mode so I’ve set up a git repo which the chat is recognizing but I still get the dialog that git is not initialized.

I’ve tested this on a local git repo and am directed to the setup wizard. How to fix?