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
- Lenguaje dominante
- Python
- Estrellas
- 145k
- Forks
- 23.1k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
### 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?
### 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!
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Área
- cli, desktop
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100