Commit Graph

7 Commits

Author SHA1 Message Date
Q3CC b5f2ecb99c fix: skip SUB2API proxy when default proxy is empty 2026-04-18 18:41:59 +08:00
lizhelang 81613b865a Make SUB2API proxy defaults available across panel flows
Expose a configurable default proxy for SUB2API, resolve the proxy once,
persist the proxy_id in state, and reuse it across auth URL generation,
code exchange, and account creation so one OAuth flow stays on one proxy.

Constraint: Upstream GitHub permission is READ, so publication must use a fork PR
Rejected: Push to origin | current GitHub viewer permission does not allow upstream branch publication
Rejected: Resolve proxy independently in later steps | could drift from the proxy chosen at auth URL generation
Confidence: high
Scope-risk: moderate
Reversibility: clean
Tested: npm test passed 183/183
Not-tested: Manual browser extension flow against a live SUB2API deployment
2026-04-18 06:47:24 +08:00
QLHazyCoder cbe9b1fabf 抽取cookie清理逻辑为新的第六步 2026-04-17 15:56:19 +08:00
QLHazyCoder 6b723c5ef0 Refactor signup process and enhance OAuth handling
- Updated signup-page.js to support additional message types for signup entry and password page readiness.
- Introduced new helper functions for managing signup entry states and filling email/password.
- Enhanced error handling and logging for better debugging during the signup process.
- Modified sub2api-panel.js and vps-panel.js to handle REQUEST_OAUTH_URL messages and improved logging.
- Updated sidepanel.html to reflect changes in button labels for clarity in user actions.
2026-04-15 19:27:24 +08:00
hisen666 843d9c6324 merge: sync dev and finalize sub2api localhost callback flow 2026-04-12 16:30:28 +08:00
hisen666 601958ae97 fix: add default scheduling fields for sub2api accounts 2026-04-12 12:39:06 +08:00
hisen666 b56802f221 Add SUB2API panel mode for auth URL and callback flow 2026-04-12 11:30:40 +08:00