[BUG] IDE integration fails with "workspace directories do not match" error despite identical paths
Bug #4428 on MacOS is still a problem, please reopen that one.
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/4428
- https://github.com/anthropics/claude-code/issues/1411
- https://github.com/anthropics/claude-code/issues/5096
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
still exists
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Still an issue - the problem arises especially when I open the VSCode/Cursor folder with a .code-workspace file in a folder or monorepo that includes multiple repositories or submodules. In those cases, Claude code mistakes the repositories as the "active directory", while the folder I actually have open on the IDE is the monorepo that includes everything else.
Steps to reproduce:
- Make a folder on Cursor and clone two or more repositories in there. Let's call that the monofolder.
- Create a
.code-workspacefile that lists the paths and names of those repositories in the monofolder. - Open this monofolder in "workspace" mode using the file you just generated. The titlebar should say "monofolder-name (Workspace)". Keep this IDE open.
- Open your terminal, and change your directory to the monofolder.
- Open Claude Code via the
claudecommand. - Use the
/idecommand to connect to the IDE you just opened. => Claude Code will complain that the paths are mismatching.