Skip to content

Codex macOS app: Intermittent chat hangs, pong_timeout and 401 expired reconnect #57126

Open

Description

@jelimero91-gif

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

26.1021.31345 (build 21828)

What subscription do you have?

ChatGPT Pro

What platform is your computer?

macOS (exact OS version and architecture not yet provided)

What issue are you seeing?

The Codex app for macOS intermittently leaves chats stuck on “Thinking” without completing requests or executing tasks. The app is up to date.

Local executor logs from October 26, 2026, around 7:09 a.m. America/Los_Angeles (PDT), showed this sequence:

  • Disconnection: reason=pong_timeout
  • Reconnection attempt rejected: httpStatus=401, rejectionReason=expired
  • Connection recovered approximately five seconds later.

The terminal responded during the diagnostic check, but chats still intermittently hang. I do not know whether this log sequence is the cause of the chat hangs. Could you investigate the disconnection/reconnection behavior and advise how to resolve it?

Image Image Image Image Image Image Image Image Image Image Image Image Image

What steps can reproduce the bug?

Feedback ID: 01a1788b-fcdb-7002-a053-b5bbb0567483

What is the expected behavior?

Chats should respond and execute requested tasks. If the connection drops, the app should reconnect and allow the chat to resume, or show a clear error and a way to retry instead of remaining indefinitely on “Thinking”.

Additional information

The app and the Mac have already been restarted, but the issue persists. The terminal was responsive during the diagnostic check.

I can provide logs through the app’s feedback feature and screenshots of the affected chats.

Activity

  1. added
    app
    on Oct 26, 2026
  2. added
    bug
    connectivity
    auth
    on Oct 26, 2026
  3. jelimero91-gif commented on Oct 26, 2026

    @jelimero91-gif
    Author

    Image this is my macos

  4. jelimero91-gif commented on Oct 26, 2026

    @jelimero91-gif
    Author

    Additional diagnostic evidence collected on October 26, 2026 (America/Los_Angeles, PDT / UTC−07:00). The root cause remains unconfirmed.

    Verified environment: desktop app 26.1021.31345, build 21828; macOS 27.0.1 (26A434), arm64. The two diagnostic sessions inspected used GPT-6.1 Sol with local execution. This does not establish the model/target of every historically affected chat.

    Repeated connection incidents (PDT below; exact UTC timestamps and source line numbers are in the attached extracts):

    Time Observed sequence
    06:55:54–06:55:58 Local executor: read_error → HTTP 401 / rejectionReason=expired → recovered (~3.9s episode).
    06:56:06 Separate app-server WebSocket closed with code=1006 / failureReason=pong_timeout.
    07:09:28–07:09:34 Local executor: pong_timeout → HTTP 401 / expired → recovered (~5.3s).
    07:19:34–07:19:38 Local executor: pong_timeout → HTTP 401 / expired → recovered (~4.3s).

    The 07:19 incident occurred after the incident originally reported. These logs confirm connection interruptions and transient expired rejections; they do not identify why the connection dropped, what expired, or whether every stalled turn has the same cause.

    Desktop / web / network comparison:

    • Multiple desktop chats visibly showed “Servidor ocupado, reconectando.” At 07:09:34, the diagnostic chat displayed 16min 50s processing and reconnecting 2/5.
    • The diagnostic turn eventually completed after 20min 42.765s total. A later “hola” in another affected chat ran from 07:50:49 to 07:52:43 (114.505s). This demonstrates later responses, with considerable latency; it does not confirm lasting recovery. Total turn duration is not necessarily time without any progress.
    • Shell-tool commands completed. An actual git status returned “not a git repository”; this is a separate repository result, not a connectivity error. The integrated terminal itself was not verified by this review.
    • The browser comparison reached cloud-environment onboarding and later an introductory response, without a comparable completed diagnostic request using the same prompt/target. Please do not treat this as a successful controlled web comparison.
    • I previously reported signing out, removing/reopening the app without improvement, and using my phone's internet with the same symptom. The hotspot result is user-reported; there is no complete controlled test record verifying the connection, identical request/target and timing.
    • At about 08:01 PDT, DNS resolved the checked hosts and a public HTTPS GET to status.openai.com returned 200 with successful TLS verification. This does not test authenticated streaming. OpenAI Status showed operational; that does not exclude a partial/account-specific problem.

    Identifier clarification: 01a1788b-fcdb-7002-a053-b5bbb0567483 was entered as “Feedback ID” in the original issue. It is verified as a chat ID, but this review did not verify a separate feedback-submission receipt. Please do not assume that an uploaded session/feedback receipt was confirmed.

    Chats available for correlation:

    • 01a1787c-2509-7943-9560-a4fe78753403 — diagnostic chat.
    • 01a1788b-fcdb-7002-a053-b5bbb0567483 — diagnostic chat with shell/log checks.
    • 01a169a9-5e8d-7c02-98a8-d38e7c7c4250 — affected chat with the later 114.505s response.

    Could you correlate these timestamps and chats with service/connection diagnostics, identify what expired during reconnection, and check whether reconnecting correctly resumes pending turns? A supported recovery procedure that preserves existing chats and local work would be helpful.

    The suggested duplicate #57113 primarily concerns conversation reads failing with cloudflare_challenge/403; #56435 concerns Linux/mobile remote control. Shared timeout signatures alone do not establish the same cause.

    Reviewed evidence package: a detailed Spanish report plus CONNECTION-EXCERPTS.json and HISTORY-EXCERPTS.json, README and checksums. It includes focused timestamps, original log line numbers and selected recorded UI observations. Full logs, full accessibility trees, credentials, emails, private network names/IPs and personal filesystem paths are excluded. Recorded UI timestamps indicate when text was visible, not necessarily when the described earlier action occurred.

    Download the reviewed diagnostic evidence ZIP

    ZIP SHA-256: 4d8e81866fefb635b21674215fb8a363960420456b3720fb40c25e46d4440079

  5. rwlaschin commented on Nov 5, 2026

    @rwlaschin

    Reproduced on macOS 26.2 (25C56), desktop app bundle version 26.1029.61003, while running workspace subagents. Four subagents ended with “workspace routing discovery timed out.” Some had already written files. Direct terminal access still worked.

    In the November 4, 2026 UTC desktop logs, I counted 99 distinct Local Work executor rendezvous unavailable warnings (deduplicated by timestamp and request ID). These are transport events, not 99 failed tasks:

    • 14 disconnects (8 peer closes, 4 read errors, 2 pong timeouts)
    • 85 WebSocket errors, including 14 HTTP 401 responses with rejection reason expired

    A representative sequence on November 4 (UTC): reconnected at 22:37:28, peer closed at 22:44:47, and reconnect returned 401 expired at 22:44:54. The last incident ID was c7211970-026c-4252-b9aa-9adc6a0417be (request req_89573efdaad2438f9df538b23a4bb852). Earlier sequences show re-registration and successful reconnection after the expired rejection, followed by another disconnect.

    Could you correlate the incident with the server-side close reason and check whether reconnect tries to reuse expired rendezvous credentials before re-registering? I haven't established whether the four workspace discovery timeouts correspond to these specific transport events.

  6. darrin commented on Nov 29, 2026

    @darrin

    Codex Desktop reconnects with HTTP 401 expired within six minutes of launch

    ChatGPT Desktop 26.1120.50957 (build 30866), macOS 26.6.2 (25G83). The in-app updater showed this was the newest available build.

    With Codex open in the macOS desktop app, the UI intermittently stops receiving updates. The local executor logged WebSocket reconnect failures with HTTP 401 and reason expired in two consecutive desktop launches on November 29, 2026 (CST, UTC−06:00).

    Desktop launch First logged 401 expired Time since launch
    2:32:27 p.m. 2:37:55 p.m. 5m 28s
    3:01:29 p.m. 3:07:11 p.m. 5m 42s

    Both desktop processes continued logging after the initial rejection. A standalone Codex CLI 0.171.0-alpha.13.2 test on the same Mac returned OK in approximately 11 seconds. This was a fresh CLI session. It did not test resuming the affected desktop thread.

    Earlier the same day the desktop also logged an app-server WebSocket closure with code 1006 and subsequently reconnected. The relationship between that closure, the 401 errors, and the UI stalls is unconfirmed.

    Expected behavior is for the desktop connection to recover and resume updates. Could you check what expired during these reconnect attempts and whether pending desktop requests were restored? The closest public report is openai/codex #57126.

  7. liuyaxi1995-art commented on Dec 2, 2026

    @liuyaxi1995-art

    I’m seeing a similar symptom on macOS on December 2. Two conversations in different projects showed a persistent spinner in the sidebar for a long time, without a clear error. Restarting the app several times hasn’t resolved this recurring behavior. I haven’t confirmed whether the turns were still running or whether the UI stopped updating, and I don’t have evidence of a 401 or pong_timeout in this incident. Is there a supported way to check the actual turn status and recover without resubmitting the prompts?

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

    appauthbugconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions