[BUG] [VSCode] Sidebar delete button does nothing — cannot remove sessions
Preflight Checklist
- [x] I have searched existing issues 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?
Clicking the delete/trash icon next to a session in the VS Code extension sidebar does nothing. The session is not removed from the sidebar list, the underlying .jsonl file in ~/.claude/projects/<project>/ is not deleted, and there is no error, confirmation dialog, or visual feedback of any kind.
Combined with the sidebar rename bug (#37628), this means there is currently no working way to manage sessions from the VS Code extension UI — users can neither rename nor delete conversations.
What Should Happen?
Clicking the delete icon should remove the session from the sidebar and delete (or archive) the corresponding .jsonl file on disk. Ideally with a confirmation prompt to prevent accidental deletion.
Error Messages/Logs
(none — the click is a silent no-op)
Steps to Reproduce
- Open VS Code with the Claude Code extension installed
- Open the Claude Code sidebar and locate any existing session in the list
- Hover the session entry to reveal the action icons
- Click the delete/trash icon
- Observed: nothing happens — no visual change, no confirmation dialog, no error
- Reload the VS Code window (Cmd+Shift+P → "Developer: Reload Window")
- Observed: the session is still present in the sidebar
- Check
~/.claude/projects/<project-slug>/on disk — the.jsonlfile is still there
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.92 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
Environment details:
- OS: macOS 26.4.1 (Darwin 25.4.0, Apple Silicon)
- VS Code: Claude Code native extension
Related issues:
- #37628 — Sidebar pencil-icon rename is overwritten by auto-generated title on next message (still reproducing in 2.1.92)
- #16053 — CLI
/renamedoesn't sync to VS Code extension dropdown
Impact: Session management in the VS Code extension is effectively non-functional. With no working rename and no working delete, the sidebar becomes unusable for organizing more than a handful of conversations, especially when auto-generated titles are generic
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗