Skip to content

feat: implement "force fallback" strategy for unavailable providers#130

Open
LinearSakana wants to merge 3 commits intodecolua:masterfrom
LinearSakana:feat/force-fallback
Open

feat: implement "force fallback" strategy for unavailable providers#130
LinearSakana wants to merge 3 commits intodecolua:masterfrom
LinearSakana:feat/force-fallback

Conversation

@LinearSakana
Copy link
Contributor

@LinearSakana LinearSakana commented Feb 15, 2026

Description

This PR introduces a Force Fallback option to improve system resilience against temporary network glitches or endpoint misconfigurations.
image

Problem

Currently, if all endpoints for a specific provider encounter errors (e.g., due to a temporary network flap or client-side setting errors), the system puts them into cooldown. Users must wait for the cooldown to expire before retrying, even if the underlying issue has been resolved.

Solution

Added a new routing setting that allows the system to automatically pick the endpoint with the minimum remaining cooldown time when all other options are unavailable. This ensures requests can still be attempted instead of failing immediately.

Key Changes

  • Backend : Updated
    getProviderCredentials
    logic to support forced selection of the least-rate-limited endpoint.
  • UI : Added a "Force Fallback" toggle in the Settings > Routing Strategy section.
  • Storage : Added a forceFallback persistent setting in the local database.

zx added 3 commits February 15, 2026 22:04
* Add `forceFallback` toggle to Profile page under Routing Strategy
* Update auth service to check settings for force fallback configuration
* Add `forceFallback` to default database settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant