The agent moved the workspace to another drive and it will not open
Discussion #12812 says the author asked an agent to move the workspace onto drive D. After a restart the app could not be used normally. A comment said using the system drive as the workspace also errored for that reader, and that their window still opened, so it is not the same failure. No reply names a flag that retargets a workspace.
Fix it by hand
- Quit dsh. Copy $DSH_HOME aside. The workspace registry, when that domain is in use, is $DSH_HOME/storages/workspace.json.
- Read the paths in that file. If the project directory is on the other drive and the registry still names the old path, move the project directory back to the old path. Do not ask the agent to move it again.
- If you no longer know the old path, unpack a backup taken before the move, with the current home moved aside first.
- A comment is not a fix procedure. Do not point the workspace at a drive root just to test.
UndoHaven does not rewrite absolute paths inside a restored home. A snapshot from before the move is the copy that still matches the old path.
Optional encrypted snapshot
Optional. UndoHaven is an unofficial third-party, compatible with dsh. Copy the directory by hand first, then use an encrypted snapshot if you want one.
npx undohaven init
- Install: copy this command.
- First snapshot: it stays encrypted on this machine.
- Roll back: undohaven restore --to SNAPSHOT_ID
Free covers 7 days of history and 1 device. Pricing