fix(codex): preserve Fast routing and bump kernel UA to 0.160.0 - #222
Merged
Merged
Conversation
Map service_tier fast to priority and forward Codex envelope headers on the existing Rust hop. Rebuild kin-codex-kernel with SOCKS5 kept. Catalog fallback and default UA follow npm @openai/codex@0.160.0. Supersedes #214.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 74d88185-d013-46da-ba62-a55bc20261c6) |
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.
变更
service_tier: "fast"改写成官方线值priority,envelope 带 Codex 兼容头和x-codex-routing-hint。客户端 Authorization 不转发。bin/kin-codex-kernel(现有 Rust hop,保留 SOCKS5/socks5h)。源码只在本机.local/codex-kernel,不入库。@openai/codex@0.160.0:codex_cli_rs/0.160.0 (linux x86_64)。Supersedes #214(Go 重写拒 SOCKS5,不能合)。
验证
cargo test(.local/codex-kernel)30 passedcodex-convert/handle-codex/codex-kernel-client/codex-models/codex-restriction相关单测通过4fd6189f…已部署机:覆盖控制面、
web/dist和bin/kin-codex-kernel,重启 Node 一次;已跑的 Codex kernel 进程也要重启。不要docker rm,不要覆盖routing.json/vms//data//.env。Note
Medium Risk
Changes Codex outbound request shape, tier mapping, and auth/header forwarding on a live inference path; deployments must update Node, web assets, and restart Codex kernel processes together.
Overview
Aligns the Codex proxy path with official ChatGPT Responses behavior so Fast tier routing and client identity headers work upstream.
Wire format & routing: Public
service_tier: "fast"is rewritten topriorityduring Codex body normalization. The kernel hop envelope now carries an allowlisted set of Codex headers (originator, beta flags, thread/session metadata, etc.) plusx-codex-routing-hintderived from model and tier. ClientAuthorizationis not forwarded—the kernel attaches slot OAuth instead.Client version: Default catalog/kernel identity bumps from 0.153.x / 0.158.0 to
@openai/codex@0.160.0(codex_cli_rs/0.160.0), including auto-catalog fallback comments and official-client classification tests.Deploy notes (changelog): Rebuilt
bin/kin-codex-kernelwith codex-proxy outbound contract fixes; Node control plane +web/distrefresh; restart Node and running Codex kernel processes.Reviewed by Cursor Bugbot for commit 91355ce. Configure here.