[BUG] IDE integration fails for monorepos where IDEs open subfolders instead of root
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
## Description
When working in a monorepo where different IDEs are opened on subfolders
(e.g. IntelliJ on project/backend, WebStorm on project/frontend),
the /ide command fails to connect even though all IDEs belong to the
same overall project.
Claude Code is launched from the monorepo root (project/) but reports:
> Found 3 other running IDE(s). However, their workspace/project
> directories do not match the current cwd.
## Expected behavior
Claude Code should be able to connect to an IDE whose workspace is a
subfolder of the current working directory, not only an exact match.
## Actual behavior
No IDE is detected as compatible. The user must either:
- Launch Claude Code from each subfolder separately (losing monorepo context)
- Restructure the IDE workspace to match Claude Code's cwd exactly
## Environment
- OS: Windows 11
- Shell: bash (WSL)
- Monorepo structure: 3 Spring Boot backends + 1 Angular frontend,
each opened in a separate IDE instance (IntelliJ IDEA + WebStorm)
- Claude Code cwd: monorepo root
## Suggested fix
Allow IDE connection when the IDE workspace is a subfolder of Claude
Code's cwd, with the user selecting which IDE to connect to.
What Should Happen?
When Claude Code is launched from a monorepo root directory, it should be
able to connect to any IDE whose workspace is a subfolder of that root.
The user should be presented with a list of compatible IDEs to choose from,
even if their workspace paths do not exactly match the current working directory.
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce
- Create a monorepo with multiple subprojects (e.g. frontend/ and backend/)
- Open each subproject in a separate IDE instance
(e.g. WebStorm on frontend/, IntelliJ on backend/)
- Launch Claude Code from the monorepo root directory
- Run the /ide command
- Claude Code reports "No available IDEs detected" and lists the running
IDEs as incompatible because their workspace paths do not exactly match
the current working directory
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
v2.1.146
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗