fix(windows): prevent updater plugin startup panic in packaged app#791
Open
fix(windows): prevent updater plugin startup panic in packaged app#791
Conversation
Collaborator
Author
|
Crash summary:
|
02d3419 to
b3ca9d1
Compare
3 tasks
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>
5 tasks
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.
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-updaterexpectsplugins.updaterintauri.conf.jsonto deserialize to an object. In this branch, it resolved tonull, 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
Application Errorcrash event forclaude-orchestrator.exeduring test window.