PowerShell/cmd users hop drives with a bare 'd:' — no cd keyword — so the typed-command tracker never saw it, the pane's cwd stayed at its creation directory, and the session snapshot restored it to home. Treat a bare drive-letter line as a cd to the drive root; the main-process existence check drops it on platforms without drive letters.