Skip to content

Codex Desktop: context compaction fails with remote compact stream disconnected #22107

@bjmark

Description

@bjmark

Summary

Codex Desktop showed a context compaction failure while working in a local coding session.

Error message

Context compacted

Error running remote compact task: stream disconnected before completion; error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

Context

  • Product: Codex Desktop app
  • Platform: macOS
  • Approximate app version observed from local process: 26.506.31421
  • The error appeared during automatic context compaction in an active coding thread.

Expected behavior

Context compaction should complete successfully, or retry/recover without interrupting the thread.

Actual behavior

The UI displayed the compaction failure message above.

Screenshot

The screenshot attached by the reporter shows the same error text:

Error running remote compact task: stream disconnected before completion; error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

Notes

I do not have additional logs beyond the visible UI error at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)contextIssues related to context management (including compaction)

    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