stub app.configureWebAuthn for Linux (asar 1.9659.2+)#130
Closed
kenjoe41 wants to merge 2 commits into
Closed
Conversation
asar 1.9659.2 calls app.configureWebAuthn() during main-process init. This is a macOS-only Electron API; on Linux Electron it does not exist, causing an uncaught TypeError that crashes the app before any window opens. Add 'configureWebAuthn' to the _macOnlyAppMethods no-op list alongside the existing NSUserActivity / Handoff stubs (issues johnzfitch#104, johnzfitch#106). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bumps LAST_TESTED_ASAR_VERSION to 1.9659.2. Status is PARTIAL: app launches and cowork rails engage once app.configureWebAuthn is stubbed (PR johnzfitch#130), but full feature exercise (login, sessions, MCP) is pending. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced May 30, 2026
Owner
|
Closing as superseded. The This PR carried the same wrapper edit plus a Generated by Claude Code |
mrbobbytables
pushed a commit
to mrbobbytables/claude-cowork-linux
that referenced
this pull request
Jun 4, 2026
Newer Claude Desktop asar versions call app.configureWebAuthn() during main-process init. We spoof process.platform=darwin, so this darwin-gated callsite fires on Linux, where Electron has no such method -- it throws TypeError and crashes the app before any window opens. Add it to the existing _macOnlyAppMethods no-op loop alongside the Handoff/NSUserActivity stubs (same root cause as johnzfitch#104/johnzfitch#106). The typeof guard means we only fill the gap when the method is absent, so a platform with a real implementation is never clobbered. Closes johnzfitch#128. Supersedes the two-file approach in johnzfitch#129 and the COMPAT version bump in johnzfitch#130; this is the minimal single-line fix. https://claude.ai/code/session_01LxAaF3raqdkyZyTPHBG8f4
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.
Problem
asar v1.9659.2 calls during main-process initialisation. This is a macOS-only Electron API — on Linux Electron it does not exist, causing an uncaught that crashes the app before any window opens:
Fix
Add to the no-op list in , alongside the existing NSUserActivity / Handoff stubs (issues #104, #106). The method is stubbed to a no-op so the app continues without WebAuthn hardware-key support (not relevant on Linux).
Testing