Conversation
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
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.
CLI login 支持跨设备浏览器授权:显示授权链接与设备码,轮询会话,安全保存设备凭据后确认领取。保留凭据存储、环境变量优先级,以及显式 --legacy-loopback 的旧同机登录。
轮询从 5 秒开始,带抖动并对限流/网络错误退避。区分请求失败、拒绝、到期、领取未确认与授权写入结果不确定;后者继续查询当前会话,不自动新建会话或重复 force,不覆盖旧凭据。不新增 CLI 遥测,链接和终端输出均不含 secret/AK。
验证:gofmt、git diff --check、完整分支范围检查通过;本版新增不确定结果/取消/超时回归用例,未执行本地 Go。本版 eaee6dd 的 GitHub CI run 35580154907 已全部通过:Go tests 与 Node 16/20 × Ubuntu/Windows 四组 Canvas 测试。
草稿依赖 API + Redis 会话接口和 Web 新授权页部署,无需新表或 Core 新 RPC。完整跨设备联调未完成;服务端与 Web 上线前不发布本版 CLI。