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
backendandfrontendfolders - Open a file in
frontend - Ask Claude "pwd?"
- Returns
backendpath
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.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗