Skip to content

[Windows desktop] Three consecutive app exits immediately after read_thread returns successfully (26.901.4073.0) #42966

Open

Description

@C0Feline1

Problem and impact

The user reports three consecutive desktop app crashes that interrupted normal work. Local desktop logs show three separate process sessions ending immediately after read_thread returns successfully for the same existing task. Please investigate this repeated stability failure and provide a fix or reliable workaround.

Environment

  • Windows, x64 Microsoft Store package OpenAI.Codex
  • Installed package version: 26.901.4073.0
  • Incident date: 2026-09-05

Observed timeline

All times below are UTC, from local desktop logs. These are final log timestamps, not independently measured native crash timestamps.

Session Final log record Next app launch
1 08:17:27.012 — Sending server response, success=true, tool=read_thread 08:17:34.204
2 08:22:53.600 — Sending server response, success=true, tool=read_thread 08:29:24.428
3 08:40:12.988 — Sending server response, success=true, tool=read_thread 08:40:18.311

All three reads target the same task (identifier omitted). The logs show thread/read and thread/turns/list returning with errorCode=null; the second incident also includes successful thread/items/list pagination. Each old main log ends at the successful tool-response record. The next launch uses a different desktop process/session.

The second and third sessions also contain ResizeObserver loop completed with undelivered notifications shortly before the read. This is contextual evidence, not an established cause.

Reproduction outline from observed usage

  1. Ask the desktop agent to inspect an existing task using read_thread.
  2. The app reads the task history and reports a successful tool response in the desktop log.
  3. The user experiences the desktop app closing, interrupting work.
  4. After relaunch, reading that same task is followed by the same outcome.

This is reconstructed from existing logs; no additional deliberate crash was induced. Exact task contents and read parameters have not been included or independently isolated.

Expected behavior

Reading task history should leave the desktop app running. If a history payload cannot be handled, return a recoverable tool error and preserve the active task. Please capture a durable diagnostic reason for unexpected termination.

Diagnostic limitations and related reports

No explicit fatal/crash/render-process-gone record was found in the inspected day's desktop logs. The Windows Application event query for the last day did not establish a matching Codex crash event. Therefore the exact terminating component and root cause remain unconfirmed; the repeated timing is evidence of association with read_thread, not proof of an OOM or specific exception.

Potentially related: #40300 and #35799. This report differs from #40300 because the observed RPC reads return successfully rather than thread not loaded. Oversized/image payload involvement as in #35799 has not been verified here.

Only a sanitized diagnostic summary is shared. Raw conversations, local paths, task IDs, credentials, and full logs are omitted.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Sep 5, 2026
  2. C0Feline1 commented on Sep 5, 2026

    @C0Feline1
    Author

    Additional complaint: long-running work stalls and misleading active state after interruption

    The user reports that repeated long-task failures waste substantial time and delay delivery. After the three app exits above, a production task still appears active / inProgress with no reported error, but the snapshot only repeats an older progress message.

    Read-only local checks around 2026-09-05 08:44 UTC found:

    • The independent local video engine was healthy: 1 running job and 351 pending, with a new output at 08:40:47 UTC.
    • The separate video archival/audio-extraction worker was absent from the process list. Its log and last delivered file stopped at 08:13:53 UTC. Thus generation continued while delivery and audio extraction stopped.
    • Only 127 formal character images were present (99 covers and 28 supporting images). A naive PNG total of 144 includes old/rejected images and contact sheets, so it is not a completion count.

    The exact cause of the archival worker exit is not established and its stop predates the first logged app relaunch; this is an observed recovery gap, not proof that the desktop crash killed that process. Likewise, active alone does not establish forward progress on image generation.

    User impact: repeated reconnection/long-task stalls require manual reconstruction of actual progress, leave independent work streams unsynchronized, and delay the project despite an independently running local queue. Please improve interrupted-task recovery, accurate stale/stalled status reporting, durable checkpoints, and explicit recovery of dependent workers without resubmitting already queued jobs. An active UI state should not imply that all promised production stages are advancing.

    This is a sanitized operational summary; no private project contents or full logs are attached.

  3. C0Feline1 commented on Sep 5, 2026

    @C0Feline1
    Author

    Follow-up: two affected tasks now report systemError; request timeouts and durable-history projection failures

    A fresh inspection on 2026-09-05 found two long-running tasks in the same project with systemError status. Read-only queries of the local Codex diagnostic database establish the following additional evidence (UTC). Task A is the original production task; Task B is its takeover/recovery task. Private task identifiers and project contents are omitted.

    Time (UTC) Task Evidence
    10:53:21 A stream disconnected - retrying sampling request (4/5 ...), HTTP 408, {"detail":"Request body read timed out"}
    10:53:34 B Same HTTP 408 at retry 4/5
    11:08:29 A Same HTTP 408 at retry 5/5
    11:08:54 B Same HTTP 408 at retry 5/5
    11:08:57 B codex_core::util: Orphan custom tool call output for call id: [redacted] (also present at 10:38:18 and 10:53:36)
    11:23:41 A codex_thread_store::local::live_writer: failed to project durable rollout ... thread-store internal error: thread history projection ... expected ordinal 1867, got 1866
    11:24:44 B Same durable rollout projection error, expected ordinal 869, got 868

    The projection warnings occur during both session.flush_rollout and persist_rollout_items / append_items. Both tasks use gpt-6-astra (A: medium reasoning; B: low). The 408 endpoint is /backend-api/codex/responses. The observed interval between retry 4/5 and 5/5 is about 15 minutes in each task, despite a short logged retry backoff; this is elapsed time between records, not proof that the configured backoff is wrong.

    Please investigate request-body read timeouts, orphan tool-result handling during recovery, and durable history ordinal consistency. Expected behavior is recoverable errors, preserved valid history, and a reliable way to resume work without repeatedly losing task progress.

    These are verified additional symptoms in the same incident, not proof that the 408s, history projection errors, and previously reported desktop exits share a root cause. No database repair or modification was attempted, and no raw conversation, image payload, credentials, or full logs are attached.

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-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions