You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revoked remote control access for a device, connections remain on ChatGPT mobile app without a way to delete, cannot pair again #22700
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.513.20950 (2816)
What subscription do you have?
Pro 20x
What platform is your computer?
Darwin 25.4.0 arm64 arm
What issue are you seeing?
I paired my ChatGPT iOS app with the CLI and Desktop apps in that order. First by running 'codex remote-control' from the CLI and pairing my ChatGPT iOS app, then by launching the Codex desktop app and going through pairing with the iOS app there.
I later revoked access to my phone via the Codex desktop app. The two connections remain on my iOS app, even after deleting and re-installing. There is no way to remove them in the UI.
I attempted to re-pair the phone with the Codex desktop app by clicking 'Add' in the desktop app and having my phone scan the QR code and launch the iOS app. However, nothing happens. The existing connections show 'No workspace' and a list full of 'New chat':
Clicking any chat shows a screen like this:
As of right now the only way to use codex remotely from my phone is to setup a SSH connection. I cannot get either the desktop or CLI connection to remove or pair again.
What steps can reproduce the bug?
Pair the iOS app with the Codex desktop app
Revoke the pairing
Attempt to pair again
What is the expected behavior?
Revoked connections would be removed from the iOS app, or provide a deletion option, re-pairing would work properly.
Additional information
No response
Reacted by Stephen, notesstartup, Welt, Dengjin Shen, YuVenhol, cathyjay, Tim, Jihoon Kim, Va Theara, Hakob Tamazyan and 27 more
Adding to this - I was able to enroll my iPad and access the connected codex desktop and cli app just fine. I just have no way to re-enroll a previously revoked device, and no way to remove connected codex instances.
Yeah same here, it's kind of annoying as it did load the chat titles but never made it into a thread. Then trying to re-auth has me also stuck with the machine I cant delete from the iOS app. There is no exposed way to delete a connection on the app.
Reacted by Rainier Moss, Junhao Liu and Ben Sampica
Same here, and for some reason the revoked device can still access chats lists and get status updates, but clicking in any chat would result in a 403 error
@ronething@Astrisle@flyespresso I did find a workaround for re-pairing a revoked client. You simply have to logout on the phone and log back in again (not simply logging in after a reinstall - you must log out while logged in). After doing that it requested permission to pair and showed up on the account again.
Adding another repro from a Mac mini + iOS setup. This matches the stale/revoked mobile connection behavior, with an additional 403/thread/project access symptom.
ChatGPT iOS app updated/reinstalled today, after the Codex mobile Connections rollout
Observed behavior:
iOS Connections shows the desktop host as Matthews-Mac-mini.local with a spinner, then it turns red/offline after timing out.
iOS can detect when the desktop Codex app is offline.
iOS can load chat titles / chat list from the desktop connection, but opening a chat spins and then returns a 403.
Projects do not load from iOS.
Deleting/reinstalling the iOS app does not remove the stale desktop connection.
Trying to add/re-pair again just returns to the same non-working connection screen. There is no visible way in iOS to delete/remove the stale connection.
Local desktop evidence:
The desktop app has a row in ~/.codex/state_5.sqlite table remote_control_enrollments for the same host name.
Desktop logs show the relay is at least partially connected: targeted_connections=1 and __slingshot_backend_thread_list__ being sent to the remote client.
Around the same repro window, local logs also showed thread reads failing locally with errorCode=-32600 / thread not loaded for one stale pinned thread id. Removing that stale pinned id from ~/.codex/.codex-global-state.json fixed the local stale pinned-thread read error, but did not fix iOS remote access.
Clearing the local remote_control_enrollments row and restarting Codex did not resolve the stale iOS connection behavior. The desktop re-enrolled, but iOS still showed/used the broken connection state.
Expected:
iOS should either reconnect cleanly to the desktop host, or expose a way to remove/revoke the stale connection and complete a fresh pairing.
Actual:
The connection is stuck in a half-authorized state: mobile can see some metadata/status, but thread/project access fails with 403 and the connection eventually marks itself offline.
This feels related to stale server-side mobile/desktop connection state rather than only local desktop state, because local enrollment reset + iOS reinstall did not remove the broken connection from the mobile app.
@gravity-clms I've had success getting it working again after logging out of the mobile app and logging back in. Doing a logout clears some persistent state (likely shared keychain) that deleting the app won't even get rid of.
Edit: For clarity - just deleting the app, installing it again, then logging in is not enough. You must logout while logged in.
Reacted by Ashing Zheng, Pelmeshek1706 and Rooobiin
@gravity-clms I've had success getting it working again after logging out of the mobile app and logging back in. Doing a logout clears some persistent state (likely shared keychain) that deleting the app won't even get rid of.
Same here, uninstalling the app doesn't solve the problem, but logging out does.
Reinstalling the iOS ChatGPT app does not clear the stale connection.
The stale Codex Desktop / Mac entry remains visible in ChatGPT iOS under Codex > Connections.
The mobile UI appears to allow toggling the stale connection, but there does not seem to be a reliable “forget/remove this host” path that fully clears it from the account/relay state.
Expected behavior:
Revoking authorization from Codex Desktop should either remove the host from ChatGPT iOS, mark it as revoked, or expose a working Forget/remove host action on iOS.
Re-pairing should not be blocked by the stale revoked host record.
This looks like the mobile/relay-side host list is not being invalidated after Mac-side authorization removal.
@fmnisme Instead of reinstalling the app and logging in again, try logging out of the app using the logout option and then logging in again. This was the only thing that worked for me, even deleting / reinstalling / logging in again didn't fix it. You have to actually do a logout.
@sirmalloc Update: signing out and signing back in fixed the stale connection state for me.
After re-login, I was able to use Codex mobile remote control again / re-pair successfully. So this may be a workable temporary workaround for this issue.
I am seeing what looks like the same issue, with one additional detail: the stale connection was created after accidentally pairing Codex Mobile with the wrong Mac.
Environment:
Codex Desktop: Version 26.513.31313 (2867)
Subscription: Enterprise
Desktop platform: macOS 26.5
Mobile platform: iOS 26.5
ChatGPT for iOS: 1.2026.123 (25565698938)
Scenario:
I use Codex Desktop on two Mac laptops.
I intended to connect Codex Mobile to Laptop A, but accidentally connected it to Laptop B.
I revoked the permission/connection from Laptop B.
I signed out from all devices.
In ChatGPT for iOS, under Codex > Connections, the old Codex Desktop entry remains, shown as something like my-macbook-pro-16.local.
I cannot remove that existing Codex Desktop configuration.
When I try to connect to Laptop A by scanning the QR code shown in Laptop A’s Codex app, nothing happens.
Expected:
I should be able to remove the stale/wrong Codex Desktop connection from mobile, or
scanning the QR code from Laptop A should replace/add the intended connection, or
the app should show a clear error explaining why pairing cannot proceed.
Actual:
The stale/wrong desktop connection remains stuck in ChatGPT for iOS.
There appears to be no mobile-side delete/reset option.
QR re-pairing with the intended Mac silently does nothing.
signing out and signing in on iphone app worked, still I do not see the approved iphone in the mac-side (which is concerning if I were in enterprise environment) but able to connect.
Same, doing the login/logout did not solve the problem. Also, I remove the computer connection and now I'm stuck because it's still showing the in the app connection while it does not exists anymore
Activity
liyawpp commentedon May 14, 2026
ditto. having same issue right now.
sirmalloc commentedon May 14, 2026
Adding to this - I was able to enroll my iPad and access the connected codex desktop and cli app just fine. I just have no way to re-enroll a previously revoked device, and no way to remove connected codex instances.
sirmalloc commentedon May 14, 2026
And one more possibly related issue on this. Attempting to enroll the desktop app to control other devices shows this:
'Failed to authorize remote control'
flyespresso commentedon May 15, 2026
Yeah same here, it's kind of annoying as it did load the chat titles but never made it into a thread. Then trying to re-auth has me also stuck with the machine I cant delete from the iOS app. There is no exposed way to delete a connection on the app.
Astrisle commentedon May 15, 2026
Same here, and for some reason the revoked device can still access chats lists and get status updates, but clicking in any chat would result in a 403 error
ronething commentedon May 15, 2026
I've encountered this situation too, is there a temporary workaround?
Stephen2077 commentedon May 15, 2026
Same
sirmalloc commentedon May 15, 2026
@ronething @Astrisle @flyespresso I did find a workaround for re-pairing a revoked client. You simply have to logout on the phone and log back in again (not simply logging in after a reinstall - you must log out while logged in). After doing that it requested permission to pair and showed up on the account again.
There's a workaround I found here to list and delete the connected environments, however please inspect the files and use at your own risk: https://gist.github.com/sirmalloc/fefef0b65729d9644794a3c67d1a28b9
They simply create the same headers as the desktop Codex app and issue requests that were already built in but not wired.
Pratikreddy commentedon May 15, 2026
Same issue. I'm fully unable to pair from my phone.
Im actually scared how can a company claiming to have the best coding agent...
Ok screw that do you not have a testing team 😂😂😂
gravity-clms commentedon May 15, 2026
Adding another repro from a Mac mini + iOS setup. This matches the stale/revoked mobile connection behavior, with an additional 403/thread/project access symptom.
Environment:
26.513.20950, build2816(com.openai.codex)codex-cli 0.131.0-alpha.926.4.1(25E253), arm64Observed behavior:
Matthews-Mac-mini.localwith a spinner, then it turns red/offline after timing out.403.Local desktop evidence:
~/.codex/state_5.sqlitetableremote_control_enrollmentsfor the same host name.targeted_connections=1and__slingshot_backend_thread_list__being sent to the remote client.errorCode=-32600/thread not loadedfor one stale pinned thread id. Removing that stale pinned id from~/.codex/.codex-global-state.jsonfixed the local stale pinned-thread read error, but did not fix iOS remote access.remote_control_enrollmentsrow and restarting Codex did not resolve the stale iOS connection behavior. The desktop re-enrolled, but iOS still showed/used the broken connection state.Expected:
Actual:
This feels related to stale server-side mobile/desktop connection state rather than only local desktop state, because local enrollment reset + iOS reinstall did not remove the broken connection from the mobile app.
sirmalloc commentedon May 15, 2026
@gravity-clms I've had success getting it working again after logging out of the mobile app and logging back in. Doing a logout clears some persistent state (likely shared keychain) that deleting the app won't even get rid of.
Edit: For clarity - just deleting the app, installing it again, then logging in is not enough. You must logout while logged in.
ronething commentedon May 15, 2026
Same here, uninstalling the app doesn't solve the problem, but logging out does.
damtt commentedon May 15, 2026
This works for me, thanks
#22700 (comment)
fmnisme commentedon May 15, 2026
I am seeing the same stale remote-control host state after revoking the pairing from Codex Desktop.
Environment/context:
Settings > Connections > Control this Mac(Devices that can control this Macis empty).Allow other devices to connectis still enabled on the Mac.Codex Desktop / Macconnection as connected.Observed error on iOS:
Additional observations:
Codex Desktop / Macentry remains visible in ChatGPT iOS under Codex > Connections.Expected behavior:
Forget/remove hostaction on iOS.This looks like the mobile/relay-side host list is not being invalidated after Mac-side authorization removal.
sirmalloc commentedon May 15, 2026
@fmnisme Instead of reinstalling the app and logging in again, try logging out of the app using the logout option and then logging in again. This was the only thing that worked for me, even deleting / reinstalling / logging in again didn't fix it. You have to actually do a logout.
fmnisme commentedon May 16, 2026
@sirmalloc Update: signing out and signing back in fixed the stale connection state for me.
After re-login, I was able to use Codex mobile remote control again / re-pair successfully. So this may be a workable temporary workaround for this issue.
techtaka-yongjip commentedon May 17, 2026
I am seeing what looks like the same issue, with one additional detail: the stale connection was created after accidentally pairing Codex Mobile with the wrong Mac.
Environment:
Scenario:
Codex > Connections, the old Codex Desktop entry remains, shown as something likemy-macbook-pro-16.local.Expected:
Actual:
This appears related to #23078, #22781, and #23090 as well.
fiigmnt commentedon May 18, 2026
I am currently experiencing this same issue. tried using codex cli - created a new connection using same hostname and also won't resolve.
unable to fully delete connections on the iOS app unless they are connections I created using the app (ssh).
Ideally - you could remove connections on the iOS app which would reset the auth state and then be able to reconnect via QR code again.
kucats commentedon May 20, 2026
signing out and signing in on iphone app worked, still I do not see the approved iphone in the mac-side (which is concerning if I were in enterprise environment) but able to connect.
artemyarmoliuk commentedon May 21, 2026
the same
joaomantovani commentedon May 21, 2026
Same, doing the login/logout did not solve the problem. Also, I remove the computer connection and now I'm stuck because it's still showing the in the app connection while it does not exists anymore
otarza commentedon May 23, 2026
Same issue, login/logout doesn't work either.
nomasprime commentedon Jun 1, 2026
Yep, quite broken