0.129.0: /compact fails with unknown service_tier parameter

Resolved 💬 25 comments Opened May 8, 2026 by jgador Closed May 9, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

Summary

After upgrading Codex from 0.128.0 to 0.129.0, /compact fails with an OpenAI API parameter error.

Reproduction

  1. Upgrade Codex to 0.129.0.
  2. Run /compact in a Codex session.

Actual behavior

/compact fails with:

Error running remote compact task: {
  "error": {
    "message": "Unknown parameter: 'service_tier'.",
    "type": "invalid_request_error",
    "param": "service_tier",
    "code": "unknown_parameter"
  }
}

Expected behavior

/compact should complete successfully.

Regression

This did not happen in 0.128.0; it started after upgrading to 0.129.0.

Environment

  • Codex version with issue: 0.129.0
  • Last known working Codex version: 0.128.0
  • Command: /compact
  • Shell/OS context: Windows / PowerShell

View original on GitHub ↗

25 Comments

etraut-openai contributor · 2 months ago

Please use /feedback to upload logs and post the session ID here.

jgador · 2 months ago

@etraut-openai Thanks for the quick response. I uploaded the logs via /feedback. This is the thread id: 019e0615-6eb1-7d83-828e-12fb9246a749

jgador · 2 months ago

I use codex to debug the issue. Most likely introduced in this PR #21249

danielchr94 · 2 months ago

Same issue
26.506.31004 (2604)

pakrym-oai contributor · 2 months ago

Can you please try the CLI v0.130.0 or most recent app version? The issue should be fixed there.

jgador · 2 months ago

@pakrym-oai I can verify that this is fixed in v0.130.0. I'll close this ticket now. Thank you.

cammoore54 · 2 months ago

I am still receiving this error using CLI v0.130.0 with Azure hosted GPT-5.5

etraut-openai contributor · 2 months ago

@cammoore54, please report the issue to the folks at Azure so they're aware of the problem.

cammoore54 · 2 months ago
@cammoore54, please report the issue to the folks at Azure so they're aware of the problem.

Done

jgador · 2 months ago

@cammoore54 I'm hosting my gpt-5.5 in Azure and have no problem after v0.130.0.

Erivess · 2 months ago
I am still receiving this error using CLI v0.130.0 with Azure hosted GPT-5.5

@cammoore54 Remove "service_tier = "fast"" from your config.toml. Restart codex and then it should work :)

Fast is not supported by Azure anymore.

jgador · 2 months ago

@Erivess I still have my service_tier settings in my config.toml
service_tier = "fast"

aitskgrimes · 2 months ago

I do not have service_tier in my config.toml yet still get the error

Error running remote compact task: {
"error": {
"message": "Unknown parameter: 'service_tier'.",
"type": "invalid_request_error",
"param": "service_tier",
"code": "unknown_parameter"
}
}

cparjaszewski · 2 months ago

Same: 2ce8ddeb-02eb-4077-8472-a583be5267d8

doinghun · 2 months ago

For the Azure-hosted case where there is no explicit service_tier = "fast" in config.toml, this workaround fixed it locally for me:

[features]
fast_mode = false

Then restart Codex / start a new session and rerun /compact.

Why this seems related: the active provider/model metadata still exposed a fast-speed path, but reported no supported service tiers for that provider, so remote compact could still end up sending service_tier even though I had not configured it directly.

georgedeath · 2 months ago

For those of you still getting this issue even after updating. I found i had a default-service-tier = fast entry in .codex-global-state.json (and its backup file). Removing this entry fixed the problem for me.

CetinSert · 2 months ago
  1. git clone this repo
  2. ask codex to drop the service_tier parameter from remote compaction requests
  3. recompile (ideally without LTO or fat-LTO)
  4. win (and wait for a real fix from OpenAI or Azure)

---

A naive (it disables service_tier even for non-Azure remote compaction) patch can be seen here:
https://github.com/Elefunc/codex/commit/c0581fc0a4da98bff5c3832ddc91fb24679ac8e8

---

You can create an Azure-only script/alias and use it like this

#!/usr/bin/env bash
set -euo pipefail

embedded_azure_openai_api_key='#'
AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY:-$embedded_azure_openai_api_key}

if [[ -z "${AZURE_OPENAI_API_KEY:-}" ]]; then
  printf 'ca: AZURE_OPENAI_API_KEY is empty\n' >&2
  exit 1
fi

export AZURE_OPENAI_API_KEY

exec /home/cetin/tmp/codex-rs-target/release/codex \
  --dangerously-bypass-approvals-and-sandbox \
  -c model_reasoning_effort=xhigh \
  -c service_tier=fast \
  --enable multi_agent \
  -m gpt-5-5 \
  -c 'model_catalog_json="/home/#/rt/ca.models.json"' \
  -c 'model_provider="azure"' \
  -c 'model_providers.azure.name="Azure"' \
  -c 'model_providers.azure.base_url="https://#.openai.azure.com/openai/v1"' \
  -c 'model_providers.azure.wire_api="responses"' \
  -c 'model_providers.azure.supports_websockets=false' \
  -c 'model_providers.azure.env_http_headers={ "api-key" = "AZURE_OPENAI_API_KEY" }' \
  "$@"

ask Codex to create ca.model.json for you!

CetinSert · 2 months ago

0.132.0 still has the same issue!

My patches against 0.132.0 that special-case Azure connections:
https://github.com/Elefunc/codex/commit/71057e6abccd11186674888f7c8bf2991fe834d5

samnickolay · 2 months ago
For those of you still getting this issue even after updating. I found i had a default-service-tier = fast entry in .codex-global-state.json (and its backup file). Removing this entry fixed the problem for me.

This worked for me. Note: first close Codex, then remove this entry in the JSON file, save the JSON file, and re-open Codex

CetinSert · 2 months ago
CetinSert · 1 month ago
CetinSert · 1 month ago
CetinSert · 1 month ago
CetinSert · 1 month ago
CetinSert · 1 month ago

0.138.0 has resolved the issue for me!