# Codex macos app : Error running remote compact task

**URL:** <https://community.openai.com/t/codex-macos-app-error-running-remote-compact-task/1380747>\
**Category:** Codex\
**Tags:** macos, codex-app\
**Created:** [May 12, 2026, 4:03pm UTC](https://community.openai.com/t/codex-macos-app-error-running-remote-compact-task/1380747 "2026-05-12T16:03:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafik.belkadi.dz](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/rafik.belkadi.dz/32/511625_2.png) [@rafik.belkadi.dz](https://community.openai.com/u/rafik.belkadi.dz)\
**Post date:** [May 12, 2026, 4:03pm UTC](https://community.openai.com/t/codex-macos-app-error-running-remote-compact-task/1380747/1 "2026-05-12T16:03:52Z")

</div>

Hello,

i’m getting an error on context /compact on the macos app, i am running on a custom provider (openai on azure).

alos unrelated issue, when i use azure as my default provider, i am no longer connected to codex with my openai account.

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [May 12, 2026, 4:09pm UTC](https://community.openai.com/t/codex-macos-app-error-running-remote-compact-task/1380747/2 "2026-05-12T16:09:11Z")

</div>

Welcome to the forum!

You are welcome to discuss Codex issues on the forum, however the official place to report and track them is the GitHub issue tracker for [OpenAI Codex](https://github.com/openai/codex/issues).

I had ChatGPT look for the closest related issue and it identified:

> <https://github.com/openai/codex/issues/22107?utm_source=chatgpt.com>
>
> \## Summary
> 
> Codex Desktop showed a context compaction failure while working in a… local coding session.
> 
> \## Error message
> 
> \`\`\`text
> 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:
> 
> \`\`\`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.

If that issue matches your problem, consider adding a 👍 reaction on the GitHub issue page itself, not just on the forum topic, as reactions on GitHub help the developers gauge impact and prioritize work.

If it is not the same issue, try searching the existing GitHub issues for a closer match. If you cannot find one, then open a new issue with as much detail as possible.

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [May 13, 2026, 2:13pm UTC](https://community.openai.com/t/codex-macos-app-error-running-remote-compact-task/1380747/3 "2026-05-13T14:13:44Z")

</div>

Thanks for reporting this. It sounds like there may be two separate issues here:

- /compact returning an error when using a custom Azure OpenAI provider in the macOS app
- Codex disconnecting from your OpenAI account when Azure is set as the default provider

Since both involve account integration behavior, could you please open a support ticket and include:

- macOS app version
- the exact error message/screenshots

Once the ticket is created, please share the case ID here so I can track it internally.

~Smith

---

<div class="post-metadata">

**Author:** ![smith.d](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@smith.d](https://community.openai.com/u/smith.d)\
**Post date:** [May 18, 2026, 2:08pm UTC](https://community.openai.com/t/codex-macos-app-error-running-remote-compact-task/1380747/4 "2026-05-18T14:08:00Z")

</div>


