Skip to content

New session always opens in last used project directory instead of selected one #49888

Description

@g-serio

Bug Report

Version: Claude Code Desktop App

OS: Windows 11 with WSL2 (Ubuntu)

Description

When creating a new session in the Claude Code desktop app, the session always opens in the last used project directory (e.g. npm-jpcore) regardless of which directory is selected or added during session creation.

Steps to Reproduce

  1. Have an existing project open (e.g. npm-jpcore)
  2. Click "New session"
  3. Add/select a different directory (e.g. /home/dev/temp/santa1)
  4. Confirm session creation

Expected Behavior

The new session should open in the newly selected directory (/home/dev/temp/santa1).

Actual Behavior

The new session opens in the previously used project directory (npm-jpcore) instead of the one selected.

Impact

It is impossible to start a session on a directory other than the last used project from the desktop app UI. The only workaround is to run claude from the terminal inside the target directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:desktopbugSomething isn't workingplatform:windowsIssue specifically occurs on Windowsplatform:wslIssue specifically occurs on WSL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions