Skip to content

[BUG] [VSCode] Sidebar delete button does nothing — cannot remove sessions #49824

Description

@joelveloso

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Open VS Code with the Claude Code extension installed
  2. Open the Claude Code sidebar and locate any existing session in the list
  3. Hover the session entry to reveal the action icons
  4. Click the delete/trash icon
  5. Observed: nothing happens — no visual change, no confirmation dialog, no error
  6. Reload the VS Code window (Cmd+Shift+P → "Developer: Reload Window")
  7. Observed: the session is still present in the sidebar
  8. Check ~/.claude/projects/<project-slug>/ on disk — the .jsonl file 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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:vscodeIssue specifically occurs in VS CodestaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions