Ssh remote with cursor failing due to '--pager'?

Hi,

I’m trying to connect to a remote host with ssh remote and cursor. I can connect with vscode no problem, but I don’t seem to be able to do it with vscode.

> Starting VS Code CLI... "/flow/.cursor-server/cursor-b1e87884330fc271d5eb589e368c35f14e76dec0" command-shell --cli-data-dir "/flow/.cursor-server/cli" --on-port --on-host=127.0.0.1 --parent-process-id 4361 &> "/flow/.cursor-server/.cli.b1e87884330fc271d5eb589e368c35f14e76dec0.log" < /dev/null
> printenv:
...
env variables
....
 Removing old logfile at /flow/.cursor-server/.cli.b1e87884330fc271d5eb589e368c35f14e76dec0.log
> Spawned remote CLI: 4381
> Exec server process not found
[21:22:27.540] stderr> error: invalid value '4381' for '--pager <PAGER>'
[21:22:27.541] stderr>   [possible values: auto, always, disable]
[21:22:27.541] stderr> 
[21:22:27.541] stderr> For more information, try '--help'.
[21:22:27.544] > 38698f1c56a3: start
> SSH_AUTH_SOCK==/tmp/auth-agent2300582836/listener.sock==
> DISPLAY====
> listeningOn====
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==6==
> execServerToken==a111a11a-a1a1-1aa1-aa11-1a1111a1aaaa==
> 38698f1c56a3: end
[21:22:27.544] Received install output: 
SSH_AUTH_SOCK==/tmp/auth-agent2300582836/listener.sock==
DISPLAY====
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==6==
execServerToken==a111a11a-a1a1-1aa1-aa11-1a1111a1aaaa==

[21:22:27.545] Failed to parse remote port from server output
[21:22:27.545] Terminating local server
[21:22:27.546] Exec server for ssh-remote+dev-gpalla-scg-project-20241112211937 failed: Error
[21:22:27.546] Error opening exec server for ssh-remote+dev-gpalla-scg-project-20241112211937: Error
[21:22:27.550] Local server exit: 15

I’m not sure what the issue could be. I should say that in the remote server there might be already a .vscode-server folder, since it was started with vscode. Really appreciate any help!