Skip to content

fix: Codex SIWC×UA 分流、WorkBuddy 11-128、parallel_tool_calls 保留 false - #368

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/codex-siwc-ua-wb-11128
Oct 23, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/codex-siwc-ua-wb-11128

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

摘要

在最新 main 上合三条对齐上游的改动(不 merge、不发版)。

1. Codex:SIWC × 客户端 UA 分流

对齐 router-for-me/CLIProxyAPI d946c4f。

  • 凭据同时保留 outer OAuth + SIWC(不再丢 outer)。
  • 入站 UA 含 codex-desktop / Codex Desktop / codex-rs / codex_cli_rs / codex-tui / codex_exec 时忽略 use_siwc,用 outer token;缺 outer access_token → 401;该路径刷新只更新 outer。
  • UA 经 gateway 写入 context(providers.WithClientUserAgent),在选 token / SetChatHeaders / refresh 处闸门。

2. WorkBuddy:11-128 指纹清洗

对照 ardeyouxipianyi/workbuddy2api-hub(约 v1.7.25–26,#570/#579/#574)。

  • Identity 自我介绍句(built by / created by / developed by 等)→ You are a helpful AI assistant.
  • DSH Web GUI 描述段调换第一句末尾语序。
  • DeepSeek Harness 品牌缩写为 DeepSeek。
  • 作用域:system / developer / assistant(对齐上游);不动 user / tool。Main branch 类规则仍作用于所有角色。

3. Codex:parallel_tool_calls 保留显式 false

对齐 CLIProxyAPI normalizeCodexParallelToolCallsForTools:有 tools 时保留调用方显式值(含 false);未传仍默认 true。

测试

  • python3 scripts/release-notes.py validate
  • go test ./internal/gateway/ ./internal/executor/ ./internal/providers/...

不包含

  • 不碰 Qoder 1.1.75
  • 不 merge / 不 tag / 不发版

- Codex:保留 outer+SIWC;Codex 客户端 UA 忽略 use_siwc,用 outer OAuth,缺 token 401,刷新只动 outer(对齐 CLIProxyAPI d946c4f)
- WorkBuddy:移植 identity / DSH GUI / brand 11-128 规则,作用于 system/developer/assistant
- Codex:有 tools 时保留调用方显式 parallel_tool_calls:false
@caigee-cmd
caigee-cmd merged commit d3697c6 into main Oct 23, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the fix/codex-siwc-ua-wb-11128 branch October 23, 2026 02:29
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