83f20e07e0
Follow-up to the same-provider fallback fix: narrowing the configured-chain skip to the exact failed model is only correct for model-specific failures. Auth (401) and payment (402) errors are provider-wide — every model on the provider shares the same broken credentials/account — so trying a sibling model can't recover and merely burns another doomed request before the aux task fails. Worse, returning that sibling client bypasses the main-agent-model safety net that a provider-wide skip would have reached. Only forward failed_model to _try_configured_fallback_chain for model-specific failures (timeout, connection, rate limit, model-incompatible, invalid response). Auth/payment keep failed_model=None (whole-provider skip), preserving the pre-existing safety-net behaviour for credential/billing failures. Adds an integration test that a timeout forwards the failed model, and updates the payment-error test to assert failed_model=None. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>