stacklok / stacklok/toolhive-studio

[Bug] Update for 0.24 fails and installer wipes out settings

Open
#1,776 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
TypeScript
Stars
167
Forks
24
Avg merge
11h 32m
Merged PRs (30d)
91

Description

Bug Description

Trying to update within the app fails with a checksum error.

When I use ToolHive.Setup.exe from Releases to force the update, it completely wiped the ToolHive Local Appdata folder, removing all my existing tools, configurations, and secrets.

Steps to Reproduce

No response

Expected Behavior

The setup exe should not wipe the existing config, unless a 'Clean Install' option is chosen.

Actual Behavior

No response

Priority

Medium

Environment

Windows 11 25H2
ToolHive v0.23 updating to v0.24

Additional Context
[2026-03-19 14:11:25.352] [info]  checking-for-update
[2026-03-19 14:11:25.353] [info]  [update] checking for updates...
[2026-03-19 14:11:26.461] [info]  update-available; downloading...
[2026-03-19 14:11:26.462] [info]  [update] update is available, starting download...
[2026-03-19 14:11:27.704] [info]  updater error
[2026-03-19 14:11:27.705] [info]  Error: Command failed: 4294967295
System.AggregateException: One or more errors occurred. ---> System.Exception: Checksummed file size doesn't match: C:\Users\Stewart\AppData\Local\ToolHive\packages\ToolHive-0.24.0-full.nupkg
   at Squirrel.UpdateManager.DownloadReleasesImpl.checksumPackage(ReleaseEntry downloadedRelease)
   at Squirrel.UpdateManager.DownloadReleasesImpl.<>c__DisplayClass2_0.<<DownloadReleases>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.UpdateManager.DownloadReleasesImpl.<DownloadReleases>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.UpdateManager.<DownloadReleases>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Squirrel.Update.Program.<Update>d__5.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
   at Squirrel.Update.Program.Main(String[] args)
---> (Inner Exception #0) System.Exception: Checksummed file size doesn't match: C:\Users\Stewart\AppData\Local\ToolHive\packages\ToolHive-0.24.0-full.nupkg
   at Squirrel.UpdateManager.DownloadReleasesImpl.checksumPackage(ReleaseEntry downloadedRelease)
   at Squirrel.UpdateManager.DownloadReleasesImpl.<>c__DisplayClass2_0.<<DownloadReleases>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.UpdateManager.DownloadReleasesImpl.<DownloadReleases>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.UpdateManager.<DownloadReleases>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Squirrel.Update.Program.<Update>d__5.MoveNext()<---


    at ChildProcess.<anonymous> (node:electron/js2c/browser_init:2:11241)
    at ChildProcess.emit (node:events:520:35)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Squirrel updater errors around ToolHive.Setup.exe and the ToolHive-0.24.0-full.nupkg package shown in the report. Check the update path that handles the ToolHive Local Appdata folder and verify behavior on a Windows 11 update from v0.23 to v0.24. Done means the update no longer fails its checksum or removes existing tools, configurations, and secrets unless a clean install is chosen.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.