Skip to content

Commit b4d6376

Browse files
committed
Merge origin/dev into codex/prr-l4 and refresh combined CLI surfaces
2 parents e5199af + 7a42860 commit b4d6376

360 files changed

Lines changed: 13197 additions & 2313 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎desktop/src-tauri/src/lib.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ pub fn run() {
374374
.inner_size(1100.0, 720.0)
375375
.visible(false)
376376
.user_agent(&window::webview_user_agent())
377+
// Keep dashboard HTML drag/drop (including chat panes) in the webview;
378+
// Tauri's native drop handler intercepts it on Windows.
379+
.disable_drag_drop_handler()
377380
// Cmd on macOS, Ctrl elsewhere, with + / - / 0. WebView2 zooms natively; on
378381
// macOS and Linux Tauri injects a keydown polyfill whose one IPC call is granted
379382
// to the loopback dashboard by `capabilities/dashboard-zoom.json`.

‎docs-site/src/content/docs/fr/guides/claude-code.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,24 +169,24 @@ unknown signifie qu’opencodex ne peut pas déterminer si les réglages pointen
169169

170170
### Mode picker : modèles opencodex dans le sélecteur Code first-party
171171

172-
Le mode picker fait partie du mode first-party. Sur macOS, il est activé par défaut lorsque first-party
172+
Le mode picker fait partie du mode first-party. Sur macOS et Windows, il est activé par défaut lorsque first-party
173173
est sélectionné, sauf si `claudeCode.intercept.picker: false` est défini. Il modifie le sélecteur de
174174
modèles de l'onglet Code de Desktop first-party pour y afficher les modèles opencodex disponibles par
175175
leur nom. Lors de la première activation, macOS peut demander l'autorisation d'une autorité de certification
176-
locale dans le trousseau de connexion. Cette autorité est limitée à `claude.ai` et à ses sous-domaines.
176+
locale dans le trousseau de connexion, et Windows dans le magasin racine de l'utilisateur actuel. Cette autorité est limitée à `claude.ai` et à ses sous-domaines.
177177
Son identité de signature exportable est protégée par le magasin d'identifiants du système et réutilisée
178178
lors des redémarrages ordinaires. Aucune clé de signature picker en clair n'est enregistrée dans le
179179
répertoire de configuration OpenCodex. La validation complète de l'autorité contrainte et la vérification
180-
de la confiance du système restent obligatoires. Avec la même identité approuvée et un magasin accessible,
181-
un redémarrage n'ajoute ni ne supprime de réglages de confiance des certificats. La restauration au démarrage
182-
n'installe jamais la confiance : si elle manque, est révoquée ou inconnue, le picker reste en attente.
183-
Exécutez explicitement `ocx claude desktop picker on` ou `ocx claude desktop picker trust` pour l'accorder.
180+
de la confiance du système restent obligatoires, avec sur Windows la correspondance exacte de l'empreinte et une feuille vérifiée. Avec la même identité approuvée et un magasin accessible,
181+
un redémarrage n'ajoute ni ne supprime de réglages de confiance des certificats macOS. La restauration au démarrage
182+
ou la vérification d'état n'installe jamais la confiance : si elle manque, est révoquée ou inconnue, le picker reste en attente.
183+
Exécutez explicitement `ocx claude desktop picker on` ou `ocx claude desktop picker trust` pour l'accorder, y compris la confirmation Windows si nécessaire.
184184

185185
Une migration unique depuis une ancienne identité peut demander votre consentement pour supprimer sa
186186
confiance. Si ce nettoyage échoue, le picker reste indisponible et le profil appliqué utilise un relais
187187
sans déchiffrement jusqu'à sa réussite. macOS peut aussi demander de déverrouiller le trousseau ou
188-
d'autoriser l'accès d'une application aux identifiants, y compris après un redémarrage ou une mise à jour.
189-
Le picker reste non pris en charge sous Windows et Linux : aucun travail de CA, de magasin d'identifiants
188+
d'autoriser l'accès d'une application aux identifiants, y compris après un redémarrage ou une mise à jour. Sur Windows, `on` ou `trust` explicite peut afficher une confirmation d'ajout de la racine.
189+
Le picker reste non pris en charge sous Linux : aucun travail de CA, de magasin d'identifiants
190190
ou de proxy picker n'y démarre. L'interception Claude principale reste disponible ; ses fichiers CA locaux
191191
sont protégés par des vérifications du propriétaire, des liens symboliques, des permissions et des ACL Windows.
192192

‎docs-site/src/content/docs/fr/guides/combos.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ flux de travail des tâches.
277277
### Tableau de bord
278278

279279
Ouvrez le tableau de bord local et choisissez **Modèles → Combos**. L'espace de travail crée, modifie, renomme et supprime
280-
combos, et son sélecteur de cible exclut les modèles désactivés et les combos imbriqués.
280+
les combos. Les sélecteurs de modèles incluent les modèles masqués : la visibilité ne concerne que les listes externes, pas la sélection interne des combos. Sélectionner un modèle masqué ne le rend pas visible. Le sélecteur de cible exclut toujours les fournisseurs désactivés, les combos imbriqués et les fournisseurs JEV réservés au service de décision.
281281

282282
Chaque cible affiche aussi un badge de quota en direct : **Disponible**, **Quota épuisé** ou **Quota inconnu**.
283283
L’éditeur bloque Enregistrer et Créer pour une raison de quota uniquement lorsque chaque cible utilisable dispose d’une confirmation serveur encore valide indiquant que la limite d’inférence liée à ses identifiants configurés est épuisée. Les quotas de compte, de modèle, de recherche et de MCP fournis uniquement à titre d’affichage, ainsi que les informations de routage absentes ou expirées, ne déclenchent pas ce blocage. Le blocage expire à la réinitialisation applicable ou à l’expiration de la validité des données et fait l’objet d’une nouvelle vérification lorsque la page devient active ou visible ; Actualiser recharge à la fois les données des combos et les quotas.

‎docs-site/src/content/docs/fr/reference/cli/lifecycle.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Il s'agit d'un réétiquetage large et destructif : chaque fil contenant un mess
6868

6969
### `ocx recover-history --ocx-compaction <thread-id> --yes`
7070

71-
Réparez l'historique d'une tâche compactée par un fournisseur routé avant de la reprendre avec Codex natif. La commande sélectionne exactement une tâche par UUID, enregistre d'abord une sauvegarde privée octet par octet, puis convertit uniquement l'état de compaction `ocx1:` propre à OpenCodeX en résumé ordinaire relisible par Codex natif. Le contenu chiffré natif et les autres tâches restent inchangés. Fermez la tâche sélectionnée avant d'exécuter la commande ; toute modification simultanée du rollout interrompt la récupération sans remplacer le fichier.
71+
Réparez l'historique d'une tâche compactée par un fournisseur routé avant de la reprendre avec Codex natif. La commande sélectionne exactement une tâche par UUID, enregistre d'abord une sauvegarde privée octet par octet, puis convertit uniquement l'état de compaction `ocx1:`/`ocx2:` propre à OpenCodeX en résumé ordinaire relisible par Codex natif. Le contenu chiffré natif et les autres tâches restent inchangés. Fermez la tâche sélectionnée avant d'exécuter la commande ; toute modification simultanée du rollout interrompt la récupération sans remplacer le fichier.
7272

7373
### `ocx uninstall` · `ocx remove`
7474

‎docs-site/src/content/docs/guides/claude-code.md‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,13 @@ entries, is kept.
315315
Claude Desktop first-party routes its Code tab and subagents through OpenCodex. The standalone Claude Code CLI has a separate first-party switch. Both clients read the same `~/.claude/settings.json` proxy and CA settings: if only one switch is on, the other client still transits the local proxy, where TLS terminates, but its Messages requests relay to Anthropic unchanged. Other Anthropic paths relay unchanged and unrelated hosts remain blind tunnels. With the CLI switch on, the standalone `claude` also lists routed models in `/model`; see [Model picker in the CLI](#model-picker-in-the-cli).
316316

317317
:::note[Windows system proxy (Clash, v2rayN, corporate proxies)]
318-
When a Windows system proxy is on, Claude Desktop hands it to the Code tab as `HTTPS_PROXY`, and
318+
For picker-off installs or pending installs with no applied picker profile, a Windows system proxy
319+
is handed to the Code tab as `HTTPS_PROXY`, and
319320
that value takes precedence over the OpenCodex proxy in `~/.claude/settings.json`. The Code tab
320321
then goes around OpenCodex and routed models fail there, while the standalone CLI keeps working.
321-
Add `api.anthropic.com` to your proxy client's system-proxy bypass list (in Clash Verge,
322+
An applied selected picker profile uses Desktop's fixed egress proxy while it is available, even when
323+
missing trust leaves the picker pending and `claude.ai` relays blindly. System-proxy bypass advice
324+
applies when there is no selected available picker profile. Add `api.anthropic.com` to your proxy client's system-proxy bypass list (in Clash Verge,
322325
`system_proxy_bypass`), then fully quit and reopen Claude Desktop. `ocx doctor` reports this
323326
under "Claude Desktop first-party vs Windows system proxy". It cannot evaluate a PAC script or
324327
automatic proxy detection (WPAD, "Automatically detect settings"), so it reports those as unknown;
@@ -349,27 +352,27 @@ hub, so `ocx claude desktop apply` there uses the gateway profile.
349352

350353
### Picker mode: opencodex models in the first-party Code-tab picker
351354

352-
Picker mode is part of first-party mode. On macOS it is on by default when first-party is selected,
355+
Picker mode is part of first-party mode. On macOS and Windows it is on by default when first-party is selected,
353356
unless `claudeCode.intercept.picker: false` is set. It changes the first-party Desktop Code-tab picker
354357
so it lists available opencodex models by name. The first time it is enabled, macOS may ask you to
355-
trust a local certificate authority in the login keychain. That authority is constrained to `claude.ai`
358+
trust a local certificate authority in the login keychain, and Windows may ask you to trust it in the current-user Root store. That authority is constrained to `claude.ai`
356359
and its subdomains. OpenCodex protects its exportable signing identity in the OS credential store
357360
and reuses the same validated certificate and key across normal restarts. No plaintext picker signing
358361
key is stored in the OpenCodex config directory. The full constrained CA validation and OS trust
359-
verification still apply. With the same approved identity and an available credential store, restarting
360-
OpenCodex does not add or remove Certificate Trust Settings. Startup restore never installs trust:
362+
verification still apply, including the exact fingerprint with a verified leaf on Windows. With the same approved identity and an available credential store, restarting
363+
OpenCodex does not add or remove macOS Certificate Trust Settings. Restart and status never install trust:
361364
if trust is missing, revoked or unknown, the picker stays pending. Run `ocx claude desktop picker on`
362-
or `ocx claude desktop picker trust` explicitly to grant trust.
365+
or `ocx claude desktop picker trust` explicitly to grant trust, including the Windows confirmation when needed.
363366
Startup also attempts to remove a legacy on-disk picker signing key before checking whether
364367
interception is enabled. Cleanup is best-effort and does not enable interception or block startup.
365368

366369
One-time migration from an older picker identity may require consent to remove its previous trust.
367370
If cleanup cannot finish, the picker stays unavailable and the applied profile uses a blind relay
368371
until cleanup succeeds; `ocx claude desktop picker status` reports that state. macOS may separately
369372
ask you to unlock the keychain or approve an application's access to stored credentials. These native
370-
access prompts can still occur on restart or upgrade.
373+
access prompts can still occur on restart or upgrade. On Windows, explicit `on` or `trust` may show a confirmation to add the root.
371374

372-
Picker mode remains unsupported on Windows and Linux: OpenCodex starts no picker CA, credential-store
375+
Picker mode remains unsupported on Linux: OpenCodex starts no picker CA, credential-store
373376
or proxy work there. The main Claude intercept remains available with ownership, symlink, file-permission
374377
and Windows ACL checks protecting its local CA files.
375378

@@ -957,7 +960,7 @@ The proxy translates every Anthropic Messages API request into the Codex Respons
957960
| User `tool_result` | `function_call_output` (`is_error` → `[tool error]` prefix) |
958961
| `tool_reference` in a tool result | Text `Tool loaded: <tool_name>` in the paired result; preserves loaded-tool names without adding declarations or enabling translated server-side deferral |
959962
| `thinking` / `redacted_thinking` replay | `reasoning` items with bounded `ocxr1` envelopes for signatures and redacted payloads |
960-
| Function tools | `{type: "function"}` (`web_search*` → `{type: "web_search"}`) |
963+
| Function tools | `{type: "function"}` (`web_search*` → `{type: "web_search"}`). On a route to `api.anthropic.com`, the typed `web_search_*` and `web_fetch_*` declarations are also sent to Anthropic as declared and run server-side, unless the web-search sidecar supplies `web_search` itself. Each search or fetch comes back to the client as its `server_tool_use` block and its `web_search_tool_result` or `web_fetch_tool_result` |
961964
| `tool_choice` | `auto`→`auto`, `none`→`none`, `any`→`required`, named function→`{type:"function",name}`, hosted WebSearch/web_search→`{type:"web_search"}` |
962965
| `max_tokens` | `max_output_tokens` |
963966
| `stop_sequences` | `stop` |

‎docs-site/src/content/docs/guides/codex-integration.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,10 @@ other providers keep their defaults.
464464
Authenticated loopback routing normally keeps Codex on its built-in `openai` provider identity.
465465
That preserves native thread identity, but it also makes Codex request native remote compaction.
466466
When a routed provider cannot return a native compaction blob, OpenCodeX stores the summary in its
467-
own `ocx1:` envelope. Native ChatGPT cannot verify that envelope if OpenCodeX is later removed from
467+
own `ocx1:`/`ocx2:` envelope. Native ChatGPT cannot verify that envelope if OpenCodeX is later removed from
468468
the request path.
469469

470-
On an authenticated loopback route, enable client-side compaction to keep V2 sub-agent routing while preventing new `ocx1:` compaction summaries. Non-loopback and API-key routes retain their existing provider and authentication behavior:
470+
On an authenticated loopback route, enable client-side compaction to keep V2 sub-agent routing while preventing new `ocx1:`/`ocx2:` compaction summaries. Non-loopback and API-key routes retain their existing provider and authentication behavior:
471471

472472
```bash
473473
ocx system settings --client-compaction on # or "codexClientCompaction": true in config.json
@@ -495,7 +495,7 @@ selected provider. V2 sub-agent requests keep their existing provider selection
495495
accounting. Client-side compaction does not change plaintext delivery, encrypted task passthrough
496496
through `allowEncryptedV2AgentTasks`, or configured recovery and fallback behavior.
497497

498-
This preference affects future compactions only, and it rewrites no existing `ocx1:` payload in
498+
This preference affects future compactions only, and it rewrites no existing `ocx1:`/`ocx2:` payload in
499499
any configuration, so use the explicit history recovery workflow for a thread that needs one.
500500

501501
Whether resume-history metadata is re-tagged depends on which form the injection takes. On its

‎docs-site/src/content/docs/guides/combos.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,9 @@ task workflow.
769769
### Dashboard
770770

771771
Open the local dashboard and choose **Models → Combos**. The workspace creates, edits, renames, and removes
772-
combos, and its target picker excludes disabled models, nested combos, and the credential-only JEV
773-
provider. **Create JEV Auto** opens the same Combo editor with an editable decision target template;
772+
combos. Its model selectors include hidden models: catalog visibility only controls external model
773+
lists, not internal Combo selection, and selecting a hidden model does not make it visible externally.
774+
The target picker still excludes disabled providers, nested combos, and the credential-only JEV provider. **Create JEV Auto** opens the same Combo editor with an editable decision target template;
774775
an existing `jev-auto` id or alias is reported instead of creating a duplicate. A JEV Combo also shows
775776
**Decision service** (TypeSafe JEV or a configured `jev-decision` provider) and **Decision timeout
776777
(ms)**, and the Combos overview lists each JEV Combo's decision service, endpoint, and timeout.
@@ -873,7 +874,10 @@ running opencodex instance that receives model requests.
873874

874875
Every target is currently ineligible: for example, its provider is disabled, it is cooling down,
875876
it has already been attempted for this request, or an encrypted v2 task excludes it. Check target
876-
provider state and recent upstream errors. For cooldowns, follow an observed `Retry-After` value first;
877+
provider state and recent upstream errors. When no target was attempted, the error message lists
878+
why each target was skipped, for example
879+
`No available targets for combo: fast (openai/gpt-6: quota exhausted; anthropic/claude-opus-5-5: cooldown 42s)`.
880+
For cooldowns, follow an observed `Retry-After` value first;
877881
Codex reset headers also take precedence over `cooldownMs`.
878882
If neither upstream signal is usable, the configured `cooldownMs` applies, or the upstream fallback applies
879883
when it is unset (5 seconds for request-rate codes `1302`/`1305`, 10 minutes for a spent usage

0 commit comments

Comments
 (0)