Skip to content

fix(windows): prevent updater plugin startup panic in packaged app#791

Open
AnrokX wants to merge 1 commit intomainfrom
fix/windows-updater-plugin-config-startup
Open

fix(windows): prevent updater plugin startup panic in packaged app#791
AnrokX wants to merge 1 commit intomainfrom
fix/windows-updater-plugin-config-startup

Conversation

@AnrokX
Copy link
Collaborator

@AnrokX AnrokX commented Mar 3, 2026

What happened

Windows packaged builds installed successfully but exited immediately on launch.

Captured stderr showed:

  • PluginInitialization("updater", "Error deserializing 'plugins.updater' within your Tauri configuration: invalid type: null, expected struct Config")

The app was failing during Tauri plugin initialization before normal startup.

Root cause

tauri-plugin-updater expects plugins.updater in tauri.conf.json to deserialize to an object. In this branch, it resolved to null, causing early startup failure in packaged Windows builds.

Fix

Added a minimal non-null updater plugin config in src-tauri/tauri.conf.json:

  • plugins.updater.pubkey = ""

This preserves optional updater behavior (runtime env-gated) while preventing process-start plugin init crash.

Validation

  • Built Windows NSIS installer locally from this fix.
  • Uninstalled current app and installed rebuilt EXE.
  • Verified app process stayed running (no immediate crash).
  • Verified no new Application Error crash event for claude-orchestrator.exe during test window.

@AnrokX
Copy link
Collaborator Author

AnrokX commented Mar 3, 2026

Crash summary:

  • Packaged EXE exited on startup due to updater plugin config deserialization (plugins.updater was null).
  • Added minimal non-null updater config (plugins.updater.pubkey = "") in src-tauri/tauri.conf.json.
  • Rebuilt installer locally and confirmed install + launch without immediate crash.

@AnrokX AnrokX force-pushed the fix/windows-updater-plugin-config-startup branch from 02d3419 to b3ca9d1 Compare March 3, 2026 03:39
web3dev1337 added a commit that referenced this pull request Mar 8, 2026
Cherry-pick the windows onboarding flow from AnrokX PRs #796 and #791
with all review issues fixed:

Features ported:
- First-run dependency wizard (Git, Node, npm, gh, Claude, Codex)
- Setup action service with PowerShell command runner
- GitHub CLI device-flow login with code detection
- Git identity configuration (name/email)
- Diagnostics panel enhancements
- Toast notification CSS rewrite
- Workspace startup race condition fix (workspaceSystemReady gate)
- Desktop launch trace support in bootstrap page

Issues fixed from review:
- Remove dead `guidance` variable (~60 lines never rendered in template)
- Add retention limit (50 runs) to setupActionService Maps (memory leak)
- Disable updater plugin instead of empty pubkey (prevents silent update failures)
- Keep stderr on non-Windows platforms for debugging (was nulled everywhere)
- Document autoCreate behavioral change in workspaceManager
- Exclude binary artifacts (zip files) and patch script from cherry-pick

Based on work by AnrokX in PRs #796 and #791.

Co-Authored-By: AnrokX <anrokx@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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