openai / openai/codex

Codex Desktop can remain blank indefinitely when opening tasks with stale subagents

Open
#38,250 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug subagent
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using?

Codex Desktop 26.803.61601 (build 6396), bundled CLI 0.147.0-alpha.6.5.

What platform is your computer?

macOS 26.5.2 (25F84), Apple silicon (arm64).

What issue are you seeing?

Some existing tasks never finish opening. Selecting an affected task leaves the conversation blank with a loading spinner for several minutes. Quitting and reopening the app does not resolve it, while other existing tasks load normally.

This makes the affected work inaccessible. The app shows no error, retry option or indication of what it is waiting for.

A local diagnostic check found:

  • The affected task's history is present and valid: about 1.3 MB, 331 JSONL records and one turn.
  • Direct app-server thread/read (including turns) and thread/resume calls both succeed, returning 331 items with zero parse errors.
  • The Desktop app repeatedly sends thread/read and thread/resume requests, but the renderer remains blank.
  • The affected parent task has three month-old child-agent edges still marked open. None has a writer lock, but the UI reports three subagents as Working.
  • In the same local database, 33 active parent tasks have 284 open child edges older than 24 hours; 256 are older than seven days.

The stale child-agent state is a strong correlation, not a confirmed root cause. The backend can read and resume the parent task successfully, so this looks like a Desktop task-loading or state-rehydration problem rather than missing or malformed history.

What steps can reproduce the bug?

I do not yet have a minimal fresh-task reproducer, but the failure is repeatable for the affected task:

  1. Open a long-running task that previously used subagents.
  2. Quit and restart Codex Desktop.
  3. Select the task.
  4. The task remains blank with a loading spinner and does not render its history.

Clearing disposable renderer caches and reconciling the active thread database with the available history files did not fix this task. A different existing task loaded successfully afterward.

What is the expected behaviour?

An existing task with valid local history should render promptly. Historical or stale child-agent records should not prevent the parent task from opening.

If the app cannot complete task rehydration, it should show a bounded error with a retry or repair action rather than spin indefinitely.

Related issues
  • #37041: historical subagents rehydrated as active when a task opens
  • #25179: stale subagents accumulate in the Desktop app
  • #25341: stale open spawn edges
  • #29590: Desktop becomes unresponsive opening previous conversations

Thread titles, IDs, paths and conversation contents are omitted. I can provide sanitised logs or additional database summaries if useful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce with an affected long-running task, then trace the Desktop loading flow around the mentioned thread/read and thread/resume requests and stale child-agent rehydration. Compare the related issues for existing behavior; done means valid history renders promptly, while failed rehydration shows a bounded error with retry or repair instead of an endless spinner.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.