From 831b645804a84ab100d3ab94648ab04d852ff1e0 Mon Sep 17 00:00:00 2001 From: ework-agent Date: Mon, 9 Nov 2026 10:49:01 +0800 Subject: [PATCH 1/3] fix(ci): register tests/issue5955-wedged-same-lane-takeover.test.ts in LIVE_FILES Converged master-red fix (sentinel ci-fixes lane): #5989 merged the spawning suite without registering it, so the #1248 SPAWN_RE tripwire kills all 11 core-matrix test shards before any test runs on every PR head. Hunk is byte-identical to open PR #5990 (which carries the same registration plus a test-tolerance change to master). --- scripts/live-files.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/live-files.mjs b/scripts/live-files.mjs index 21faf81617..cf260c49ba 100644 --- a/scripts/live-files.mjs +++ b/scripts/live-files.mjs @@ -117,6 +117,13 @@ export const LIVE_FILES = [ // network I/O and binds no port, so no zone band is needed — the entry is for // the tripwire alone, like #3890/#5114 "tests/cache-keepalive.test.ts", + // #5955: the only real child is ONE bare `node -e ""` spawned purely to + // hand back an already-reaped pid (win32 taskkill-then-SIGKILL silence); + // the takeover ladder itself runs on INJECTED deps — no proxy is started, + // no port is bound, no shutdown/kill signal ever reaches the OS. Fixed + // fake origins only, so no zone band is needed — the entry is for the + // tripwire alone, like #3890/#5114/#5666 + "tests/issue5955-wedged-same-lane-takeover.test.ts", ]; /** Band width per live file: the zone ladder drifts +1 per EADDRINUSE retry; From f81a4a3208ca889070dac9cbec4bcc8cdda1982c Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 9 Nov 2026 11:15:20 +0800 Subject: [PATCH 2/3] docs(clients): add Command Code BYOK entry point to verified-entry-points table (#5995) --- docs/clients.md | 2 ++ docs/clients.zh-CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/clients.md b/docs/clients.md index 36e45a899e..1ea1570b3c 100644 --- a/docs/clients.md +++ b/docs/clients.md @@ -828,11 +828,13 @@ Verified entry points (community-maintained list — the mechanism is generic): | **Void** | custom OpenAI-compatible endpoint setting | | **Cursor** (single-model channel) | Settings → Models → OpenAI API key → **Override Base URL** | | **Warp** | custom-model base URL setting | +| **Command Code** (`cmd`, commandcode.ai) | `~/.commandcode/providers.json` — per-provider (and per-model) `baseURL` (keys live in `auth.json`, never in this file) | Notes: - **Crush** is a launcher lane now — prefer `bili crush` (config untouched, HTTPS domains MITM'd automatically). - **Zed** is a launcher lane too — prefer `bili zed` (Linux; config untouched, model domains MITM'd automatically, loopback providers stay direct). The settings.json `api_url` path above remains the cross-platform alternative. +- **Command Code**: the row above covers its BYOK models (standard wires, compressed today). Its catalog/gateway models ride a custom wire (`POST /alpha/generate`) that relays byte-for-byte — see [below](#an-unrecognized-endpoint-goes-direct-and-nothing-compresses-1290); the declarable-wire fix is tracked in #1295. - Clients you **sign into** (OAuth/subscription) usually hardcode the endpoint — the prefix trick doesn't apply; see the [MITM section below](#client-uses-httpproxy-connect-but-nothing-compresses) instead. - Plain **web apps** (browser-only products) have no local traffic to intercept. - VS Code extensions keep their base-URL fields in plain-text settings but secrets in the OS keychain — only the base URL ever needs editing here. diff --git a/docs/clients.zh-CN.md b/docs/clients.zh-CN.md index 6b1fc8c5e9..cd1f2d0cf9 100644 --- a/docs/clients.zh-CN.md +++ b/docs/clients.zh-CN.md @@ -249,11 +249,13 @@ pi-subagents(pi.dev 上的包)为前台/后台子代理运行派生**子会话** | **Void** | 自定义 OpenAI 兼容端点设置 | | **Cursor**(单模型通道) | Settings → Models → OpenAI API key → **Override Base URL** | | **Warp** | 自定义模型 base URL 设置 | +| **Command Code**(`cmd`,commandcode.ai) | `~/.commandcode/providers.json` —— 各 provider(及模型级)`baseURL`(密钥在 `auth.json`,不在这个文件) | 注意: - **Crush** 已有启动器车道——直接用 `bili crush`(配置零改动,HTTPS 域自动 MITM)。 - **Zed** 也已有启动器车道——直接用 `bili zed`(Linux;配置零改动,模型域自动 MITM,环回 provider 保持直连)。上面的 settings.json `api_url` 路径仍是跨平台替代。 +- **Command Code**:上表一行覆盖其 BYOK 模型(标准 wire,今天就能压缩)。其目录/网关套餐走自定义 wire(`POST /alpha/generate`),逐字节中继不压缩——见下文「未识别的端点直连、什么都不压缩」一节;可声明 wire 的修复追踪在 #1295。 - **账号登录**型客户端(OAuth/订阅)通常焊死端点——前缀技巧不适用,改看[下方 MITM 节](#客户端用-httpproxyconnect接入但从不压缩)。 - 纯 **web 应用**(只在浏览器里的产品)本地没有流量可截。 - VS Code 扩展的 baseURL 字段在明文设置里,密钥在系统钥匙串——这里只需要改 baseURL。 From 7d7e26400e28fda847429e71d143ab33b8df4c31 Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 9 Nov 2026 11:36:24 +0800 Subject: [PATCH 3/3] docs(clients): link the zh-CN Command Code note to its section heading en/zh markup parity: the English bullet links to the unrecognized-endpoint section via an anchor; the Chinese bullet referenced the same heading as plain text. The file already uses CJK anchors (MITM section), so the derived slug follows the established pattern. --- docs/clients.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/clients.zh-CN.md b/docs/clients.zh-CN.md index cd1f2d0cf9..bfa089a18d 100644 --- a/docs/clients.zh-CN.md +++ b/docs/clients.zh-CN.md @@ -255,7 +255,7 @@ pi-subagents(pi.dev 上的包)为前台/后台子代理运行派生**子会话** - **Crush** 已有启动器车道——直接用 `bili crush`(配置零改动,HTTPS 域自动 MITM)。 - **Zed** 也已有启动器车道——直接用 `bili zed`(Linux;配置零改动,模型域自动 MITM,环回 provider 保持直连)。上面的 settings.json `api_url` 路径仍是跨平台替代。 -- **Command Code**:上表一行覆盖其 BYOK 模型(标准 wire,今天就能压缩)。其目录/网关套餐走自定义 wire(`POST /alpha/generate`),逐字节中继不压缩——见下文「未识别的端点直连、什么都不压缩」一节;可声明 wire 的修复追踪在 #1295。 +- **Command Code**:上表一行覆盖其 BYOK 模型(标准 wire,今天就能压缩)。其目录/网关套餐走自定义 wire(`POST /alpha/generate`),逐字节中继不压缩——见[下文](#未识别的端点直连什么都不压缩1290)「未识别的端点直连、什么都不压缩」一节;可声明 wire 的修复追踪在 #1295。 - **账号登录**型客户端(OAuth/订阅)通常焊死端点——前缀技巧不适用,改看[下方 MITM 节](#客户端用-httpproxyconnect接入但从不压缩)。 - 纯 **web 应用**(只在浏览器里的产品)本地没有流量可截。 - VS Code 扩展的 baseURL 字段在明文设置里,密钥在系统钥匙串——这里只需要改 baseURL。