[BUG] Client ignores folder selection in file browser — session always starts at workspace root

Resolved 💬 3 comments Opened Apr 23, 2026 by Arkoto911 Closed May 28, 2026

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

  1. Open Claude Code Client on a project with subfolders (e.g., workspace/projects/PROJECT NAME)
  2. Click on a subfolder in the file browser (e.g., projects/PROJECT NAME)
  3. Start a new session (⌘ + Enter or equivalent)
  4. Run pwd in the shell or check the session working directory
  5. Expected: C:\Users\...\workspace\projects\PROJECT NAME
  6. Actual: C:\Users\...\workspace (workspace root)

Root Cause

  • CLI behavior (correct): When user cds to projects/PROJECT NAME and runs claude, the session starts with that folder as cwd
  • Client behavior (broken): User selects projects/PROJECT NAME in 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.md files don't auto-load from selected projects
  • Users must manually cd to 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_

View original on GitHub ↗

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