Compact fails using azure openai if not using v1 endpoint

Resolved 💬 2 comments Opened Jun 2, 2026 by Waffleboy Closed Jun 29, 2026

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

26.601.20914

What subscription do you have?

Azure

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

Compact fails if using codex and Azure OpenAI as Azure does not have the compact endpoint (As of today 2/6/26). it will just terminate with 'remote disconnected' which is a misleading error.

The fix is to fall back to local compaction using the current model, or to use the v1 endpoint in azure (but its not documented anywhere).

I have a PR to fix this

What steps can reproduce the bug?

Set

[model_providers.azure]
name = "Azure OpenAI"
base_url = "https://<domain>.openai.azure.com/openai/"

then burst the context window to trigger compaction. it wont work unless you append v1 to the end.

What is the expected behavior?

Compaction works

Additional information

I have a pr that allows codex to fallback to local compaction if remote fails.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗