Repository navigation
fix(accounts): set API key account names once during import - #770
Merged
Merged
Conversation
Use the optional name from account settings and default unnamed key accounts to 密钥账号. Keep connection fields independent of naming. Co-authored-by: Codex <noreply@openai.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
问题与改动
在账号管理中选择「导入账号 → Codex → API 密钥」时,账号设置页和密钥页都显示同一个账号名称。第一步允许留空,第二步却会因名称为空而拦截导入。
现在只在账号设置页填写名称,密钥页直接从基础 URL 开始。手动导入使用
settings.name提交自定义名称。服务端在密钥账号缺少名称时使用「密钥账号」,导入文件自带的名称也可以保留。自审与验证
名称校验复用账号设置表单。默认名由 Provider 的密钥导入分支提供,单账号自定义名称沿用原有导入事务。
provider-openai的 4 项密钥导入测试通过,覆盖默认名称和自定义名称的导出再导入。provider-openai严格 Clippy、前端 ESLint、含类型检查的生产构建及git diff --check均通过。页面截图
入口为「账号管理 → 导入账号 → Codex」,使用同一组模拟数据、浅色主题和 1360 × 1000 窗口。
5fced6659a16dcc2AI 使用
使用 Codex(
gpt-6.2-astra)参与实现、自审、测试和截图验证。