Thanks @AndyO! That points to a slightly different issue, then. Could you try running these commands in the container and let me know the output of each?
echo $SSH_AUTH_SOCK
ls -la $SSH_AUTH_SOCK 2>&1
ssh-add -l 2>&1
node ➜ /workspaces/neev-chat (dev) $ echo $SSH_AUTH_SOCK
node ➜ /workspaces/neev-chat (dev) $ ssh-add -l 2>&1
Could not open a connection to your authentication agent.
ls -la ... would just list the workspace contents.
Since I know that getting rid of $SSH_AUTH_SOCK can be done, I should point out that I’m not doing that (Well, that would probably stop it from working in vscode too. And like I said, it works there.). This is my current container config:
It’s a bit hard to debug since I don’t have a bare metal Windows machine around (and running Docker in Parallels is a nightmare).
One interesting thing to note is that we have record of a bug where oh-my-bash caused issues forwarding SSH_AUTH_SOCK. I see you have oh-my-zsh installed in the dev container. There could be something similar going on here.
Would be really interested to see if you stripped down the dev container (removing customizations, features, etc.) to just the image defined, and then checked whether SSH_AUTH_SOCK is set at all inside the container (echo $SSH_AUTH_SOCK).
I know it should work as smoothly as VSCode, but if it works with just the image, we can bisect which customization causes the problem. If it still doesn’t work, it’s back to the drawing board.