Repository navigation
[Bug] Windows auto-update to 0.2.1-rc.3 overwrites install dir D:\dsh and deletes workspaces stored inside it (data loss) #10851
wangyinhao447-sudo
started this conversation in
General
Replies: 1 comment
|
That’s a serious updater bug. If the backup rename fails because the app is still running, the installer should abort instead of continuing with an in-place update that can delete user data. Keeping workspaces inside the install directory may not be ideal, but the updater should still handle that situation safely and warn users before proceeding. For now, fully quit DSH before updating and keep workspaces outside the installation folder, with separate backups of important files. Also, Windows 10 support ended on October 14, 2025, so users looking for a download Windows 10 ISO should use Microsoft’s official download page rather than modified ISOs from unknown sources. for more visit: https://bagas31.pw/windows-10-pro-gratis-jan26-v1 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
In-place Windows desktop auto-update 0.2.1-rc.2 → 0.2.1-rc.3 (2026-10-24, ~14:20 local time, UTC+08:00) destroyed the install directory D:\dsh and everything else that lived inside it.
The updater first tried to back up the install directory by renaming it: D:\dsh → D:\dsh.old-{BDFE85A7-...}. That rename failed 10 times with
Windows error: 5 (access denied)because the running DSH process holds the directory open (see the installer log in Evidence §1). Instead of aborting, the updater continued and replaced D:\dsh in place, deleting every top-level entry that was not part of the new build — including the workspaces I had opened inside the install directory:Nothing is recoverable: there is no D:\dsh.old-* directory, no Recycle Bin entry, no Volume Shadow Copy, no restore point. The data is simply gone.
中文摘要:Windows 桌面版自动更新 0.2.1-rc.2 → 0.2.1-rc.3 时,安装器先把安装目录 D:\dsh 改名为 D:\dsh.old-{...} 做备份,因运行中的 DSH 占用目录而失败(Windows error 5,连续 10 次);安装器没有中止,而是改为就地覆盖安装,把安装目录里除新版本文件外的所有内容删掉——包括建在该目录下的三个工作区(D:\dsh\code、D:\dsh\learn、D:\dsh\system environment)。无 .old 备份目录、回收站无记录、无卷影副本/还原点,数据不可恢复。期望行为:备份改名失败就中止更新并提示用户关闭应用,且更新不得删除非本安装器写入的文件。
Steps to reproduce
%LOCALAPPDATA%\@deepseek-aidsh-desktop-updater\pending\and launchesinstaller.exewhile DSH is still running.Expected behavior
{dir}.old-{guid}" backup step fails, the update must abort and ask the user to fully quit DSH and retry (or defer the update to app shutdown).Actual behavior
Operation: MoveFileExW / Windows error: 5withAttempts: backup ... ×10, and then the updater proceeds destructively.Environment
@deepseek-ai/dsh-desktop0.2.1-rc.3,dshBuildCommit: be72761ee1a6736ebcdf4f3739363b083ae53c98,dshBuildDirty: false)dshDesktopUpdateChannel: nightlyisAdminRightsRequired: falsein pending/update-info.json)Timeline (local time, UTC+08:00, 2026-10-24)
Evidence
1. Installer log:
installer-logs/directory-failure-20261024-142032.log2. Workspaces registered inside the install directory at the time
From the pre-update copy of
C:\Users\<user>\.dsh\storages\workspace.json:3. Session logs recorded those directories as the working directory
First event of
C:\Users\<user>\.dsh\sessions\--D-workplace-code--\session-6c832e96-...\session.v4.jsonl.zstd:{"type":"session","cwd":"D:\\dsh\\code", ...}(Copies of the logs were hard-linked to the new slug directories after the incident, so the path in the directory name now reads D:\workplace; the recorded
cwdstill says D:\dsh\code.)4. Install directory after the update
D:\dsh contains only the 0.2.1-rc.3 payload (DeepSeek Harness.exe, resources/, locales/, version). The three workspace directories are gone, and D:\dsh.old-{...} was never created. See install-dir-listing.txt in the attachments.
Suspected cause
This is a data-destroying failure mode where a recoverable precondition (app running) turns into unrecoverable loss.
Suggested fixes
Workaround for other users
Attachments
All reactions