The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): an install another package manager owns gets package-manager removal steps (review)
alt-glitch6aef8dfe8798
diff --git a/apps/desktop/electron/desktop-uninstall.test.ts b/apps/desktop/electron/desktop-uninstall.test.tsindex 23a7a939ed5..f58bf402290 100644--- a/apps/desktop/electron/desktop-uninstall.test.ts+++ b/apps/desktop/electron/desktop-uninstall.test.ts@@ -69,6 +69,13 @@ test('only standard installs allow desktop uninstall; managed kinds have no safetest('nativeRemovalInstructions names the steward per kind and OS', () => {assert.match(nativeRemovalInstructions('nix', 'linux'), /installed by Nix/)assert.match(nativeRemovalInstructions('nix', 'darwin'), /flake or profile/)++ for (const platform of ['linux', 'darwin', 'win32']) {+ const steps = nativeRemovalInstructions('external', platform, '/usr/lib/hermes/hermes')+ assert.match(steps, /with that package manager/)+ assert.doesNotMatch(steps, /Delete|Trash/)+ }+assert.match(nativeRemovalInstructions('bundled', 'win32'), /Installed apps/)assert.equal(nativeRemovalInstructions('bundled', 'darwin', '/Applications/Hermes Agent Canary.app'),diff --git a/apps/desktop/electron/desktop-uninstall.ts b/apps/desktop/electron/desktop-uninstall.tsindex 049b93985cd..9fb9051a5e7 100644--- a/apps/desktop/electron/desktop-uninstall.ts+++ b/apps/desktop/electron/desktop-uninstall.ts@@ -201,6 +201,14 @@ function nativeRemovalInstructions(kind, platform, appPath = null) {)}+ if (kind === 'external') {+ // Deleting a package manager's files by hand leaves the package registered with missing files.+ return (+ 'Another package manager installed this Hermes desktop app. ' ++ 'Uninstall it with that package manager, the same way you installed it.'+ )+ }+if (platform === 'win32') {return 'To uninstall, go to Windows Settings → Apps → Installed apps.'}