[BUG] Client ignores folder selection in file browser — session always starts at workspace 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?
Summary
When a user selects a project subfolder in Claude Code Client's file browser and starts a new session, the session initializes at the workspace root instead of the selected folder. The CLI works correctly and preserves folder context, but the Client does not.
Steps to Reproduce
- Open Claude Code Client on a project with subfolders (e.g.,
workspace/projects/PROJECT NAME) - Click on a subfolder in the file browser (e.g.,
projects/PROJECT NAME) - Start a new session (⌘ + Enter or equivalent)
- Run
pwdin the shell or check the session working directory - Expected:
C:\Users\...\workspace\projects\PROJECT NAME - Actual:
C:\Users\...\workspace(workspace root)
Root Cause
- CLI behavior (correct): When user cds to
projects/PROJECT NAMEand runsclaude, the session starts with that folder ascwd - Client behavior (broken): User selects
projects/PROJECT NAMEin the UI file browser, sees it reflected in tabs/breadcrumbs (visual feedback exists), but this selection is NOT passed to session initialization - The folder selection exists in the UI layer but is not communicated to the session layer
Impact
- Working directory context is lost
- Directory-scoped
CLAUDE.mdfiles don't auto-load from selected projects - Users must manually
cdto their project after every session start - Especially problematic for multi-project workspaces where folder context matters
Environment
- Client version: 2.1.111
- Platform: Windows 11, Git Bash
- Reproduction confidence: 100% (tested multiple times, consistent behavior)
Expected Behavior
When a user selects a folder in Claude Code Client's file browser and starts a session, that folder should be passed as the session's initial cwd, matching the CLI behavior.
<img width="2050" height="242" alt="Image" src="https://github.com/user-attachments/assets/f73cd8f1-6a44-4656-a1b8-5dc37c787197" />
<img width="852" height="62" alt="Image" src="https://github.com/user-attachments/assets/44b694d6-2c56-4dfd-9434-aa0edde73249" />
What Should Happen?
See above
Error Messages/Logs
Steps to Reproduce
See above
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.111
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗