anthropics / anthropics/claude-code

Archive/delete of Claude Code sessions is per-client — desktop's archive flag is invisible to the VS Code extension

Đang mở
#88,476 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
area:cli area:desktop area:vscode enhancement 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ả

Using the Claude Desktop **Code** tab and the Claude Code **VS Code extension** against the same project is a constant cleanup tax: I archive a conversation in the desktop app, it still shows up in the extension; clicking it there silently **un-archives** it back in the desktop app; deleting it in the extension leaves it sitting in the desktop list. Every tidy-up has to be done twice, and the two clients actively undo each other.

The cause looks structural: both clients read the same `~/.claude/projects//*.jsonl` files, but the archived state is stored **only** in the desktop app's Electron localStorage (`%APPDATA%\Claude\Local Storage\leveldb` contains `"archived":false` records). Nothing in the shared `~/.claude/` tree records it, so the extension has no way to read or write that flag.

The CLI is a third case with no cleanup at all: `/resume` enumerates every `.jsonl` regardless, and the only removal tool is `claude project purge`, which wipes an entire project's transcripts, tasks, and file history.

Request: move archive/delete state into shared state under `~/.claude/` (a per-project sidecar, or a field in the session index) that every client reads and writes — then the extension can hide archived sessions and offer *Archive* alongside *Delete*, and `/resume` can honor it too.

Env: Windows 11, Claude Code 2.1.237 (desktop Code tab) / 2.1.234 (CLI), VS Code extension.

Refs #62980, #65674, #66229, #49775 (all closed and locked; filing new per the bot's instruction).

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 by tracing how the clients read ~/.claude/projects//*.jsonl, how the desktop app persists archived records in Electron localStorage, and how /resume enumerates sessions. Done means archive/delete state is shared under ~/.claude/, the VS Code extension and desktop stay consistent, and /resume honors archived sessions without broad project purge.

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

Đánh giá

Công nghệ
electron, python, vscode
Lĩnh vực
cli, desktop, developer-experience
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
38/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.