Skip to content

bug(desktop): rewritten-identity Electron bundles ship blank UA-CH, flipping Astryx's ⌘/Ctrl detection on macOS #2429

Closed

Description

@GabrielDrapor

What happened

In the macOS dev bundle (Maka Dev.app — the ad-hoc-signed, identity-rewritten Electron copy that dev-app-runtime.mjs builds for the TCC-grant workflow), navigator.userAgentData ships empty: platform: '', brands: [].

Astryx's platform probe (shared by Kbd's ⌘/Ctrl display and useHotkeys' mod binding) prefers UA Client Hints over the deprecated navigator.platform and reads the blank as "not Apple". Consequences on macOS, clean-room verified with trusted CDP input:

  • every mod hotkey binds Ctrl instead of ⌘ — ⌘+/ does not open the keyboard help, Ctrl+/ does
  • every Kbd keycap draws Ctrl (see the keyboard-help modal)

Scope

Launch userAgentData.platform behavior
dev bundle (open Maka Dev.app) "" broken as above
bare electron . (e2e harness) "macOS" correct
release Maka.app 0.1.6 healthy correct (user-verified: ⌘ keycaps, ⌘+/ opens)

The identity rewrite in the bundle copy is what leaves Chromium's UA-CH metadata unpopulated; release packaging (electron-builder) is unaffected.

Environment

Fix in flight: #2418 patches the two Astryx detection points (via the repo's dependency-patch mechanism) to treat a blank uaData.platform as absent and fall through to navigator.platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions