Skip to content

stub app.configureWebAuthn for Linux (asar 1.9659.2+)#130

Closed
kenjoe41 wants to merge 2 commits into
johnzfitch:masterfrom
kenjoe41:fix/stub-configureWebAuthn
Closed

stub app.configureWebAuthn for Linux (asar 1.9659.2+)#130
kenjoe41 wants to merge 2 commits into
johnzfitch:masterfrom
kenjoe41:fix/stub-configureWebAuthn

Conversation

@kenjoe41

Copy link
Copy Markdown

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

  • Reproduced crash locally with asar 1.9659.2 + Electron v42.3.0 on Wayland (GNOME)
  • Applied fix → app launches cleanly, all cowork rails engaged
  • No regression on existing features (chat, Code tab, cowork sessions)

kenjoe41 and others added 2 commits May 30, 2026 15:12
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>

Copy link
Copy Markdown
Owner

Closing as superseded. The configureWebAuthn crash (#128) is now fixed on master via #131, which adds 'configureWebAuthn' to the existing _macOnlyAppMethods no-op loop in frame-fix-wrapper.js.

This PR carried the same wrapper edit plus a COMPAT.md bump to 1.9659.2. The code fix landed via #131; the COMPAT bump was held back since 1.9659.2 was marked [PARTIAL] (launch smoke-test only, full feature exercise pending) — worth a separate PR once login/sessions/MCP have been verified on that version. Thanks for testing against the newer asar. If the crash persists on current master, please reopen.


Generated by Claude Code

@johnzfitch johnzfitch closed this May 31, 2026
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
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.

2 participants