refactor(codex): generalize fingerprint convergence

This commit is contained in:
elky
2026-09-01 17:05:54 +08:00
parent ef7caa40e7
commit d07dc86376
7 changed files with 146 additions and 45 deletions
@@ -343,16 +343,16 @@
for="codex-fingerprint-convergence"
class="text-sm font-medium"
>
{{ legacyT('Codex OAuth 指纹收敛') }}
{{ legacyT('Codex 指纹收敛') }}
</Label>
<p class="text-xs text-muted-foreground leading-relaxed">
{{ legacyT('统一同一 OAuth 账号的设备与会话标识;关闭时保持现有透传行为。') }}
{{ legacyT('统一同一 Codex 身份的设备与会话标识;关闭时保持现有透传行为。') }}
</p>
</div>
<Switch
id="codex-fingerprint-convergence"
:model-value="form.codex_fingerprint_convergence_enabled"
:aria-label="legacyT('Codex OAuth 指纹收敛')"
:aria-label="legacyT('Codex 指纹收敛')"
@update:model-value="(v: boolean) => form.codex_fingerprint_convergence_enabled = v"
/>
</div>
@@ -275,6 +275,7 @@ describe('ProviderFormDialog provider types', () => {
'#codex-fingerprint-convergence',
)
expect(convergenceSwitch).not.toBeNull()
expect(document.body.textContent).toContain('Codex 指纹收敛')
expect(convergenceSwitch?.getAttribute('aria-checked')).toBe('false')
convergenceSwitch?.click()
+2 -2
View File
@@ -1443,8 +1443,8 @@ const legacyExactEnglishMessages: Record<string, string> = {
'启用后该提供商的密钥将由号池统一调度': 'When enabled, this providers keys are scheduled by the pool.',
'模拟缓存模式': 'Simulated cache mode',
'启用后仅对 Kiro 请求模拟 prompt cache 读写计量。': 'When enabled, only Kiro requests simulate prompt cache read/write accounting.',
'Codex OAuth 指纹收敛': 'Codex OAuth fingerprint convergence',
'统一同一 OAuth 账号的设备与会话标识;关闭时保持现有透传行为。': 'Use consistent device and session identifiers for the same OAuth account. When disabled, preserve the existing pass-through behavior.',
'Codex 指纹收敛': 'Codex fingerprint convergence',
'统一同一 Codex 身份的设备与会话标识;关闭时保持现有透传行为。': 'Use consistent device and session identifiers for the same Codex identity. When disabled, preserve the existing pass-through behavior.',
'请前往模块管理-敏感信息保护中配置详细规则。': 'Configure detailed rules in Modules - Sensitive information protection.',
'验证失败': 'Validation failed',
'月卡类型必须设置周期开始时间': 'Monthly quota billing requires a cycle start time',