Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.707.31428 (build 5059)
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Darwin 27.0.0 arm64 arm
What issue are you seeing?
human description: codex kept on saying that computer use wouldn't work because the mac was locked. but we have that setting enabled (see screenshot).
codex written description:
The exact error returned by Computer Use was:
The Mac is locked and automatic unlock could not unlock it. Ask the user to unlock the Mac manually before continuing.
Once the Mac was manually unlocked, the same Computer Use runtime immediately worked and list_apps returned running applications normally. This isolates the failure to automatic lock-screen unlock rather than general Accessibility, Screen Recording or Computer Use access.
Feedback/session ID: 019f48b9-86a4-74e3-abda-5a45bb45f6d2
What steps can reproduce the bug?
- Open Codex Settings → Control.
- Enable Any App.
- Enable Locked use — Let ChatGPT use your Mac when it is locked.
- Start a Codex task that uses Computer Use.
- Lock the Mac.
- Ask Codex to inspect any application using list_apps or get_app_state.
The request fails with the automatic-unlock error above. Manually unlock the Mac and repeat the same request; it succeeds.
What is the expected behavior?
With Locked use enabled, Codex should temporarily unlock the Mac through its guarded lock-screen mechanism, perform the Computer Use operation and restore the locked state. If the mechanism cannot operate on this OS build, Settings should say so and the runtime should expose the failed stage.
Additional information
Verified environment
- Codex app: 26.707.31428, build 5059
- Computer Use helper: 26.708.1000366, build 1000366
- Locked-use authorisation plug-in: build 829
- macOS: 27.0 beta, build 26A5353q
- Architecture: Apple silicon (arm64)
- Any App and Locked use were both enabled
Local diagnosis
The required helper and lock-screen authorisation plug-in are installed:
~/.codex/computer-use/Codex Computer Use.app
/Library/Security/SecurityAgentPlugins/CodexComputerUseAuthorizationPlugin.bundle
The helper was built with the macOS 26.4 SDK and the authorisation plug-in with the macOS 26.1 SDK. The failure occurs on macOS 27.0 beta.
The helper contains a dedicated guarded auto-unlock path. Its diagnostic strings show that it searches the loginwindow accessibility tree for UserPasswordTextField, invokes the Codex authorisation plug-in, and verifies whether the Mac unlocked. Relevant internal failure stages include:
- loginwindow accessibility root unavailable
- password field or reveal prompt unavailable
- authorisation attempt not consumed by the plug-in
- unlock attempt completed but the Mac remained locked
- automatic-unlock attempt budget exhausted
The returned message was the generic automatic-unlock failure, not the distinct errors for physical-input suppression or a request that could not be associated with a Codex thread. That suggests the request was eligible for Locked use but the loginwindow/authorisation exchange failed.
codesign --verify and spctl also reported invalid-signature/internal Code Signing subsystem errors for the Codex app, Computer Use helper and authorisation plug-in. macOS 27 produced similar verification errors for unrelated signed applications, so this is supporting evidence rather than a confirmed root cause.
This looks like a macOS 27 compatibility regression in the lock-screen authorisation path. Ordinary Computer Use remains functional after manual unlock.
Relationship to earlier reports
- Locked Computer Use authorization plug-in is registered but rejected by macOS SecurityAgentHelper Library Validation #24013 is the closest match and may be the same underlying bug. Both reports involve Apple silicon, Locked use already enabled, the authorisation plug-in installed, normal Computer Use working after manual unlock, and app-state acquisition failing only while locked. Locked Computer Use authorization plug-in is registered but rejected by macOS SecurityAgentHelper Library Validation #24013 captured direct macOS 26.5 logs showing SecurityAgentHelper rejecting plug-in build 799 because of Library Validation. This report reproduces the user-visible failure on macOS 27 with plug-in build 829 and helper build 1000366, but we have not yet captured the same SecurityAgentHelper log. It may therefore be a regression of Locked Computer Use authorization plug-in is registered but rejected by macOS SecurityAgentHelper Library Validation #24013, but that is not proven.
- Locked Use plugin update failed on macOS Tahoe 26.5.1 #29216 is an earlier setup failure rather than the same runtime failure. In that report, the Locked use toggle cannot be enabled, the update immediately reports “Plugin update failed”, and the required component appears not to install. Here the toggle remains enabled and the helper and plug-in are installed; failure occurs only when a locked Computer Use request tries to run.
- Codex Desktop: locked computer use cannot be enabled on macOS Intel due to native component signing errors #24207 is an Intel packaging/signing failure during enablement. macOS Codex relaunch loop exhausts syspolicyd file descriptors and blocks app launches #25243 concerns file-descriptor exhaustion from Locked use. Codex Desktop for macOS repeatedly triggers
syspolicyd/trustdCPU and memory runaway #25719 concerns repeated syspolicyd/trustd validation load. They are adjacent subsystem reports, but their reported failure modes differ.
The most useful next diagnostic is the SecurityAgentHelper and authd log from a fresh locked-use attempt. If it shows the same Library Validation rejection as #24013, this should be treated as a macOS 27 regression of that issue rather than a separate failure.
It would help if the surfaced error identified whether failure occurred during plug-in registration, loginwindow accessibility discovery, socket connection, authorisation consumption or post-unlock verification.
Activity
joshp123 commentedon Jul 14, 2026
Still happening: Feedback ID: 019f48b9-86a4-74e3-abda-5a45bb45f6d2
[-]Codex Locked use is enabled but automatic unlock fails on macOS 27 beta[/-][+]Locked use is enabled but automatic unlock fails on macOS[/+]joshp123 commentedon Jul 14, 2026
Codex-authored update
Still reproducible after updating:
Locked use and Any App remain enabled. Computer Use still fails while the Mac is locked, then works immediately after manual unlock.
#32913 reports the same automatic-unlock error on macOS 26.5.2. This no longer appears limited to the macOS 27 beta.
esetnik commentedon Sep 9, 2026
Still occurring with the following system versions:
Locked use is enabled according to the user, but repeated Computer Use state requests fail with:
The SkyComputerUseService and CUALockScreenGuardian processes were both running when checked. The logs inspected did not establish a root cause. No claim is being made that this has the same underlying cause as the original report; the user-visible failure matches.
No personal details, machine identifiers, session contents, or raw logs are included in this report.
[Written by Codex at the user’s request]
arcadegeek23 commentedon Sep 27, 2026
Additional reproduction on September 27, 2026: Locked use remains enabled, native Computer Use works after manual unlock, but automatic unlock repeatedly fails on macOS 27.0.
Environment
com.openai.codex.Reproduction and observed result
cua.getApp("System Settings").Troubleshooting already performed
system.login.screensaverincludescom.openai.sky.CUAService.AuthorizationPlugin.remote, whose mechanism isCodexComputerUseAuthorizationPlugin:allow.CUALockScreenGuardian, confirmed a fresh guardian process launched, and repeated the phone-triggered test. It failed.SkyComputerUseService, verified a new service process and successful native access while unlocked, then repeated the lock test. It failed again.Diagnostic observations and limits
For the fresh-guardian test, macOS recorded locking at 13:02:58 America/Chicago (UTC-05:00). Guardian activity began around 13:03:36 and ended around 13:03:56 without a successful unlock. macOS TCC returned
auth_value=2andresult=truefor the guardian'skTCCServiceListenEventrequest. No transition to an unlocked state was observed during this attempt.The bounded log queries did not find a corresponding authorization plug-in response or an explicit SecurityAgentHelper library-validation rejection. Absence from these queries does not prove that the plug-in was never invoked. The precise failing stage is still unknown.
The installed Microsoft SSO profile uses
UserSecureEnclaveKeyandScreenLockedBehavior=DoNotHandle. This is environment context, not evidence that Intune caused the failure. No authentication policy was changed.The user associates the onset with migrating from an M4 MacBook to an M5 MacBook, but causation has not been established.
Could the Computer Use team investigate this reproduction on helper/plug-in build 1001242 and advise how to distinguish loginwindow accessibility discovery, guardian communication, authorization consumption, and post-unlock verification failures? Related report #44940 describes a similar failure after refreshing the plug-in on macOS 26.6.2.
Mmackinnon123 commentedon Oct 3, 2026
I have this same issue
Carl723000 commentedon Oct 4, 2026
Additional case: automatic unlock still failed after refreshing the installed authorization plug-in to match the bundled payload.
Observed sequence:
Environment for the recorded post-refresh failure:
The authorization database contained the
com.openai.sky.CUAService.AuthorizationPlugin.remoterule and theCodexComputerUseAuthorizationPlugin:allowmechanism. We did not manually replace the plug-in or modify authentication policy.Follow-up in the same reporting session on October 4: the app now reports 26.930.31730 (build 12947), with the same helper/plug-in version, and its updater reports up to date. At approximately 15:26 UTC, a fresh native
cua.getAppattempt against Claude Desktop on this newer app build returned the same automatic-unlock error. This confirms the user-visible failure also occurred on 26.930.31730. The exact failure stage remains unknown; matching installed files and valid signatures do not establish that the runtime authorization exchange succeeded.Could diagnostics expose whether an attempt failed at trusted-turn eligibility, loginwindow discovery, guardian communication, authorization consumption, or final unlock verification? The generic error currently makes these cases difficult to distinguish.
Posted by Codex at the user's request. No screenshots, private conversation content, account identifiers, local project paths, or raw logs are attached.
Mmackinnon123 commentedon Oct 4, 2026
Adding details from my Mac mini testing. Automatic unlock continued to fail after refreshing the authorization plug-in through the supported Locked use settings flow.
Recorded post-refresh configuration:
• ChatGPT desktop 26.930.21537, build 12776
• Computer Use helper and installed authorization plug-in 26.929.1001365
• Installed plug-in matched the bundled version and executable SHA-256 hash
• Mac awake and responsive, with system sleep set to 0
During a post-refresh test, macOS reported the session locked before and after a native Calculator state request. After approximately 11 seconds, it returned: “The Mac is locked and automatic unlock could not unlock it. Ask the user to unlock the Mac manually before continuing.”
Native app access has worked while unlocked. There was also an earlier guarded-unlock success, followed by failures, so that isolated success did not establish a reliable fix.
We also tried a fresh locked-use test with build 12947 and it failed with the same automatic-unlock error. Matching the components corrected the version mismatch, but did not identify where the unlock attempt failed.
What supported diagnostic capture would help identify the failing stage? Is there a preferred private support channel for sharing those diagnostics?
jcastro commentedon Oct 20, 2026
I am also seeing this automatic-unlock error on desktop app 26.1013.40934 (build 20770), helper/Guardian 1001501, macOS 27.2 on Apple silicon.
Native Calculator access works with the Mac unlocked. After automatic display sleep, native requests have failed with “The Mac is locked and automatic unlock could not unlock it”, despite Locked use being enabled. The display is set to sleep after 2 minutes, system sleep is disabled, and password-on-wake is set to Never.
My intended use is to let the display sleep while the task continues. Returning to the Mac to unlock it repeatedly makes that workflow impractical.
I have added the reproduction and its limits here: #49808 (comment). The task was already running locally before the display slept, and its internal trusted-turn classification was not established, so I am not claiming an identical root cause to every case in this thread.
OpenAI Support has accepted a human-support escalation with the technical report. There is no confirmed fix in my case yet.
jcastro commentedon Oct 21, 2026
Update after installing desktop app 26.1016.51333 (build 21161) on macOS 27.2: I reproduced the same generic automatic-unlock failure after natural display sleep.
The running helper/Guardian and the installed/bundled authorization plug-in version labels now all read 26.1015.1001540 / 1001540. Native Calculator worked initially, then the next native state request after another automatic display-off failed. Display sleep remained at 2 minutes, system sleep disabled, and the screen-lock policy still reported off.
The updated component versions have therefore not eliminated the user-visible failure in this case. Exact root cause and internal turn eligibility remain unconfirmed.
Full retest: #55615 (comment)
jcastro commentedon Oct 23, 2026
The same user-visible automatic-unlock failure remains reproducible in my case on 26.1016.62342 (build 21477), tested 23 October 2026, with helper/Guardian and installed authorization plug-in 1001540, on macOS 27.2.
Native Calculator worked before automatic display-off and failed on the next native state request after sleep. Display sleep remained at 2 minutes, system sleep disabled, and the screen-lock policy reported off. The display did turn on during the failed attempt.
Please prioritize fixing this. The repeated manual-unlock requirement makes the application and service difficult to rely on for unattended desktop tasks. The exact failure stage remains unconfirmed.
Full retest and its limits: #55615 (comment)
jcastro commentedon Oct 24, 2026
The same native automatic-unlock failure reproduced on 24 October 2026 with desktop app 26.1021.22027 (build 21747) after natural display sleep. The request again required the user to unlock the Mac manually.
Build 21828 (26.1021.31345) is now offered by the updater but was not tested in this reproduction. Full sanitized retest details. Please prioritize a reliable fix.
jcastro commentedon Oct 24, 2026
The same automatic-unlock failure remains reproducible on 24 October 2026 with desktop app 26.1021.31345 (build 21828), which the updater reports as current. Native Calculator worked before natural display sleep; the first access afterward required a manual unlock.
Full sanitized test details. Please prioritize a reliable fix.
jcastro commentedon Oct 24, 2026
Follow-up on 24 October 2026, same desktop build 26.1021.31345 (21828): after more than 20 minutes of natural display sleep, native Computer Use accessed Calculator and completed 13 × 73 = 949 without manual unlock.
This differs from the earlier failure after display sleep on the same build; results are mixed, so the issue is not confirmed fixed. Full details.
jcastro commentedon Oct 25, 2026
25 October 2026 follow-up on the automatic-unlock symptom: desktop app 26.1021.31345 (21828) on macOS 27.2 (26B118). AC settings still allow display sleep after 2 minutes while system idle sleep is disabled. This attempt began with the Mac already locked; native app discovery returned the same manual-unlock error before an app could be selected. Reading the current Chrome tab through its extension worked, but no browser input was sent and this does not restore native app access.
I found the installed authorization plug-in reports 1001540, while the installed/bundled Computer Use helper and Lock Screen Guardian report 1001631. This is an unconfirmed lead, not a proven cause or fix; active trusted-turn eligibility was not verified. No settings were changed. Full sanitized evidence and questions for maintainers: #55615 (comment)
rcbeall1 commentedon Oct 30, 2026
Root cause narrowed from unified logs: the helper starts its unlock attempt at the instant of an idle lock, before loginwindow has drawn its lock UI, and its two-attempt budget then never resets for the rest of the locked episode. This explains the "intermittent" results in this thread and in #49808, #54958, #55615 and #50975: a task that starts after the Mac is already locked works, a lock that happens during a running task fails until the service is restarted or the user unlocks.
Environment. macOS 27.2 (26B123), MacBook Pro M5 Pro. Codex Desktop 26.1023.51421, then 26.1027.30824 (build 22943) after updating; both bundle the same Computer Use build.
SkyComputerUseService,CUALockScreenGuardianand the installed authorization plug-in all report 26.1022.1001641 (build 1001641). Locked use enabled, Accessibility and Screen Recording granted, require password Immediately, display off after 5 minutes on power, screen saver after 20 minutes. Error returned:The Mac is locked and automatic unlock could not unlock it. Ask the user to unlock the Mac manually before continuing.What the logs show (one evening, 8 failures, 8 successes). Every failure followed a lock that macOS started on its own while a Computer Use task was running: four screen-saver locks (loginwindow reason
kLWLockFromScreenSaverIdleLaunch) and four display-off locks (kLWLockFromDisplayDim), one of them with the screen saver already set to Never. In each case:com.apple.screenIsLocked, the service beganSystemLockScreenController.unlock(). No request was in flight for the display-off cases; the display had been idle for five minutes and the service loggedkCGSDisplayWillSleepat the same instant.FocusedUseranchor and noUserPasswordTextField, on every one of 38 or 39 polls over about 10 s, then logged the timeout marker1fde71b2d08982b1b528 [0]=38. The second attempt did the same. Then34f610ab61c02cb35735(attempt budget exhausted,maxAttemptsPerLockedEpisodeis 2).kLWUnlockFromUserActive), yet the service emitted the exhaustion marker in the same millisecond and never looked at the now-drawn login UI. The counter only resets whenCGSSessionScreenIsLockedreads false or the service restarts; display wake,screenLockUIIsShownand new requests do not reset it.Every success had the opposite shape: a fresh counter (new service PID) and a real display wake. loginwindow logged
kLWUnlockFromUserActivefirst, then the picker saw 9 nodes, clicked the name to reveal the field, saw 13 nodes withUserPasswordTextField, and the authorization plug-in returned ALLOW within about a second. The plug-in returned ALLOW on all 10 invocations that evening and was never invoked during a failure, because failures end before the field is found. Both IPC sockets existed throughout, and a restart alone did not help when no wake followed: a restarted service on a lit, screen-saver-covered display failed the same way (19:11:52 ET, one node again). The installed and bundled plug-in builds matched, and reinstalling the plug-in changed nothing.Why the lock happens mid-task at all. The screen saver fired exactly 1200.0 s after each unlock, four times in a row, while Computer Use was actively clicking and typing. Synthetic app input does not count as user activity for the idle timers, and the request path's
IOPMAssertionDeclareUserActivityplus display-sleep assertion wakes a sleeping display but does not dismiss a running screen saver or reset those timers. When requests pause for five minutes the display turns off first.Reproduction. Locked use on, require password Immediately, screen saver at 20 minutes or display off at 5 minutes. Start a Computer Use task with the Mac unlocked and let it run past the idle timeout. The next native request after the lock fails and keeps failing. Starting the same task after the Mac is already locked and dark succeeds.
Workarounds that worked.
SkyComputerUseServiceprocess, relaunch the bundle withopen -g, runpmset displaysleepnow, then make any native request. The request's wake makes loginwindow draw the login UI and the fresh counter lets the search run: 4 of 4 recoveries.Suggested fixes.
screenLockUIIsShown, orFocusedUserpresent) before searching, and treat a one-node tree as "UI not ready" rather than a failed attempt.screenLockUIIsShown, or on a new request after a cooldown. A dead episode currently persists for hours.Filtered loginwindow, powerd, authd and helper log extracts for the eight episodes are available on request.
jcastro commentedon Oct 30, 2026
Current-device follow-up — 30 October 2026. Desktop app 26.1027.30824 (build 22943) is up to date on macOS 27.2 (26B118). With display sleep at 2 minutes, system idle sleep disabled, and
screenLockoff, native Computer Use is currently blocked by the distinct message that automatic unlock was paused because physical input was detected. The check itself sent no keyboard/pointer input; logs did not identify the signal source. No new post-sleep cycle was run.On this Mac, installed authorization plug-in metadata reports 1001540, while helper and Guardian report 1001641. Your report says the versions matched on your device, so this mismatch may be incidental. Is the physical-input pause related to the lock-UI readiness/attempt-budget issue you found, or a separate guard state? Full current details: #55615 (comment)
jcastro commentedon Oct 31, 2026
31 October 2026 follow-up to the wake-readiness/attempt-budget hypothesis: on build 26.1027.30824 (22943), two native Calculator operations and Chrome keyboard navigation succeeded after natural display sleep, but a later Font Book acquisition returned the generic manual-unlock error. A passive power log showed the display turning on about 23 seconds after display-off. This is consistent with context-dependent behavior but does not prove the proposed race or attempt-budget cause; the test involved different target apps and did not inspect the helper's internal state. Full details: #55615 (comment)
tomdai commentedon Nov 3, 2026
Found a setting that may explain some reproductions: System Settings → Lock Screen → Show user name and photo.
This was OFF on my Mac. Locked Use repeatedly failed with “The Mac is locked and automatic unlock could not unlock it.”
Local logs, a read-only accessibility probe, and Hopper inspection showed that the helper’s password-field reveal logic searches for an accessibility element identified as FocusedUser. With the profile hidden, that element was absent, and the helper couldn’t reveal/find UserPasswordTextField. Two failed searches then exhausted its retry budget.
Turning Show user name and photo ON restored the reveal path. After also resolving a separate duplicate-helper issue introduced during diagnosis, I verified a complete native operation: the Codex authorization plug-in returned ALLOW, the helper confirmed automatic unlock. The successful interval showed the Codex authorization path.
Environment: macOS 27.2 (26B123), desktop app 26.1027.61615 (24141), Computer Use helper/authorization plug-in 1001641.
jcastro commentedon Nov 7, 2026
Follow-up — 7 November 2026. The same user-visible failure reproduced after updating the desktop app.
Environment
Reproduction
The automatic-unlock failure therefore remains reproducible on desktop build 25679 after a confirmed display-off event. The suggested account-name setting was already enabled on this Mac. The helper/plug-in version mismatch is recorded as an observation only; this test does not establish it as the cause. The internal failure stage remains unknown.
9root3 commentedon Nov 7, 2026
I'm also running into this with Locked Use enabled. I tested again on November 7, 2026, and native Computer Use still failed with:
My setup:
I checked the name/photo setting mentioned above. It appears to be enabled on my Mac:
HideUserAvatarAndNameis unset, and the installed LockScreen extension defaults to showing the name and photo in that case. This was checked through the preference path, not visually in System Settings, since native access was failing.The logs also look similar to the retry-budget report:
SkyComputerUseServiceprocess logged34f610ab61c02cb35735five times over more than seven hours.showScreenLock:.1fde71b2d08982b1b528marker or a matching Library Validation rejection. The original failure may no longer be retained, so I can't rule those out.CodexComputerUseAuthorizationPlugin:allow, then standard authentication mechanisms, and eventually loggedEvaluate deniedfor the same engine.This seems consistent with the exhausted-budget state described here, but I can't confirm that the initial failure was the same lock-UI timing race. The helper/installed-plug-in mismatch is another thing I noticed, rather than a confirmed cause.
I haven't changed settings, restarted services, or replaced any components during this check. Is there a supported way to refresh the installed authorization plug-in and capture diagnostics that distinguish a retry-budget failure from an authorization failure?
druidvav commentedon Nov 8, 2026
Adding another affected user's report, with failures on November 5 and 7, 2026.
This makes unattended desktop work unreliable: I cannot step away from the Mac and expect the assistant to finish, because it keeps asking me to come back and unlock it manually. Please prioritize a reliable fix.
What happened
The error matches this issue:
Checks and observations
Exact app, helper and macOS build numbers were not captured alongside these incidents. No new reproduction was run for this comment; the latest confirmed failure here is November 7.
The cause is still unknown. These observations do not establish that this is the same timing race or exhausted-attempt-budget problem described above. Could the team provide a supported diagnostic that identifies the failed stage, and clarify whether a fix is planned? Repeated manual unlocking defeats the purpose of this workflow.
Posted with the account owner's authorization. No private task content, identifiers, credentials, screenshots or raw logs are included.
jcastro commentedon Nov 23, 2026
Follow-up — 23 November 2026. The automatic-unlock failure reproduced again on the current app version.
Environment
Reproduction
No password was entered. This confirms the same user-visible failure on the current app build; the failed internal stage and root cause remain unknown.