Skip to content

fix(codex): preserve Fast routing and bump kernel UA to 0.160.0 - #222

Merged
dofastted merged 1 commit into
mainfrom
fix/codex-fast-compat
Oct 3, 2026
Merged

dofastted merged 1 commit into
mainfrom
fix/codex-fast-compat

Conversation

@dofastted

@dofastted dofastted commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

变更

  • Codex hop 把公开 API 的 service_tier: "fast" 改写成官方线值 priority,envelope 带 Codex 兼容头和 x-codex-routing-hint。客户端 Authorization 不转发。
  • 重编 bin/kin-codex-kernel(现有 Rust hop,保留 SOCKS5/socks5h)。源码只在本机 .local/codex-kernel,不入库。
  • 默认 UA / catalog fallback 对齐 npm @openai/codex@0.160.0:codex_cli_rs/0.160.0 (linux x86_64)。

Supersedes #214(Go 重写拒 SOCKS5,不能合)。

验证

  • cargo test(.local/codex-kernel)30 passed
  • Node:codex-convert / handle-codex / codex-kernel-client / codex-models / codex-restriction 相关单测通过
  • ELF:linux amd64 stripped 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 to priority during Codex body normalization. The kernel hop envelope now carries an allowlisted set of Codex headers (originator, beta flags, thread/session metadata, etc.) plus x-codex-routing-hint derived from model and tier. Client Authorization is 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-kernel with codex-proxy outbound contract fixes; Node control plane + web/dist refresh; restart Node and running Codex kernel processes.

Reviewed by Cursor Bugbot for commit 91355ce. Configure here.

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.
@cursor

cursor Bot commented Oct 3, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@dofastted
dofastted merged commit 76ba7a1 into main Oct 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant