[BUG] IDE integration fails with "workspace directories do not match" error despite identical paths

Resolved 💬 3 comments Opened Jul 25, 2025 by joy-deploy Closed Jul 29, 2025

## Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.60 (Claude Code)
  • Operating System: macOS (Darwin 26.0)
  • Terminal: VS Code integrated terminal

## Bug Description
The /ide command fails to connect to Windsurf IDE, reporting that workspace directories don't match even though the displayed paths are identical. The error message shows both paths as
/Users/<x>/Documents/GitHub/<xx> but still claims they don't match.

## Steps to Reproduce

  1. Open Windsurf IDE with a project at /Users/<x>/Documents/GitHub/<xx>
  2. Ensure Claude Code extension is installed and running in Windsurf
  3. Navigate to the same directory in terminal: cd /Users/<x>/Documents/GitHub/<xx>
  4. Run /ide command
  5. Observe the error message showing identical paths but claiming they don't match

Connect to an IDE for integrated development features. │
│ │
│ No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running. │
│ │
│ Found 1 other running IDE(s). However, their workspace/project directories do not match the current cwd. │
│ │
│ • Windsurf: /Users/<x>/Documents/GitHub/<xx>

## Expected Behavior
When the current working directory matches the IDE's workspace directory, the IDE integration should connect successfully without any errors.

## Actual Behavior
The command reports:
Found 1 other running IDE(s). However, their workspace/project directories do not match the current cwd.

• Windsurf: /Users/<x>/Documents/GitHub/<xx>
Despite the current working directory also being /Users/<x>/Documents/GitHub/<xx>.

## Additional Context

  • Verified paths are identical using pwd -P and realpath commands
  • Both paths resolve to: /Users/<x>/Documents/GitHub/<xx>
  • No symbolic links are involved in the path
  • Restarting Windsurf does not resolve the issue
  • The paths appear visually identical in the error output
  • This appears to be a path comparison logic issue in the IDE detection code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗