[BUG] Cannot rename project directory

Resolved 💬 4 comments Opened Feb 10, 2026 by bryanlarsen Closed Mar 11, 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?

The guide in the comments https://github.com/anthropics/claude-code/issues/1516 does not work. I rename the dir in ~/.claude/projects and claude treats it like a new directory, asking for permissions again and giving me a clean history.

I've got 11 worktrees of my project and have exceeded the capacity of my brain to remember which worktree is for what. The solution should be to git worktree move to a meaningful name without losing claude conversations.

What Should Happen?

there should be a way to move claude conversations between directories.

Error Messages/Logs

Steps to Reproduce

  • mkdir ~/a
  • cd ~/a
  • claude # and have a conversation
  • cd ..
  • mv a b
  • mv ~/.claude/projects/-home-username-a ~/.claude/projects/-home-username-b
  • cd b
  • claude --continue

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.38

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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