codex icon indicating copy to clipboard operation
codex copied to clipboard

Locked Use: stale authorization plug-in remains installed after app/helper update; status says OK despite macOS rejection

Open tylergannon opened this issue 1 month ago • 6 comments

What version of the Codex App are you using?

Codex App 26.1007.30912, build 20156.

What subscription do you have?

Not captured in this diagnostic session.

What platform is your computer?

macOS 27.0.1 (26A434), Apple Silicon / arm64.

What issue are you seeing?

Locked Use is configured, but native Computer Use repeatedly fails while the Mac is locked. The app/helper are current, yet the authorization plug-in installed in the system SecurityAgent directory remains an older build. The signed installer resource tool reports that the plug-in is installed (OK installed) despite this version mismatch, and macOS explicitly rejects that installed plug-in.

The failure returned by cua.getApp('com.apple.finder') is:

The Mac is locked and automatic unlock could not unlock it. Ask the user to unlock the Mac manually before continuing.

This report focuses on the stale installed authorization component and the status/repair experience. It does not establish that the version mismatch is the sole cause of all Locked Use failures.

What steps can reproduce the bug?

Observed on an existing installation on October 12, 2026 (times below are America/Costa_Rica, UTC−06:00):

  1. With Locked Use configured and the Mac locked, request a native Finder target through cua.getApp('com.apple.finder').
  2. The automatic-unlock error above occurs repeatedly.
  3. Compare the installed system authorization plug-in with the copy bundled alongside the current helper, and inspect SecurityAgentHelper diagnostics.
  4. Restart the native Computer Use service and repeat the Finder request. In this session, the socket-owning PID changed, but the same lock error remained.
  5. Manually unlock the Mac through Screen Sharing and repeat the native Finder request. Finder then became accessible; a native screenshot and a Go menu → Downloads interaction verified actual native control.

The user explicitly confirmed manually unlocking the Mac. The successful Finder test therefore demonstrates unlocked Computer Use only, not successful automatic unlock.

Diagnostic evidence

Component Observed version/build
Codex App 26.1007.30912 / 20156
Computer Use helper, Guardian, and bundled authorization plug-in 26.1005.1001425 / 1001425
Installed /Library/Security/SecurityAgentPlugins/CodexComputerUseAuthorizationPlugin.bundle 0.1.0 / 799; dated May 21

Both the installed and bundled authorization plug-ins passed strict code-signature verification. The configured system.login.screensaver authorization references com.openai.sky.CUAService.AuthorizationPlugin.remote and the mechanism CodexComputerUseAuthorizationPlugin:allow.

At 21:54:04 and 21:56:03, SecurityAgentHelper-arm64 refused to load the installed plug-in, reporting:

mapping process is a platform binary, but mapped file is not

At approximately 21:54, authd fell back to normal loginwindow authentication, which succeeded. This is consistent with the user's confirmed manual unlock, not evidence that the Computer Use authorization mechanism succeeded.

The signed installer resource tool's status reported OK installed while the installed bundle was still build 799. A direct non-root installation attempt failed when writing a backup. Launching the signed GUI installation wrapper reached pending administrator authorization; that attempt was canceled before completion so application work could resume. No completed plug-in update or successful locked-session test is claimed.

What is the expected behavior?

Updating the app/helper should either update the required authorization component through the supported administrator-authorized setup, or clearly identify that the installed component is outdated and requires repair. A generic installed/OK result should not conceal the version mismatch and observed rejection. When automatic unlock fails, diagnostics should distinguish a rejected authorization component from the generic locked-machine message.

Additional information

Related reports:

  • #24013 reports the same SecurityAgentHelper library-validation rejection; that issue is closed.
  • #32396 tracks automatic unlock failing with Locked Use enabled, including reports after refreshing the plug-in. This report adds the concrete installed/bundled version mismatch and misleading status result; updating the component is not assumed to guarantee recovery.
  • #52716 matches a separate Computer Use helper crash on this same helper/macOS version. Local October 8 and October 12 crash reports show a null-address SIGSEGV, service offset 2462608, and SkyLight's notify_datagram_handler followed by dispatchMainQueueDatagrams. That is a separate related failure mode, not proven to cause the authorization rejection above.

Raw logs, screenshots, user paths, credentials, and session identifiers are intentionally omitted.

tylergannon avatar Oct 13 '26 04:10 tylergannon

Additional recurrence during the same session, at approximately 2026-10-13 04:24–04:26 UTC (October 12, 22:24–22:26 in America/Costa_Rica):

After the earlier manual Screen Sharing unlock, native menu interactions worked and were exercised. During a subsequent application rebuild, cua.listApps again reported that the Mac was locked and automatic unlock had failed.

The agent reset cua_repl and restarted the exact SkyComputerUseService process owning computeruse.sock. A fresh Finder request then returned -10005; the following app-inventory request still reported the automatic-unlock failure. No authorization policy or plug-in changes were made.

This is another observed recovery failure after restarting the service. It does not establish what caused the Mac to relock, nor that the stale plug-in alone explains the recurrence. The final native application validation now requires another manual unlock.

tylergannon avatar Oct 13 '26 04:10 tylergannon

Additional confirmed recurrence and successful repair on 2026-10-23 (America/Fortaleza). The user reports this is the fourth time an app update has left the installed authorization component out of sync; this session independently verified only the current occurrence.

Component Version/build observed
ChatGPT/Codex desktop app 26.1016.62342, build 21477
Computer Use helper and bundled authorization plug-in 26.1015.1001540
Installed CodexComputerUseAuthorizationPlugin.bundle before repair 26.916.1001103
Installed authorization plug-in after repair 26.1015.1001540

Before repair, the installed and bundled plug-in binaries had different SHA-256 hashes. The system.login.screensaver authorization rule already referenced com.openai.sky.CUAService.AuthorizationPlugin.remote, and the official installer's status still reported OK: installed. We ran the official bundled Codex Computer Use Installer and the user completed macOS administrator authentication. Afterward, the installed plug-in version and hash matched the bundled copy and installer status was OK.

The user then locked the Mac and confirmed “Bloqueado” from another device. While the Mac remained locked, native Computer Use accessed Calculator and opened its View menu. This is a successful locked-session functional test after repair; no calculation or user data was changed. It supports the version mismatch as a factor in this occurrence, without establishing that every locked-use failure has the same cause.

Request: On app/helper updates, compare the installed SecurityAgent authorization plug-in with the bundled build (version and ideally signature/hash), report a stale installation instead of OK: installed, and offer the supported administrator-authorized repair flow. A regression test should cover updating the desktop app while Locked Use is enabled, then exercising native app access with the Mac locked.

A detailed report was also submitted through the OpenAI Help Center using the user's authorized contact email; the automated support chat did not provide a case ID or confirm engineering routing.

GaRiMpEiR0 avatar Oct 23 '26 16:10 GaRiMpEiR0

Another affected installation: this has recurred across multiple Codex desktop updates over several months. Refreshing the official authorization component restores Computer Use for me, but a later app update leaves the component stale again.

Latest recorded occurrence, November 11:

  • macOS 27.2.1, Apple Silicon.
  • Desktop 26.1106.51428 (build 26605).
  • Installed authorization plug-in: 1001824.
  • Current helper and bundled authorization plug-in: 1001874.

After the official installer refresh, the installed plug-in was 1001874, its executable SHA-256 matched the bundled copy, and strict signature verification passed. I also have recorded mismatches of 1001425/1001501 on October 20 and 1001501/1001540 on October 23. This is recurring after successful repairs, rather than only an initial setup problem.

Could a maintainer please clarify:

  1. Should desktop/helper updates reconcile the separately installed authorization plug-in? If not, what is the supported refresh/compatibility mechanism?
  2. Is OK: installed intended to detect a stale component, or only registration/presence?
  3. Is this tracked for a permanent fix, and is there a release or supported workaround that prevents recurrence?

Please triage the update/installation gap specifically. Re-running the component repair after updates is a workaround; I am looking for an explanation and a durable resolution.

danielha avatar Nov 12 '26 05:11 danielha

Reproduced on November 12, 2026. The installed CodexComputerUseAuthorizationPlugin.bundle was build 1001641, while the copy bundled with the current ChatGPT app was build 1001874.

Double-clicking the bundled Codex Computer Use Installer.app in Finder launched it but showed no installation window and left the installed build unchanged. The installer executable reports the usage install|uninstall|status. After verifying the code signatures of both the bundled installer and plug-in, I invoked the installer's executable explicitly:

installer='/Applications/ChatGPT.app/Contents/Resources/cua_node/lib/node_modules/@oai/sky/Codex Computer Use.app/Contents/SharedSupport/Codex Computer Use Installer.app'
"$installer/Contents/MacOS/Codex Computer Use Installer" install

The installer returned OK: Installed. I verified that the system copy in /Library/Security/SecurityAgentPlugins was now build 1001874, passed strict signature verification, and had a byte-for-byte identical executable to the bundled copy. I did not test automatic unlock after this repair.

This suggests a specific updater path to check: does an app update detect that the installed authorization plug-in is older than the bundled copy, and does it invoke the installer with the explicit install argument? The Finder behavior establishes that launching the installer without that argument did not refresh the plug-in in this case. I have not verified what the automatic updater actually invokes. A regression test could start with an older installed plug-in, update the app, and check that the installed build matches the bundled one after any required macOS authorization.

GaRiMpEiR0 avatar Nov 12 '26 12:11 GaRiMpEiR0

Follow-up: I inspected the packaged JavaScript in the installed macOS ChatGPT app, version 26.1106.51428 (build 26605).

  • Enabling Locked Use: The macOS implementation of setLockedUseEnabled(true) invokes the bundled Computer Use installer executable with the explicit install argument, then checks status.
  • Reading Locked Use state: The app runs the installer with status and treats the exact response OK: installed as enabled. The app-side check does not compare the installed and bundled plug-in build numbers.
  • Updating the app: In the Sparkle integration and app-side update callback I inspected, the install request saves session state and prepares the app to quit. I found neither a comparison of the installed and bundled authorization plug-in builds nor a call to the Computer Use installer with install in that path.

This narrows the earlier hypothesis. The app already knows how to pass install when enabling Locked Use. The update path I inspected appears to lack a step that checks whether the installed plug-in needs to be refreshed. The Finder test showed that launching the installer without an argument did not refresh the plug-in, but it does not establish that the updater launches it that way.

This was a static inspection of the installed build. I did not trace a live Sparkle update or inspect any steps specific to an update package. A regression test could start with an older authorization plug-in, apply an app update while Locked Use is enabled, and verify that the installed plug-in matches the bundled build after any required macOS authorization.

GaRiMpEiR0 avatar Nov 12 '26 12:11 GaRiMpEiR0

Confirmed the version mismatch on another Mac on November 21, 2026.

  • macOS 27.2.1 (26B131); ChatGPT/Codex desktop 26.1117.41037 (build 29803). The stable updater reported the app up to date.
  • The authorization plug-in installed in macOS was still 26.1005.1001425, while the app bundled 26.1116.1001980. The signed installer reported OK: installed despite the mismatch.
  • After running the signed installer with macOS administrator approval, the installed plug-in reported 26.1116.1001980. Its signature verified and its executable matched the bundled copy byte for byte.
  • I repeated the Calculator access check after confirming the Mac was locked. Both native Computer Use attempts returned Computer Use server error -10005: cgWindowNotFound, and macOS still reported the screen locked.

The status check missed the version mismatch on this installation, and updating the plug-in did not resolve the unlock failure in this test. Could the updater or Locked Use settings detect the mismatch and offer the supported refresh?

benperry6 avatar Nov 21 '26 14:11 benperry6