[BUG] Claude Code appears twice in VSCode sidebar after extension update

Status Closed — not planned
Reported on v2.1.70
Maintainer reply None cached
Activity 15 comments · opened Mar 6, 2026 · closed Aug 8, 2026

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?

Claude Code appears twice in VSCode sidebar after extension update

Description

After updating the Claude Code VSCode extension, Claude Code appears twice in the sidebar — once in the Activity Bar (left) and once in the Secondary Sidebar (right). Both entries are visible simultaneously, even though the when clauses in the extension's package.json are designed to be mutually exclusive.

<img width="59" height="276" alt="Image" src="https://github.com/user-attachments/assets/edadc5ad-bd0a-4161-8d9d-e7b63f889d17" />

What Should Happen?

  • Only one Claude Code entry should appear — either in the Activity Bar or the Secondary Sidebar, depending on VSCode support.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Update the Claude Code VSCode extension to the latest version
  2. Observe the sidebar — Claude Code appears in both the Activity Bar and Secondary Sidebar

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.70

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Root Cause Analysis

The extension registers two sidebar contributions in package.json:

"activitybar": [
  {
    "id": "claude-sidebar",
    "title": "Claude Code",
    "icon": "resources/claude-logo.svg",
    "when": "claude-code:doesNotSupportSecondarySidebar"
  }
],
"secondarySidebar": [
  {
    "id": "claude-sidebar-secondary",
    "title": "Claude Code",
    "icon": "resources/claude-logo.svg",
    "when": "!claude-code:doesNotSupportSecondarySidebar"
  }
]

The when conditions rely on the context key claude-code:doesNotSupportSecondarySidebar, which does not appear to be set correctly after the update. As a result, both entries are displayed.

Workaround

Right-click the unwanted entry in the sidebar and select "Hide". Yet they both have the same name and don't are the same.

Environment

  • OS: macOS 15.7.1
  • VSCode: 1.96.4
  • Claude Code Extension: 2.1.70 (updated on 2026-03-06)

View original on GitHub ↗

12 Comments

github-actions[bot] · 5 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/31375

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

CodingMarkus · 5 months ago

This is no dupe of #31375

#31375 is about the icon not showing up at all. This issue is about the icon showing up twice. How is that the same?

Also #31375 only happens when using Cursor and I'm not even using that, so totally unrelated.

jakezien · 5 months ago

I have the same issue, and not sure if connected but the Claude extension can't find my web sessions

adamajane · 5 months ago

I'm also experiencing the same issue; one icon redirects you to the Claude Code chat window, and the other to an overview of my local and remote sessions.

<img width="364" height="195" alt="Image" src="https://github.com/user-attachments/assets/c0a128ad-9d9f-4eec-8ec7-b4669c44f31b" />
<img width="359" height="264" alt="Image" src="https://github.com/user-attachments/assets/a69823b7-6bbd-4e55-b064-b64c63ceb5fa" />

Pikktee · 5 months ago
ThornsW · 4 months ago

我也遇到了一样的问题

<img width="405" height="132" alt="Image" src="https://github.com/user-attachments/assets/0edc4386-2122-451d-99b4-81dd64ab83ee" />

我的解决办法是修改Claude code的package.json文件(/.vscode/extensions/anthropic.claude-code-2.1.92-linux-x64/package.json)

<img width="1438" height="626" alt="Image" src="https://github.com/user-attachments/assets/9ffa7e7c-89cf-4218-8bc6-8b2a6fb20237" />

<img width="1438" height="626" alt="Image" src="https://github.com/user-attachments/assets/44fcab67-57d8-447d-8e94-3dfe14ad710e" />

这是最简单的方法(我是强迫症),剩下的就等官方修复吧

CodingMarkus · 4 months ago

@ThornsW I don't have to patch the file to hide one of both, I can just right click the sidebar and uncheck one of both in the context menu (as I already mentioned as work around in my original bug report). But the bug is that even without doing that, only one of both should ever be visible at the same time.

lambdaphy · 4 months ago

这个bug还没有解决吗

mcejp · 3 months ago

Still happening as of 2.1.145

julian-xinchi · 3 months ago

Still happening as of 2.1.156

ZhenshengLee · 2 months ago

Still happens as of 2.1.168 (Claude Code)

xianfuxing · 2 months ago

issue still persists
2.1.187

Showing cached comments. Read the full discussion on GitHub ↗