[BUG] VSCode Extension: sessions-index.json stops updating after account switch, causing recent sessions to disappear from history

Resolved 💬 3 comments Opened Feb 20, 2026 by GregEisenberg Closed Feb 24, 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?

My Claude history appears lost in the VS Code extension - Claude claims its still on disk
This occurred because I have 2 Claude accounts - a personal and paid, and my session timed out, requiring me to log back in and EACH time I log back I think I am on the personal account because the history only shows that

What Should Happen?

Claude claims I should see the history of all my interactions

Error Messages/Logs

Steps to Reproduce

Title: VSCode Extension: sessions-index.json stops updating after account switch, causing recent sessions to disappear from history

Environment:

Claude Code VSCode Extension
macOS Darwin 25.3.0
Two workspaces under same email: Personal (Free plan) + Team plan
Describe the bug

After logging out and back in to switch from a Personal (free) account to a Team plan account, the VSCode extension stops updating ~/.claude/projects/<project>/sessions-index.json. New sessions continue to be written as .jsonl files on disk, but they are never registered in the index. Since the extension reads history from the index rather than the raw files, recent sessions become invisible in t

<img width="795" height="327" alt="Image" src="https://github.com/user-attachments/assets/9e6b2f91-cd79-42b8-8493-a8da28baef3c" />

he UI.

Steps to reproduce:

Have two workspaces under the same email (Personal + Team)
Log out via /logout in the extension
Log back in and select the Team plan workspace
Continue working — new sessions are created
Open the session history in the VSCode extension — only pre-logout sessions are visible
Expected behavior

All sessions should appear in history regardless of which account is active.

Actual behavior

Sessions created after the account switch exist as .jsonl files on disk but are absent from sessions-index.json and therefore invisible in the extension's history UI.

Evidence

sessions-index.json contains 2 entries (last modified Feb 18 at 11:54 AM). Meanwhile, the project directory contains .jsonl session files dated Feb 18 22:38 (3.9MB), Feb 19 (7.3MB), and Feb 20 (2.9MB) — none of which appear in the index.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.49

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Cursor

Additional Information

sessions-index.json

<img width="795" height="327" alt="Image" src="https://github.com/user-attachments/assets/5d7c27e1-0fec-4f04-9fdd-affaf0b416a9" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗