Skip to content

[Feature]: Make failover cooldown duration configurable (currently hardcoded 60s) #486

Closed as not planned

Description

@a1980881039

Version: v2.7.40

Problem
The 429 cooldown for combo failover is hardcoded — DEFAULT_COOLDOWN_MS (60s) in src/combos/failover.ts and src/providers/key-failover.ts — with no GUI or config option. Users who want the primary target retried quickly (e.g. every 5 seconds) must patch the source, and the patch is lost on every ocx update.

The passive design (timestamp compare, no active probing, in-memory only, cleared on restart) is perfectly fine — what's missing is just the knob.

Suggestion
Add a per-combo (and/or per-provider) cooldownMs setting, exposed in the combo editor UI. Keep 60s as the default.

Activity

  1. added
    enhancement
    on Jul 26, 2026
  2. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    Issue closed: insufficient detail

    Thanks for taking the time to submit this issue. It was closed automatically because the structured report is missing information needed to evaluate or reproduce it.

    • Required sections are missing or empty: goal / problem, expected behaviour.

    Please edit the issue to add:

    • Fill in each required section with specific detail about your workflow.

    See the Contributing guide for details.

    Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.

  3. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: English.

  4. a1980881039 commented on Jul 26, 2026

    @a1980881039
    Author

    One more note: if you're busy, I'd be happy to take a stab at this myself and open a PR. Just let me know.

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

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions