Skip to content

macOS: completed long Goal task resumes with markedStreaming=true and persistent Stop button #35605

Description

@mmashwani

Description

The Stop button remains visible in one completed Codex task even when nothing
is running. Fully quitting and restarting the desktop app does not clear it.

This task had completed a roughly four-hour working session with an active
Goal. The Goal completed successfully and was automatically cleared. This has
not happened with any other Goal or task.

Observed sequence

  1. Run a Codex task with a Goal for roughly four hours.
  2. Allow the Goal and its final turn to complete successfully.
  3. Confirm that the Goal is automatically cleared.
  4. Fully quit the desktop app with Cmd+Q.
  5. Reopen the app and return to the completed task.
  6. Observe the composer before submitting another message.

This sequence has not reproduced the problem with any other Goal. The issue has
only occurred in this specific task after its roughly four-hour session, so
these are the observed conditions rather than a deterministic reproducer.

Actual behavior

The composer displays the Stop button even though the task has no running Goal,
turn, terminal, or recorded command process. The button remains after a
complete application restart.

Read-only local diagnosis

The desktop startup log records this successful resume event for the affected
task:

2026-07-27T10:42:18.313Z
maybe_resume_success
latestTurnId=019fa328-ab55-7f82-be9d-4b6d4b0a3f8e
latestTurnStatus=completed
markedStreaming=true

The completed backend state and streaming marker therefore disagree in the
same resume event. Separate read-only checks found:

  • no active Goal;
  • no attached terminal;
  • every turn before the next submitted message was completed;
  • none of the command-process IDs recorded for this task still existed.

This suggests that desktop resume or hydration restores a stale streaming state
after the latest turn has already completed.

Expected behavior

The composer should display the Send button whenever the task has no active
turn. Restoring a completed task after an application restart should not retain
stale running-state UI.

Scope

  • Reproduces in one long-running task only.
  • Has not occurred with any other Goal or task.
  • The affected task remains the only known occurrence.
  • Task ID: 019f9b08-b2fc-7902-a462-af168f600607

Environment

  • Codex desktop version: 26.721.41059 (5848)
  • macOS: 26.5.2 (25F84)
  • Architecture: Apple Silicon (arm64)
  • First observed: July 27, 2026, approximately 5:56 AM CDT

Related reports

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions