Cursor not connecting to Dev Containers

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I develop in containers. This always worked fine until about a month ago when connecting/reopening/rebuilding a container, the container builds but then cursor infinitely hangs in connecting.

Steps to Reproduce

  1. Build a dev container
  2. Put your dockerfile/docker.compose inside the .devcontainer folder
  3. Click ReOpen in container. If you container is already cached, click on the container name bottom left of screen and click rebuild container

Note: this won’t ‘appear’ to happen if the container is cached. The issue steps primarily on actual rebuild. You can test by adding a new env variable and seeing if it logs.

Expected Behavior

It should just connect.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.15 (Universal)
VSCode Version: 1.105.1
Commit: bb2dbaacf30bb7eb9fd48a37812a8f326defa530
Date: 2025-12-30T20:30:37.151Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Does this stop you from using Cursor

Yes - Cursor is unusable

For other users in the future - I think this has been solved by switching from the ms-vscode-remote Dev Containers, to the anysphere.remote-containers