Skip to content

v2.8.0-beta.5: Missing @lydell/node-pty in app.asar — app hangs on startup #1968

@Bongulielmi

Description

@Bongulielmi

Description

v2.8.0-beta.5 (Aperant rebrand) fails to launch on macOS — the main process starts but no window appears. The app hangs indefinitely with a frozen event loop.

Root Cause

The app.asar in beta.5 is missing the @lydell/node-pty package (both JS wrapper and platform-specific native binary). The app.asar.unpacked directory is also completely absent.

v2.7.6 (working):

  • app.asar contains out/main/node_modules/@lydell/node-pty/ (JS files)
  • app.asar.unpacked contains out/main/node_modules/@lydell/node-pty-darwin-arm64/pty.node (native binary)

v2.8.0-beta.5 (broken):

  • app.asar has NO @lydell/node-pty directory (only lucide-react in node_modules)
  • app.asar.unpacked directory is completely MISSING

Since import * as pty from "@lydell/node-pty" is a static ESM import at the top of out/main/index.js, the module loading fails and blocks the Electron main process event loop. No window is ever created.

Additional Issue: Data Migration

The rename from auto-claude-ui to aperant user data directory includes a synchronous cpSync() migration at startup (line ~98364 in main/index.js). If the old directory exists, this runs on the main thread and can also block the UI.

Environment

  • macOS 26.4 (25E5233c) ARM64
  • Both v2.7.6 and beta.5 use Electron 40.0.0 / Chrome 144.0.7559.60

Steps to Reproduce

  1. Install v2.8.0-beta.5 on macOS ARM64
  2. Launch the app
  3. Process starts but no window appears
  4. Event loop is frozen (inspector connects but can't evaluate)

Workaround

Downgrade to v2.7.6 stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions