Skip to content

feat(tui): add failover controls#155

Merged
unive3sal merged 1 commit intoSaladDay:mainfrom
unive3sal:main
May 6, 2026
Merged

feat(tui): add failover controls#155
unive3sal merged 1 commit intoSaladDay:mainfrom
unive3sal:main

Conversation

@unive3sal
Copy link
Copy Markdown
Collaborator

A huge commit for failover TUI and integration tests. It is mainly consist of the following parts:

  • user can manually enable/disable auto-failover
  • provider SHOULD ONLY selected from failover queue when failover is enable
  • user can specify a provider from provider list when failover is disable (use "space" key to specify the active provider)
  • user cannot specify one typical provider but set the priority in failover queue when failover is enable
    (all of the provider in queue SHOULD be marked as "✓" status)
  • if (failover is disable && user does not specify a provider), then proxy cannot be activated
  • if (failover is enable && failover queue is empty), then proxy cannot be activate
  • failover queue should support hot updates during proxy enabled
    (but cannot remove all providers, it should always keep at least 1 provider in queue)

interactive failover TUI

add a temp window in "Providers"

Screenshot 2026-05-03 at 23 36 18

when failover is disable

  • user can specify ONLY 1 provider from provider list

when failover is enable

  • user can update priority for each provider
Screenshot 2026-05-03 at 23 39 13

E2E integration test

  • It will create a sandbox to run E2E tests
  • Creating some positive/negative mock providers during test

edge cases

  • failover queue is empty; expectation: cannot enable proxy
  • failover queue has ONLY 1 provider; expectation: ONLY use this provider in queue. even if it is down, active provider cannot be transfer
  • failover queue has more than 1 provider; expectation: auto-transfer to different provider according to priority when current active provider is unavailable.
  • all of the providers in queue are unavailable; expectation: cannot work normally

Fixes #19
Fixes #101
Fixes #98

Expose automatic failover configuration and queue management in the TUI, and add sandboxed E2E coverage so provider failover stays validated in CI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@unive3sal unive3sal requested a review from SaladDay May 5, 2026 06:09
Copy link
Copy Markdown
Owner

@SaladDay SaladDay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge一下main

@unive3sal unive3sal merged commit c0f5cb5 into SaladDay:main May 6, 2026
1 check passed
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.

故障转移功能支持吗? 啥时候上故障转移功能? 故障转移

2 participants