[Windows Desktop] Long local task can remain stuck at Thinking after reconnect/resume
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
No source files or tests are named. Start by tracing Windows Desktop reconnect/resume handling and the app-server turn lifecycle, focusing on the logged turn/interrupt and duplicate turn/start sequence; use the reproduction pattern and sanitized logs to follow state transitions. Done means one active turn survives reconnect without prompt duplication or interruption, or a recoverable error is shown.
Written by the indexing model from the issue text.
Description
Environment
- Surface: Codex Desktop for Windows (Microsoft Store package 26.721.3996.0)
- Bundled Codex runtime observed by the app: 26.721.31836
- Model: GPT-5.6 Terra, medium reasoning effort
- Platform: Windows 11 x64
Summary
Fresh local tasks respond normally, but an existing long local task can become permanently stuck at “Thinking” after a reconnect/resume. The affected task cannot accept a reliable follow-up; the desktop client may duplicate the prompt/turn or interrupt the active task instead of resuming it.
Reproduction pattern
- Start a local Codex Desktop task and use it over a long project workflow.
- A reconnect/resume occurs while the task has substantial history.
- Send a normal follow-up, or reopen/resume the task.
- The UI remains at “Thinking” indefinitely. In the affected case, the same diagnostic prompt appeared twice and two turns were left in progress.
Observed evidence
- Desktop/app-server logs show client-issued
turn/interruptevents for the active task, followed after resume by a duplicateturn/start. - The resulting stream retried after a WebSocket close without reaching
response.completed. - Fresh tasks and a direct ephemeral Codex CLI request against the same local project, account, model family, and network completed successfully. This points to desktop task recovery/state handling rather than the workspace sandbox or general connectivity.
- No project files need to be read or included to reproduce the symptom.
Expected behavior
A reconnect should preserve one active turn, avoid replaying or duplicating prompts, and either continue the task or expose a recoverable error. Long-running project work must retain a safe continuation path without relying on an unrecoverable old chat.
User impact
This blocks long-running project work and risks loss of unrecorded decisions. A new task is an imperfect workaround because it cannot restore the old task's in-flight reasoning or task-local state.
Request
Please investigate Windows Desktop task resume/reconnect idempotency, especially duplicate turn/start / interrupt transitions for older long tasks. A feedback session and sanitized log timestamps can be supplied through the in-app feedback flow if needed.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·