Multi-root workspace should use active file's folder

Status Closed — duplicate
Maintainer reply None cached
Activity 3 comments · opened Jan 30, 2026 · closed Feb 2, 2026

Claude always uses the first folder in a multi-root workspace, even if I'm editing a file from another folder.

Steps:

  • Workspace with backend and frontend folders
  • Open a file in frontend
  • Ask Claude "pwd?"
  • Returns backend path

Would be nice if it picked up the folder based on the active file, so each project's .claude/ and CLAUDE.md get used correctly.

For now I just use separate windows.

View original on GitHub ↗

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