Skip to content

fix: retry OpenAI model sync after TLS EOF#4065

Open
GitClound wants to merge 1 commit into
Wei-Shaw:mainfrom
GitClound:codex/fix-openai-model-sync-tls-eof
Open

fix: retry OpenAI model sync after TLS EOF#4065
GitClound wants to merge 1 commit into
Wei-Shaw:mainfrom
GitClound:codex/fix-openai-model-sync-tls-eof

Conversation

@GitClound

Copy link
Copy Markdown

Summary

  • Retry OpenAI API-key model-list sync with a Chrome TLS fingerprint when the standard upstream request ends in TLS EOF.
  • Retry the Chrome request once for transient EOF or connection-reset errors.
  • Keep the fallback scoped to OpenAI API-key accounts; other platforms and account types keep their current behavior.

Validation

  • go test ./internal/service
  • go vet ./internal/service
  • Live integration test with the affected account and an injected EOF completed successfully.

The live test is behind the integration build tag and requires SUB2API_LIVE_OPENAI_BASE_URL and SUB2API_LIVE_OPENAI_API_KEY; credentials are not included in this change.

@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

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

@GitClound

Copy link
Copy Markdown
Author

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

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