Skip to content

Commit 06a974f

Browse files
committed
fix(ci): widen stalled 400 body test budget; sync OAuth Copilot docs
Windows CI timed out the intentional 5.1s stall under a 7s budget; align ko/ja/zh-cn OAuth sections with the English six-plus-Copilot wording.
1 parent 6d97a9f commit 06a974f

4 files changed

Lines changed: 21 additions & 10 deletions

File tree

docs-site/src/content/docs/ja/guides/providers.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ ChatGPT パススルーカタログには GPT-5.6 Sol/Terra/Luna の名前空間
6060

6161
## 2. アカウントログイン(OAuth)
6262

63-
OAuth ログインを使うプロバイダープリセットは 6 つです。認証情報は
64-
`~/.opencodex/auth.json` に保存され、自動更新されます。ログイン CLI は `chatgpt` も受け付けます。
65-
このコマンドは ChatGPT 認証情報を発行し `forward` モードのプロバイダーエントリを作成します。
63+
OAuth ログインを使うプロバイダープリセットは 6 つで、これに実験的な非公式デバイスフロー
64+
ブリッジ経由の GitHub Copilot が加わります。認証情報は `~/.opencodex/auth.json` に保存され、
65+
自動更新されます。ログイン CLI は `chatgpt` も受け付けます。このコマンドは ChatGPT 認証情報を
66+
発行し `forward` モードのプロバイダーエントリを作成します。
6667

6768
```bash
6869
ocx login xai # xAI Grok
@@ -71,18 +72,20 @@ ocx login kimi # Moonshot Kimi
7172
ocx login kiro # kiro-cli 認証情報の取り込み(トークンフォールバック対応)
7273
ocx login google-antigravity
7374
ocx login cursor # Cursor 専用 PKCE ログイン
75+
ocx login github-copilot # GitHub デバイスフロー → Copilot トークン (Copilot Pro/Business)
7476
ocx login chatgpt # 別途 ChatGPT OAuth ログイン
7577
ocx logout <provider>
7678
```
7779

7880
| プロバイダー | アダプター | ベース URL | 備考 |
79-
--- | --- | --- | --- |
81+
| --- | --- | --- | --- |
8082
| `xai` | `openai-chat` | `https://api.x.ai/v1` | ライブ一覧を優先し、フォールバックのデフォルトモデルは `grok-4.5`|
8183
| `anthropic` | `anthropic` | `https://api.anthropic.com` | Claude モデル; ライブモデル一覧は `/v1/models` から取得。 |
8284
| `kimi` | `openai-chat` | `https://api.kimi.com/coding/v1` | Kimi K2.7/K2.6/K2.5 コーディングモデル。 |
8385
| `kiro` | `kiro` | `https://runtime.us-east-1.kiro.dev` | 初回ログインは、インストール済みでサインインした `kiro-cli` セッションを取り込みます(Unix では `curl -fsSL https://cli.kiro.dev/install | bash`、Windows PowerShell では `irm 'https://cli.kiro.dev/install.ps1' | iex` でインストールしてから `kiro-cli login` を実行)。**アカウントを追加**は `kiro-cli` をログアウトして新しいブラウザログインを開始し、`kiro-cli` 自体のアカウントを切り替えてアカウント別プロファイルメタデータを保存します。既存の OpenCodex アカウントは保持され、キャンセルまたは失敗時には以前の `kiro-cli` セッションが復元されます。 |
8486
| `google-antigravity` | `google` | `https://daily-cloudcode-pa.googleapis.com` | Google OAuth を Cloud Code Assist wire で使用。 |
8587
| `cursor` | `cursor` | `https://api2.cursor.sh` | 実験的 PKCE ログイン、HTTP/2 トランスポート、アカウント別モデル探索をサポート。 |
88+
| `github-copilot` | `openai-chat` | `https://api.githubcopilot.com` | 実験的。GitHub デバイスフロー + `copilot_internal` 交換(VS Code OAuth クライアント)。有効な Copilot サブスクリプションが必要で、公式のサードパーティ API ではありません。 |
8689

8790
正規の Kimi Coding Plan プリセット(`kimi` アカウントログインと `kimi-code` API key)では、
8891
opencodex は呼び出し元が指定した安定した `prompt_cache_key` だけを Chat Completions リクエストへ

docs-site/src/content/docs/ko/guides/providers.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ ChatGPT 패스스루 카탈로그에는 GPT-5.6 Sol/Terra/Luna의 네임스페
6060

6161
## 2. 계정 로그인 (OAuth)
6262

63-
OAuth 로그인을 사용하는 프로바이더 프리셋은 여섯 개입니다. 자격 증명은
64-
`~/.opencodex/auth.json`에 저장되고 자동으로 갱신됩니다. 로그인 CLI는 `chatgpt`도 받습니다.
65-
이 명령은 ChatGPT 자격 증명을 발급받고 `forward` 모드 프로바이더 항목을 만듭니다.
63+
OAuth 로그인을 사용하는 프로바이더 프리셋은 여섯 개이며, 여기에 실험적 비공식 디바이스 플로우
64+
브리지를 쓰는 GitHub Copilot이 추가됩니다. 자격 증명은 `~/.opencodex/auth.json`에 저장되고
65+
자동으로 갱신됩니다. 로그인 CLI는 `chatgpt`도 받습니다. 이 명령은 ChatGPT 자격 증명을
66+
발급받고 `forward` 모드 프로바이더 항목을 만듭니다.
6667

6768
```bash
6869
ocx login xai # xAI Grok
@@ -71,6 +72,7 @@ ocx login kimi # Moonshot Kimi
7172
ocx login kiro # kiro-cli 자격 증명 가져오기(토큰 폴백 지원)
7273
ocx login google-antigravity
7374
ocx login cursor # Cursor 전용 PKCE 로그인
75+
ocx login github-copilot # GitHub 디바이스 플로우 → Copilot 토큰 (Copilot Pro/Business)
7476
ocx login chatgpt # 별도 ChatGPT OAuth 로그인
7577
ocx logout <provider>
7678
```
@@ -83,6 +85,7 @@ ocx logout <provider>
8385
| `kiro` | `kiro` | `https://runtime.us-east-1.kiro.dev` | 최초 로그인은 설치하고 로그인한 `kiro-cli` 세션을 가져옵니다(Unix에서는 `curl -fsSL https://cli.kiro.dev/install | bash`, Windows PowerShell에서는 `irm 'https://cli.kiro.dev/install.ps1' | iex`로 설치한 뒤 `kiro-cli login` 실행). **계정 추가**는 `kiro-cli`에서 로그아웃한 뒤 새 브라우저 로그인을 시작하여 `kiro-cli` 자체의 계정을 전환하고, 계정별 프로필 메타데이터를 저장합니다. 기존 OpenCodex 계정은 유지되며, 취소되거나 실패하면 이전 `kiro-cli` 세션을 복원합니다. |
8486
| `google-antigravity` | `google` | `https://daily-cloudcode-pa.googleapis.com` | Google OAuth를 Cloud Code Assist wire로 사용합니다. |
8587
| `cursor` | `cursor` | `https://api2.cursor.sh` | 실험적 PKCE 로그인, HTTP/2 전송, 계정별 모델 탐색을 지원합니다. |
88+
| `github-copilot` | `openai-chat` | `https://api.githubcopilot.com` | 실험적. GitHub 디바이스 플로우 + `copilot_internal` 교환(VS Code OAuth 클라이언트). 활성 Copilot 구독 필요; 공식 서드파티 API가 아닙니다. |
8689

8790
정식 Kimi Coding Plan 프리셋(`kimi` 계정 로그인과 `kimi-code` API key)의 경우, opencodex는
8891
호출자가 제공한 안정적인 `prompt_cache_key`만 Chat Completions 요청으로 전달하며 직접 생성하지

docs-site/src/content/docs/zh-cn/guides/providers.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ ChatGPT 透传目录也会加入 GPT-5.6 Sol/Terra/Luna 的裸 slug(`gpt-5.6-s
5555

5656
## 2. 账号登录(OAuth)
5757

58-
有六个提供商预设使用 OAuth 登录。opencodex 会把凭据存入 `~/.opencodex/auth.json` 并自动刷新。
59-
登录 CLI 也接受 `chatgpt`:它会获取一份 ChatGPT 凭据,并创建一个 `forward` 模式的提供商条目。
58+
有六个提供商预设使用 OAuth 登录,另加通过实验性非官方设备流桥接的 GitHub Copilot。
59+
opencodex 会把凭据存入 `~/.opencodex/auth.json` 并自动刷新。登录 CLI 也接受 `chatgpt`
60+
它会获取一份 ChatGPT 凭据,并创建一个 `forward` 模式的提供商条目。
6061

6162
```bash
6263
ocx login xai # xAI Grok
@@ -65,6 +66,7 @@ ocx login kimi # Moonshot Kimi
6566
ocx login kiro # 导入 kiro-cli 凭据(支持令牌回退)
6667
ocx login google-antigravity
6768
ocx login cursor # 独立的 Cursor PKCE 登录
69+
ocx login github-copilot # GitHub 设备流 → Copilot 令牌(Copilot Pro/Business)
6870
ocx login chatgpt # 独立的 ChatGPT OAuth 登录
6971
ocx logout <provider>
7072
```
@@ -77,6 +79,7 @@ ocx logout <provider>
7779
| `kiro` | `kiro` | `https://runtime.us-east-1.kiro.dev` | 首次登录会导入已安装并已登录的 Kiro CLI 会话(Unix 使用 `curl -fsSL https://cli.kiro.dev/install | bash`;Windows PowerShell 使用 `irm 'https://cli.kiro.dev/install.ps1' | iex`;然后运行 `kiro-cli login`)。**添加账户**会先退出 `kiro-cli`,再启动新的浏览器登录,从而切换 `kiro-cli` 自身使用的账户,并保存账户范围的配置文件元数据。现有 OpenCodex 账户会保留;如果取消或失败,则恢复之前的 `kiro-cli` 会话。 |
7880
| `google-antigravity` | `google` | `https://daily-cloudcode-pa.googleapis.com` | 通过 Cloud Code Assist 协议使用 Google OAuth。 |
7981
| `cursor` | `cursor` | `https://api2.cursor.sh` | 实验性 PKCE 登录、HTTP/2 传输和按账号筛选的模型发现。 |
82+
| `github-copilot` | `openai-chat` | `https://api.githubcopilot.com` | 实验性。GitHub 设备流 + `copilot_internal` 交换(VS Code OAuth 客户端)。需要有效的 Copilot 订阅;不是官方第三方 API。 |
8083

8184
对于规范的 Kimi Coding Plan 预设(`kimi` 账号登录和 `kimi-code` API key),opencodex
8285
只会把调用方提供的稳定 `prompt_cache_key` 转发到 Chat Completions 请求,绝不自行生成。Kimi

tests/server-auth.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,8 @@ describe("server local API auth", () => {
18971897
}
18981898
});
18991899

1900+
// Stall past BOUNDED_BODY_TIMEOUT_MS (5s). The old 7s test budget left ~1.9s of
1901+
// headroom and timed out on windows-latest under runner contention.
19001902
test("stalled 400 body timeout never authorizes a pool retry", async () => {
19011903
const prefix = unsupportedModelBody().slice(0, -1);
19021904
const suffix = "}";
@@ -1919,7 +1921,7 @@ describe("server local API auth", () => {
19191921
} finally {
19201922
await stopPoolRetryHarness(harness);
19211923
}
1922-
}, 7_000);
1924+
}, { timeout: SERVER_BUDGET_MS });
19231925

19241926
test("aborted 400 inspection never authorizes a pool retry", async () => {
19251927
let releaseDispatch!: () => void;

0 commit comments

Comments
 (0)