Skip to content

feat: report the installed DeepSeek Harness version on Windows - #249

Open
yujiezhang-ops wants to merge 1 commit into
mainfrom
claude/dsh-windows-version
Open

yujiezhang-ops wants to merge 1 commit into
mainfrom
claude/dsh-windows-version

Conversation

@yujiezhang-ops

Copy link
Copy Markdown
Collaborator

Summary

  • On Windows, inspectDSH now fills Status.Version from the installed exe's VersionInfo.ProductVersion. The app self-updates through electron-updater, so the on-disk version is authoritative, the same reasoning the macOS path already applies to the bundle plist.
  • WorkBuddy's PowerShell version query is now shared as windowsProductVersion (in windows_verify.go). The path is still passed via BOOTAGENT_VERSION_PATH, never interpolated into the script, and a leading UTF-8 BOM is stripped.
  • A failed query leaves the version unset without flagging InspectionUnavailable, matching WorkBuddy.
  • The dshWindowsCandidates comment now records that the path was observed on a real install.

Verified on a Windows 11 install of 0.1.7-rc.2: the exe reports ProductVersion 0.1.7-rc.2, matching the HKCU uninstall entry's DisplayVersion.

Test plan

  • New TestInspectDSHWindowsReportsTheInstalledProductVersion (mocked runner, BOM + CRLF output, path passed via env)
  • New TestInspectDSHWindowsLeavesVersionUnsetWhenTheQueryFails
  • Existing Windows inspect test now uses a mocked runner instead of spawning PowerShell
  • go test ./internal/desktopapp on Windows: same failure set as main (only the pre-existing TestZCodeMacOSInstallVerifiesDigestBundleIDAndSignature)
  • CI

🤖 Generated with Claude Code

DeepSeek Harness replaces itself through electron-updater, so the version
BootAgent installed is not the one on disk. macOS already reads it from the
bundle plist; Windows now reads the exe's ProductVersion (0.1.7-rc.2 on a
real Windows 11 install) through the same PowerShell query WorkBuddy uses,
now shared as windowsProductVersion.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@yujiezhang-ops
yujiezhang-ops requested a review from a team September 26, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants