Skip to content

Codex Desktop repeatedly retries inaccessible conversations after thread access denied #55838

Open

Description

@TosakaWolf

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

20770

What subscription do you have?

ChatGPT Pro

What platform is your computer?

macOS (Apple Silicon)

What issue are you seeing?

Codex Desktop repeatedly sends background thread/read requests for inaccessible or stale conversations. The server returns JSON-RPC -32003 “thread access denied”. Logs showed 116 affected conversation IDs and more than 23,000 repeated denied requests. The retry storm caused thread/turns/list queue waits of approximately 14–24 seconds and made normal Codex operations slow or fail. Logs also showed “Authenticated desktop fetch failed (429)” and “Thread catalog sync failed”.

What steps can reproduce the bug?

Steps to reproduce:

  1. Use Codex Desktop with a local conversation catalog containing conversations that are no longer accessible to the current account or workspace.
  2. Allow conversation catalog synchronization to fail or be rate-limited with HTTP 429.
  3. Leave the app running while background thread hydration continues.
  4. Observe repeated thread/read requests for the same inaccessible conversation IDs and increasing queue delays.
  5. Restarting ChatGPT/Codex clears the in-memory retry storm temporarily.

What is the expected behavior?

After -32003 thread access denied, the client should stop retrying that conversation, remove or quarantine the stale entry, and keep normal operations responsive. Catalog HTTP 429 responses should use backoff and should not cause unverified stale entries to be hydrated indefinitely.

Additional information

No response

Activity

  1. added
    app
    on Oct 21, 2026
  2. added
    bug
    app-server
    rate-limits
    on Oct 21, 2026
  3. johnmart19 commented on Oct 23, 2026

    @johnmart19

    Codex Windows: reported instability after restart; repeated thread hydration failures

    Date: 23 October 2026 (Europe/Kyiv, UTC+3)
    App: OpenAI.Codex 26.1016.8622.0, Windows x64 packaged desktop app.
    Workspace: WSL Ubuntu checkout accessed through a Windows UNC path.

    User report

    After restarting Codex, the user reports that it appears to crash. Exact trigger and repeatability have not yet been independently reproduced.

    Observed evidence

    • Latest recorded shutdown: 11:37:10 UTC / 14:37:10 local. Local executor is disposed; stdio and websocket app-server transports explicitly stop.
    • Relaunch: 11:37:21 UTC / 14:37:21 local.
    • EPIPE warnings occur during shutdown after transports stop. They do not establish a crash cause.
    • Repeated background thread/read requests fail with code -32003, message "thread access denied", source thread_hydration. Failures predate the latest restart.
    • Windows Application events 1000, 1001 and 1002 were checked for the preceding day; no matching Codex event was returned.
    • No renderer crash, uncaught exception or unresponsive event was found in the inspected desktop logs for this date.
    • No Codex dump was found at the standard per-user CrashDumps location or the queried Roaming Codex Crashpad location. This does not exclude dumps at another package-specific location.
    • WSL workspace Git-origin lookups also warn about dubious ownership; this is a separate integration warning, not a demonstrated crash cause.

    Expected behavior

    Restart restores available chats without repeated access-denied retries; inaccessible chat records should fail gracefully without a retry storm. The app should stay responsive.

    Actual behavior and confidence

    User-visible instability is reported. Repeated chat restoration errors are confirmed. An application process crash and its root cause are NOT confirmed by the collected evidence. No claim is made that the newly installed Leanrea skill or Context7 caused this.

    Suggested maintainer investigation

    Check thread hydration retry/backoff and handling of inaccessible historical thread records. Correlate the shutdown/relaunch interval with desktop telemetry. If process termination is reproduced, obtain the corresponding renderer/main-process dump or exit reason before attributing a cause.

    Collection and privacy

    Read-only diagnostics; no configuration, chats, authentication state or app installation was changed. No deliberate restart or crash reproduction was attempted during the live session. Attached evidence contains selected operational lines only, with user paths and UUIDs redacted. Full logs, conversation databases, credentials and memory dumps are excluded. Only this sanitized report and selected redacted evidence are being submitted.
    Observed access-denied error lines: 2734. Distinct affected chat IDs: 3.

    Selected sanitized log evidence

    2026-10-23T09:00:41.242Z info Launching app agentRunId=null allowDebugMenu=false allowDevtools=false allowInspectElement=false buildFlavor=prod enableSparkle=false enableUpdater=true nodeEnv=undefined packaged=true platform=win32
    2026-10-23T11:37:21.944Z info Launching app agentRunId=null allowDebugMenu=false allowDevtools=false allowInspectElement=false buildFlavor=prod enableSparkle=false enableUpdater=true nodeEnv=undefined packaged=true platform=win32
    2026-10-23T10:52:20.095Z info Launching app agentRunId=null allowDebugMenu=false allowDevtools=false allowInspectElement=false buildFlavor=prod enableSparkle=false enableUpdater=true nodeEnv=undefined packaged=true platform=win32
    2026-10-23T11:36:47.817Z error [electron-message-handler] Request failed conversationId=<ID> durationMs=97 error={"code":-32003,"message":"thread access denied"} failureReason=null id=<ID> method=thread/read pendingCountAfter=1 priority=background queueWaitMs=0 rendererWebContentsId=1 rendererWindowAppearance=primary rendererWindowFocused=true rendererWindowId=1 rendererWindowVisible=true source=thread_hydration spanId=null timeoutMs=0 traceId=null
    2026-10-23T11:36:47.818Z error [electron-message-handler] Request failed conversationId=<ID> durationMs=99 error={"code":-32003,"message":"thread access denied"} failureReason=null id=<ID> method=thread/read pendingCountAfter=1 priority=background queueWaitMs=0 rendererWebContentsId=1 rendererWindowAppearance=primary rendererWindowFocused=true rendererWindowId=1 rendererWindowVisible=true source=thread_hydration spanId=null timeoutMs=0 traceId=null
    2026-10-23T11:36:47.913Z error [electron-message-handler] Request failed conversationId=<ID> durationMs=96 error={"code":-32003,"message":"thread access denied"} failureReason=null id=<ID> method=thread/read pendingCountAfter=0 priority=background queueWaitMs=0 rendererWebContentsId=1 rendererWindowAppearance=primary rendererWindowFocused=true rendererWindowId=1 rendererWindowVisible=true source=thread_hydration spanId=null timeoutMs=0 traceId=null
    2026-10-23T11:37:37.035Z info [tpp-local-executor] Local Work executor connection observation event=lifecycle_stop observationSequence=9 reason=planned_restart
    2026-10-23T10:52:34.202Z info [tpp-local-executor] Local Work executor connection observation event=lifecycle_stop observationSequence=5 reason=planned_restart
    2026-10-23T11:37:10.850Z info [tpp-local-executor] Local Work executor connection observation event=lifecycle_stop observationSequence=58 reason=disposed
    2026-10-23T09:30:42.385Z info [AppServerConnection] Stopping app-server transport connectionId=2 transport=websocket
    2026-10-23T11:37:10.852Z info [AppServerConnection] Stopping app-server transport connectionId=1 transport=stdio
    2026-10-23T11:37:10.854Z info [AppServerConnection] Stopping app-server transport connectionId=2 transport=websocket
    2026-10-23T10:45:29.593Z warning [IpcRouter] Socket error errorCode=EPIPE errorMessage="write EPIPE" errorName=Error errorStack="Error: write EPIPE\n    at afterWriteDispatched (node:internal/stream_base_commons:159:15)\n    at writeGeneric (node:internal/stream_base_commons:150:3)\n    at Socket._writeGeneric (node:net:1171:11)\n    at Socket._write (node:net:1183:8)\n    at writeOrBuffer (node:internal/streams/writable:570:12)\n    at _write (node:internal/streams/writable:499:10)\n    at Writable.write (node:internal/streams/writable:508:10)\n    at Object.Hc (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\application-network-startup-BG13czUt.js:34:24388)\n    at d0.broadcastClientStatus (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\src-CsH31EEu.js:1106:5285)\n    at d0.unregisterClient (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\src-CsH31EEu.js:1106:4379)"
    2026-10-23T09:30:42.386Z warning [IpcRouter] Socket error errorCode=EPIPE errorMessage="write EPIPE" errorName=Error errorStack="Error: write EPIPE\n    at afterWriteDispatched (node:internal/stream_base_commons:159:15)\n    at writeGeneric (node:internal/stream_base_commons:150:3)\n    at Socket._writeGeneric (node:net:1171:11)\n    at Socket._write (node:net:1183:8)\n    at writeOrBuffer (node:internal/streams/writable:570:12)\n    at _write (node:internal/streams/writable:499:10)\n    at Writable.write (node:internal/streams/writable:508:10)\n    at Object.Hc (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\application-network-startup-BG13czUt.js:34:24388)\n    at d0.broadcastClientStatus (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\src-CsH31EEu.js:1106:5285)\n    at d0.unregisterClient (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\src-CsH31EEu.js:1106:4379)"
    2026-10-23T11:37:10.855Z warning [IpcRouter] Socket error errorCode=EPIPE errorMessage="write EPIPE" errorName=Error errorStack="Error: write EPIPE\n    at afterWriteDispatched (node:internal/stream_base_commons:159:15)\n    at writeGeneric (node:internal/stream_base_commons:150:3)\n    at Socket._writeGeneric (node:net:1171:11)\n    at Socket._write (node:net:1183:8)\n    at writeOrBuffer (node:internal/streams/writable:570:12)\n    at _write (node:internal/streams/writable:499:10)\n    at Writable.write (node:internal/streams/writable:508:10)\n    at Object.Hc (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\application-network-startup-BG13czUt.js:34:24388)\n    at d0.broadcastClientStatus (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\src-CsH31EEu.js:1106:5285)\n    at d0.unregisterClient (C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.1016.8622.0_x64__2p2nqsd0c76g0\\app\\resources\\app.asar\\.vite\\build\\src-CsH31EEu.js:1106:4379)"
    
    
  4. zhuo33 commented on Oct 23, 2026

    @zhuo33

    Additional macOS observation on desktop 26.1016.62342 (21477)

    Submitted with the account owner's explicit authorization. This is a sanitized observation, not a confirmed root-cause analysis or a clean-install reproducer.

    • Environment: ChatGPT/Codex desktop 26.1016.62342, build 21477, macOS 27.2, Apple Silicon.
    • Background requests for one Dot/cloud root thread repeatedly return JSON-RPC -32003, thread access denied, with method=thread/read, source=thread_hydration, and priority=background.
    • A read-only snapshot of the current post-reboot main log on 2026-10-23 contained 372 matching access-denied lines. This is a cumulative count across that application lifetime, not a per-minute rate. The app had remained running for more than ten hours when checked.
    • An explicit supported read_thread(hostId="durable") call for the same target returned idle thread metadata and an empty turns page. This confirms that metadata was returned through that path; it does not prove that message history is recoverable, that any messages were lost, or that desktop UI hydration is fixed.
    • Sampled later denied requests completed in approximately 39–81 ms, with 0–1 ms queue wait. Unlike the original report, this case does not establish queue starvation, HTTP 429, or that the denied retries caused user-visible lag.
    • Background access-denied errors persisted after the owner rebooted the computer. No cloud ACL, credentials, original conversation data, or installed app bundle was modified to work around this error.

    Please investigate durable-host/background hydration routing and whether a denied target should stop retrying until account/catalog state changes. A supported recovery procedure that preserves chat history would be helpful.

    No thread/session IDs, titles, account identifiers, user paths, prompts, screenshots, tokens, or full logs are attached.

  5. gbaevskiy commented on Oct 24, 2026

    @gbaevskiy

    Windows follow-up: denied cloud-task hydration survives full sign-out/sign-in

    Current Windows x64 MSIX package: OpenAI.Codex_26.1021.3705.0.

    The owner signed out of the desktop app, fully exited, relaunched and signed back into the same account. A fresh main process started on 24 October 2026 at 11:20:53 UTC. Its log contains 225 new background thread/read failures with JSON-RPC -32003, "thread access denied", for the same nine targets between 11:21:53 and 13:09:19 UTC. The comparison excludes earlier process logs. No additional denied targets appeared. Full reauthentication did not remove the retry loop.

    Earlier read-only native cloud lookup resolved seven of the nine targets to untitled idle durable tasks; two lookups were unavailable. Two of the seven resolved tasks had an empty turns page. The nine addresses were not in the sampled ordinary task listing. Please investigate catalog hydration routing and stop retrying terminal access-denied responses.

    Separately, the owner opted out of displayed reasoning summaries using model_reasoning_summary="none". Actual fresh turn-start logs confirm summary=none despite reasoningSummaryOverride=detailed. The latest retained renderer crash predates that opt-out. The background denied reads continue with summaries disabled; no causal link between these retries and native renderer crashes is asserted.

    This follow-up includes no private task IDs, titles/content, account identifiers, usernames, local paths, credentials or raw logs. No database edits, cloud-task archival/deletion or app-bundle patch was performed.

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

    appapp-serverbugperformancerate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions