Skip to content

[Bug] Desktop app crashes on launch after macOS 27 upgrade (DesktopLocalEnvironmentAuthSessionBootstrapError) #12918

Description

@jamesvillarrubia

Area

apps/desktop

Steps to reproduce

  1. On macOS 27 (Build 26A428), build and launch the T3 Code desktop app (pnpm build:desktop && pnpm start:desktop).
  2. The app attempts to bootstrap the primary local environment on launch.
  3. The main-process /oauth/token exchange over loopback hits a transient failure (connection reset / brief 503 while the backend settles — newly common after the macOS 27 upgrade).
  4. The renderer crashes to the root error view during beforeLoad.

Expected behavior

The app boots to the chat view (or the pairing UI if unauthenticated), riding out the transient loopback failure.

Actual behavior

The app crashes to RootRouteErrorView with PrimaryEnvironmentRequestError caused by DesktopLocalEnvironmentAuthSessionBootstrapError: Failed to create the local desktop bearer session. No recovery path; relaunch may work if the transient condition has cleared.

Impact

Blocks work completely

Version or commit

main (pre-fix)

Environment

macOS 27.0 (Build 26A428), desktop app, Node v23.10.0

Logs or stack traces

PrimaryEnvironmentRequestError
  ← DesktopLocalEnvironmentAuthSessionBootstrapError: Failed to create the local desktop bearer session
  ← RemoteEnvironmentAuthUndeclaredStatusError (503) | RemoteEnvironmentAuthFetchError | TypeError

Workaround

Relaunch after the transient condition clears. No in-app recovery.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions