anthropics / anthropics/claude-code

Windows: Claude Desktop AppData\Claude grows unboundedly, no relocation option; symlink/junction workaround breaks app on startup

オープン
#88,539 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug platform:windows
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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?

%AppData%\Roaming\Claude grows continuously with no cleanup — in my case, largely from local-agent-mode-sessions\...\outputs, which accumulated hundreds of duplicate versioned files (e.g. Session_Review_Asks_and_Template_v9 through v24, near-identical, ~150-220KB each) plus stray .tmp files, filling my C: drive.

There's no built-in setting to relocate this data to another drive.

### What Should Happen?

Following the pattern in #57998 and #61350, I copied AppData\Roaming\Claude to a separate D: drive and created a directory junction (mklink /J, later also tried /D) at the original C: path pointing to D:.

Result: the app now refuses to start entirely, with the error:

Failed to start Claude's workspace
configure: path C:\Users[username]\AppData\Roaming\Claude is a symlink or junction, refusing to open

This matches the exact failure mode reported in #61350 ("Symbolic links and junctions to D: break the app on startup").

### Error Messages/Logs

```shell
Failed to start Claude’s workspaceconfigure: path C:\Users\Patrick Kager\AppData\Roaming\Claude is a symlink or junction, refusing to openRestarting Claude or your computer sometimes resolves this. If it persists, you can reinstall the workspace or share your debug logs to help us improve.
```

### Steps to Reproduce

Use mklink to symbolically link Appdata/Claude file to my D:

### Claude Model

Sonnet (default)

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

Never worked

### Claude Code Version

2.1.104

### Platform

Anthropic API

### Operating System

Windows

### Terminal/Shell

Other

### Additional Information

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The report names no source files or tests. Start by reproducing the Windows startup failure with the documented mklink junction and compare the behavior described in issues #57998 and #61350. Done should include bounded AppData growth, a supported relocation path, and successful startup when the data is moved.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
operating-systems, tooling
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。