Issue reconnecting to container

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’ve been seeing this issue for a little while now, probably a couple of weeks. I do most of my development remotely attached to a running container. If I shut Cursor down, and then restart my container, then restart Cursor, sometimes I see the following error message. The only way I’ve found around it is to close the remote connection, start a new remote connection and then reload the window to attach to the container. Do-able, but clearly something is wrong because it didn’t used to do this. Any ideas of where to look?

2025-08-20 12:21:25.478 [info] Installing remote server in container…
2025-08-20 12:21:25.478 [error] Failed to read .gitconfig: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
2025-08-20 12:21:25.480 [error] Error resolving dev container authority The “path” argument must be of type string. Received undefine

Steps to Reproduce

I have a complex setup so I doubt I can come up with a simple way to reproduce. I will try if someone will take it and actually look into it.

Expected Behavior

Normally Cursor just reconnects automatically and all is well.

Operating System

Windows 10/11
Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (user setup)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

Using Remote SSH (Anysphere) and Dev Containers (Anysphere). I also have Remote Development (Microsoft) installed.

Does this stop you from using Cursor

No - Cursor works, but with this issue

I have the same issue as well, 1.4.5 (Universal)