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?".