claude-code - 💡(How to fix) Fix [BUG] IDE integration fails for monorepos where IDEs open subfolders instead of root

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Root Cause

Steps to Reproduce

  1. Create a monorepo with multiple subprojects (e.g. frontend/ and backend/)
  2. Open each subproject in a separate IDE instance (e.g. WebStorm on frontend/, IntelliJ on backend/)
  3. Launch Claude Code from the monorepo root directory
  4. Run the /ide command
  5. 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
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Create a monorepo with multiple subprojects (e.g. frontend/ and backend/)
  2. Open each subproject in a separate IDE instance (e.g. WebStorm on frontend/, IntelliJ on backend/)
  3. Launch Claude Code from the monorepo root directory
  4. Run the /ide command
  5. 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] IDE integration fails for monorepos where IDEs open subfolders instead of root