Skip to content

The agent that grows with you

docs: state that codex_responses_compact_threshold applies only under codex_responses_native

teknium126675fbcb731
diff --git a/website/docs/developer-guide/context-compression-and-caching.md b/website/docs/developer-guide/context-compression-and-caching.md
index 1a2c2dac630..0f2243d7499 100644
--- a/website/docs/developer-guide/context-compression-and-caching.md
+++ b/website/docs/developer-guide/context-compression-and-caching.md
@@ -224,7 +224,7 @@ compression:
codex_gpt55_autoraise_notice: true # Show the one-time autoraise notice (default: true)
codex_app_server_auto: native # native|hermes|off for Codex app-server thread compaction
codex_responses_native: false # gpt-5.6 on direct OpenAI/Codex: server-side compaction (opt-in)
- codex_responses_compact_threshold: null # Automatic server compaction trigger
+ codex_responses_compact_threshold: null # Server compaction trigger; only used when codex_responses_native: true
in_place: true # Compact on the same session id, no rotation (default: true)
# Summarization model/provider configured under auxiliary:
@@ -252,7 +252,7 @@ auxiliary:
| `codex_gpt55_autoraise_notice` | `true` | bool | Show the one-time Codex gpt-5.5 autoraise notice. Set `false` to keep the 85% autoraise but suppress the banner |
| `codex_app_server_auto` | `native` | `native`, `hermes`, `off` | Thread-compaction mode for Codex app-server sessions (see below) |
| `codex_responses_native` | `false` | bool | Opt in to OpenAI's server-side compaction on the Responses API. Engages only for gpt-5.6-family models on the direct OpenAI API or a ChatGPT Codex subscription (see below) |
-| `codex_responses_compact_threshold` | `null` | `null` or positive integer | `null` follows the resolved local compression trigger with an 8,192 token safety margin. A positive integer remains absolute and only clamps downward when required. Invalid values use automatic behavior. Automatic mode falls back to `200000` when no usable local trigger exists |
+| `codex_responses_compact_threshold` | `null` | `null` or positive integer | Server-side compaction trigger, read **only when `codex_responses_native: true`** — it never changes when local compression fires; the local trigger is `threshold` (ratio) capped by `threshold_tokens`. `null` follows the resolved local compression trigger with an 8,192 token safety margin. A positive integer remains absolute and only clamps downward when required. Invalid values use automatic behavior. Automatic mode falls back to `200000` when no usable local trigger exists |
| `in_place` | `true` | bool | Compact on the same session id instead of rotating to a new one (see below) |
### In-place compaction (single stable session id)
@@ -424,8 +424,11 @@ the request without it. Switching the session to a non-eligible model or route
simply stops the field from being sent — captured checkpoints are dropped from
replay by the existing cross-issuer guard when the endpoint changes.
-By default, `compression.codex_responses_compact_threshold: null` derives the
-native threshold from the resolved local trigger. For example, a local trigger
+`compression.codex_responses_compact_threshold` is consulted only while
+`codex_responses_native: true` is in effect; with native compaction off (the
+default) it is ignored and local compression triggers on `threshold` /
+`threshold_tokens` alone. By default, `codex_responses_compact_threshold: null`
+derives the native threshold from the resolved local trigger. For example, a local trigger
of 765,000 selects 756,808. Set a positive integer to preserve an absolute
threshold such as 200,000. Invalid values select automatic behavior. If no
usable local trigger exists, automatic mode uses 200,000. The provider minimum