Fix Sub2API account sync with redacted credentials#7
Merged
ZyphrZero merged 1 commit intoMay 26, 2026
Merged
Conversation
ZyphrZero
added a commit
that referenced
this pull request
May 26, 2026
Stuck queued runs from closed PRs (e.g. PR #7 run 26442447544) were holding the workflow scheduler. Adding cancel-in-progress lets new pushes on the same ref supersede prior runs and lets GitHub clear zombie entries.
sofs2005
added a commit
to sofs2005/chatgpt2api
that referenced
this pull request
Jun 16, 2026
- ZyphrZero#7 web search compatible interface (backend + protocol) - basketikun#8 image edit mask alpha compositing for /v1/images/edits - All tests passing, TDD workflow followed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
credentials_status.has_access_tokenRoot cause
Sub2API v0.1.129 redacts sensitive credentials in the normal admin account list/detail payloads. The existing Go importer only kept accounts that exposed raw
credentials.access_token, so OpenAI OAuth accounts withcredentials_status.has_access_token=truewere filtered out and sync showed 0 accounts.Verification
gofmt -w internal/service/sub2api.go internal/service/sub2api_test.goGOPROXY=https://goproxy.cn,direct go test ./internal/service -run 'TestSub2API'/api/v1/admin/accounts/data?ids=...&include_proxies=false, and SQLite account storage contained only the access tokenGOPROXY=https://goproxy.cn,direct go test ./...was attempted after building frontend assets; all affected packages passed, but an existinginternal/configtest fails on macOS becauset.TempDir()resolves as/var/...whileos.Getwd()returns/private/var/...Fixes basketikun#187
Fixes basketikun#189