claude-code - 💡(How to fix) Fix Folder Renaming [1 participants]

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…
GitHub stats
anthropics/claude-code#58889Fetched 2026-05-14 03:36:53
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

  1. Claude Code immediately crashes with the error above — session is lost

Error Messages/Logs

  1. Claude Code immediately crashes with the error above — session is lost
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Title: Cannot rename working directory folder — Claude Code crashes with "Working directory no longer exists"

Issue: When the folder that Claude Code is opened in is renamed, Claude Code throws a hard crash:

Working directory no longer exists: D:\Google Drive\0.000 Claude Code\Option Scanner by Claude. The folder may have been moved, deleted, or unmounted.

There is no way to recover the session — it is permanently terminated.

Steps to reproduce:

  1. Open Claude Code desktop app (Windows 11), working directory: D:\Google Drive\0.000 Claude Code\Option Scanner by Claude
  2. Rename the folder in Windows Explorer to a new name (e.g., OptionRadar)
  3. Claude Code immediately crashes with the error above — session is lost

Expected behavior: Claude Code should either (a) detect the rename and update its working directory reference, or (b) prompt the user to point to the new location and resume the session.

Actual behavior: Hard crash, full session loss. Opening a new claude session in the renamed folder starts a completely blank session with no prior context.

Environment:

  • OS: Windows 11 Home 10.0.26200
  • Claude Code: Desktop app
  • Working directory: Google Drive synced folder on D:\

Request: Support folder renames gracefully — either follow the rename (Windows provides rename notifications via ReadDirectoryChangesW) or offer a session-reconnect dialog instead of a hard crash.

What Should Happen?

Support folder renames gracefully — either follow the rename (Windows provides rename notifications via ReadDirectoryChangesW) or offer a session-reconnect dialog instead of a hard crash.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

  1. Open Claude Code desktop app (Windows 11), working directory: D:\Google Drive\0.000 Claude Code\Option Scanner by Claude
  2. Rename the folder in Windows Explorer to a new name (e.g., OptionRadar)
  3. Claude Code immediately crashes with the error above — session is lost

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.92 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

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

claude-code - 💡(How to fix) Fix Folder Renaming [1 participants]