Repository navigation
Description
Summary
When shadowCallIntercept is enabled and its target model belongs to a provider that is later disabled (providers.<name>.disabled: true), the proxy keeps rewriting intercepted helper calls (e.g. gpt-5.6-luna commit-message / thread-title generation from Codex App) to that disabled provider. Every request fails instantly with 404 Provider is disabled: <name> and is retried against the same dead target in a loop instead of skipping interception or falling back to the native channel. The client only shows a generic error ("Failed to generate commit message"), so the failure mode is hard to diagnose.
Expected: when the intercept target's provider is disabled, either skip interception (pass through to the native channel) or fail fast with a clear "intercept target unavailable" error — not a 404 retry loop.
Reproduction
- Enable shadow call intercept with target
<provider>/<model>while<provider>is enabled. - Disable that provider (dashboard toggle or
providers.<provider>.disabled: true). - Trigger any intercepted helper call (e.g. click "Commit" in Codex App, which generates a commit message via
gpt-5.6-luna). - The request is still rewritten to the disabled provider; the proxy returns
404 Provider is disabledand the call is retried against the same dead target repeatedly (in my case ~36 identical failures over 30 minutes, eachdurationMs2–5 ms).
Root cause analysis
The intercept rewrite path resolves the target model without checking whether its provider is disabled. Related prior work that does not cover this branch:
- [Bug]: shadowCallIntercept targeting a combo does not trigger handleComboResponses failover loop #4129 fixed missing failover for combo intercept targets on 429/5xx, but a disabled-provider target still bypasses the failover loop entirely.
- fix(catalog): hide custom models when provider is disabled #4199 hides custom models of disabled providers from the catalog, but stale
shadowCallIntercept.modelreferences are left in place and keep receiving traffic.
Version
2.60.0 (config shape unchanged in 2.61–2.63; no related fix in those release notes)
Operating system
Windows 11
Logs or error output
{"provider":"unknown","model":"unknown","requestedModel":"gpt-5.6-luna",
"requestedEffort":"low","status":404,"durationMs":2,
"errorCode":"http_404","upstreamError":"Provider is disabled: <provider>"}
(repeated 36x, identical upstreamError, durationMs 2–5 ms)
Redacted configuration
{
"shadowCallIntercept": {
"enabled": true,
"sourceModels": ["gpt-5.4-mini", "gpt-5.6-luna", "gpt-5.6-terra"],
"model": "<provider>/<model>"
},
"providers": {
"<provider>": { "disabled": true }
}
}- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
fix(shadow-call): fail clearly when the intercept target's provider i…
Provider state continuity: keep compatibility settings across saves; …
lidge-jun commentedon Sep 23, 2026
Landed on dev in e635288 via #5642: disabling or deleting a provider now reports a shadowCallIntercept target that depends on it, and a helper call aimed at an unavailable target fails once with a clear intercept_target_unavailable error instead of looping on 404, without silently switching destination. Merges into dev do not auto-close issues, so closing manually; it ships with the next release cut from dev. Please reopen if it still reproduces there.
Merge upstream/main (v2.67.0) into codex/shadow-call-per-source-modelmap