Skip to content

fix(desktop): restore desktop-uninstall.cjs dropped by #152 sync (app crash on launch)#156

Merged
OmarB97 merged 1 commit into
mainfrom
fix/restore-desktop-uninstall-cjs
Jun 10, 2026
Merged

fix(desktop): restore desktop-uninstall.cjs dropped by #152 sync (app crash on launch)#156
OmarB97 merged 1 commit into
mainfrom
fix/restore-desktop-uninstall-cjs

Conversation

@OmarB97

@OmarB97 OmarB97 commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Critical: the packaged app crashes on launch. electron/main.cjs:42 requires ./desktop-uninstall.cjs (and package.json's test:desktop:platforms references desktop-uninstall.test.cjs), but both files were dropped during the #152 upstream-sync merge while their references survived — a split-brain casualty. Result: Uncaught Exception: Error: Cannot find module './desktop-uninstall.cjs' at main.cjs:42, app won't start.

Restored both verbatim from upstream/main (the uninstall-Chat-GUI feature, NousResearch#40355). node --test electron/desktop-uninstall.test.cjs19/19 pass; main.cjs resolves past the require. Fork-only fix (upstream already has these files).

…eam sync

electron/main.cjs:42 requires './desktop-uninstall.cjs' (modeRemovesUserData,
resolveRemovableAppPath, shouldRemoveAppBundle, uninstallArgsForMode), and
package.json's test:desktop:platforms references desktop-uninstall.test.cjs —
but both files were dropped during the #152 sync merge while their references
survived. The packaged app crashed on launch: "Cannot find module
'./desktop-uninstall.cjs'" at main.cjs:42. Restored both verbatim from
upstream/main (the uninstall feature, NousResearch#40355). node --test: 19/19 pass;
main.cjs resolves past the require.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔎 Lint report: fix/restore-desktop-uninstall-cjs vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 10647 on HEAD, 10647 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 5572 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@OmarB97 OmarB97 merged commit 3863719 into main Jun 10, 2026
24 of 25 checks passed
OmarB97 pushed a commit that referenced this pull request Jun 10, 2026
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.

1 participant