Skip to content

Add remote proxy controls for Sub2API uploads#17

Merged
dou-jiang merged 3 commits intodou-jiang:mainfrom
Jack-261108:sub2api-remote-proxy-controls-20260324
Mar 25, 2026
Merged

Add remote proxy controls for Sub2API uploads#17
dou-jiang merged 3 commits intodou-jiang:mainfrom
Jack-261108:sub2api-remote-proxy-controls-20260324

Conversation

@Jack-261108
Copy link
Copy Markdown

Summary

  • add remote proxy selection for account uploads to Sub2API and preserve explicit no-proxy choices
  • allow Sub2API service settings to save a default remote proxy and reuse it when uploads do not choose one explicitly
  • replace the settings select with a custom remote proxy picker that shows protocol and status and refreshes remote state when reopening

Test plan

  • python3 -m py_compile /Users/jack/project/codex-console/src/database/models.py /Users/jack/project/codex-console/src/database/session.py /Users/jack/project/codex-console/src/database/crud.py /Users/jack/project/codex-console/src/web/routes/upload/sub2api_services.py /Users/jack/project/codex-console/src/web/routes/accounts.py /Users/jack/project/codex-console/src/web/routes/registration.py
  • node --check /Users/jack/project/codex-console/static/js/accounts.js
  • node --check /Users/jack/project/codex-console/static/js/settings.js

Jack added 3 commits March 24, 2026 09:05
Use the target Sub2API service's remote proxy list during account uploads so selected proxies are converted into proxy_key bindings the import API recognizes.
Let Sub2API service settings store and load a default remote proxy so uploads can reuse the target service's remote proxy bindings without forcing users to pick one each time.
Replace the native select with a custom remote proxy picker that matches the account upload UI and refresh proxy status when opening the editor or picker.
@dou-jiang dou-jiang merged commit fa8f030 into dou-jiang:main Mar 25, 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