Shell bash is different from terminal bash

I am using cursor from WSL on windows 11. When Agent runs a command to install a package or run any executable it doesn’t seem to work as it is in my local terminal.

The Cursor terminal node version is different:


Pyenv work in terminal but not in the bash shell that Agent is using:

In short, the agent’s terminal although uses bash like local terminal, it seems to be in different environments.

I need help fixing this, I am new to cursor AI. I looked up on the internet and didn’t see anyone close to this issue.