Skip to content

codex resume repeatedly fails with "Timeout waiting for child process to exit" #16491

Open

Description

@hizhangwei1205

What version of Codex CLI is running?

0.118.0

What subscription do you have?

API pay-as-you-go

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Debian 13, x86_64

What terminal emulator and version are you using (if applicable)?

MobaXterm

What issue are you seeing?

codex resume fails consistently for one specific session ID. Reconnect retries appear, then it ends with: Timeout waiting for child process to exit. I can see session history, but new prompts never proceed. New sessions work normally, so this seems isolated to the resumed session state.

What steps can reproduce the bug?

  1. Run: codex resume sessionID
  2. Wait for reconnect attempts (Reconnecting...)
  3. Observe failure: Timeout waiting for child process to exit
  4. (Tried mitigation) Find and terminate only the stuck resume-related PIDs via pgrep -af codex + kill, then rerun resume
  5. Same error persists; only this session ID fails while new sessions are fine

What is the expected behavior?

codex resume <session_id> should reconnect successfully, restore an interactive prompt, and allow sending new messages in that resumed session without timing out.

Additional information

No response

Activity

  1. added
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    and removed
    CLIIssues related to the Codex CLI
    on Apr 2, 2026
  2. etraut-openai commented on Apr 2, 2026

    @etraut-openai
    Contributor

    If you're able to repro, please resume the thread and then use /feedback to upload your logs and session details, then post the thread ID here.

  3. AndrewXiGua commented on Apr 3, 2026

    @AndrewXiGua

    @etraut-openai

    threadId: 019d5287-e006-7c20-85a8-8ab299d53d7e

    Image
  4. Necmttn commented on Jun 21, 2026

    @Necmttn

    This failure needs a session repair path, not only reconnect retries.

    When resume times out waiting for a child process, Codex can record child pid/process group, last stream event, last completed rollout offset, and stop reason, then offer resume --repair <id> that marks the dangling turn interrupted and starts after the last completed event.

    Otherwise one stuck child poisons an otherwise readable session.


    Generated with ax.

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

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions