Skip to content

Codex app: subagent close request triggers "agent loop died unexpectedly" and repeated message submit failures #23971

@omarpinarecords

Description

@omarpinarecords

Summary

While using the Codex desktop app, trying to ask subagents to close caused task creation/message submission to fail repeatedly.

Error shown

Error creating task
failed to start turn: internal error; agent loop died unexpectedly

The thread then showed repeated:

Error submitting message

Trigger / context

  • Action attempted: asked subagents to close / wrap up.
  • Surface: Codex desktop app on macOS.
  • Model/UI state visible in screenshot: 5.5 Extra High, Custom profile.
  • Approximate time: 2026-05-21 around 8:55 PM ET.

Feedback trace

The app uploaded a performance trace and showed this Feedback ID:

0cb0ad3a-6818-4bdc-bf26-8e2ac6ba158e

Expected behavior

The app should either close/stop the subagents cleanly or return a recoverable user-facing error without breaking message submission in the thread.

Actual behavior

The app displayed the internal error agent loop died unexpectedly, and subsequent attempts to submit messages showed Error submitting message repeatedly.

Related issues checked

I found some broadly similar open issues around task creation/app failures, but did not find this exact subagent-close trigger with the uploaded feedback trace ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingsubagentIssues involving subagents or multi-agent features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions