You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- set `unsupportedCodexPolicy: "fallback"` (or `CODEX_AUTH_UNSUPPORTED_MODEL_POLICY=fallback`) to enable automatic fallback retries
78
+
Current defaults are strict entitlement handling except for default public selectors that are commonly entitlement-gated:
79
+
-`gpt-5.5` and canonical `gpt-5-codex` can auto-fallback through `gpt-5.4`, `gpt-5.4-mini`, then `gpt-5.4-nano` when the backend reports the selected model is not supported for the active account/workspace
80
+
-`unsupportedCodexPolicy: "strict"` returns other entitlement errors directly
81
+
- set `unsupportedCodexPolicy: "fallback"` (or `CODEX_AUTH_UNSUPPORTED_MODEL_POLICY=fallback`) to enable the full fallback chain for manual/legacy selectors
-`gpt-5.5 -> gpt-5.4` is included by default for accounts/workspaces that do not yet expose GPT-5.5
83
83
- user-typed `gpt-5.5-pro*` is canonicalized to `gpt-5.5` before fallback because GPT-5.5 Pro is ChatGPT-only, not a Codex-routable model
84
+
- legacy Codex selectors such as `gpt-5.2-codex`, `gpt-5.3-codex`, and `gpt-5.3-codex-spark` normalize to canonical `gpt-5-codex`; if that canonical Codex model is gated, the default auto-fallback can retry through the GPT-5.4 family
85
+
- set `CODEX_AUTH_DISABLE_GPT55_AUTO_FALLBACK=1` to disable GPT-5.5 auto-fallback
86
+
- set `CODEX_AUTH_DISABLE_CODEX_AUTO_FALLBACK=1` to disable canonical Codex/GPT-5.4-family auto-fallback
84
87
-`gpt-5.4-pro -> gpt-5.4` remains available for older manual configs
85
88
-`unsupportedCodexFallbackChain` lets you override fallback order per model
86
89
87
-
Default fallback chain (when policy is `fallback`):
88
-
-`gpt-5.5 -> gpt-5.4`
90
+
Default fallback chain (auto-fallback for `gpt-5.5`/`gpt-5-codex` through the GPT-5.4 family; full chain when policy is `fallback`):
Copy file name to clipboardExpand all lines: docs/configuration.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ The sample above intentionally sets `"retryAllAccountsMaxRetries": 3` as a bound
172
172
|`unsupportedCodexPolicy`|`strict`| unsupported-model behavior: `strict` (return entitlement error) or `fallback` (retry with configured fallback chain) |
173
173
|`fallbackOnUnsupportedCodexModel`|`false`| legacy fallback toggle mapped to `unsupportedCodexPolicy` (prefer using `unsupportedCodexPolicy`) |
174
174
|`fallbackToGpt52OnUnsupportedGpt53`|`true`| legacy compatibility toggle for the `gpt-5.3-codex -> gpt-5.2-codex` edge when generic fallback is enabled |
175
-
|`unsupportedCodexFallbackChain`|`{}`| optional per-model fallback-chain override (map of `model -> [fallback1, fallback2, ...]`; default includes `gpt-5.5 -> gpt-5.4`). `gpt-5.5` auto-fallback is on by default during the rollout; set `CODEX_AUTH_DISABLE_GPT55_AUTO_FALLBACK=1` to opt out. GPT-5.5 Pro is not mapped: it is ChatGPT-only per OpenAI's 2026-04-23 launch. |
175
+
|`unsupportedCodexFallbackChain`|`{}`| optional per-model fallback-chain override (map of `model -> [fallback1, fallback2, ...]`; default includes `gpt-5.5` and `gpt-5-codex` through the GPT-5.4 family). `gpt-5.5`and canonical Codex auto-fallbacks are on by default for common entitlement gates; set `CODEX_AUTH_DISABLE_GPT55_AUTO_FALLBACK=1` or `CODEX_AUTH_DISABLE_CODEX_AUTO_FALLBACK=1` to opt out. GPT-5.5 Pro is not mapped: it is ChatGPT-only per OpenAI's 2026-04-23 launch. |
176
176
|`sessionRecovery`|`true`| auto-recover from common api errors |
177
177
|`autoResume`|`true`| auto-resume after thinking block recovery |
178
178
|`tokenRefreshSkewMs`|`60000`| refresh tokens this many ms before expiry |
@@ -191,12 +191,13 @@ this mode is intended for beginners who prefer quick failures + clearer recovery
191
191
192
192
### Unsupported-Model Behavior and Fallback Chain
193
193
194
-
by default the plugin is strict (`unsupportedCodexPolicy: "strict"`). it returns entitlement errors directly for unsupported models.
194
+
by default the plugin is strict (`unsupportedCodexPolicy: "strict"`) except for common default-selector entitlement gates. it returns other entitlement errors directly for unsupported models.
195
195
196
196
set `unsupportedCodexPolicy: "fallback"` to enable model fallback after account/workspace attempts are exhausted.
197
197
198
198
defaults when fallback policy is enabled and `unsupportedCodexFallbackChain` is empty:
Copy file name to clipboardExpand all lines: docs/troubleshooting.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,44 +362,53 @@ resolvedConfig: { reasoningEffort: 'low', ... } ← Should show your options
362
362
opencode auth login
363
363
```
364
364
2. Add another entitled account/workspace. The plugin tries remaining accounts/workspaces before model fallback.
365
-
3. Enable fallback policy only if you want automatic model downgrades:
365
+
3. Default public selectors that are commonly entitlement-gated (`gpt-5.5` and canonical `gpt-5-codex`) can auto-fallback through `gpt-5.4`, `gpt-5.4-mini`, then `gpt-5.4-nano`.
366
+
4. Enable fallback policy if you also want automatic downgrades for manual/legacy selectors:
4. Default fallback chain (when policy is `fallback` and not overridden):
370
-
-`gpt-5.5 -> gpt-5.4`
370
+
5. Default fallback chain (auto-fallback for `gpt-5.5`/`gpt-5-codex` through the GPT-5.4 family; full chain when policy is `fallback` and not overridden):
8. Disable default-selector auto-fallbacks when you need strict entitlement failures for those selectors:
398
+
```bash
399
+
CODEX_AUTH_DISABLE_GPT55_AUTO_FALLBACK=1 opencode
400
+
CODEX_AUTH_DISABLE_CODEX_AUTO_FALLBACK=1 opencode
401
+
```
402
+
`CODEX_AUTH_DISABLE_CODEX_AUTO_FALLBACK=1` only disables the automatic canonical Codex/GPT-5.4-family fallback path; explicit `unsupportedCodexPolicy: "fallback"` chains still apply.
Copy file name to clipboardExpand all lines: index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2631,7 +2631,7 @@ while (attempted.size < Math.max(1, accountCount)) {
2631
2631
: waitMs>0
2632
2632
? `All ${count} account(s) are rate-limited. Try again in ${waitLabel} or add another account with \`opencode auth login\`.`
2633
2633
: wasEntitlementExhaustion
2634
-
? `All ${count} account(s) returned 'model not supported' for the requested model.${entitlementDetail}If this is a GPT-5.5 request during the rollout period, set \`unsupportedCodexPolicy: "fallback"\` (or \`CODEX_AUTH_UNSUPPORTED_MODEL_POLICY=fallback\`) to auto-fallback to gpt-5.4. See \`codex-health\` for per-account details.`
2634
+
? `All ${count} account(s) returned 'model not supported' for the requested model.${entitlementDetail}Codex model access is account/workspace gated; default gpt-5.5/gpt-5-codex selectors auto-fallback through the GPT-5.4 family when possible. Set \`unsupportedCodexPolicy: "fallback"\` for the full manual fallback chain, or see \`codex-health\` for per-account details.`
2635
2635
: `All ${count} account(s) failed (server errors or auth issues). Check account health with \`codex-health\`.`;
0 commit comments