Skip to content

[Bug]: Shadow call intercept keeps routing helper calls to a disabled provider (404 loop, no fallback) #5618

Closed

Description

@a1980881039

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

  1. Enable shadow call intercept with target <provider>/<model> while <provider> is enabled.
  2. Disable that provider (dashboard toggle or providers.<provider>.disabled: true).
  3. Trigger any intercepted helper call (e.g. click "Commit" in Codex App, which generates a commit message via gpt-5.6-luna).
  4. The request is still rewritten to the disabled provider; the proxy returns 404 Provider is disabled and the call is retried against the same dead target repeatedly (in my case ~36 identical failures over 30 minutes, each durationMs 2–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:

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

  1. added
    bug
    on Sep 22, 2026
  2. lidge-jun commented on Sep 23, 2026

    @lidge-jun
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions