codex - 💡(How to fix) Fix Desktop app child role intermittently fails with `stream disconnected before completion` during project-local multi-agent runs [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17760Fetched 2026-04-15 06:28:53
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×2unlabeled ×1

Error Message

In one reproduced case, the child role error returned: stream disconnected before completion: An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID ff2696ef-f755-487c-ba09-90bb7940846b in your message.

  • fail with a more specific runtime error that makes clear whether the problem is transport, sandbox inheritance, auth, or path permissions.

Code Example

stream disconnected before completion

---

stream disconnected before completion: An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID ff2696ef-f755-487c-ba09-90bb7940846b in your message.
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

Codex desktop app using codex-cli 0.120.0

What subscription do you have?

ChatGPT subscription with Codex desktop access

What platform is your computer?

macOS (workspace local, trusted project)

What issue are you seeing?

When using project-local child roles for multi-agent work in a trusted workspace, a child role can fail with:

stream disconnected before completion

In one reproduced case, the child role error returned:

stream disconnected before completion: An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID ff2696ef-f755-487c-ba09-90bb7940846b in your message.

This happened while using project-local child roles configured under .codex/config.toml and .codex/agents/*.toml for a bounded orchestration flow.

The important distinction is that the overall role bridge appears to be working: the parent thread can spawn child roles and start delegated work. The failure is that a child role can disconnect mid-run even when the task packet is small and scoped.

What steps can reproduce the bug?

  1. Open a trusted local workspace in Codex desktop.
  2. Enable multi-agent project-local roles under .codex/config.toml.
  3. Configure project-local child roles (for example: planning, implementation, review, or docs roles) under .codex/agents/*.toml.
  4. Run a bounded multi-agent task that causes the parent thread to spawn a child role.
  5. Observe that the child role may fail with stream disconnected before completion even though the parent thread and project config are otherwise valid.

What is the expected behavior?

A spawned child role should either:

  • complete normally, or
  • fail with a more specific runtime error that makes clear whether the problem is transport, sandbox inheritance, auth, or path permissions.

It should not silently degrade into a generic stream disconnect during normal multi-agent orchestration.

Additional information

Relevant nearby issues that may be related but are not identical:

  • #15305 — review-mode subagent ignores runtime sandbox override and falls back to config defaults
  • #17535workspace-write cannot edit .agents/skills/** inside trusted workspace, but danger-full-access can

From local testing, the parent thread can successfully start project-local child roles, so this does not look like a simple configuration failure.

It appears more like a child-role runtime/transport stability issue in desktop multi-agent execution.

If useful, I can provide a sanitized example of the project-local role setup and task packet shape used in the reproduction.

extent analysis

TL;DR

The issue can be mitigated by retrying the request or investigating the request ID ff2696ef-f755-487c-ba09-90bb7940846b for more specific error information.

Guidance

  • Verify that the project-local child roles are correctly configured under .codex/config.toml and .codex/agents/*.toml to ensure that the issue is not due to a configuration error.
  • Check the request ID ff2696ef-f755-487c-ba09-90bb7940846b for more specific error information, which may help identify the root cause of the issue.
  • Consider providing a sanitized example of the project-local role setup and task packet shape used in the reproduction to help with further debugging.
  • Investigate nearby issues #15305 and #17535 to see if they are related to the current issue, as they may provide insight into the problem.

Example

No code snippet is provided as the issue does not explicitly mention a specific code-related problem.

Notes

The issue appears to be related to a child-role runtime/transport stability issue in desktop multi-agent execution, and not a simple configuration failure. The provided request ID may hold more information about the error.

Recommendation

Apply workaround: Retry the request or investigate the request ID for more specific error information, as this may help identify the root cause of the issue and provide a more specific solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING