[BUG] VS Code extension 2.1.270: archiveInactiveSessions retroactively archived all sessions without notice, and session list empties itself on Windows with non-ASCII (Hebrew) user path
Environment
- Claude Code VS Code extension: 2.1.270 (auto-updated from 2.1.267)
- OS: Windows 11 (build 26200)
- Windows user profile path contains non-ASCII (Hebrew) characters and a space
- Reproduced on two computers
Bug 1: claudeCode.archiveInactiveSessions archives retroactively, with no notice
After the auto-update from 2.1.267 to 2.1.270, the first launch archived every session not touched in 14 days (168 sessions on one machine, 27 on another). There was no prompt, notification, or changelog notice in the UI. Sessions simply disappeared from the list.
- Session
.jsonlfiles on disk were intact, andclaude /resumein the CLI still listed all of them. - The IDs were written to
hiddenSessionIdsinside theAnthropic.claude-codekey in%APPDATA%\Code\User\globalStorage\state.vscdb. - Setting
claudeCode.archiveInactiveSessionsto0prevents future archiving but does not restore already-archived sessions, and there is no bulk "unarchive" action. We had to clearhiddenSessionIdsdirectly in the SQLite DB with VS Code closed.
Expected: a new auto-archive setting should not apply retroactively on first run (or should ask first), and there should be a way to unarchive sessions in bulk.
Bug 2: session list shows for a moment, then empties (2.1.270 only)
After clearing hiddenSessionIds (confirmed empty afterwards), the Claude Code session list in VS Code appears for about a second and then becomes empty. This happens every time.
Ruled out:
- Other extensions (tested with all third-party extensions disabled via
--disable-extension) - Settings Sync (not enabled)
- VS Code view state (
isHiddenflags reset) - Wrong workspace (the sessions' recorded
cwdis the user home folder, 38 session files exist for it)
Clue: the extension's global state contains a key like
sessionUnread:C:\Users\<mojibake> where <mojibake> is the Hebrew username rendered as box-drawing/Latin characters (UTF-8 bytes decoded with an OEM code page). Every other path in VS Code state shows the Hebrew name correctly. It looks like 2.1.270 derives the project path with the wrong encoding, so it looks for sessions in a project directory that does not exist, and the refreshed list comes back empty.
Workaround: reinstalling 2.1.267 (code --install-extension [email protected] --force) fixes the list immediately. All sessions appear and stay.
Steps to reproduce (bug 2)
- Windows account whose profile path contains non-ASCII characters (e.g. Hebrew).
- Have existing Claude Code sessions whose
cwdis under that path. - Install extension 2.1.270 and open the Claude Code session list.
- The list flashes and then empties. With 2.1.267 it works.
The .jsonl files survive the 2.1.270 update; the session list is the part that changes. Clearing hiddenSessionIds removes one filter, but the one-second flash and the mojibake sessionUnread path point to a second VS Code cache/list projection failure.
I built BasedGPT/claude-code-session-recovery for this retained-transcript gap. From the toolkit checkout on Windows, run:
python tools/diagnose.py
Follow the command it prints. If it routes to recover_vscode_sessions.py, review the dry run before applying it: the route reads the complete JSONL files and proposes missing entries for the VS Code state.vscdb cache without changing the transcripts. Keep a copy of the cache and both Claude data directories, and fully quit VS Code before any --apply.
Setting claudeCode.archiveInactiveSessions to 0 prevents future archiving but does not restore rows already hidden by the extension. The toolkit addresses the retained-file/session-list side, not the 2.1.270 regression or its path encoding; the 2.1.267 rollback remains the product-side workaround while that is investigated.
Hope this helps, if my tools are able to help you, would appreciate a ⭐ :)
Closing for now — inactive for too long. Please open a new issue if this is still relevant.