
v8 管理接口里的 Codex 登录今天只回浏览器回调,设备码得进容器从 stdout 捞;同一端点上 xai、meta、kimi 早已返回 user_code,PR #6715 把 codex 这一支补上但还没合并。
ae3ee3be,dev 停在 10 月 20 日 00:13 的 c449529e。56 sub2api 的 main 停在 10 月 19 日 20:45 的 8f2cbb53。7flow=device,仍走浏览器回调,响应里没有 user_code。flow: device、user_code、expires_in 一起返回了。flow=device 今天会被忽略auth_files_codex_device.go,在 v8.0.35 与 dev 两个 ref 下都取不到。10
case "codex" 后只有 h.RequestCodexToken(c),同文件里 kimi、xai、meta 走的都是各自的处理器,没有一处读 query 里的 flow。flow=device,客户端拿回来的仍是浏览器回调那一套:status、url、state,没有用户码。
loginWithDeviceFlow 在拿到用户码后直接打到 stdout:第 88 行打 https://auth.openai.com/codex/device,第 89 行打用户码。上面第 61 行就是那个 metadata 判断,命令行之外没有别的入口会走到这里。codexDeviceTimeout = 15 * time.Minute。14./cli-proxy-api --codex-device-login,从控制台捞出那两行,15 分钟内把码输进设备页。auth_files_provider_oauth.go 里,xai、meta、kimi 三家的处理器都已经把设备码挂进 v8 的响应:flow: "device"、user_code、expires_in 三个字段一起返回。151617
flow: device,第 906–908 行补 user_code,第 909–911 行补 expires_in;这个 handler 挂在 /v8/management/oauth/auth-url?provider=kimi 后面。3a4dea2bc5,可合并状态 clean。8provider=codex&flow=device 的成功响应是六个字段:status、url、state、flow、user_code、expires_in。expires_in 写成 900 秒,取自上面那个 15 分钟时限。10
httpwire.FlushResponse 把响应推出去,第 129–130 行才置 handedOff 并放行保存。客户端在 flush 之前断开,第 126 行直接返回,会话被丢弃。codexDeviceStartTimeout)。超时回 504 device authorization flow timed out;拿到码但字段不全回 502 invalid device authorization response;流程根本没起来回 502 failed to start device authorization flow。10GET /v8/management/oauth/status?state=,取消走 DELETE /v8/management/oauth/session?state=。取消的语义这次补了一道闸:新增的 BeginSave 在落盘前先占住会话,Cancel 碰到已占住的会话就返回 cancelled: false。18cancelled: true 表示凭证不会落盘;拿到 false 就继续轮询状态,重开一轮会与正在落盘的那次撞车。http://127.0.0.1:1455/auth/callback?... 整段回贴给 POST /v8/management/oauth/callback,body 里带 provider 与 redirect_url。19 这条路由在 v8 下是挂着的。20 无头机器上它一直能用,代价是每次手工复制一次地址。JustYannicc:feat/management-codex-device-auth),可以 checkout 自己构建;v0 的路由这次不动。8OAuth 401: Invalid bearer token 并进临时不可调度。22gpt-6.1-sol → OpenAI);仍反复 401 就对这个账号重新授权一次;多实例部署留意同一账号被多处并发刷新。要定位就带 account_id 与 upstream_status 两个字段,日志里把 token 脱敏。23type/question、0 评论)问的是:额度耗尽、上游开始回 503 之后,质检为什么仍显示正常。33 按 v3.1.1 的实现与文档,上游返回非 200 时这一格记 error、不会写成 normal。34 这张单还没有回复,现象未验证,未收。github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
status.openai.com
status.anthropic.com
status.cloud.google.com
codex-reset.com
opentherank.com
community.openai.com
reddit.com
github.com
github.com
github.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.