You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 75ec6ed
Browse filesBrowse the repository at this point in the historyBrowse files
feat(devin): fix the request encoding that made every chat turn fail
The cloud provider could not complete a single turn on any account. A paid
account settled what it was not: all 229 catalogue models came back enabled and
GetChatMessage failed exactly as it had on the free tier, so entitlement was
never the cause.
Importing the working reference's zero-dependency builder and sending its request
through our own transport returned HTTP 200 and a real stream, which put the
fault in our encoder rather than the wire. Diffing the two encoded messages field
by field left one difference: in CompletionConfiguration, #2 is the output cap
and #3 is the context window, and we had them swapped. A caller asking for 32
output tokens wrote 32 into the context-window field, and Cognition answered with
an opaque invalid_argument. Fields #6 and #11 are not part of the message at all.
A temperature of exactly 0 is refused with that same opaque error. Deterministic
output is the ordinary case for a coding client, so it is clamped to the smallest
accepted value rather than silently replaced with the service default.
Three transport facts had to hold together, which is why testing them one at a
time looked fruitless: the credential is the session token doubled and dash-joined
in an Authorization: Basic header while the body keeps one copy, the request
envelope is uncompressed, and Metadata #31 carries a 732-character fingerprint
whose length the service checks. The metadata identity is its own seven-field
shape rather than the desktop client's telemetry set, the request carries the
verified tag set, and the short-lived user_jwt is now opt-in because the chat path
does not need it.
Verified live on a paid account: six combinations, two hosts by three models, all
returning PONG with a finish reason and usage. A regression test pins the tag map
so the swap cannot return silently.
Co-authored-by: Sayo <[email protected]>
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/fr/guides/providers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ ocx logout <provider>
126
126
|`kiro`|`kiro`|`https://runtime.us-east-1.kiro.dev`| La connexion initiale importe la session de l'installation locale de `kiro-cli`, déjà authentifiée (sous Unix, installez avec `curl -fsSL https://cli.kiro.dev/install`|`bash`; sous Windows PowerShell, utilisez `irm 'https://cli.kiro.dev/install.ps1'`|`iex`; puis exécutez `kiro-cli login`). **Ajouter un compte** déconnecte `kiro-cli`, lance une nouvelle connexion dans le navigateur qui change le compte utilisé par `kiro-cli`, puis enregistre les métadonnées propres au profil. Les comptes OpenCodex existants sont préservés ; une annulation ou un échec restaure la session `kiro-cli` précédente. |
127
127
|`google-antigravity`|`google`|`https://daily-cloudcode-pa.googleapis.com`| Google OAuth avec le protocole Cloud Code Assist. La découverte en direct utilise le point de terminaison CCA authentifié `v1internal:fetchAvailableModels` et publie les modèles d'agent accessibles au compte connecté ; le catalogue maintenu reste la solution de repli. |
128
128
|`cursor`|`cursor`|`https://api2.cursor.sh`| Connexion PKCE expérimentale, transport HTTP/2 en direct et découverte de modèles filtrés par compte. |
129
-
|`devin`|`devin`|`https://server.codeium.com`|**La conversation n'est pas vérifiée : sur un compte gratuit réellement testé, la connexion et la découverte des modèles fonctionnent, mais chaque `GetChatMessage` renvoie un `invalid_argument` opaque et aucun tour n'aboutit. Les comptes payants n'ont pas été testés. Utilisez `devin-cli` pour un chemin Devin qui termine ses tours.**Passerelle Cognition/Devin non officielle et expérimentale. La connexion ouvre l'authentification Auth0 dans le navigateur, puis échange le jeton via `RegisterUser` contre une clé d'API durable. Les modèles sont découverts par compte avec `GetCascadeModelConfigs` ; le streaming passe uniquement par `runTurn` sur Connect-RPC. Absente du préréglage du tableau de bord par défaut. |
129
+
|`devin`|`devin`|`https://server.codeium.com`| Passerelle Cognition/Devin non officielle et expérimentale. La connexion ouvre l'authentification Auth0 dans le navigateur, puis échange le jeton via `RegisterUser` contre une clé d'API durable. Les modèles sont découverts par compte avec `GetCascadeModelConfigs` ; le streaming passe uniquement par `runTurn` sur Connect-RPC. Absente du préréglage du tableau de bord par défaut. |
130
130
|`devin-cli`|`devin-cli`|`https://cli.devin.ai`| Pilote la CLI Devin installée localement via l'Agent Client Protocol (`devin acp`, JSON-RPC sur stdio). La CLI détient ses propres identifiants issus de `devin auth login`, donc opencodex ne stocke aucune clé. `OPENCODEX_DEVIN_CLI_BIN` désigne l'exécutable ; pour autoriser la CLI à lire et écrire des fichiers, il faut définir explicitement `OPENCODEX_DEVIN_CLI_ALLOW_TOOLS=1`, le refus étant la valeur par défaut. |
131
131
|`github-copilot`|`openai-chat`|`https://api.githubcopilot.com`| Expérimental. Flux d'appareil GitHub et échange `copilot_internal` (client OAuth de VS Code). Nécessite un abonnement Copilot actif ; il ne s'agit pas d'une API tierce officielle. |
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/guides/providers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ ocx logout <provider>
192
192
|`google-antigravity`|`google`|`https://daily-cloudcode-pa.googleapis.com`| Google OAuth over the Cloud Code Assist wire. Live discovery uses CCA's authenticated `v1internal:fetchAvailableModels` endpoint and publishes the agent models available to the signed-in account; the maintained catalog remains the fallback. |
193
193
|`cursor`|`cursor`|`https://api2.cursor.sh`| Experimental PKCE login, live HTTP/2 transport with an opt-in HTTP/1.1 compatibility path, and account-filtered model discovery. |
194
194
|`orcarouter-oauth`|`openai-chat`|`https://api.orcarouter.ai/v1`| Browser consent and key exchange use `https://www.orcarouter.ai` with S256 PKCE. The returned user-owned `sk-orca-…` API key is stored in the existing credential store and reused until revoked. |
195
-
|`devin`|`devin`|`https://server.codeium.com`| Experimental unofficial Cognition/Devin bridge. **Chat is unverified: on a measured free account, login and model discovery succeed but every `GetChatMessage` returns an opaque `invalid_argument`, so a turn does not complete. Paid-account chat has not been tested.**Login opens Auth0 browser sign-in, then exchanges the token via Cognition's `RegisterUser` for a long-lived API key; models are discovered per account with `GetCascadeModelConfigs`. Not shown in the dashboard preset by default. Use `devin-cli` for a Devin path that completes turns. |
195
+
|`devin`|`devin`|`https://server.codeium.com`| Experimental unofficial Cognition/Devin bridge. Login opens Auth0 browser sign-in, then exchanges the token via Cognition's `RegisterUser` for a long-lived API key; models are discovered per account with `GetCascadeModelConfigs`. Not shown in the dashboard preset by default. Chat, tool calls and usage are verified against a live paid account. |
196
196
|`devin-cli`|`devin-cli`|`https://cli.devin.ai`| Drives the locally installed Devin CLI over the Agent Client Protocol (`devin acp`, newline-delimited JSON-RPC on stdio). The CLI holds its own credentials from `devin auth login`, so opencodex stores no key for it. Point `OPENCODEX_DEVIN_CLI_BIN` at a specific build; letting the CLI read and write files requires setting `OPENCODEX_DEVIN_CLI_ALLOW_TOOLS=1` explicitly, because the default is to refuse. |
197
197
|`github-copilot`|`openai-chat`|`https://api.githubcopilot.com`| Experimental. GitHub device flow + `copilot_internal` exchange (VS Code OAuth client). Requires an active Copilot subscription; not an official third-party API. |
Copy file name to clipboardExpand all lines: docs-site/src/content/docs/ko/guides/providers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ ocx logout <provider>
113
113
|`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` 세션을 복원합니다. |
114
114
|`google-antigravity`|`google`|`https://daily-cloudcode-pa.googleapis.com`| Google OAuth를 Cloud Code Assist wire로 사용합니다. 실시간 탐색은 인증된 CCA `v1internal:fetchAvailableModels` 엔드포인트를 사용하며 로그인한 계정에서 사용할 수 있는 agent 모델만 게시합니다. 유지 관리되는 카탈로그는 폴백으로 남습니다. |
|`devin`|`devin`|`https://server.codeium.com`|**대화는 미검증입니다. 실제 무료 계정에서 로그인과 모델 조회는 되지만 `GetChatMessage`가 매번 불투명한 `invalid_argument`를 돌려주어 턴이 끝나지 않습니다. 유료 계정은 확인하지 못했습니다. 턴이 완료되는 Devin 경로가 필요하면 `devin-cli`를 쓰세요.**실험적인 비공식 Cognition/Devin 브리지. 로그인은 Auth0 브라우저 사인인을 열고, 받은 토큰을 `RegisterUser`로 교환해 장기 API 키를 얻습니다. 모델 목록은 `GetCascadeModelConfigs`로 계정마다 조회하며, 스트리밍은 Connect-RPC 위에서 `runTurn` 경로만 씁니다. 대시보드 프리셋에는 기본으로 없으니 직접 추가하세요. |
116
+
|`devin`|`devin`|`https://server.codeium.com`| 실험적인 비공식 Cognition/Devin 브리지. 로그인은 Auth0 브라우저 사인인을 열고, 받은 토큰을 `RegisterUser`로 교환해 장기 API 키를 얻습니다. 모델 목록은 `GetCascadeModelConfigs`로 계정마다 조회하며, 스트리밍은 Connect-RPC 위에서 `runTurn` 경로만 씁니다. 대시보드 프리셋에는 기본으로 없으니 직접 추가하세요. |
117
117
|`devin-cli`|`devin-cli`|`https://cli.devin.ai`| 로컬에 설치된 Devin CLI를 Agent Client Protocol(`devin acp`, stdio 위 JSON-RPC)로 구동합니다. CLI가 `devin auth login` 자격증명을 직접 들고 있어 opencodex는 키를 저장하지 않습니다. 실행 파일은 `OPENCODEX_DEVIN_CLI_BIN`으로 지정할 수 있고, CLI가 파일을 읽고 쓰도록 허용하려면 `OPENCODEX_DEVIN_CLI_ALLOW_TOOLS=1`을 명시해야 합니다. 기본값은 거부입니다. |
0 commit comments