[BUG] Folder/directory management in Code tab is critically broken: can't view, can't remove, can't recover

Resolved 💬 2 comments Opened Jun 25, 2026 by dingey-rd Closed Jun 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?

The Code tab has three compounding problems with directory management that make it dangerous for users managing large numbers of projects.

Problem 1: No way to view currently added directories
There is no UI or command to list which directories are currently active in a session. If a user adds multiple folders via "Add folder" or /add-dir, there is no way to confirm what is actually loaded.

Problem 2: No way to remove a directory mid-session
Once a directory is added via /add-dir or "Add folder", it cannot be removed without ending the entire session. There is no /remove-dir command and no UI option to detach a folder. Related closed issue: #27935

Problem 3: Ending the session to recover means losing everything
The only workaround for Problems 1 and 2 is to restart the session — but this destroys all conversation history and accumulated context, which may represent hours of work.

My use case: I maintain thousands of Delphi projects across different directories. A single wrong folder added accidentally could cause Claude to read or modify the wrong project's source files, with no way to detect or correct it short of restarting.

Related issues: #27935 #36175 #38309 #65399

What Should Happen?

  1. A command or UI panel showing all currently active directories
  2. A /remove-dir command (or UI button) to detach a directory mid-session
  3. At minimum, a warning when adding a directory that wasn't part of the original session setup

Error Messages/Logs

Steps to Reproduce

  1. Open Claude desktop app, go to Code tab
  2. Start a new session and add a project folder via "Add folder"
  3. During the session, add another folder via /add-dir command
  4. Try to see a list of all currently active folders — no UI or command exists
  5. Try to remove one of the added folders — no /remove-dir command exists
  6. The only recovery option is to end the session, losing all conversation history

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.15200.0 (250bae) - Claude for Windows

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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