anthropics / anthropics/claude-code
Local CLI sessions and Cloud/App sessions don't share history — feels like losing work
- Ngôn ngữ chính
- Python
- Star
- 145k
- Fork
- 23.1k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
### What happened
I was working on a project with Claude Code from the local terminal (a long session, hours of conversation, accumulated context and decisions). At some point the app closed unexpectedly. When I reopened it and used the "work on this project remotely" option, it created a brand new, completely empty cloud session — with no indication that a local session with my full history still existed.
I only found out my previous conversation was still intact because I asked Claude directly, and it explained that local CLI sessions (`~/.claude/projects/...`) and cloud sessions are separate stores that never sync. I had to go back to a raw terminal and run `claude --resume` to recover it.
### Why this is a problem
Most users are not developers who understand session storage internals. Many people "vibe-code" through the GUI without ever touching a terminal. If their app closes and they're offered "continue in the cloud," they will reasonably assume that continues their work — not realize it silently starts from zero. This reads as data loss even when it technically isn't, and it's very frustrating to face what looks like an empty project.
### Related prior reports
- Related: #56038 (requesting sync across CLI, Desktop, and web). This issue specifically focuses on the unexpected crash / "continue in the cloud" flow that leads to perceived data loss for non-technical users.
### Suggestions
- When offering to open a cloud/remote session for a project that already has local session history, the app should detect that and either offer to resume/import that local session, or at minimum warn clearly: *"This starts a new, separate session. Your local session '' will not be included."*
- Longer term, consider letting local CLI sessions be resumable from within the desktop/web app UI directly (not just via terminal `--resume`), so users aren't forced back to the command line to avoid losing context.
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 “work on this project remotely” flow and the local session store at ~/.claude/projects/; reproduce the behavior after closing a CLI session and invoking that option. Compare it with claude --resume. Done means the flow either offers the existing local session or clearly warns that the cloud session is separate, with coverage for the crash-and-reopen path.
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, cloud
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100