• CaoBiang

    github.com/Wei-Shaw/sub2api

    fix(openai): make Codex fingerprint convergence opt-in (#5610)

    main ← cying22:fix/openai-oauth-quota-regression

    已关闭 02:01AM - 14 Aug 26 UTC

    图片

    cying22

    +146
    -33

    Summary

    • default missing, empty, or invalid codex_fingerprint_mode values… to off
    • align create, edit, and bulk-edit flows with opt-in fingerprint convergence
    • keep explicit device, session, and full configurations unchanged
    • add regressions for legacy accounts, explicit opt-in, and bulk off updates

    Why

    v0.1.175 introduced Codex fingerprint convergence and treated an absent account setting as session. Existing OpenAI OAuth accounts generally do not have this new key, so upgrading silently changed every non-passthrough request by replacing installation, session, thread, turn, and window identifiers in both headers and client_metadata.

    The quota regressions reported in #5555, #5556, and #5582 line up with that version boundary, including reports that rolling back to v0.1.173 restores expected quota behavior. OpenAI's exact server-side quota policy is not observable here, so this PR takes the compatibility-safe approach: preserve the pre-v0.1.175 client identity unless an administrator explicitly opts into convergence.

    This is independent of the existing OpenAI automatic-passthrough switch. Accounts can continue using the normal transform path without having their fingerprint identifiers converged by default.

    Validation

    • go test ./internal/service -run 'Test(GetCodexFingerprintMode|ResolveCodexFingerprintIDsFromRequest|ApplyCodexFingerprintHeaders|ApplyCodexFingerprintClientMetadata|FingerprintIDs)' -count=1
    • go test ./internal/service -count=1
    • npm test -- --run src/components/account/__tests__/CreateAccountModal.spec.ts src/components/account/__tests__/EditAccountModal.spec.ts src/components/account/__tests__/BulkEditAccountModal.spec.ts (89 tests)
    • npm run typecheck
    • ESLint on all changed frontend source and test files
    • git diff --check

    Refs #5555, #5556, #5582

    发现了一个刚更新但是被关闭的 PR,把前两天默认增加了 Codex 指纹收敛功能并默认开启“设备+会话”选项设置为默认关闭。仅供参考。

    图片

    图片

    图片

    图片

    主楼
  • CaoBiang

    所以说,各位可以尝试把codex指纹收敛改为off试一下。

    #1
  • mirror222

    大佬找不到这个选项 请问哪里配置呢?

    #2

发表回复

登录后回复