Primary working directory is permanently pinned and cannot be removed from the UI

Open 💬 0 comments Opened Jun 30, 2026 by accountprova123

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?

n the Claude Code desktop app (Windows 11), the primary working directory is displayed as a fixed tab in the directory bar with no way to remove or unpin it.

Right-clicking the tab only shows "Show in Explorer" and "Copy path" — there is no remove, unpin, or change option. The tab also has no × button, unlike secondary directories which can be closed.

This means the primary working directory is always present in every session, even when working on completely unrelated projects. There is no way to change the primary directory after initial setup, and no "New environment" option exists in the app to work around this.

Expected behavior: The user should be able to remove or change the primary working directory, or at minimum create separate environments with different primary directories.

App version: 2.1.187
OS: Windows 11 Pro

What Should Happen?

The primary working directory tab should have a remove or unpin option, or the app should allow creating separate environments with independent primary directories.

Error Messages/Logs

Steps to Reproduce

Open the Claude Code desktop app
Note the primary working directory tab in the directory bar — it has no × button
Right-click the tab
Observe that the context menu only offers "Show in Explorer" and "Copy path" — no remove or unpin option
Open a new session — the primary directory tab is still present and cannot be removed

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.187

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

The primary directory configuration appears to be tied to the app environment and is not editable through any available UI or configuration file. Clearing the IndexedDB does not resolve the issue as the app recreates the pinned directory on next launch.

View original on GitHub ↗