fix(provider): harden Agent Identity OAuth lifecycle

This commit is contained in:
elky
2026-07-23 09:33:00 +08:00
parent e49024d33b
commit 3606290ac8
84 changed files with 8063 additions and 1104 deletions
+9 -4
View File
@@ -1583,11 +1583,16 @@ const legacyExactEnglishMessages: Record<string, string> = {
'设备授权': 'Device authorization',
'导入授权': 'Import authorization',
'Agent Identity': 'Agent Identity',
'创建并导入 Agent Identity': 'Create and import Agent Identity',
'创建 Agent Identity 失败': 'Failed to create Agent Identity',
'ChatGPT Session Token': 'ChatGPT Session Token',
'粘贴 ChatGPT Session Token(JWT)': 'Paste a ChatGPT Session Token (JWT)',
'仅用于一次性注册,成功后不会保存 Token。': 'Used only for one-time registration. The token is not stored after success.',
'Agent Identity 已保存,任务将在后台初始化': 'Agent Identity was saved; its task will initialize in the background',
'已保存': 'Saved',
'粘贴 AT 或 ChatGPT auth/session JSON': 'Paste an access token or ChatGPT auth/session JSON',
'ChatGPT auth/session JSON 格式无效': 'Invalid ChatGPT auth/session JSON',
'ChatGPT auth/session JSON 缺少 accessToken': 'ChatGPT auth/session JSON is missing accessToken',
'ChatGPT Access Token 缺少账号身份字段': 'ChatGPT access token is missing account identity claims',
'ChatGPT Access Token(JWT)不能为空': 'ChatGPT access token (JWT) is required',
'仅 Codex Provider 支持使用 Access Token 创建 Agent Identity': 'Only Codex providers support creating Agent Identity with an access token',
'使用 Access Token 创建 Agent Identity 时不能同时提交 Refresh Token': 'A refresh token cannot be submitted when creating Agent Identity with an access token',
'导入账号': 'Import accounts',
'授权已过期': 'Authorization expired',
'授权失败': 'Authorization failed',