Restore Checkpoint creates bugs

Am I using this wrong?? My code works fine until I restore to a checkpoint and brings bugs which don’t let me launch the code no more… i have to go back like few prompts earlier for it to function again… This is SO ANNOYING, doesn’t the checkpoint restore everything in the code back to what it was??

Version: 0.46.11 (user setup)
VSCode Version: 1.96.2
Commit: ae378be9dc2f5f1a6a1a220c6e25f9f03c8d4e10
Date: 2025-03-07T07:01:25.026Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100