claude-code - 💡(How to fix) Fix Allow starting a new session without restoring the last project directory

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When opening Claude Code desktop app, it always restores the last used project directory. There is no way to:

Start a new session in a neutral/generic directory without manually switching

  • Choose a working directory at session start
  • Configure a persistent default working directory via settings.json
  • Expected behavior: Either provide a setting like defaultWorkingDirectory in settings.json, or allow starting the app without auto-restoring the last project (e.g. a "no project" state or a prompt to choose).

Proposed Solution

Add one or more of the following options:

Option A — settings.json support:

{ "defaultWorkingDirectory": "D:/claude/general" } When set, new sessions open in this directory instead of restoring the last project.

Option B — Startup behavior setting:

{ "startupBehavior": "lastProject" | "defaultDirectory" | "ask" } lastProject — current behavior (restore last project) defaultDirectory — always open in defaultWorkingDirectory ask — prompt the user to choose a folder at startup Option C — "No project" state: Allow opening a new session without any project context (similar to opening a text editor without a file). The user can then navigate to a directory as needed during the session.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING