Since today, git fetch does not work anymore for me in a devcontainer. It asks me for username and password, but we use git-credential-oauth (on the host OS) which seems to be broken after the latest update of the Dev Containers extension?
This bug existed on Docker Desktop v4.50.0 and also after upgrading to v4.52.0.
I have anysphere.remote-containers version 1.0.28 installed
Bug does not happen in VSCode - there it just works.
Steps to Reproduce
run git fetch in the terminal
Expected Behavior
empty output, fetch latest changes
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.1.34
Commit: 609c37304ae83141fd217c4ae638bf5321856500
Date: 2025-11-25T16:35:52.391Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/2.1.34 Chrome/138.0.7204.251 Electron/37.7.0 Safari/537.36
Host-side credential helper: On your host machine, you have git-credential-oauth configured which handles GitLab OAuth authentication.
IPC Socket: The Dev Containers extension creates a Unix socket in /tmp/ (e.g., vscode-remote-containers-ipc-*.sock) inside the container.
Credential forwarding server: The extension runs a server that listens on this socket and forwards credential requests from the container to the host machine’s credential helper.
Environment variable: The extension sets REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-*.sock in all spawned shells/terminals.
Git config injection: The extension injects a credential helper into /etc/gitconfig and ~/.gitconfig that uses a Node.js script to communicate with the IPC socket.
What’s Broken in Cursor (Anysphere Dev Containers)
I found two issues:
REMOTE_CONTAINERS_IPC environment variable is empty - Your terminal doesn’t have this variable set, so the credential helper script doesn’t know where to connect.
The IPC server isn’t running - The socket file /tmp/vscode-remote-containers-ipc-ece9b407-c606-45fd-95eb-5ef2c76c8d8a.sock exists (created Nov 25), but no process is listening on it. The connection is refused.
This means the Anysphere dev containers extension is:
Creating the socket file initially
Injecting the git credential helper config
But not maintaining the IPC server that should handle credential requests
And not setting the environment variable in new terminals
How to fix
The Dev Containers extension needs to properly maintain the credential forwarding IPC server and set the REMOTE_CONTAINERS_IPC environment variable.