Repository navigation
feat: rename Startup Profiles to Loadout, with data migration - #10
Merged
Merged
Conversation
Mechanical rename only: folders, csproj files, the solution, namespaces, LoadoutPaths, MapLoadoutApi and the assembly name (so the exe is Loadout.exe). No behaviour change; user-facing text, data paths and the installer follow in later commits.
…nt.json On the first start under the new name, copy %APPDATA%\StartupProfiles to a staging folder, verify it file by file, then rename it into place. The old folder is kept and gets a MOVED-TO-LOADOUT.txt note. A failed copy leaves no half-filled folder, falls back to the old folder for that run, and retries on the next start. endpoint.json is written to both folders and read from the new one first.
…me the instance - The Run value is now Loadout. Starting the app, or --register-login, removes the StartupProfiles value and keeps the new one off if the user had switched the old one off. - loadout:// is the registration scheme. startupprofiles:// still parses and is still registered, so links in other apps keep working. - The single-instance name, update user agent and installer asset prefix use the new name.
Keep the Inno AppId, install to Programs\Loadout and remove the old program folder, shortcuts and agent skill. Close the old exe during setup. install.ps1 and uninstall.ps1 handle both names. The agent skill is now skills/loadout and reads the new endpoint.json path first, then the old one. The release also attaches the installer as StartupProfiles-Setup-<version>.exe so installs of the old name can update.
…k scheme README, ARCHITECTURE, CONTEXT, HANDOFF, API, INTEGRATION and SECURITY use the new name. API.md marks %APPDATA%\StartupProfiles\endpoint.json as deprecated. Adds the CHANGELOG entry and a pitfall about creating the new data folder before the migration runs.
The file format name stays startup-profiles-backup, so older backups still restore.
…art choice - Setup stops StartupProfiles.exe in PrepareToInstall and aborts if it keeps running. - DataMigration takes a named mutex, defers while the old app runs, counts only profiles, library and base as data, moves stray files aside instead of deleting them, saves files the old app wrote after the copy, and reports any exception as Failed. - --register-login keeps an old 'off' choice and enables the new entry before removing the old one. - endpoint.json discovery skips a file whose process is gone and tries the next candidate.
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.
GoalMaker: Startup Profiles #20
Renames the app from Startup Profiles to Loadout, with a safe migration for existing installs.
Commits (mechanical and behaviour are separate)
refactor: rename projects, namespaces and solution to Loadout- mechanical only (folders, csproj,Loadout.slnx, namespaces,LoadoutPaths,MapLoadoutApi, assembly name so the exe isLoadout.exe). No behaviour change.feat(storage)- data moves to%APPDATA%\Loadout;endpoint.jsonwritten to both folders.feat- autostart entry, link schemes, single-instance name, updater prefix.feat- user-facing text says Loadout.feat(installer)- in-place upgrade, scripts, release workflow, skill rename.docs- docs, CHANGELOG (Unreleased), pitfall.feat(backup)- new backups are namedloadout-backup-<date>.json(the format name is unchanged, so old backups restore).Decisions kept from the brief
Loadout.exe, folder%LOCALAPPDATA%\Programs\Loadout.AppIdunchanged, so the new setup upgrades in place (UsePreviousAppDir=no,[InstallDelete]removes the old folder, shortcuts and skill,CloseApplicationsFiltercloses the old exe).%APPDATA%\Loadouthas noprofiles.json,library.jsonorbase.jsonand%APPDATA%\StartupProfilesexists, copy to a staging folder, verify by SHA-256, rename into place, leaveMOVED-TO-LOADOUT.txtin the old folder. The old data is never deleted. Stray files in the new folder (for exampleerror.log) are moved toLoadout.before-migration, not deleted.recovered-from-startupprofilesin the new folder and logged toerror.log; nothing is overwritten.StartupProfiles.exeinPrepareToInstall(taskkill, then confirms it exited) and aborts with a message if it cannot.endpoint.jsongoes to both folders while the old one exists.docs/API.mdmarks the old path deprecated.skills/loadout, reads the new path first, then the old one.Additions beyond the brief (please check)
loadout://is new;startupprofiles://is still registered and parsed, so links in other apps keep working (deprecated).Loadoutreplaces theStartupProfilesRun value, on app start and on--register-login. The new entry is written first, then the old one removed. If the user had switched the old one off, the new one is not turned on. A first install (no old entry) enables it.endpoint.jsondiscovery reads the new file first and skips a file whose process is gone; the registration client tries each candidate with a health check.StartupProfiles-Setup-*.exe, so the release workflow also attaches the installer under that name (with.sha256). New builds look forLoadout-Setup-*.exe..claude\skills\startup-profilesand installsloadout.Tests
Release build 0 warnings; 338 tests pass (15 Windows, 123 Core, 200 App);
dotnet format --verify-no-changesandtools/validate_repository.pypass; installer compiles with Inno Setup. New tests:DataMigrationTests(new user, migrating user, both folders present, empty new folder, stray files, concurrent runs, deferral while the old app runs, failure half way then retry, stale staging folder, late writes by the old app, rerun),LegacyAutostartTests(off choice kept, enable before remove),EndpointDiscoveryTests(dead entry skipped), old-scheme parsing.Manual test list
Loadout-Setup-<v>.exe. Old app closes; onlyPrograms\Loadoutremains; one Start menu shortcut "Loadout".%APPDATA%\Loadoutexists;%APPDATA%\StartupProfilesstill has its files plusMOVED-TO-LOADOUT.txt.Loadoutand noStartupProfiles; sign out and in, the launcher shows.endpoint.jsonexists in both%APPDATA%\Loadoutand%APPDATA%\StartupProfiles; theloadoutskill finds the app; an old skill reading the old path still connects.start loadout://register?appId=t&name=T&target=C:\Windows\notepad.exeand the same withstartupprofiles://both open the confirmation window.StartupProfiles-Setup-<v>.exeon the release.%APPDATA%\Loadoutis kept; taken-over startup apps are switched back on.Not verified
No real upgrade on a machine, no autostart/sign-in, no tray check, no run of
install.ps1/uninstall.ps1(syntax-checked only), andPrepareToInstallcompiles but was never run against a live old app, no signed release. The migration was tested through unit tests, not against the real AppData (this shell sees a redirected AppData).The user-level skill at
C:\Users\krejci\.claude\skills\startup-profilesis not edited here; the installer replaces it, or copyskills/loadout.