Repository navigation
feat: 上游对齐 — Qoder 指纹 / Codex UA 0.164 / Turn 头透传 - #382
Merged
Merged
Conversation
Bump Cosy CLI to 1.1.75 and desktop Cosy-Version to 0.4.8. Use undici User-Agent for reasoning; send cosy-machineos on all COSY requests and hostname on SSE only. Add cosy-business-*/scene/clientip; lowercase cosy-data-policy agree. Port only what fits existing qauth adapters.
Follow official Codex CLI rust-v0.164.0 stable even though CLIProxyAPI still pins an older spoof. Keeps Originator as codex-tui.
Stash inbound X-Codex-Turn-Metadata, X-Codex-Turn-State, and X-Codex-Window-Id in gateway prepare (same context path as Client UA) and apply on non-SIWC Codex upstream requests. Scope matches CLIProxyAPI EnsureHeader for those three only — no Session-Id / Beta / Originator widening. Changelog covers all three upstream-align items.
6 tasks
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.
摘要
一次 PR、三个清晰提交,对齐上游指纹 / UA / 头透传。不合并;用户经调研 bot 批准。
Qoder Cosy 指纹(对标
shuishuipingan/qoder2api-hubPR docs: freeze changelog for v0.2.35 #75 / v1.7.3)1.1.32→1.1.75;桌面签到Cosy-Version0.3.4→0.4.8undici(取消 edition 拆分)cosy-business-*/cosy-scene/cosy-clientip;cosy-data-policy小写agreecosy-machineos全 COSY 请求;cosy-machinehostname仅 SSECodex 出站 UA → 官方稳定
0.164.0(rust-v0.164.0;CPA 仍偏旧,按用户要求跟官方)Codex 头透传(对标 CLIProxyAPI
EnsureHeader)X-Codex-Turn-Metadata/X-Codex-Turn-State/X-Codex-Window-Id架构
插入既有 qauth / Codex adapter / prepare context;无并行框架、无新冷却机、无 provider 专属 console 页。自动签到仍走原有 per-tick / rate-limit,未改并发节流。
测试
go test:./internal/providers/qoder/..../internal/providers/codex/..../internal/providers/./internal/executor/./internal/gateway/风险
codex-tuiOriginator。未做
WorkBuddy #643、Devin、#375、ProvidersPage custom-row density。