This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| VS Code Copilot Chat Session Restoration Script | |
| ================================================ | |
| When you copy your VS Code data (%APPDATA%/Code or ~/.config/Code) to a new | |
| machine, Copilot chat sessions may not appear because VS Code's workspace | |
| storage hash includes the folder's creation time (birthtime). When folders are | |
| copied, their birthtime changes, producing a different hash — so VS Code creates | |
| a fresh, empty workspace storage instead of finding the old one with your chats. |