Skip to content

**Sign-in failed: workspace routing discovery timed out** #48894

Open

Description

@buraksahins

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

26.5917.62015 ( i tired also stable and even older versions...)

What subscription do you have?

pro max

What platform is your computer?

ubuntu

What issue are you seeing?

I am reporting a regression in Codex authentication / workspace routing in the VS Code extension.

Codex in VS Code is currently unusable for me because authentication repeatedly fails with:

Sign-in failed: workspace routing discovery timed out

This setup worked previously.

The underlying workstation and network connection are functioning normally. SSH access to the workstation works correctly, the local network connection is stable, and VS Code Remote SSH itself is not the problem.

The failure occurs specifically in the Codex authentication/account initialization path.

Repeated authentication attempts do not solve the problem. The failure consistently occurs while Codex is trying to discover or restore the authenticated workspace.

Please do not treat this as a generic local VS Code or SSH configuration problem. The error itself points to Codex workspace-routing discovery.

I am also seeing recent reports from other users describing the same account/read / workspace routing discovery timed out failure after recent Codex releases.

Please escalate this to the Codex engineering team and investigate whether a recent change to workspace routing, account discovery, authentication initialization, or the bundled Codex runtime introduced this regression.

In particular, please investigate the request path involved in:

account/read

and workspace-routing discovery.

Expected behavior:

  1. I authenticate with my ChatGPT account.
  2. Codex identifies my account/workspace.
  3. The VS Code extension starts normally.

Actual behavior:

  1. Authentication is initiated.
  2. Workspace/account initialization starts.
  3. Codex fails with:

Sign-in failed: workspace routing discovery timed out

  1. Codex cannot be used.

This is blocking my development work.

Please confirm whether this is a known regression and provide either a server-side fix or a supported workaround. I would also like this case attached to the existing engineering investigation if the same workspace-routing problem is already being tracked.

What steps can reproduce the bug?

just try to login... login is succesfull, web pages gives success and asks me to close.. then vs code codex fails...

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Sep 28, 2026
  2. added
    bug
    extension
    auth
    connectivity
    on Sep 28, 2026
  3. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. Humorhunter commented on Sep 29, 2026

    @Humorhunter

    Workaround that fixed it for me:

    Kill any leftover Codex processes, then restart:

    pkill -f codex
    codex login status   # verify you're still logged in
    codex

    The long-running app-server daemon seems to hold stale routing state. Killing it and restarting cleared the timeout for me.

  5. 19h commented on Oct 3, 2026

    @19h

    I am seeing the exact same issue across all of my devices.

  6. Tsumugii24 commented on Oct 5, 2026

    @Tsumugii24

    Workaround that fixed it for me:

    Kill any leftover Codex processes, then restart:

    pkill -f codex
    codex login status # verify you're still logged in
    codex
    The long-running app-server daemon seems to hold stale routing state. Killing it and restarting cleared the timeout for me.

    Thanks, works good for me.

  7. mumu029 commented on Oct 6, 2026

    @mumu029

    Workaround that fixed it for me:

    Kill any leftover Codex processes, then restart:

    pkill -f codex
    codex login status # verify you're still logged in
    codex
    The long-running app-server daemon seems to hold stale routing state. Killing it and restarting cleared the timeout for me.

    Thanks, works good for me.

  8. Paulx209 commented on Oct 23, 2026

    @Paulx209

    4. Workaround that fixed it for me:对我有效的临时解决方案:
    Kill any leftover Codex processes, then restart:终止所有残留的 Codex 进程,然后重新启动:
    pkill -f codex
    codex login status # verify you're still logged in
    codex

    The long-running `app-server` daemon seems to hold stale routing state. Killing it and restarting cleared the timeout for me.长时间运行的 app-server 守护进程似乎持有过期的路由状态。对我来说,终止它并重新启动后,超时就消失了。
    

    Thanks, works good for me.

  9. Provemj commented on Oct 26, 2026

    @Provemj

    I encountered the same workspace routing discovery failed error when using the Codex VS Code extension through Remote SSH (Windows client → Linux server).

    Symptoms:

    • Codex worked normally in a local Windows VS Code window.
    • The bundled Codex CLI could authenticate and successfully execute model requests.
    • Codex failed to sign in when VS Code was connected to the remote Linux server.
    • The extension logs showed:
      • workspace routing discovery failed
      • failed to refresh available models: Connection failed
      • error sending request to various chatgpt.com endpoints.

    Root cause:

    The remote Linux server's system clock was nearly one day behind the actual time, causing TLS certificate validation to fail.

    Running:

    curl -Iv https://chatgpt.com

    Returned:

    SSL certificate problem: certificate is not yet valid
    curl: (60)
    

    Further investigation with timedatectl status showed:

    System clock synchronized: no
    NTP service: active
    

    Although systemd-timesyncd was running, the system clock had not synchronized successfully.

    Fix:

    Restarting the NTP synchronization service:

    sudo systemctl restart systemd-timesyncd

    Restored the correct system time, and timedatectl status subsequently reported:

    System clock synchronized: yes
    NTP service: active
    

    The clock synchronization and certificate-validity issue is now resolved. I haven't yet confirmed whether Codex sign-in is fully restored.

    For anyone encountering this error specifically in a Remote SSH environment, I recommend checking the remote server's system time and TLS certificate validation before reinstalling the Codex extension or troubleshooting authentication.

  10. ShitaoTang commented on Nov 15, 2026

    @ShitaoTang

    Workaround that fixed it for me:

    Kill any leftover Codex processes, then restart:

    pkill -f codex
    codex login status # verify you're still logged in
    codex
    The long-running app-server daemon seems to hold stale routing state. Killing it and restarting cleared the timeout for me.

    It works, thank you.

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

    appauthbugconnectivityextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions