Skip to content

feat: add default proxy selection for new accounts#2303

Open
MiaoZang wants to merge 1 commit into
Wei-Shaw:mainfrom
MiaoZang:upstream/default-proxy-account-defaults
Open

feat: add default proxy selection for new accounts#2303
MiaoZang wants to merge 1 commit into
Wei-Shaw:mainfrom
MiaoZang:upstream/default-proxy-account-defaults

Conversation

@MiaoZang
Copy link
Copy Markdown

@MiaoZang MiaoZang commented May 8, 2026

Summary

  • add a global default proxy setting to system settings
  • show and manage the default proxy from the proxy admin page
  • preselect the configured default proxy when creating accounts
  • keep the selected proxy editable before account creation

Notes

This PR intentionally does not include local custom OpenAI OAuth helper APIs such as addacc2, upacc2, or clsacc.

Tests

  • go test ./internal/handler/admin -run 'Test.*Setting|Test.*DefaultProxy|Test.*Account' -count=1
  • go test ./internal/service -run 'Test.*Setting|Test.*DefaultProxy|TestGatewayRequest|TestGeminiOAuth' -count=1
  • pnpm exec vitest run src/components/account/__tests__/CreateAccountModal.spec.ts src/views/admin/__tests__/ProxiesView.spec.ts

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@MiaoZang
Copy link
Copy Markdown
Author

MiaoZang commented May 9, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 9, 2026
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