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

Đang mở
#88,764 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
area:desktop area:packaging bug platform:windows
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

### 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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
cli, desktop
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.