Skip to content

Instantly share code, notes, and snippets.

@robster7674
robster7674 / README.md
Created November 3, 2026 20:26
Reopen the Claude Code tabs a VS Code / Remote-SSH restart dropped (workaround for anthropics/claude-code#100708)

Reopen the Claude Code tabs a VS Code restart dropped

Workaround for anthropics/claude-code#100708 / #102252: when the extension host is down as the window reloads (Remote-SSH grace expired, remote host rebooted or ran out of memory), the Claude Code tabs are gone and the extension's own list of them is pruned.

This keeps its own list: a timer records the running claude sessions (id, cwd, name, VS Code or terminal) every 2 minutes, and a script reopens the ones that were open at a given moment as tabs, one window at a time. It doubles as a Claude Code skill, so you can also ask Claude "which sessions were open before the crash?".