fix(update): the stable copy updates itself, and a restart keeps its profile (#104) - #105
Merged
Merged
Conversation
…profile (#104) The handoff relaunched the exe without --user-data-dir, and the installer only updates the installed app. Run as PrismTerminalStable.exe, the handoff now mirrors the fresh install into the copy's folder before restarting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FHHaWKR4M5QtW7Wecyuk4t
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #104.
Owner, 2026-09-30: "i click the update available icon in pt stable it updates then i reopen it and its the same icon there".
Two bugs on the update handoff (
installUpdateinsrc/main/update.ts):Programs\PrismTerminal. The stable copy is a plain copy in its own folder (tools/install-stable.ps1). It was never updated, so it kept offering the same release.--user-data-dir. The stable copy came back on the regular app's profile, with the regular app's tabs, instead of its own.Fix: the PowerShell the handoff runs is now built by a pure function,
src/main/updateHandoff.ts.--user-data-dirit was started with.PrismTerminalStable.exefrom outside the install folder, it goes on after the silent install. It waits for the old process to exit and mirrors the installed app into the copy's folder withrobocopy /MIR. Then it renames the exe back and removes the uninstaller, exactly asinstall-stable.ps1does. Finally it restarts the copy on its own profile.App 0.24.2. No core change.
Verified:
isStableCopy.updateNotes,updateGuard,updatePreview) pass.hostname.exestanding in for the installer. The stale file was removed, the new exe was renamed into place, the uninstaller was dropped, the copy was restarted, and the temp folder was removed.Note: the stable copy the owner runs today still has the OLD handoff. Its own update chip gets it right only from the next build on. It needs one refresh by hand (
npm run install:stable) after this merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01FHHaWKR4M5QtW7Wecyuk4t