codex - 💡(How to fix) Fix Codex Cli/App "Connections" Issues (Unable to send message to remote project getting access token refresh error) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19531Fetched 2026-04-26 05:15:46
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

The issue is using the remote connections on the codex app on macos and linux vm (ubuntu 22.04) installed with codex cli latest version using npm install -g @openai/codex@latest today. After logging in with device auth code or headless login. Even after successfully login, the codex macos app working in remote project giving error message "Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again." 5) When you come back on codex app and try to send message to continue work in remote project for that vm. The below error message is shown

Root Cause

The issue is using the remote connections on the codex app on macos and linux vm (ubuntu 22.04) installed with codex cli latest version using npm install -g @openai/codex@latest today. After logging in with device auth code or headless login. Even after successfully login, the codex macos app working in remote project giving error message "Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again."

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.422.30944 (2080)

What subscription do you have?

Plus

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

The issue is using the remote connections on the codex app on macos and linux vm (ubuntu 22.04) installed with codex cli latest version using npm install -g @openai/codex@latest today. After logging in with device auth code or headless login. Even after successfully login, the codex macos app working in remote project giving error message "Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again."

What steps can reproduce the bug?

  1. set remote_connections=true to enable connections in the macos codex app
  2. install codex cli latest using npm install -g @openai/codex@latest.
  3. Do codex login --device-auth
  4. Login will be successful and cli works normally on vm
  5. When you come back on codex app and try to send message to continue work in remote project for that vm. The below error message is shown "Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again."
  6. Tried with different account and even deleted the codex auth json and relogin performed but still same issue.

What is the expected behavior?

It worked yesterday as normal but as of 25 April 2026, this issue remains unresolved and connections are not working due to this.

Additional information

No response

extent analysis

TL;DR

The issue can be potentially resolved by re-authenticating with the Codex App after a successful login with the device auth code or headless login.

Guidance

  • Verify that the remote_connections flag is set to true in the Codex App settings to ensure remote connections are enabled.
  • Try signing out and then signing back in to the Codex App to refresh the access token and resolve the authentication issue.
  • Check if the issue persists after deleting the codex auth json file and relogging in, as this may help to reset any cached authentication data.
  • If the issue still occurs, try using a different account to isolate if the problem is account-specific.

Notes

The issue seems to be related to authentication token refresh, and re-authenticating may resolve the issue. However, without more information about the Codex App's authentication mechanism, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Re-authenticate with the Codex App after a successful login with the device auth code or headless login, as this may resolve the access token refresh issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Cli/App "Connections" Issues (Unable to send message to remote project getting access token refresh error) [1 comments, 2 participants]