Skip to content

Codex Desktop: completed turn still shows Thinking while thread status is idle #56375

Open

Description

@rotnov

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

Installed desktop application metadata read on 2026-10-23: 26.1013.40934, build 20770. This was read from the installed app's Info.plist, not the About dialog. The exact version at the incident on 2026-10-22 was not captured.

What subscription do you have?

Not collected for this report.

What platform is your computer?

Darwin 27.0.0 arm64 arm
macOS 27.0.1 (26A434)

Local Codex work chat in the macOS desktop application.

What issue are you seeing?

A chat continues to show Thinking after displaying a completed assistant response and Worked for 36s, while repeated read-only desktop thread-status checks report that the same chat is idle and its latest turn is completed.

Observed on 2026-10-22 (Europe/Lisbon). A user-provided screenshot visibly contains this order:

Worked for 36s
<final assistant response is visible>
Thinking

During the incident, repeated wait_threads snapshots and a direct read_thread check for that chat reported:

Field Observed value
Thread status idle
Latest turn status completed
Revision in repeated snapshots 17, unchanged

The mismatch makes it unclear to the user whether work is still executing or has finished.

What steps can reproduce the bug?

This is an observed incident, not a deterministic minimal reproducer:

  1. Use an existing local Codex chat and allow its turn to finish.
  2. The chat displays the final assistant response and Worked for 36s.
  3. The same view continues to display Thinking beneath the final response.
  4. Read the same chat through the desktop's read-only wait_threads / read_thread tools.
  5. Observe idle/completed state despite the visible Thinking indicator. Repeated snapshots remained at the same revision.

No clean-profile reproduction, precise stale-indicator duration, or renderer-state capture is available.

What is the expected behavior?

When a turn has completed and the chat is idle, the desktop should clear the active Thinking indicator and present consistent completion state. If the UI cannot reconcile state, it should show an explicit recovery/error state rather than imply ongoing execution.

Additional information

During the same incident, authorized send_message_to_thread calls targeting that chat from several other chats failed with:

Cannot steer conversation <thread-id> without an active turn id

This is a correlated symptom, not a demonstrated cause of the stale indicator. No further messages were sent merely to reproduce the failure for this report.

Potentially related:

Please deduplicate if investigation establishes a shared defect.

There is no measured token-usage or billing evidence here, and this report does not claim that model execution or charges continued. Raw screenshots, private conversation text, real thread/turn IDs, project names, source hashes, and full logs are intentionally omitted. The screenshot was inspected locally; its private contents are not uploaded. No app restart, software change, or runtime change was performed to file this report.

Activity

  1. added
    bug
    app
    session
    on Oct 23, 2026
  2. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. amark-kassa commented on Nov 10, 2026

    @amark-kassa

    Additional Windows occurrence observed on 2026-11-10, with a measured completed backend turn and approximately 31 minutes of user-reported stale Thinking. This adds a timestamped backend/main-process investigation and read-only inspection of the installed renderer. A shared root cause with the original macOS report has not been established.

    Environment

    • Codex desktop application version 26.1103.60933, build 25894, production channel, verified through the native app update tool and package.json in the installed ASAR.
    • Windows x64 package OpenAI.Codex, MSIX version 26.1103.7773.0. The MSIX and application versions refer to the same installed release.
    • Local execution host, ordinary text conversation.
    • Model for the affected turn was gpt-6.1-sol with medium reasoning effort.
    • Native update check returned up_to_date during the investigation.
    • Subscription and exact Windows build were not collected.

    Observed behavior and limits of reproduction

    The user requested a small local Markdown/skill edit. The work and final response completed normally in 119.695 seconds. The user reported that the desktop continued showing Thinking for approximately half an hour, then sent a follow-up asking why it was still thinking.

    This is one investigated occurrence. There is no deterministic minimal reproducer or contemporaneous renderer-memory snapshot. The continued indicator is user-reported. The completion timestamps and persisted state below were independently verified from local records.

    Timeline

    All times are UTC on 2026-11-10.

    Time Evidence
    10:22:23.142 Rollout task_started for the affected turn.
    10:24:15.202541600 Last readback tool completed, total_duration_ms=438, in codex_core::tools::parallel.
    10:24:22.729468300 Final assistant message reached handle_output_item_done in codex_core::stream_events_utils.
    10:24:22.739 Final assistant message persisted in the rollout with phase=final_answer.
    10:24:22.817166900 codex_core::session::turn recorded model_needs_follow_up=false, has_pending_input=false, needs_follow_up=false, full_context_window_limit_reached=false and token_limit_reached=false.
    10:24:22.836 Rollout task_complete persisted.
    10:24:22.853 Main application logged IAB_LIFECYCLE ended browser use session activity for the same conversation.
    10:47:23.661 thread_stream_view_activity_changed, active=false.
    10:52:43.618 View became active again, resumeState=resumed and streamRole=owner.
    10:52:44.138 Renderer navigation reported content visible in 651 ms, view.state=mounted, contentReused=false and threadState=unknown.
    10:55:20.177 User follow-up went through thread/queue/add successfully, durationMs=19, queueWaitMs=1.
    10:55:25.712 Activity ended for the follow-up turn.
    10:55:25.753–.761 Successful thread/read, thread/turns/list and thread/readState/update.

    The gap between original completion and the follow-up was approximately 30 minutes 57 seconds. Backend logs matched by thread_id and by thread/turn identifiers in message bodies contain no matching work or warning/error records during that gap. There is no evidence of ongoing model generation, tools or retries accounting for the wait.

    Independent persisted-state verification

    The native read_thread tool reported the original turn as completed, error=null, durationMs=119695.

    The corresponding thread_turns record in thread_history_1.sqlite independently had status=completed, error_json=NULL, started_at=1794306143, completed_at=1794306262, duration_ms=119695 and a final_agent_item_id pointing to the final answer. The final thread_items message had completed_at_ms=1794306262729.

    The inspected history database stores projections, not a journal of outgoing notification delivery. The queue database also did not provide historical renderer delivery records.

    Installed source findings

    Read-only inspection of app.asar confirmed the following in webview/assets/async/182735.7f13786b92.js. Character offsets are approximate locations in the decoded minified asset, included only to help locate this exact build.

    • Around 793626, the busy selector el(e) uses the latest turn status for resumed conversations. It can report busy even when the separate threadRuntimeStatus is idle.
    • Around 972350, the view model exposes isResponseInProgress from latestTurn?.status === "inProgress".
    • Around 1431742, the thread/status/changed handler updates threadRuntimeStatus and status evidence. That handler does not reconcile an existing in-progress turn against persisted completed history.
    • Around 1436618, the separate turn/completed handler updates turn.status, error, durationMs and completion state.

    In .vite/build/early-bootstrap-480-5def667ddfcd786d.js, around 2801059, an internal app-server notification handler calls browserSessionRegistry.endSessionActivity when thread/status/changed carries status.type=idle. That method produces the IAB_LIFECYCLE ended browser use session activity log. There is also a renderer IPC entry point to the same method. The logged end of activity establishes main-process handling, but does not establish that the renderer applied turn/completed.

    These observations identify a mechanism that permits stale busy state if turn completion is missing or unapplied. They do not establish which failure occurred here. Available records cannot distinguish omission, delivery loss or renderer application failure.

    Other checks and correlated events

    • The conversation acquired stream role owner at 10:22:22.511. No subsequent role change or subscription reset was logged in the investigated interval.
    • No thread/read or thread/turns/list for this conversation was found between original completion and 10:55:25, including after returning to the view. Only queue/list was observed on return.
    • The completion handler can defer work through a text-animation drain gate. Its implementation has an eight-frame bound, a deadline, visibility-change handling and final-message flush. Static inspection does not support attributing the half-hour delay to that gate.
    • queue/add alone does not prove stale busy state. The inspected submission selector also supports an explicit queue-only mode.
    • ResizeObserver loop completed with undelivered notifications occurred before and after this incident and in other working conversations. No causal link was established.
    • A pubsub transport close at 10:24:27.460 recovered at 10:24:36.960, approximately 9.5 seconds later. It occurred after completion and does not establish the cause of the long stale display.
    • WSL reconnection errors concerned a separate remote-wsl:Ubuntu host. The affected conversation used the local host.
    • IPC warnings about missing handlers for stream-following, queued-followups and read-state broadcasts also appeared during successful turns. Their causal significance is unknown.
    • No explicit local app-server disconnect, renderer crash or unresponsive event tied to this conversation was found.
    • Different browserConversationId and sessionId values are explicitly supported by the implementation and do not establish a routing bug.

    Requested investigation

    Please trace turn/completed emission, forwarding, renderer receipt and reducer application, and correlate these with the separately received idle state. Recording those boundaries would distinguish dropped completion from a renderer state update failure.

    Please consider regression coverage for a completed durable turn with a stale inProgress renderer turn, focus loss and return, and delayed/missed completion events. Reconciliation against authoritative history on idle or view resume could recover this state, with guards for a newer active turn and out-of-order events. This is a proposed investigation and repair direction, not a locally verified patch.

    No installed application code or security settings were modified. The inspected assets are in a signed MSIX package with ASAR integrity metadata and read-only user access. No permanent local fix was established.

    This public report omits personal filesystem paths, project contents, conversation text, private thread/turn IDs, credentials and full raw logs. All observations above concern the affected conversation unless explicitly identified as correlated global events.

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

    appbugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions