Skip to content

macOS app update leaves pre-update node_repl host unable to authenticate to new Computer Use service #39042

Open

Description

@mactonicaaron

What version of Codex CLI is running?

codex-cli 0.147.0 (also the current npm release when checked on 2026-08-17).

What subscription do you have?

Logged in using ChatGPT; the CLI does not expose the exact subscription tier.

Which model were you using?

Not model-dependent. This occurred in the desktop app's Computer Use tool host.

What platform is your computer?

Darwin 25.5.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

ChatGPT/Codex desktop app on macOS.

Codex doctor report

Not included. This report concerns an observed pre-update runtime generation, and the current fresh runtime now succeeds. The in-client feedback was submitted without logs to avoid attaching unrelated session data.

What issue are you seeing?

An in-place Sparkle update left a pre-update node_repl host alive after the desktop app, packaged Node runtime, and Computer Use service had been replaced.

Measured timeline from 2026-08-11:

  • The failing node_repl host started at 11:40:17 local time.
  • Sparkle replaced the app's node_repl and Node binaries and started Computer Use helper 26.804.1000633 between 12:54:56 and 12:55:18.
  • At 13:38, the post-update helper logged 49 consecutive Sender process is not authenticated errors during one five-second retry loop.
  • A kernel reset produced a second loop of exactly 49 identical rejections because the replacement kernel was still a child of the old host.
  • lsof showed the old host's text image mapped to a deleted Sparkle installation-staging inode. A fresh host mapped the current binary under /Applications/ChatGPT.app/Contents/Resources/cua_node/bin/node_repl.
  • A newly started post-update host immediately completed sky.list_apps() and ordinary app-state reads without changing Accessibility, Screen Recording, or any other macOS permission.

The user-facing error was only:

Sky Computer Use native pipe startup failed

The nested service-side authentication rejection and the version-skew cause were not surfaced.

What steps can reproduce the bug?

This was observed once with exact process and filesystem evidence:

  1. Keep a desktop Computer Use node_repl host alive.
  2. Allow Sparkle to replace the desktop app and bundled Computer Use runtime in place.
  3. From the still-live pre-update host, call sky.list_apps() (or another Computer Use operation).
  4. Observe the generic native-pipe startup failure while the new service logs repeated Sender process is not authenticated.
  5. Reset only the JS kernel; the failure persists because the parent tool host is still pre-update.
  6. Start a genuinely fresh tool host from the updated app; the same call succeeds.

A deterministic test could hold a host from build N open across installation of build N+1, then exercise the new helper before the old host is retired.

What is the expected behavior?

After an app update, the desktop app should retire or refresh pre-update Computer Use/node_repl hosts before they call the new native service.

If an old host cannot authenticate, the UI should surface an actionable version-skew/restart message instead of only the generic native-pipe startup error.

Additional information

Activity

  1. Gonzih commented on Oct 23, 2026

    @Gonzih

    🐇 GitKB bug report

    Important

    Reproduced on macOS 26.6.2; recovery verified in the same resumed conversation.
    Restarting only the affected Codex CLI invocation replaced the stale Computer Use host and restored Safari access. Other Codex sessions stayed running.

    Result Verified observation
    Failure Sky Computer Use native pipe startup failed after roughly 5–6 seconds
    Before restart The CUA host and node_repl still mapped executables inside deleted Sparkle installation directories
    After restart Both mapped the current executables in /Applications/ChatGPT.app; Safari accessibility reads and navigation succeeded
    Unchanged App, helper and CLI versions; no reboot, permission reset or signature modification

    Problem

    This matches the stale-host case in the issue. Resetting the JavaScript kernel and toggling Computer Use did not replace its long-lived parent host. Native authentication errors were surfaced to the agent only as a generic pipe startup failure. Inventory returned empty app/browser lists with the same error.

    Impact

    An active coding session could no longer use Safari. Repeated tool resets and permission toggles made no progress. A blanket process kill would also have disrupted unrelated coding sessions, so preserving those sessions was an explicit constraint during recovery.

    🔬 Process and executable evidence

    The failing Codex invocation, CUA host and kernel had been running since 2026-10-21 15:00 UTC. At the failure on 2026-10-23, lsof -a -p <host>,<kernel> -d txt -Fn showed their executable images under:

    ~/Library/Caches/com.openai.codex/org.sparkle-project.Sparkle/Installation/
      <staging-A>/<staging-B>/ChatGPT.app/Contents/Resources/cua_node/bin/node
      <staging-A>/<staging-B>/ChatGPT.app/Contents/Resources/cua_node/bin/node_repl
    

    Both reported paths no longer existed on disk. The old host also owned a live Codex child, making broad process-tree termination inappropriate.

    The user restarted only the affected CLI invocation and resumed this conversation at 20:23 UTC. Its replacement CUA host and kernel mapped:

    /Applications/ChatGPT.app/Contents/Resources/cua_node/bin/node
    /Applications/ChatGPT.app/Contents/Resources/cua_node/bin/node_repl
    

    Safari access then worked through the same Computer Use interface. Other long-running Codex sessions were left intact.

    🧾 Sanitized native logs and environment

    Native helper logs around 2026-10-23 20:16:46 UTC included:

    SkyComputerUseService: UNIX error exception: 2
    SkyComputerUseService: Sender process is not authenticated
    SkyComputerUseService: socket lock is unavailable errno=35
    

    Authentication rejection repeated rapidly in one helper; a competing helper reported lock contention at roughly five-second intervals. A nearby browser-use log separately reported reason=untrusted-process-ancestry; that is a related clue, not proof that both integrations use the same validation path.

    Component Version
    macOS 26.6.2 (25G83)
    ChatGPT.app 26.1016.62342, build 21477
    Computer Use helper 26.1013.1001501, build 1001501
    Codex CLI 0.163.0

    codesign --verify --deep --strict on the installed Computer Use helper exited 0. These versions were unchanged across the successful restart.

    Observed mechanism and remaining gap

    Observed: a stale host retained deleted updater-staging executable paths; resetting its kernel did not replace that host; restarting the affected CLI produced hosts using the installed application and restored access.

    Inference: stale executable identity or version skew may explain the native authentication rejection. We did not instrument the internal authentication check. The socket-lock contention may be a separate helper handoff race.

    Regression coverage worth adding

    • Hold a CUA host across an application update; verify that a kernel reset cannot leave it permanently attached to the previous runtime.
    • Refresh or drain a stale CUA host while preserving the coding session and unrelated Codex invocations.
    • Surface the native authentication failure and stale runtime path in diagnostics, rather than only the pipe startup error.
    • Exercise competing-helper socket ownership separately from executable authentication.

    🐇 GitKB diagnostics · Evidence checked against live process state and recovery · gitkb.com

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions