anthropics / anthropics/claude-code

Desktop Code tab cannot see any local sessions — packaging defect (%40ant folder) plus device-registry failure; CLI reads same files fine

オープン
#88,764 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
area:desktop area:packaging 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?

Title: Desktop Code tab cannot see any local sessions — packaging defect (%40ant folder) plus device-registry failure; CLI reads same files fine

Environment: Windows 11 · Claude Desktop manual build (installed 8/21 after MSIX staged-package failure) at %LOCALAPPDATA%\ClaudeManual · Claude Code CLI 2.1.239 · Max plan

Summary:
Desktop Code tab's /resume picker reports "No Claude Code sessions found on this computer" while ~/.claude/projects/ contains 185 transcript files across 7 project folders. The CLI (claude --resume) from the same working directory lists and resumes all of them normally. Sessions affected include ones originally created in the desktop app itself.

Defect 1 — packaging:
The manual build unpacked its native module to a URL-encoded folder name:
app.asar.unpacked\node_modules\%40ant\claude-native\claude-native-binding.node
The app requires @ant/claude-native and fails to load it, producing on every session-list attempt:

Error: @ant/claude-native is required for safe-fs containment but failed to load;
refusing to fall back to a path-based open (CC-2885)
code: ERR_SAFE_FS_ROOT — Root is not an accessible directory: C:\Users\Bill\AppData\Roaming\Claude

Manually renaming %40ant → @ant eliminates CC-2885 (confirmed via main.log before/after).

Defect 2 — device registry:
With safe-fs fixed, the picker still returns zero sessions. main.log shows repeating:

[device-registry] enclave key unavailable — refusing cached row-PK
[device-registry] enclave key unavailable — refusing to resolve row-PK
[remote-tools-device] row PK re-check 3: still no id to present

Not resolved by: full process kill + restart, sign-out/sign-in (fresh oauth token confirmed in log), fresh test project with space-free path containing a valid .jsonl.

Working evidence:

[CCD] /stats (worker) scanned 185/185 transcript files since 2026-03-13 — the stats worker reads all transcripts fine
CLI --resume lists and opens every session
/desktop handoff from CLI successfully opens a session in the desktop app, which then functions normally

Expected: Code tab lists local sessions from ~/.claude/projects/, as CLI does.

Impact: All pre-existing sessions unreachable from the desktop UI; app search doesn't cover code session content, so months of work is undiscoverable without CLI workarounds.

### What Should Happen?

Image
Image
Image

### Error Messages/Logs

```shell
Error: @ant/claude-native is required for safe-fs containment but failed to load;
refusing to fall back to a path-based open (CC-2885)
code: ERR_SAFE_FS_ROOT — Root is not an accessible directory: C:\Users\Bill\AppData\Roaming\Claude

[device-registry] enclave key unavailable — refusing cached row-PK
[device-registry] enclave key unavailable — refusing to resolve row-PK
[remote-tools-device] row PK re-check 3: still no id to present
```

### Steps to Reproduce

I wouldn't wish this on anyone and after 4 hours with Claude can't fix it. So screw reproducing it.

### Claude Model

Not sure / Multiple models

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

The latest version crashed in the middle of nothing...

### Claude Code Version

Latest one

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

I worked with Claude chat for four hours in fable mode making a hundred screenshots. It was CLAUDE CODE HELL!

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

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

調査の方向性

Start with the manual build's app.asar.unpacked\node_modules\%40ant\claude-native path and compare main.log before and after the folder rename. Then trace the device-registry messages while comparing the desktop picker with ~/.claude/projects/ and the CLI --resume and /stats entry points. Done means the Code tab lists and opens the local sessions without either reported failure.

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

評価

領域
cli, desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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