Repository navigation
Replies: 2 comments
|
This is the electron-updater signature step, not DSH code. Confirmed from the tree at That also means your three options are upstream decisions or a DSH dependency bump, not a local patch. Two report-worthy points from your data: the AV-exclusion workaround ( I did not reproduce on Windows; this is dependency-scope plus your timings. You can hand this to an AI to adapt the exclusion steps; if this explains it, marking it as the answer helps the next reader. |
|
One important distinction here is that a signature verification timeout should not be treated the same way as an invalid signature. The current behavior appears to collapse two different outcomes:
I'd recommend making these outcomes explicit in the updater flow rather than treating every verification failure as a reason to abort permanently. A more resilient approach would be:
One additional consideration: caching verification results should be keyed to the executable's cryptographic hash and relevant signature/trust context, not merely its file path. Otherwise, replacing the file at the same path could accidentally reuse a stale successful result. Since this behavior currently resides in The key invariant should be: a timeout must never weaken signature enforcement, but it should also never be misreported as proof that the downloaded executable is untrusted. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Auto-update from 0.2.2-rc.1 to 0.2.2-rc.3 fails on Windows 10 every time.
Error shown in the UI
Command failed: set "PSModulePath=" & chcp 65001 >NUL & powershell.exe -NoProfile
-NonInteractive -InputFormat None -Command "Get-AuthenticodeSignature
-LiteralPath '...@deepseek-aidsh-desktop-updater\pending
temp-deepseek-harness-0.2.2-rc.3-win-x64.exe' | ConvertTo-Json -Compress"
Environment
ekrn, real-time protection ON)Investigation
The installer itself is FINE — this is not a corruption or publisher problem:
Get-AuthenticodeSignature -LiteralPath <file>returns Status = Valid,signer
CN="Hangzhou DeepSeek Artificial Intelligence Co., Ltd.",timestamper DigiCert.
with valid JSON, but takes 13–18 seconds.
Timings measured on the same machine
Get-AuthenticodeSignatureon the 286 MB installerGet-AuthenticodeSignatureon the installed 246 MB .exeelectron-updatergives this call a 20 s timeout(
preparePowerShellExec(..., 20 * 1000)inwindowsExecutableCodeSignatureVerifier.js), and each check spins up a freshPowerShell process with a verification context that does not reuse the
cache — so all 286 MB get re-processed every single attempt.
On a machine with real-time AV scanning reads, the check lands right at the
timeout boundary and randomly fails. I retried several times over days — same
result each time, so it is not flaky, it just never fits into 20 s.
Why the fix should not be "just raise the timeout"
I see the timeout is already raised to 30 s in rc.3, but rc.3 is exactly the
build that cannot be installed, so there is a bootstrap problem: the code that
raises the limit can only arrive via the very update path that fails.
Even 30 s is only ~2x headroom on a 15 s baseline and will regress on slower
disks / heavier AV configurations.
What would actually help
(e.g.
WinVerifyTrustvia a small signed helper or Node native binding), orattempt, and/or
times out, instead of hard-failing.
Workaround for other affected users
Adding the updater cache directory to the AV exclusion list:
%LOCALAPPDATA%\@deepseek-aidsh-desktop-updater\and the install dir
%LOCALAPPDATA%\Programs\DeepSeek Harness\after which the check drops below 2 s.
All reactions