diff --git a/.github/scripts/release-evidence-policy.json b/.github/scripts/release-evidence-policy.json index 8f1590d45db..c526b94464d 100644 --- a/.github/scripts/release-evidence-policy.json +++ b/.github/scripts/release-evidence-policy.json @@ -1044,5 +1044,73 @@ "desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c", "desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d" } + }, + { + "kind": "ci", + "version": 1, + "windowsShards": 14, + "files": { + ".github/workflows/ci.yml": "cdfc4ea31e35aba6a44123f04eba1fba0cee5791", + ".github/actions/setup-project-bun/action.yml": "cf28f6f9d4385d69784f4e3610914f6952ce789d", + ".github/scripts/release-evidence.cjs": "ace2b9006b2d58ef84ed0996b4e179ff4be15900", + ".github/scripts/release-evidence.test.cjs": "9cc686390e5c37d8e693b98d049e8b505d0273cf", + "scripts/ci/select-test-lane.sh": "b25836cb55f962d1ffd9e68ed00f45f8b45becc8", + "scripts/ci/windows-sensitive-diff.sh": "03495f256c671aff57e750febffe19ca7face6a1", + "scripts/ci/run-bun-test-batches.sh": "59b1783aadf8109c0fa2d37047ff0d90300aa267", + "scripts/ci/bun-crash-signatures.sh": "d34662ddd07864d97bed909135095db33fe42c9e", + "scripts/ci/bun-install-frozen.sh": "e6d7bc3aec044e12297c7c4c04015a33df0eb22b", + "scripts/ci/docker-smoke.ts": "4eea7637d8658156feeaa356c0c3086c00d75fa5", + "scripts/ci/test-durations.tsv": "a07f90e6098082e1452ea5cc075c801271321eca", + "scripts/ci/test-durations.windows.tsv": "523cef871c3e17fc0344c98fb15eef79feb04c84", + "scripts/test.ts": "c18e561ba35cb72ff83d8e592146dcea8bd1b27f", + "scripts/lib/test-runner-bun.ts": "8763806104a851dbdefeea8cffe8d7dd8d1c8da1", + "scripts/test-temp-lock.ts": "ee83fb254b728de119028f52b9894bf52d7aea15", + "scripts/git-repository-env.ts": "267950490fffb4c48d9adb90bdcf5a873733b324", + "scripts/ci/run-changed-tests.sh": "9a54d3a5db9849bcbe0dd766954a840185419fa5", + "scripts/keyring-smoke.ts": "cd3be07ad57796172696dfa053ea1fb129f29365", + "scripts/privacy-scan.ts": "86314e891b45e49739b94c76cddd9e4cc2d4340f", + "scripts/structure-ssot.ts": "5b2d2918dae877fddfb16cdba6e89f0d10e82298", + "scripts/generate-ocx-skill-surface.ts": "155e866656ba2d71e8fd48adda857451caf16322", + "desktop/scripts/prepare-sidecar.ts": "20f7eec61f73635ea681e25f13dd850b62bb41e2", + "desktop/scripts/build-widget.sh": "38e0eb9d713804b603aa75c32383aa18ef01d06c", + "desktop/scripts/verify-macos-runtime.sh": "43f1a31375c6f6fe7dcafb9d96c231b98d1f6ba4", + "desktop/scripts/verify-linux-sidecar.sh": "c502bb5c8ba8346c722a8f5274f2274bb325a934", + "desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c", + "desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d" + } + }, + { + "kind": "ci", + "version": 1, + "windowsShards": 14, + "files": { + ".github/workflows/ci.yml": "cdfc4ea31e35aba6a44123f04eba1fba0cee5791", + ".github/actions/setup-project-bun/action.yml": "cf28f6f9d4385d69784f4e3610914f6952ce789d", + ".github/scripts/release-evidence.cjs": "ace2b9006b2d58ef84ed0996b4e179ff4be15900", + ".github/scripts/release-evidence.test.cjs": "9cc686390e5c37d8e693b98d049e8b505d0273cf", + "scripts/ci/select-test-lane.sh": "b25836cb55f962d1ffd9e68ed00f45f8b45becc8", + "scripts/ci/windows-sensitive-diff.sh": "03495f256c671aff57e750febffe19ca7face6a1", + "scripts/ci/run-bun-test-batches.sh": "59b1783aadf8109c0fa2d37047ff0d90300aa267", + "scripts/ci/bun-crash-signatures.sh": "d34662ddd07864d97bed909135095db33fe42c9e", + "scripts/ci/bun-install-frozen.sh": "e6d7bc3aec044e12297c7c4c04015a33df0eb22b", + "scripts/ci/docker-smoke.ts": "4eea7637d8658156feeaa356c0c3086c00d75fa5", + "scripts/ci/test-durations.tsv": "a07f90e6098082e1452ea5cc075c801271321eca", + "scripts/ci/test-durations.windows.tsv": "523cef871c3e17fc0344c98fb15eef79feb04c84", + "scripts/test.ts": "c18e561ba35cb72ff83d8e592146dcea8bd1b27f", + "scripts/lib/test-runner-bun.ts": "8763806104a851dbdefeea8cffe8d7dd8d1c8da1", + "scripts/test-temp-lock.ts": "ee83fb254b728de119028f52b9894bf52d7aea15", + "scripts/git-repository-env.ts": "267950490fffb4c48d9adb90bdcf5a873733b324", + "scripts/ci/run-changed-tests.sh": "9a54d3a5db9849bcbe0dd766954a840185419fa5", + "scripts/keyring-smoke.ts": "cd3be07ad57796172696dfa053ea1fb129f29365", + "scripts/privacy-scan.ts": "86314e891b45e49739b94c76cddd9e4cc2d4340f", + "scripts/structure-ssot.ts": "5b2d2918dae877fddfb16cdba6e89f0d10e82298", + "scripts/generate-ocx-skill-surface.ts": "653a8ed1b58d653b909cbf87e9358615d9ae8150", + "desktop/scripts/prepare-sidecar.ts": "20f7eec61f73635ea681e25f13dd850b62bb41e2", + "desktop/scripts/build-widget.sh": "38e0eb9d713804b603aa75c32383aa18ef01d06c", + "desktop/scripts/verify-macos-runtime.sh": "43f1a31375c6f6fe7dcafb9d96c231b98d1f6ba4", + "desktop/scripts/verify-linux-sidecar.sh": "c502bb5c8ba8346c722a8f5274f2274bb325a934", + "desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c", + "desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d" + } } ] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ae44e193c6..cdfc4ea31e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1113,7 +1113,8 @@ jobs: # setup that projects ~33.6 against the 30-minute bound. Fourteen shards put test # work at ~19.6 minutes and the same projection at ~26.9, the margin chosen for # eleven. Pay for three extra setups, keep the 30-minute job bound and all tests. - timeout-minutes: 30 + # Raised to 40 as #8944 did for Linux: 14/14 hit 30 at batch 39/46 (run 44898495822). + timeout-minutes: 40 strategy: fail-fast: false matrix: diff --git a/.gitignore b/.gitignore index b07c5979db3..ec63a4f047b 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,12 @@ devlog/**/security-advisory-draft* .omo/ **/.omo/ +# Bun's on-disk build cache. Bun writes it into whichever directory it runs in, and +# `git add -A` has swept two 59 MB copies of it into this history — see +# tests/ci-workflows/repo-hygiene.test.ts, which fails if any path here becomes +# tracked again. +*.bun-build + # Local development worktrees .worktrees/ diff --git a/desktop/src-tauri/Cargo.lock b/desktop/src-tauri/Cargo.lock index 8f767ec2dc5..f582c123104 100644 --- a/desktop/src-tauri/Cargo.lock +++ b/desktop/src-tauri/Cargo.lock @@ -2633,7 +2633,7 @@ dependencies = [ [[package]] name = "opencodex-desktop" -version = "2.100.6" +version = "2.100.8" dependencies = [ "base64 0.22.1", "dbus", diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml index 23aa73277f7..117951b1104 100644 --- a/desktop/src-tauri/Cargo.toml +++ b/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "opencodex-desktop" -version = "2.100.6" +version = "2.100.8" description = "OpenCodex desktop shell" authors = ["OpenCodex contributors"] license = "MIT" diff --git a/desktop/src-tauri/src/lib.rs b/desktop/src-tauri/src/lib.rs index 2b17ef86d54..5966f2fc594 100644 --- a/desktop/src-tauri/src/lib.rs +++ b/desktop/src-tauri/src/lib.rs @@ -291,11 +291,11 @@ async fn update_check( async fn update_install( window: tauri::WebviewWindow, app: tauri::AppHandle, -) -> Result { +) -> Result { window::require_update_page(&window)?; updater::install_pending(&app).await.map_err(|error| { - logging::log_once("updater install failed", &error); - "the update could not be installed; try again".to_owned() + error.log(); + error.into() }) } diff --git a/desktop/src-tauri/src/tray.rs b/desktop/src-tauri/src/tray.rs index ec76efdf4a7..e12f97f44fe 100644 --- a/desktop/src-tauri/src/tray.rs +++ b/desktop/src-tauri/src/tray.rs @@ -257,7 +257,7 @@ pub fn install(app: &AppHandle) -> tauri::Result<()> { let app = app.clone(); tauri::async_runtime::spawn(async move { if let Err(error) = updater::install_pending(&app).await { - crate::logging::log_once("updater install failed", &error); + error.log(); } }); } diff --git a/desktop/src-tauri/src/updater.rs b/desktop/src-tauri/src/updater.rs index cc02ae9e9fc..841576d97d5 100644 --- a/desktop/src-tauri/src/updater.rs +++ b/desktop/src-tauri/src/updater.rs @@ -288,7 +288,70 @@ pub fn page_status(app: &AppHandle) -> PageUpdateStatus { }) } -pub async fn install_pending(app: &AppHandle) -> Result { +#[derive(Debug, Serialize)] +#[serde(rename_all = "camelCase")] +pub struct InstallFailure { + message: String, + manual_download: bool, + #[serde(skip)] + diagnostic: Option, +} + +enum PackageStep { + Download, + Install, +} + +impl InstallFailure { + fn new(message: impl Into) -> Self { + Self { + message: message.into(), + manual_download: false, + diagnostic: None, + } + } + + fn package(step: PackageStep, error: tauri_plugin_updater::Error) -> Self { + use tauri_plugin_updater::Error; + let (message, manual_download) = match (step, &error) { + ( + _, + Error::Minisign(_) + | Error::Base64(_) + | Error::SignatureUtf8(_) + | Error::SignedVersionMismatch { .. } + | Error::MissingSignedVersion, + ) => ( + "The update package failed signature verification. Installation was blocked.", + false, + ), + (PackageStep::Download, Error::Network(_) | Error::Reqwest(_)) => { + ("The update package could not be downloaded.", true) + } + (PackageStep::Download, _) => { + ("The updater could not acquire the update package.", false) + } + (PackageStep::Install, _) => ( + "The platform installer could not install the verified update package.", + false, + ), + }; + Self { + message: message.into(), + manual_download, + diagnostic: Some(error.to_string()), + } + } + + pub fn log(&self) { + logging::log_once( + "updater install failed", + self.diagnostic.as_deref().unwrap_or(&self.message), + ); + } +} + +pub async fn install_pending(app: &AppHandle) -> Result { let state = app.state::(); let gate = app.state::(); match gate.claim_install( @@ -304,8 +367,10 @@ pub async fn install_pending(app: &AppHandle) -> Result().retain_phase("installing"), ) { InstallClaim::Claimed => {} - InstallClaim::Busy => return Err("an update is already installing".into()), - InstallClaim::NoPending => return Err("no update is ready to install".into()), + InstallClaim::Busy => return Err(InstallFailure::new("An update is already installing.")), + InstallClaim::NoPending => { + return Err(InstallFailure::new("No update is ready to install.")) + } } let pending = app.state::(); let update = pending @@ -319,7 +384,7 @@ pub async fn install_pending(app: &AppHandle) -> Result().retain_phase("current"); gate.queue_ui(UiProjection::Current); }); - return Err("no update is ready to install".into()); + return Err(InstallFailure::new("No update is ready to install.")); }; let version = update.version.clone(); let retry_update = update.clone(); @@ -385,14 +450,14 @@ pub async fn check(app: &AppHandle) -> Result, String> { .map_err(|error| error.to_string()) } -pub async fn install(app: &AppHandle, update: Update) -> Result<(), String> { +pub async fn install(app: &AppHandle, update: Update) -> Result<(), InstallFailure> { // Download and verify first, and separately from installing. The pinned updater checks the // release signature inside `download`, so these bytes are the ones the key signed; nothing has // been replaced yet, and a failure here costs only the download. let package = update .download(|_, _| {}, || {}) .await - .map_err(|error| error.to_string())?; + .map_err(|error| InstallFailure::package(PackageStep::Download, error))?; // Then stop the runtime, and confirm it stopped, *before* anything is replaced. Asking for the // restart after `install` is the shape that does not work: the pinned Windows installer hands off @@ -404,17 +469,17 @@ pub async fn install(app: &AppHandle, update: Update) -> Result<(), String> { // Not an ending after all: the app goes back to running, so a close hides again, Quit // works and Install can be retried. A drain somebody else owns is left alone. recover_after_failed_install(app); - return Err(format!( - "the update was downloaded but not installed: {}", + return Err(InstallFailure::new(format!( + "The update was downloaded and verified, but {}. Installation has not started.", readiness.describe() - )); + ))); } if let Err(error) = crate::process_spawn::with_spawn(|| update.install(package)) { // The installer returned a failure. The runtime was stopped for an install that did not // happen, so the app brings one back instead of sitting drained. recover_after_failed_install(app); - return Err(error.to_string()); + return Err(InstallFailure::package(PackageStep::Install, error)); } // Only reached where the installer returns. On Windows it does not. crate::exit::complete_restart(app) @@ -517,6 +582,45 @@ mod tests { use std::sync::{mpsc, Arc}; use tauri_utils::config::BundleType; + #[test] + fn install_failures_publish_only_the_stage_and_download_advice() { + use super::{InstallFailure, PackageStep}; + use tauri_plugin_updater::Error; + let private = "private-updater-detail"; + for (step, error, stage, manual) in [ + ( + PackageStep::Download, + Error::Network(private.into()), + "downloaded", + true, + ), + ( + PackageStep::Download, + Error::SignatureUtf8(private.into()), + "signature", + false, + ), + ( + PackageStep::Install, + Error::MissingSignedVersion, + "signature", + false, + ), + ( + PackageStep::Install, + Error::Io(std::io::Error::other(private)), + "installer", + false, + ), + ] { + let value = serde_json::to_value(InstallFailure::package(step, error)).unwrap(); + assert!(value["message"].as_str().unwrap().contains(stage)); + assert_eq!(value["manualDownload"], manual); + assert_eq!(value.as_object().unwrap().len(), 2); + assert!(!value.to_string().contains(private)); + } + } + #[test] fn a_failed_install_restarts_the_runtime_only_when_the_drain_had_stopped_it() { let coordinator = ExitCoordinator::new(); diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index 1827e0ef2d0..fd0a6a26f34 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "OpenCodex", - "version": "2.100.6", + "version": "2.100.8", "identifier": "com.opencodex.desktop", "build": { "frontendDist": "../ui", diff --git a/desktop/ui/update.html b/desktop/ui/update.html index 39f552a24fd..ad67b18e4df 100644 --- a/desktop/ui/update.html +++ b/desktop/ui/update.html @@ -120,8 +120,9 @@

OpenCodex update

}); } function showError(cause, installFailed = false) { - const message = cause instanceof Error ? cause.message : String(cause); - const version = installFailed ? latest?.latestVersion : null; + const nativeFailure = installFailed && typeof cause?.message === "string" && typeof cause.manualDownload === "boolean"; + const message = nativeFailure || cause instanceof Error ? cause.message : String(cause); + const version = nativeFailure && cause.manualDownload ? latest?.latestVersion : null; const hint = version ? " If automatic download is slow or blocked by network, install the package manually from GitHub Releases (v" + version + ")." : ""; @@ -176,7 +177,14 @@

OpenCodex update

manual.hidden = true; state.textContent = "Installing update…"; try { render(await call("update_install")); } - catch (cause) { showError(cause, true); try { render(await call("update_status")); } catch (readError) { showError(readError, true); } } + catch (cause) { + showError(cause, true); + try { render(await call("update_status")); } + catch { + latest = null; + state.textContent = "Update status is unavailable. Check again before retrying."; + } + } finally { busy = false; if (latest) render(latest); else check.disabled = false; } }); back.addEventListener("click", async () => { diff --git a/devlog/_fin/260904_bug_stack_train/040_deferrals.md b/devlog/_fin/260904_bug_stack_train/040_deferrals.md index d1e6da02b2e..d2d8a4511cb 100644 --- a/devlog/_fin/260904_bug_stack_train/040_deferrals.md +++ b/devlog/_fin/260904_bug_stack_train/040_deferrals.md @@ -11,6 +11,12 @@ oversized or invalid request would be replayed to the next provider. Their own t encode the wrong expectation. #3348 functionally supersedes #3312 (30 shared files, near-identical source diffs; #3312 is additionally CONFLICTING/DIRTY). +**Superseded for 413 (2026-11-21):** the coordinator reversed the generic-413 half for +#9017 (#9021). A provider 413 now hops to the next untried target with cooldown "none", +because combo targets have different intake limits and the refusal precedes processing; +the proxy-owned 413s stay terminal and generic 410 is unchanged. See +`structure/runtime.md`. + At 2,248 lines across 34 files spanning failover, credential rotation, durable cooldown persistence, shutdown, and the core response path, this is not reviewable inside a mixed campaign. It needs its own split stack. diff --git a/devlog/_plan/261121_desktop_getting_started_hide/000_plan.md b/devlog/_plan/261121_desktop_getting_started_hide/000_plan.md new file mode 100644 index 00000000000..25d7c1afa33 --- /dev/null +++ b/devlog/_plan/261121_desktop_getting_started_hide/000_plan.md @@ -0,0 +1,71 @@ +# Desktop Getting started without Start at Login, and a hideable card + +Base: `origin/dev` @ `d61cca122d`. Branch `codex/fb2100-home-checklist`. Class C2 (GUI slice, visible). + +## Problem + +Inside the OpenCodex desktop app, Home -> Getting started reads "2 of 3 done" with step 3 +**Turn on Start at Login**. The desktop install and first run already turn Start at Login on +(`desktop/src-tauri/src/first_run.rs`), so the step is noise inside the app, and the card +cannot be put away once a person no longer needs it. + +## Decisions (maintainer, 2026-11-21) + +1. In the desktop shell (`isDesktopShell()` from `gui/src/lib/desktop-shell.ts`) Home and + the Set up hub drop the Start at Login step. Home reads "X of 2", the Set up hub "X of 3". + The browser dashboard keeps its existing step, including the Desktop wording it shows when + the app manages startup. +2. The Getting started card has a **Hide** control. The choice is stored in `localStorage` + (`ocx-home-getting-started-hidden`), so it is remembered per dashboard origin and browser + profile (the desktop webview has its own). Hiding removes only that card; Recent errors, + the stat tiles and the profile card stay. +3. The Set up hub shows "Getting started is hidden on Home" with **Show on Home** while the card + is hidden. Right after hiding, Home shows a one-line note with **Undo** in the card's place + for the rest of that visit, which also keeps keyboard focus from falling to the page body. + +Start at Login detection (`src/service/desktop-startup.ts`) and the Startup page are untouched. + +## Diff plan + +- ADD `gui/src/getting-started-visibility.ts`: storage key, `readGettingStartedHidden`, + `useGettingStartedHidden()` (`useSyncExternalStore` over `localStorage` plus the + `storage` event; a rejected write keeps the choice for the session). +- ADD `gui/src/i18n/getting-started-copy.ts`: `gettingStarted.*` rows, all 11 locales; + spread from `shellV2Copy()` so no locale catalog changes. +- EDIT `gui/src/pages/Home.tsx`: filter the autostart step in the desktop shell; Hide button, + hidden state and the Undo note; Recent errors spans the row when the card is hidden. +- EDIT `gui/src/pages/SetupHub.tsx`: filter the autostart step in the desktop shell; hidden + notice with Show on Home. +- ADD `gui/tests/home-getting-started.test.tsx` (screen-level, failing first). `gui/tests` is + outside the root test-layout inventory, so no layout registration. +- EDIT `docs-site/src/content/docs/guides/desktop-app.md` where it describes the checklist; + keep localized guides from contradicting English. + +## Verification + +`cd gui && bun ../scripts/test-with-pinned-bun.ts --isolate tests/home-getting-started.test.tsx +tests/startup-checklist-desktop.test.tsx tests/home-errors.test.tsx tests/home-management-health.test.tsx`, +`bun run typecheck`, `bun run lint:gui`, `cd gui && bun run lint:i18n && bun run build`, +`bun run test:changed`, docs-site build if docs change. Screenshots from an isolated +`OPENCODEX_HOME` proxy: browser and a desktop-shell user agent, before and after. + +## Audit fold (gpt-6.1-terra plan audit, NEAR-PASS) + +- P1 copy typing: `shellV2Copy` declares `Record`, so `TKey` + (inferred from the English catalog) carries the new keys in all 11 catalogs. +- P1 store: one module snapshot. Writes notify same-window subscribers directly; the `storage` + event reconciles other windows; a failed read or write keeps the in-memory value for the visit. +- P2 focus: Home moves focus to Undo only after a click on Hide, never on load or external change. + Hide's accessible name is "Hide Getting started" (contains the visible "Hide"). +- P2 verification: review-ready adds the full GUI suite (`cd gui && bun run test`), and the existing + browser-with-Desktop-health cases in `startup-checklist-desktop` and `startup-checklist-refresh` stay. + +## Code review fold (same reviewer, round 2, NEAR-PASS) + +- P1 readable-write, unreadable-read storage: the store keeps the last local choice per storage + object and answers with it when `getItem` throws, even after a successful write. +- P2 the `storage` listener reconciles only events whose `storageArea` is this localStorage, so a + `sessionStorage.clear()` elsewhere cannot drop an unsaved choice. +- The Set up hub test now asserts focus lands on the "back on Home" confirmation. +- Implementation note: the Set up hub is the **Checklist** tab under **Route**, so the restore hint + names that path from the live navigation labels (`{place}`). diff --git a/devlog/_plan/261121_fb2100_remote_link_auth/000_roadmap.md b/devlog/_plan/261121_fb2100_remote_link_auth/000_roadmap.md new file mode 100644 index 00000000000..397cdcdaebc --- /dev/null +++ b/devlog/_plan/261121_fb2100_remote_link_auth/000_roadmap.md @@ -0,0 +1,38 @@ +# 261121 fb2100 Remote Link: Child auth and Windows + +Lane fb-remotelink. Base `origin/dev` d61cca122, branch `codex/fb2100-remote-link-auth`. +One branch, ordered commits, one PR into `dev`; #8998 may split to `codex/fb2100-win-link-socket` +if it outgrows a clean change. + +| Unit | Issue | Change | Proof | +|---|---|---|---| +| 010 | #8972 | `WINDOWS_OS_PROBE` uses `cmd.exe /c echo %OS%`; the three `Windows_NT` comparisons in `src/link/remote-platform.ts` accept the stray trailing quote that Win32-OpenSSH's `cmd.exe /c ""` wrapping leaves; `probe_failed` carries a hint when platform detection fails. | Parser tests beside the existing remote-platform tests; local `cmd.exe` quote reproduction on Windows. | +| 020 | #8999 | The link-Child branch of `/api/machine/hub-relay/*` in `src/client/machine-listener.ts` also admits the local admin-token principal for exactly `GET`/`HEAD /api/quota-pool`; the refresh-query block and every other path keep requiring the Child's dashboard session. `structure/quota-pool.md` names the credential. | Listener test: the admin token reads quota-pool and is refused on another allow-listed read and on a refresh query. Security review. | +| 030 | #8985 | The Child's Remote Link page reads `/api/link/status` from the Child machine listener instead of the Home relay, shows the active link, and shows the `ocx` command that disconnects or resets to standalone. No browser disconnect: the Child listener refuses dashboard-session writes by design. | GUI test, `lint:i18n`, GUI build. | +| 040 | #8998 | The #8370 AF_UNIX local control socket also runs on win32. The `run` directory is held to the owner-only `private-runtime-directory` ACL policy on the server and the CLI side, and stale socket files are cleaned up because Bun does not unlink them on Windows. | Unit tests plus a real `ocx link status` against a non-loopback hub on this Windows host. Security review. | + +## Audit fold (round 1, gpt-6.1-terra: FAIL, 4 blockers) + +- Unit 030, blocker 4: the page gates its status read and its body on `sessionReady` for the shared plane. On a link + Child the Child's own session must gate the local status read and the command panel; Home operations keep the shared + readiness. The panel names the link-bound command `ocx disconnect --expect-link ` for a full install and the + `ocx-child` form for a lightweight Child (`src/cli/link.ts`). +- Unit 040, blockers 1-3: the POSIX publication protocol (inode identity, hard-linked public name, `.c.*` orphan + sweep) does not carry to Windows, where `lstat` cannot read an AF_UNIX reparse point and Bun leaves the file behind. + Windows gets its own protocol instead: bind only the private `.c.` name, never publish a hard link, + record the token in the lease, and let the CLI derive the socket name from the lease. Cleanup removes exact names + derived from a dead owner's lease token, never a prefix, so the lease and lock files are never candidates. The run + directory is created and hardened with the existing `hardenSecretDir` machinery, then verified with the + `private-runtime-directory` policy before bind and before the CLI sends a token; a pre-existing directory that + fails verification is refused. Directory creation and CLI admission also check trusted ancestry (the existing + `trusted-ancestry` ACL policy for each existing parent, and no reparse point on the path), and an unsafe path fails + closed: the runtime serves no socket and the CLI keeps its TCP request. Because hardening spawns `icacls`/PowerShell, the Windows start runs off the + synchronous `startServer` path and `stop`/`abort` settle an in-flight start. +- Unit 040 is no longer a small change, so it moves to its own branch `codex/fb2100-win-link-socket` and a second PR, + as the coordinator allowed. Units 010-030 ship first on `codex/fb2100-remote-link-auth`. + +Follow-ups outside this lane: the `Claude-3p/configLibrary` leftover that fails Child sync (#8985 item 2) +and a guided Home -> Child setup flow (#8985 item 3). + +Roadmap audit: round 1 FAIL (4 blockers), round 2 NEAR-PASS (trusted ancestry), both folded below. Order of record: +010 -> 020 -> 030 on this branch, then 040 on its own branch. diff --git a/devlog/_plan/261121_fb2100_remote_link_auth/010_windows_probe.md b/devlog/_plan/261121_fb2100_remote_link_auth/010_windows_probe.md new file mode 100644 index 00000000000..f14f2d4efa7 --- /dev/null +++ b/devlog/_plan/261121_fb2100_remote_link_auth/010_windows_probe.md @@ -0,0 +1,31 @@ +# 010 #8972: Windows Child probe answers `Windows_NT"` + +Problem: `WINDOWS_OS_PROBE` is `cmd /c echo %OS%`. Win32-OpenSSH with cmd.exe as the default shell runs the exec +request as `cmd.exe /c ""`. cmd keeps the surrounding quotes when the quoted string starts with a runnable +name (`cmd`), so the inner `echo` sees and prints the closing quote. Reproduced on this Windows host with verbatim +command lines (`.tmp/probe/cmdquote.ts`): + +| Command line | stdout | +|---|---| +| `cmd.exe /c "cmd /c echo %OS%"` | `Windows_NT"\r\n` | +| `cmd.exe /c "cmd /c echo hello"` | `hello"\r\n` | +| `cmd.exe /c "cmd.exe /c echo %OS%"` | `Windows_NT\r\n` | +| `cmd.exe /s /c "cmd /c echo %OS%"` | `Windows_NT\r\n` | + +`requireRemotePlatform` compares the whole answer with `Windows_NT`, falls back to `sh -c uname` (a localized +error on Windows), and throws a plain `Error`; `probe()` maps it to `502 probe_failed` with no hint. + +Diff: + +- `src/link/ssh-argv.ts`: `WINDOWS_OS_PROBE = "cmd.exe /c echo %OS%"`; comment records the quote rule. +- `src/link/remote-platform.ts`: one `isWindowsNtAnswer(line)` (`Windows_NT` with at most one trailing `"`, + surrounding whitespace ignored) used by `confirmWindowsShell`, `requireRemotePlatform` and + `requireRemotePlatformFramed`, so an older probe literal or a shell that still adds the quote is understood. + Platform failures throw `SshDiagnosticError` carrying a bounded hint from the failing call's stderr. +- `src/link/ssh-runner.ts`: `SshDiagnosticError`; `sshRunnerErrorHint` reads its hint, so `probe_failed`, + `version_probe_failed` and the other enrollment/cleanup catch sites report why. +- Tests: `tests/clients/link-ssh-argv.test.ts` (literal, parser, hint), `tests/server/link-enrollment.test.ts` + (a quoted answer enrolls as Windows; an unknown platform answers `probe_failed` with a hint). Test fixtures that + match the old literal follow the constant. + +Verification: those two files plus the fixture files that changed, `bun run typecheck`, `bun run test:changed`. diff --git a/devlog/_plan/261121_fb2100_remote_link_auth/020_child_quota_pool_admin.md b/devlog/_plan/261121_fb2100_remote_link_auth/020_child_quota_pool_admin.md new file mode 100644 index 00000000000..dcff9e2dfe7 --- /dev/null +++ b/devlog/_plan/261121_fb2100_remote_link_auth/020_child_quota_pool_admin.md @@ -0,0 +1,31 @@ +# 020 #8999: the Child's admin token reads the Home's quota pool + +Problem: GOAT reads a Home's `ocx.quota-pool/1` through a Remote Link Child at +`/api/machine/hub-relay/api/quota-pool` with the Child's local admin token. The link-Child branch of +`src/client/machine-listener.ts` admits only a `gui-session` principal there and answers +`401 opencodex machine GUI session required`, so every Child reports "OpenCodex pool unavailable: HTTP 401". + +Decision (coordinator): the admin-token principal is admitted for exactly `GET`/`HEAD /api/quota-pool` on that +branch. Everything else under the prefix keeps requiring the Child's dashboard session, and the relay's +refresh-key refusal still applies to the admitted read. + +Diff: + +- `src/client/link-management-relay.ts`: `linkChildAdminReadAllowed(method, pathname)` — true only for + `GET`/`HEAD` and the exact pathname `/api/quota-pool`. +- `src/client/machine-listener.ts` (link-Child branch): the principal check becomes + `gui-session`, or `admin-token` when `linkChildAdminReadAllowed(req.method, url.pathname.slice(prefix.length))`. + The pathname is the parsed URL's (the same value the relay forwards), so a percent-encoded slash, a trailing slash, + a doubled slash or a case variant is a different pathname and stays refused. The query is untouched here and is + checked by `linkManagementReadAllowed` (refresh, reload, force, quota answer 403 `link_child_read_only`). + The bootstrap (`/opencodex-session`), the origin check before this branch and the hub-client branch are unchanged. +- `structure/quota-pool.md`, `structure/remote-link.md`: name the credential a local consumer uses on a Child. + +Tests (`tests/clients/client-link-relay.test.ts`, real Child listener and a real link-authenticated Home socket): +the admin token reads `GET` and `HEAD /api/quota-pool` (Bearer and `x-opencodex-api-key`); it is refused with +401 on `/api/usage`, `/api/providers`, `/api/quota-pool/`, `/api/quota-pool%2F`, `//api/quota-pool`, +`/api/Quota-Pool` and `POST /api/quota-pool`; `?refresh=1` answers 403; no token answers 401; the Home sees only the +admitted reads. + +Verification: that file, `tests/server/quota-pool-relay.test.ts`, `bun run typecheck`, `bun run structure:check`. +Security review by gpt-6.1-terra before merge; reasoning beyond the published diff stays in `.tmp/`. diff --git a/devlog/_plan/261121_fb2100_remote_link_auth/030_child_remote_link_page.md b/devlog/_plan/261121_fb2100_remote_link_auth/030_child_remote_link_page.md new file mode 100644 index 00000000000..ef61b6a0ce8 --- /dev/null +++ b/devlog/_plan/261121_fb2100_remote_link_auth/030_child_remote_link_page.md @@ -0,0 +1,39 @@ +# 030 #8985: the Child's Remote Link page reads its own status + +Problem: on a connected Remote Link Child the page asks `GET /api/machine/hub-relay/api/link/status?children=1`. +`/api/link/status` is not a Home read the relay allows, so the Child answers `403 link_child_read_only`; the page keeps +`status === null`, shows "Remote link request could not be completed" and the off switch, and offers no way out of +the link. The Child serves its own status on its machine listener (`src/client/machine-listener.ts`), the same base +the diagnostics section already uses. + +Second gap found while tracing it: `gui/src/api.ts` `classify()` attaches a session only to `/api/machine/*` on the +machine target, so a dashboard request to the Child's own `/api/link/status` or `/api/link/diagnostics` would leave +without one and get 401. On a link Child those two paths are machine-plane requests. + +Decision (coordinator): no browser disconnect. The Child listener refuses dashboard-session writes by design (a +loopback session proves possession, not presence). The page shows the commands instead. + +Diff: + +- `gui/src/api.ts`: on a link Child, `/api/link/status` and `/api/link/diagnostics` under the machine target + classify as the machine plane. +- `gui/src/pages/RemoteLink.tsx`: `statusApiBase` (default `apiBase`) and `statusSessionReady` (default + `sessionReady`) drive the status read, its poll and the page's session gate; Home operations keep `apiBase` and the + shared readiness (audit round 1, blocker 4). With `childLink` and `status.role === "child"` the page renders + `RemoteLinkChildDisconnect`. +- `gui/src/pages/RemoteLinkChildDisconnect.tsx`: "Disconnect this computer" with two copyable commands, + `ocx disconnect --expect-link ` (refuses unless this machine is still on that link) and `ocx restart`, + plus a pointer to removing the Child from the Home's page. The link id comes from `/api/machine/status`. +- `gui/src/App.tsx`: passes `statusApiBase={targets.link ? machineBase : sharedBase}`, + `statusSessionReady={targets.link ? hasApiSession("machine") : sharedSessionReady}`, `childLink={targets.link}`. +- `gui/src/i18n/remote-link-child-copy.ts`: lane-owned copy, 11 locales, spread into each locale file. + +Tests: `gui/tests/remote-link.test.tsx` (a Child reads status from its machine base, never the relay, and shows the +commands with its link id; a standalone or Home never shows the panel), `gui/tests/api-auth-memory.test.ts` (on a link +Child the two paths carry the machine session; on a standalone they classify as before). + +Verification: those files, `cd gui && bun test tests` (focused), `bun run lint:i18n`, `cd gui && bun run lint`, +`cd gui && bun run build`, `bun run typecheck`. + +Follow-ups (not here): the leftover `Claude-3p/configLibrary` that fails Child sync and then blocks disconnect +(#8985 item 2), and a guided Home -> Child setup flow (#8985 item 3). diff --git a/devlog/_plan/261121_grok_media_quota_parity/000_plan.md b/devlog/_plan/261121_grok_media_quota_parity/000_plan.md new file mode 100644 index 00000000000..466e2ba202e --- /dev/null +++ b/devlog/_plan/261121_grok_media_quota_parity/000_plan.md @@ -0,0 +1,44 @@ +# Grok media and quota parity — plan + +Date: 2026-11-21. Branch `codex/261121-grok-media-quota-parity`, base `origin/dev` 3bc34e67ac. + +## Objective + +Bring the Grok Imagine image and video bridges and the Codex/Grok quota and reset logic up to the +behavior xAI and OpenAI ship today, verified against official docs and live read-only API responses +(evidence in [001_live_evidence.md](./001_live_evidence.md)). One PR to `dev`, ordered commits. + +## Constraints + +- Behavior changes land with a failing-first deterministic test. +- `tests/server/server-images.test.ts` has one line of ratchet headroom (cap 2755); new relay + cases go to a sibling file registered in `scripts/test-layout/layout.json` (or its shard) and a + `tests/fixtures/test-layout-expected*.json` shard. +- Docs change in English and all eight locales (es, fr, ja, ko, ru, tr, zh-cn, zh-tw). +- Live probing never redeems a coupon, reset credit or credit; secrets never printed. + +## Work-phase map (dependency order) + +| Phase | Doc | Outcome | +|---|---|---| +| wp0 | 000-001 | This roadmap and the live evidence | +| wp1 | [010](./010_image_bridge.md) | Image bridge defaults to `grok-imagine-image-2.0`, sends `quality`, full aspect set, multi-image edits, upstream error text | +| wp2 | [020](./020_video_bridge.md) | Video bridge on 1.5 / 1.5-lite, 1080p, frame pins and references, capability-aware tool, upstream error text | +| wp3 | [030](./030_quota_parity.md) | Reset-credit DTO keeps non-expiring credits and carries the documented detail fields | +| wp4 | [040](./040_misc_scope.md) | Other non-LLM changes: applied or excluded with a reason | +| wp5 | — | PR, exact-head CI, final review | + +## Out of scope + +New Grok STT/TTS/voice relays (the audio routes are OpenAI-only), the vendored +`scripts/model-metadata.source.json` snapshot, ima2-gen and progrok. + + +## Roadmap audit + +Three read-only Terra review rounds (same reviewer). Round 1 and 2 blockers were folded: local files are +never read for video inputs (artifact references resolve to the xAI URL the image bridge recorded), +upstream error text reaches callers only as canonical messages rebuilt from a closed vocabulary, +over-limit edits are rejected before any upstream call, unknown video models keep today's tool surface, +capacity test expectations are recalculated, and the media contract is recorded in +`structure/data-planes/images.md`. Round 3's remaining finding (template vocabulary) is folded into 010. diff --git a/devlog/_plan/261121_grok_media_quota_parity/001_live_evidence.md b/devlog/_plan/261121_grok_media_quota_parity/001_live_evidence.md new file mode 100644 index 00000000000..a257bb0dbb9 --- /dev/null +++ b/devlog/_plan/261121_grok_media_quota_parity/001_live_evidence.md @@ -0,0 +1,93 @@ +# Live evidence (2026-11-21) + +Docs were read through Aside (`browse.readText` on the `.md` form of each docs.x.ai page, plus the +parent research dump under the Aside artifacts directory). Live calls used the stored Grok OAuth +grant against `api.x.ai` and the main ChatGPT login; identifiers are redacted, balances omitted. + +## Images (docs.x.ai) + +- `grok-imagine-image-quality` retired 2026-11-02; requests are served by `grok-imagine-image-2.0` + at `quality: "low"` (migration guide, release notes). +- `quality` accepts `low | medium | auto` and only on `grok-imagine-image-2.0`; default `auto` + (low for generation, medium for edits). Up to five source images per edit; `21:9` and `5:2` added. + +Live: + +| Request | Result | +|---|---| +| 2.0, `quality: "bogus"` | 422, expected one of `low, medium, high, auto` (deserializer) | +| 2.0, `quality: "high"` | 400 `This model only supports the following quality value(s): low, medium, auto.` | +| 2.0, `aspect_ratio: "7:3"` | 422 listing `1:1 3:4 4:3 9:16 16:9 2:3 3:2 9:19.5 19.5:9 9:20 20:9 1:2 2:1 21:9 5:2 auto` | +| 2.0, `resolution: "4k"` | 422 listing `1k 2k 1.5k` | +| 2.0, low, 21:9 | 200, `cost_in_usd_ticks` 400000000 ($0.04) | +| `grok-imagine-image` (1.0), `quality: "low"` | 200, $0.02 — not rejected, but the docs limit `quality` to 2.0 | +| `grok-imagine-image-quality`, `quality: "medium"` | 200, billed $0.04, the 2.0 low price; the migration guide states the slug is served by 2.0 at low | +| `GET /v1/image-generation-models` | `grok-imagine-image` and `grok-imagine-image-2.0` only; 2.0 lists low/medium × 1k/1.5k/2k prices | + +So OpenCodex's current default (the retired slug, no `quality`) is served as 2.0 low per the migration guide (billing agrees), and an +OpenAI `high` must be sent as `medium`, never `high`. + +## Video (docs.x.ai) + +| Capability | 1.5 | 1.5-lite | grok-imagine-video | +|---|---|---|---| +| T2V / I2V | up to 1080p native | up to 1080p (upscaled 720p) | up to 720p | +| reference_images | 14 | no | 7 | +| last_frame / keyframes (≤4) | yes | no | no | +| aspect ratios | 1:1 16:9 9:16 4:3 3:4 3:2 2:3 21:9 5:2 | same | same | +| price | $0.08/s | $0.02/s | $0.05/s | + +Poll: `status` is `pending | done | failed`; failed carries `error{code,message}`. + +Live (all validation errors are free, synchronous 400/422): + +| Request | Result | +|---|---| +| lite + last_frame / keyframes / reference_images | 400 `` `` is not supported for this model. `` | +| grok-imagine-video + 1080p | 400 `1080p video resolution is not available for this model.` | +| 1.5 keyframe at 5 s in a 2 s clip | 400 `must be strictly inside the clip (0 < t < 2s)` | +| 1.5 with five keyframes | 400 `Too many keyframes: 5. Maximum allowed is 4.` | +| lite, 1080p, 1 s | 200 → poll done, `model: grok-imagine-video-1.5-lite`, $0.14 | +| 1.5, image + last_frame, 480p, 1 s | 200 → poll done, $0.10 | + +Upstream error text is precise, but OpenCodex currently replaces it with `xAI videos API returned 400`. +The OAuth grant's media spend drew from the subscription weekly pool (`creditUsagePercent` 5 → 6 +after about $0.34); `onDemandCap` and `prepaidBalance` were 0, so no credit could be spent. + +## Codex quota + +- `GET /wham/usage` (Pro): `primary_window` is 7 days (604800 s), `secondary_window: null`. + Additional fields not modelled by OpenCodex: `rate_limit.limit_reached`, `reset_after_seconds`, + `code_review_rate_limit`, `model_usage`, `credits.approx_*_messages`, + `spend_control.individual_limit`, `rate_limit_reached_type`, `promo`, + `rate_limit_reset_credits.applicable_available_count`. +- `GET /wham/rate-limit-reset-credits`: `credits`, `available_count`, `total_earned_count`, + `immediate_reset_purchase_eligible`, `history_enabled`. +- openai/codex main (`codex-rs/backend-client`, read 2026-11-21): credit rows are + `{id, reset_type, status, granted_at, expires_at: Option, title?, description?}`; consume + takes `redeem_request_id` and an optional `credit_id`; the usage summary still reads only + `available_count`. +- Running the capture through `parseUsageQuota` gives weekly 0 % with the right reset and no short + window; the pool and main observations mark the short and monthly windows absent (Terra audit lane). + +## Grok quota and coupons + +- `GET cli-chat-proxy.grok.com/v1/billing?format=credits`: `currentPeriod{type: USAGE_PERIOD_TYPE_WEEKLY, + start, end}`, `creditUsagePercent`, `onDemandCap`, `onDemandUsed`, `productUsage[{product, usagePercent}]`, + `isUnifiedBillingUser`, `prepaidBalance`, `topUpMethod`, `billingPeriodStart/End`. + `parseXaiCreditsResponse` reads percent and end correctly. +- Legacy `/v1/billing` returns a zero monthly limit for unified-billing users; the parser's null is correct. +- `GetRemainingResets` returned gRPC status 0 and one empty message (no coupons on this account), + which decodes to `[]`. Docs: one usage reset per paid referral, added 7 days after payment, + valid six months; after one is used another cannot be used for a while (length unpublished). +- `grok_api_v2.GrokBuildBilling/GetRemainingResets` also answers status 0 with an empty message, and + `GetGrokCreditsConfig` returns period type 2 (WEEKLY) with the same start/end as the JSON billing route. + +## Cross-check with the parent research reports + +The parent Aside reports (openai-codex-report.md, xai-grok-report.md, 2026-11-21) agree with the live +results above. Corrections they carry: `-pro` was retired on 2026-05-15 (to `-quality`), 2.0 has no +`high`, Lite 1080p is an upscale priced about $0.14/s (matches the live charge), 1.5 reference-to-video +caps at 720p, `last_frame` is in the guides but not the REST schema (live accepted it), Codex Pro plans +have only a weekly window, Codex reset credits expire 30 days after grant, and plan types are +`prolite`/`pro`/`promax` (Pro 100/200/500). diff --git a/devlog/_plan/261121_grok_media_quota_parity/010_image_bridge.md b/devlog/_plan/261121_grok_media_quota_parity/010_image_bridge.md new file mode 100644 index 00000000000..d48de8ebb1b --- /dev/null +++ b/devlog/_plan/261121_grok_media_quota_parity/010_image_bridge.md @@ -0,0 +1,132 @@ +# 010 — Image bridge on grok-imagine-image-2.0 + +Evidence: [001](./001_live_evidence.md#images-docsxai). Commit: `feat(images): default the Grok image bridge to grok-imagine-image-2.0 and send quality`. + +## Changes + +### NEW `src/images/xai-upstream-error.ts` (shared with 020) + +Only messages that parse into a closed vocabulary reach the caller, and the caller receives a +canonical message rebuilt from the parsed tokens, never the upstream string. No pattern accepts +free text: every captured token is either a member of a fixed set or a bounded number. + +```ts +const QUALITY_TOKENS = new Set(["low", "medium", "high", "auto"]); +const FIELD_TOKENS = new Set(["image", "last_frame", "keyframes", "reference_images", "reference_audios", + "quality", "aspect_ratio", "resolution", "duration"]); +const RESOLUTION_TOKENS = new Set(["480p", "720p", "1080p"]); +// Each rule: exact regex over the trimmed upstream string, token checks, canonical builder. +// quality list /^This model only supports the following quality value\(s\): ([a-z]+(?:, [a-z]+)*)\.$/ +// every token in QUALITY_TOKENS → "This model only supports the following quality value(s): ." +// field /^`([a-z_]+)` is not supported for this model\.$/ with token in FIELD_TOKENS +// resolution /^(\d{3,4}p) video resolution is not available for this model\.$/ with token in RESOLUTION_TOKENS +// keyframe count /^Too many keyframes: (\d{1,2})\. Maximum allowed is (\d{1,2})\.$/ +// keyframe time /^`keyframes` timestamp (\d{1,3}(?:\.\d{1,3})?)s must be strictly inside the clip \(0 < t < (\d{1,3}(?:\.\d{1,3})?)s\)\./ +// → canonical sentence with the two numbers +const SAFE_VIDEO_FAILURE_CODES = new Set(["invalid_argument","permission_denied","failed_precondition","service_unavailable","internal_error"]); +/** Canonical caller-visible detail, or undefined. Never logged. */ +export function safeXaiErrorDetail(message: unknown): string | undefined +/** Reads a bounded JSON error body (`readDisplaySafeErrorPayloadText`) and applies safeXaiErrorDetail + * to `error` / `error.message` / `message`. */ +export async function readSafeXaiErrorDetail(resp: Response, signal?: AbortSignal): Promise +export function safeVideoFailureCode(code: unknown): string | undefined +``` +Unmatched text, HTML and the 422 deserializer text yield no detail, so the error stays +`xAI images API returned 400`. Logs (`console.warn`, request-log fields) stay status-only. +Tests: each live message maps to its canonical form; adversarial values that fit the shape but not +the vocabulary ("secret words" as a quality list, `my_prompt` as a field, `999p`, a prompt fragment, +an `xai-` key, a path or a URL in any slot) yield undefined; unknown text and HTML bodies add nothing. + +### MODIFY `src/images/xai-client.ts` + +1. Default model and edit sources: + ```diff + - model?: string; // default "grok-imagine-image-quality" + + model?: string; // default "grok-imagine-image-2.0" + + /** Extra edit sources after imageUrl; together they form images[] (at most 5). */ + + imageUrls?: string[]; + -const XAI_DEFAULT_MODEL = "grok-imagine-image-quality"; + +export const XAI_DEFAULT_IMAGE_MODEL = "grok-imagine-image-2.0"; + +export const XAI_MAX_EDIT_IMAGES = 5; + ``` +2. Aspect ratios: literals = the live-validated set; the size map gains `2:3`/`3:2` so OpenAI's + 1024x1536 / 1536x1024 map exactly: + ```ts + const XAI_ASPECT_RATIOS = [["1:1",1],["3:4",.75],["4:3",4/3],["9:16",.5625],["16:9",16/9],["2:3",2/3],["3:2",1.5]]; + const XAI_ASPECT_RATIO_LITERALS = new Set([...XAI_ASPECT_RATIOS.map(([l]) => l), + "9:19.5","19.5:9","9:20","20:9","1:2","2:1","21:9","5:2"]); + ``` +3. Quality (exported for tests): + ```ts + /** xAI quality for models that accept it (2.0 only, per docs); undefined omits the field. */ + export function mapQualityToXaiQuality(model: string, quality?: string): "low" | "medium" | "auto" | undefined { + if (!quality || !/^grok-imagine-image-2(\.|-|$)/.test(model)) return undefined; + const q = quality.toLowerCase(); + if (q === "low" || q === "standard") return "low"; + if (q === "medium" || q === "high" || q === "hd") return "medium"; // 2.0 answers 400 to "high" + if (q === "auto") return "auto"; + return undefined; + } + ``` + `callXaiImages`: `const xq = mapQualityToXaiQuality(String(body.model), req.quality); if (xq) body.quality = xq;`. + Resolution mapping is unchanged (high/hd → 2k, low/standard/auto → 1k). +4. Edits: sources = `[imageUrl, ...imageUrls]` (trimmed, non-empty, deduplicated). More than + `XAI_MAX_EDIT_IMAGES` throws `{status: 400, message: "xAI image edits accept at most 5 images"}` + before any fetch. One source → `image: {url, type: "image_url"}` (unchanged); several → + `images: [{url, type: "image_url"}, ...]`. +5. Non-2xx: `const detail = await readSafeXaiErrorDetail(resp, linkedSignal)` (replaces the bare + cancel) → message `xAI images API returned 400: ` when present; `err.status` unchanged. + Redirects are unchanged. + +### MODIFY `src/images/plan.ts`, `src/server/images.ts`, `src/types/config.ts` + +Replace the `"grok-imagine-image-quality"` constants with `XAI_DEFAULT_IMAGE_MODEL`; update the +`bridgeModel` comment. + +### MODIFY `src/server/images.ts` (`tryXaiImageRelay`, edits branch) + +Collect every source in order: string `image`, string `image_url`, then each `images[]` entry +(string, or object with `image_url` string / `image_url.url` / `url`). Over five → 400 +`invalid_request_error` "xAI image edits accept at most 5 images" (no upstream call). First → +`imageUrl`, rest → `imageUrls`. The existing catch already sanitizes and URL-scrubs `err.message`. + +### MODIFY `src/images/synthetic-tool.ts` + +`aspect_ratio` enum adds `2:3`, `3:2`, `21:9`, `5:2`; new optional +`quality: {type: "string", enum: ["low","medium","auto"]}`. + +## Tests (failing first) + +`tests/images/xai-client.test.ts`: +- default model `grok-imagine-image-2.0`; +- quality high → medium, hd → medium, low → low, auto → auto on 2.0; omitted for + `grok-imagine-image` and for unknown values; +- 1024x1536 → 2:3; 21:9 literal forwarded; the literal-set test updated to the new contract; +- two sources → `images[]`; six sources reject with 400 and no fetch; +- a JSON 400 whose `error` matches a template surfaces it; unmatched JSON text and HTML bodies add nothing. + +`tests/images/plan.test.ts`: default bridge model. +`tests/server/server-images.test.ts:213`: update the expected default in place (same line count). +New `tests/server/server-images-xai-relay.test.ts` (layout + expected shard): multi-image edit +forwarding, six images → 400 without upstream, upstream 400 text in the relay error body. + +## Docs + +`docs-site/src/content/docs/{,es/,fr/,ja/,ko/,ru/,tr/,zh-cn/,zh-tw/}guides/image-bridge.md`: +default `grok-imagine-image-2.0`; `quality` low/medium/auto is forwarded (OpenAI high/hd → medium); +the retired `grok-imagine-image-quality` (and `-pro`, already redirected to it since 2026-05-15) is +served as 2.0 low; price depends on quality × resolution, edits add $0.01 per input image; edits take +up to five images. + +## Structure + +`structure/data-planes/images.md` gains an "xAI image and video models" section: default models, +quality mapping, edit-source limit, video capability table, image-input rule and the error-detail +allowlist. Check the other `src/images/` owners (`structure/runtime.md`, `structure/transports/inventory.md`) +for stale defaults; `bun run structure:check` must pass. + +## Verify + +`bun test tests/images` and, in a separate Bun process (a module mock in `tests/images/plan.test.ts` +leaks into the server file when they share one), `bun test tests/server/server-images.test.ts tests/server/server-images-xai-relay.test.ts`; +`bun test tests/ci-workflows/docs-spanish-localization.test.ts tests/ci-workflows/docs-link-targets.test.ts`, `bun run structure:check`, `bun run typecheck`, `bun run test:changed`. diff --git a/devlog/_plan/261121_grok_media_quota_parity/020_video_bridge.md b/devlog/_plan/261121_grok_media_quota_parity/020_video_bridge.md new file mode 100644 index 00000000000..8c605263728 --- /dev/null +++ b/devlog/_plan/261121_grok_media_quota_parity/020_video_bridge.md @@ -0,0 +1,105 @@ +# 020 — Video bridge on grok-imagine-video-1.5 / 1.5-lite + +Evidence: [001](./001_live_evidence.md#video-docsxai). Commit: `feat(videos): support Grok Imagine Video 1.5, 1080p and pinned frames`. + +## Decisions + +- Default `videoBridgeModel`: `grok-imagine-video-1.5-lite`. xAI recommends it for simple videos and + it is the cheapest per second at 480p/720p ($0.02 vs $0.05 for the classic model). 1080p on Lite is + an upscale billed about $0.14/s (live: $0.14 for one second). Frame pins and references need + `grok-imagine-video-1.5`; the docs explain how to switch. +- The tool advertises only what the configured model accepts. Models outside the table keep exactly + today's surface (prompt, duration, 480p/720p, the existing seven aspect ratios, no image inputs). +- Image inputs (first frame, last frame, keyframes, references) accept `https://` URLs, + `data:image/(png|jpeg|webp);base64,` URLs up to 10 MiB decoded, and references to images the image + bridge produced in this process. No local file is ever read: when the image bridge downloads an xAI + result (`url` response format) it records `artifact id → original xAI https URL` in a bounded + process-local map (256 entries, one-hour lifetime). A video input given as the opaque artifact URL + `/v1/opencodex/artifacts/`, an absolute path or a `file:` URL is used only as a lookup key: its + basename must match the artifact id pattern and the map must hold that id for exactly that resolved + path; the recorded xAI URL is what gets sent. Anything else (relative paths, unknown ids, `http:`, + other schemes, inline-base64 results that have no source URL) is a tool error. Filesystem races and + Windows path semantics therefore cannot widen what is sent. The recorded URL is an xAI temporary + URL created for this proxy's own xAI credential, so it is only sent to the pinned xAI destination: + with a custom `images.videoProvider` an artifact reference is a tool error (callers may still pass + their own https/data URLs). xAI may expire the URL before the map entry; that surfaces as the + upstream failure. Results returned as `b64_json` have no source URL and cannot be referenced. + +## Changes + +### NEW `src/images/video-capabilities.ts` + +```ts +export interface VideoModelCapabilities { resolutions: readonly string[]; aspectRatios: readonly string[]; + firstFrame: boolean; lastFrame: boolean; maxKeyframes: number; maxReferenceImages: number; + referenceMaxResolution?: string; } +export function videoModelCapabilities(model: string): VideoModelCapabilities +// grok-imagine-video-1.5 (+ -preview, -2026-05-30): 480p/720p/1080p, 9 ratios, first+last, 4 keyframes, +// 14 references, references capped at 720p +// grok-imagine-video-1.5-lite: 480p/720p/1080p, 9 ratios, first frame only +// grok-imagine-video: 480p/720p, 9 ratios, first frame, 7 references +// other: 480p/720p, the legacy 7 ratios, no image inputs +``` + +### NEW `src/images/video-image-input.ts` and MODIFY `src/images/fulfill.ts` + +`rememberArtifactSourceUrl(path, url)` / `resolveVideoImageInput(value: unknown, now?)` implementing the +rule above. `fulfill.ts` calls `rememberArtifactSourceUrl` after `downloadImageToArtifact` succeeds (not +for `b64_json` results). + +### MODIFY `src/images/synthetic-tool.ts` + +`buildVideoTool(model?: string)` derives `resolution` / `aspect_ratio` enums and adds `image`, +`last_frame`, `keyframes` (`{image, timestamp_s}`, maxItems), `reference_images` (maxItems) only when +supported; `sidecar-execution.ts` passes `vidPlan.model`. + +### MODIFY `src/images/fulfill-video.ts` + +`ParsedVideoArgs` adds `image?`, `lastFrame?`, `keyframes?: {image; timestampS}[]`, `referenceImages?`. +`parseVideoCallArgs(raw, model?)`: +- resolution / aspect ratio validated against the model's capabilities; +- prompt required unless a frame or reference is present; +- a field the model does not support → `" is not supported by "`; over the keyframe or + reference limit → error; keyframe needs finite `timestamp_s > 0` (and `< duration` when given); + references with 1080p on 1.5 → `"reference_images are limited to 720p"`. +`pollVideoWithHeartbeats`: failed → `video generation failed: : ` (code from `safeVideoFailureCode`, detail from `safeXaiErrorDetail`; unmatched messages omitted); the retry `console.warn` stays status-only. + +### MODIFY `src/images/xai-video-client.ts` + +Default model `grok-imagine-video-1.5-lite`. Submit body adds `image: {url}`, `last_frame: {url}`, +`keyframes: [{image: {url}, timestamp_s}]`, `reference_images: [{url}]`. Non-2xx submit/poll append +`readSafeXaiErrorDetail`. Poll parses `error.code` (allowlist of the five documented codes) and +`error.message` into `XaiVideoPollResult.error`. + +### MODIFY `src/images/plan.ts`, `src/images/loop.ts`, `src/types/config.ts` + +Default constant; loop resolves each image input with `resolveVideoImageInput` before submit (error → +tool result, no upstream call) and passes the plan model to `parseVideoCallArgs`; config comment. + +## Tests (failing first) + +- `tests/videos/fulfill-video.test.ts`: 1080p on 1.5/lite accepted and on classic/unknown rejected; 21:9 + accepted on 1.5; unknown model keeps the old enums; last_frame on lite rejected; five keyframes + rejected; prompt optional with a frame; references + 1080p rejected; failed poll shows code + detail. +- `tests/videos/xai-video-client.test.ts`: xAI body shape for the new inputs; default model; 400 detail. +- New `tests/videos/video-capabilities.test.ts`: tool schema per model, unknown model unchanged. +- New `tests/videos/video-image-input.test.ts`: https and data URLs accepted; http, relative paths, + unknown ids, a known id under a different path, expired entries and oversized data URLs rejected; an + artifact URL, absolute path and `file:` URL of a remembered image resolve to the recorded xAI URL; + the map stays bounded. +- `tests/videos/plan-video.test.ts`: default model. + +## Docs + +`guides/video-bridge.md` in all nine locales: default model and the model table (1.5 / 1.5-lite / +classic) with prices, 1080p (native vs upscale, R2V 720p cap), aspect ratios, the new arguments and +the image-input rule. + +## Structure + +Covered by the `structure/data-planes/images.md` section added in 010 (video capability table and +image-input rule); update `src/images/xai-video-client.ts` comments (resolution list). + +## Verify + +`bun test tests/videos tests/images`, `bun test tests/ci-workflows/docs-spanish-localization.test.ts tests/ci-workflows/docs-link-targets.test.ts`, `bun run structure:check`, `bun run typecheck`, `bun run test:changed`. diff --git a/devlog/_plan/261121_grok_media_quota_parity/030_quota_parity.md b/devlog/_plan/261121_grok_media_quota_parity/030_quota_parity.md new file mode 100644 index 00000000000..7ee5260971b --- /dev/null +++ b/devlog/_plan/261121_grok_media_quota_parity/030_quota_parity.md @@ -0,0 +1,67 @@ +# 030 — Codex and Grok quota/reset parity + +Evidence: [001](./001_live_evidence.md#codex-quota). Commits: +`fix(codex): keep non-expiring reset credits and their detail fields`, +`fix(codex): calibrate Pro 100 and Pro 500 pool capacity`. + +## Audit result + +Live captures run through the existing parsers (Terra audit lane, read-only), cross-checked against +the parent OpenAI and xAI research reports: + +| Surface | Verdict | +|---|---| +| `/wham/usage` Pro weekly-only payload | Correct: weekly 0 % with its reset, no short window, short/monthly marked absent. Matches the documented "Pro plans have no 5-hour window". | +| `/wham/usage` credits (string balance) | Correct | +| `rate_limit_reset_credits.available_count` | Correct, same field the official client reads. `applicable_available_count` stays unread: undocumented; the parent report saw 1 / 0 at 19 % used, consistent with the help-center rule that a reset applies only when an allowance has less than 80 % left, but that is inference | +| `/wham/rate-limit-reset-credits` rows | **Mismatch**: `safeResetCreditsDto` drops a credit whose `expires_at` is null, which the official client allows (`Option`) | +| Plan types | `prolite`/`pro`/`promax` are Pro 100/200/500 (openai/codex `protocol/src/account.rs`, read via Aside). `src/providers/codex-capacity.ts` weights `prolite` 5 (the pre-2026-10-29 ratio) and has no `promax`, so a Pro 500 seat counts as one Plus seat | +| Grok `/v1/billing?format=credits` | Correct (percent, weekly end); same values as `grok_api_v2.GrokBuildBilling/GetGrokCreditsConfig` (live grpc-web: period type 2 = WEEKLY, same start/end) | +| Grok legacy `/v1/billing` | Correct null for unified billing (zero monthly limit) | +| `GetRemainingResets` | Both `prod_mc_billing.ConsumerUiSvc` (used) and `grok_api_v2.GrokBuildBilling` answer status 0 with an empty message on this account; the populated shape could not be observed | + +## Changes + +### MODIFY `src/codex/auth-api/reset-credit-service.ts` + +```ts +type ResetCreditRowDto = { granted_at: string; expires_at: string | null; reset_type?: string; + status?: string; title?: string; description?: string }; +function safeResetCreditsDto(input: unknown): { credits: ResetCreditRowDto[]; available_count?: number; total_earned_count?: number } +``` +A row needs a string `granted_at`; `expires_at` is the string or `null` (absent → null); the four +display strings are copied when strings (200 chars max). `total_earned_count` is copied when finite. +Credit ids are not exposed. `createResetCreditWhamClient().inspect` keeps only rows with a string +`expires_at` for the auto-redeemer, whose schedule is expiry-based (its types stay `string`). + +### MODIFY `src/providers/codex-capacity.ts` + +```diff +- prolite: 5, ++ // Pro 100 / Pro 500 doubled on 2026-10-29; 10x / 50x Plus (OpenAI staff, 2026-11-08). Display only. ++ prolite: 10, ++ promax: 50, +``` +Update `structure/providers/openai-tiers.md` (capacity paragraph) and +`docs-site/src/content/docs/guides/providers.md` (+ locales carrying the same sentence) accordingly. + +## Tests (failing first) + +- New `tests/codex-integration/codex-reset-credit-dto.test.ts` (codex-auth-api.test.ts is at its + ratchet cap), registered in layout + expected shard: route `GET /api/codex-auth/reset-credits` keeps + a `{granted_at, expires_at: null}` row; detail strings and `total_earned_count` carried; ids and + unknown fields dropped; the auto-redeem inspect client drops the null-expiry row. +- `tests/providers/provider-capacity.test.ts`: new cases (`promax` weighs 50 and is not an unknown plan; + `prolite` weighs 10), and every existing expectation that uses `prolite` (lines 13-30, 77-81: + aggregate weekly percent, total/consumed/remaining weight, recovery percent) recalculated with weight + 10; run the whole file plus `tests/codex-integration/codex-quota-window-conflict.test.ts`. + +## Deliberately unchanged + +- Consume by `credit_id`, and switching Grok coupon RPCs to `grok_api_v2.GrokBuildBilling`: both touch + irreversible redemption that cannot be exercised live without spending a reset; the current paths are + live-verified. +- `applicable_available_count`, `model_usage`, `rate_limit_reached_type`, `rate_limit_upsell` CTAs, + Grok `productUsage`/`onDemand*`/`prepaidBalance`: no routing decision depends on them, semantics are + undocumented or inferred. Treating 100 % weekly Grok usage as exhausted (instead of spilling into + paid Additional Usage) stays the safer default. diff --git a/devlog/_plan/261121_grok_media_quota_parity/040_misc_scope.md b/devlog/_plan/261121_grok_media_quota_parity/040_misc_scope.md new file mode 100644 index 00000000000..d79e4498223 --- /dev/null +++ b/devlog/_plan/261121_grok_media_quota_parity/040_misc_scope.md @@ -0,0 +1,16 @@ +# 040 — Other non-LLM changes in scope + +| Item | Decision | +|---|---| +| `grok-imagine-image-quality` / `-pro` retirement | Covered by 010 | +| `grok-imagine-video-1.5`, `-1.5-lite` | Covered by 020 | +| Grok Voice 3.0 (`reasoning.effort` high/none), Voice 2.0 deprecation, `grok-voice-transcribe-1.0` → 2.0 routing, STT `vad_threshold`/`filler_words`/`smart_turn_timeout`, TTS voices and `optimize_streaming_latency` | Excluded: OpenCodex has no xAI audio surface; `/v1/audio/transcriptions` and realtime are OpenAI-only (`src/server/audio-upstream.ts`) | +| xAI deferred image requests, image/video webhooks, `storage_options`, `output.upload_urls`, SIP | Excluded: the bridges are synchronous; no caller asks for them | +| xAI video edit/extend, `reference_audios`, `generate_audio` | Excluded from this PR: the bridge does not expose them today; `reference_audios` is a candidate follow-up | +| OAuth inference host (`cli-chat-proxy.grok.com` vs `api.x.ai`) for the image relay | Unchanged: live OAuth calls to `api.x.ai/v1/images` and `/v1/videos` succeed and bill the subscription weekly pool; noted as undocumented | +| `scripts/model-metadata.source.json` imagine rows | Excluded: vendored LiteLLM snapshot | +| OpenAI image API (`gpt-image-2.6-*` defaults, SVG/GIF, `gpt-image-2` shutdown 2027-02-10) | No change: the OpenAI `/v1/images` relay forwards the body verbatim (`src/server/images.ts`), so new parameters and models pass through; OpenCodex hard-codes no OpenAI image model | +| OpenAI transcription model (`gpt-4o-transcribe`) | Unchanged: the OpenAI report names no replacement | +| GPT-6.2 Astra/Sol catalog | Out of scope here (LLM catalog; separate lane) | +| Codex `applicable_available_count`, `rate_limit_upsell` CTAs (`buy_reset` → `https://chatgpt.com/codex/purchase/reset`), Luna Reserve (`x-openai-codex-luna-reserve`) | Unchanged: OpenCodex already reads `rate_limit_upsell.banner_type` and handles `gpt-reserve`; the applicability count has no official definition (030) | +| Grok coupon RPC location (`grok_api_v2.GrokBuildBilling` vs `prod_mc_billing.ConsumerUiSvc`) | Unchanged: both answer live; redemption path not exercised (030) | diff --git a/devlog/_plan/261121_models_overall_toggle/010_plan.md b/devlog/_plan/261121_models_overall_toggle/010_plan.md new file mode 100644 index 00000000000..9adb39f5754 --- /dev/null +++ b/devlog/_plan/261121_models_overall_toggle/010_plan.md @@ -0,0 +1,219 @@ +# 010 — Model on/off from Providers, and an Overall tab in Models + +Lane fb-models. Base `origin/dev` @ d61cca122d. Branch `codex/fb2100-models-toggle`. Class C3 (GUI, two +surfaces sharing one persisted state; no server or wire change). + +## Problem + +Turning a model on or off works only on the Models page catalog tab. The Providers page model list +hides disabled models and offers a one-way Hide button, so re-enabling a model means leaving for the +Models page. There is also no single searchable list of every model across providers. + +## Persisted state both surfaces must agree on + +- Write: `PUT /api/model-visibility {scope:"models", provider, targets:[{id, native}], enabled}` + (`gui/src/model-visibility.ts` `putModelVisibility`). The server updates the provider allowlist + (`selectedModels`) and the shared `disabledModels` list in one write + (`src/server/management/model-routes.ts` ~L734). +- Read: final visibility = `modelVisible(selected, provider, id, native, row.disabled)` + (`gui/src/model-visibility.ts`), the same rule Models.tsx applies through + `collectDisabledNamespaced` + `savedModelVisible`. +- Optimistic, ordered, single-flight writes with one authoritative re-read when the queue drains: + `gui/src/use-model-visibility.ts`. Models.tsx feeds its `onBusy` into `catalogMutationRef`, + which stops the 10 s catalog poll from repainting rows mid-flight. + +## Changes + +1. **Shared toggle helper** — new `gui/src/model-visibility-switch.tsx`: + `rowVisibilityTarget(row)`, `rowSavedVisible(selected, row)` (wraps `modelVisible`), and + `ModelVisibilitySwitch({ row, on, disabled, onToggle })` rendering `Switch` from `ui.tsx` + (`role="switch"`, `aria-checked`, constant label = model id or namespaced id). Used by 3a and 3b. +2. **3a Providers** — `gui/src/components/provider-workspace/ProviderModels.tsx` + + `ProviderModelChip.tsx`: + - list every provider row (disabled rows included, dimmed); free-only/search apply to all rows; + - each chip gets `ModelVisibilitySwitch`; the Hide (eye) button is removed, Delete stays for owned + custom rows; the confirm dialog only guards Delete (a switch is reversible, NN/G guidance); + - writes go through `useModelVisibility`; its `refresh` calls the existing `retry()` (paired + /api/selected-models + /api/models parent read and ownership read) and resolves when a newer + `modelRevision` becomes ready (true) or fails (false); abort resolves false; + - switch disabled when the row is `initialSelectionPending`, the Delete/Add flight is busy, or the + inventory is not ready (except while the visibility queue itself is pending); Delete/Add blocked + while the visibility queue is pending, so the two flights never interleave; + - header count becomes `models.active` ({on}/{total} visible); settle error shows inline + (`models.saveFailed` / `models.networkError`). +3. **3b Overall tab** — new tab id `overall` (hash `#models/overall`, after `catalog`): + - `gui/src/pages/models-tab.ts`: union, `MODELS_TABS`, `readModelsTab`; `models-tab-strip.tsx` label; + - new `gui/src/pages/models-overall/ModelsOverallPanel.tsx`: Subagents-picker layout (`Frame`, + search input with icon, count pill, scrollable ruled list), All/On/Off filter buttons + (`aria-pressed`), rows = provider mark + model label + provider slug + switch, stable server + order (rows do not jump on toggle), render cap with "Show N more" (`models.showMore`), cold / + failed states passed in; + - `Models.tsx` wiring only (~20 lines, cap 2792, now 2738): panel shell like the other tabs, + `SUBTITLE_TKEY.overall`, `tabMeta.overall`, catalog resource `enabled` also on the overall tab, + the action toast rendered for catalog and overall, and the panel receives the SAME + `modelVisible`/`applyVisibility`/`busy` so both tabs share one queue and one poll guard; + - `gui/src/styles-models-workspace.css`: overall panel gets the 1200 px column like catalog. +4. **Copy** — new `gui/src/i18n/models-overall-copy.ts` (11 locales, one row per key), spread into + the 11 locale files (one import + one spread line each). Keys: `models.tab.overall`, + `modelsOverall.lede`, `.title`, `.search`, `.filterLabel`, `.filter.all|on|off`, `.empty`, + `.noModels`, `.providerColumn` (as needed). +5. **Docs** — `docs-site/src/content/docs/guides/web-dashboard.md` (and providers guide if it + describes the Hide button): one short paragraph for the Overall tab and the provider switches. + +## Tests (written first, must fail before the change) + +- `gui/tests/provider-model-switches.test.tsx` (new): enabled, disabled and allowlist-excluded rows all + render with switches whose `aria-checked` follows allowlist AND disabled; a click flips the switch + immediately, sends one PUT with the exact body, and the switch stays on after the parent re-read; + while that write and its re-read run every switch is disabled and a second click sends nothing + (Providers is single-write, see round 4); Delete is blocked while a toggle is pending. +- `gui/tests/models-overall-tab.test.tsx` (new): `#models/overall` selects the Overall tab; models from + two providers listed; search narrows the list; On/Off filters; a click sends the PUT and the + catalog tab shows the same state afterwards; a held catalog read during the write does not revert + the switch. +- Update `provider-model-management.test.tsx` / `provider-model-custom-add.test.tsx` cases that pin the + removed Hide button: replace Hide with the switch where the case is about identity/visibility, + keep every Delete case unchanged. + +## Verification + +`bun run typecheck`; `bun run lint:gui`; `cd gui && bun run lint:i18n`; `cd gui && bun test` on every +touched/new test file (whole files); `cd gui && bun run build`; `bun run test:changed`; +`bun test tests/repo-health/file-size*` (ratchet); full `bun run test` if the host has headroom. +Screenshots: isolated `OPENCODEX_HOME`, `bun run src/cli/index.ts start --port `, GOAT browser. + +## Risks + +- Provider tab switch remounts ProviderModels and aborts an in-flight PUT client-side; the server may + still commit it, and the next view re-reads. Same contract as Models on a server change. +- Removing Hide changes a tested behavior on purpose; Delete keeps its confirm and single flight. + + +## Audit round 1 (terra, FAIL) — resolutions + +1. **Router.** Add `"models/overall"` to `MODELS_TAB_HASHES` in `gui/src/app-routing.ts` (and its comment), so + `resolveHashRoute` keeps `#models/overall`. Test: app-routing resolves `models/overall` with no + replace, and Models mounted at `#models/overall` selects the Overall tab. +2. **One rule.** Shared helper `savedRowVisible(selected, disabledSet, row)` = + `modelVisible(selected, row.provider, row.id, row.native === true, disabledSet.has(row.namespaced))`, + where `disabledSet = collectDisabledNamespaced(allRows)` — exactly the catalog rule. Overall reads it + with Models.tsx's own `selectedModelMap`/`disabled` set + `visibility.visible` overrides; Providers + reads it in the shell with the shell's full `modelSnapshot.rows` and full selection map. Overall + switches are disabled for `initialSelectionPending` and `(busy && !visibility.pending)`, identical to + catalog L1711. Test: native/custom/allowlist-excluded rows agree between Catalog and Overall. +3. **Settlement and lifetime.** The provider queue moves to the shell: new + `gui/src/provider-workspace/use-provider-model-visibility.ts` wraps `useModelVisibility`, is called in + `ProviderWorkspaceShell` (which owns the paired /api/selected-models + /api/models read and does not + remount on a provider switch), and is handed down as `DetailSlotData.modelVisibility` + (Providers.tsx -> ProviderDetails -> ProviderModels). `refresh(signal)` records the current revision, + calls the shell's `retryModels()` (always bumps `modelsLoadEpoch`, so the revision always changes), + and resolves `true` when a newer revision is `modelRowsReady`, `false` when that newer revision + fails or the signal aborts (waiter removed). No optional callback: the shell always has `retryModels`; + when `ProviderModels` gets no `modelVisibility` (other hosts) the switches are not rendered. Leaving + the Providers page unmounts the shell and aborts like leaving the Models page does today (same + contract as the existing hook); a provider switch no longer aborts anything. Ownership (custom + definitions) is not part of visibility, so settlement does not wait on it; the stale-ownership guard + below disables a switch until ownership for the current revision is ready. +4. **Synchronous gates both ways.** Switch handler returns early when `flight.current` (Delete/Add, + claimed before the dialog and held through reconciliation) is set; Delete/Add return early when + `modelVisibility.isRunning()` (ref-backed). Switch disabled for `initialSelectionPending`, for the + stale custom-override case kept from `actionFor` (non-native, non-custom row whose id has a stored + custom definition), and while ownership for the current revision is not ready unless the visibility + queue itself is pending. Tests: Delete dialog open -> switch click sends nothing; switch pending -> + Delete sends nothing; stale ownership -> switch disabled. +5. **Integration failures.** Extract the catalog's warning into + `gui/src/components/integration-refresh-warning.tsx` (`IntegrationRefreshWarning({ failures })`, + same copy `models.integrationRefreshWarning` + `describeIntegrationRefusalParts`), render it in the + Catalog panel (replacing the inline block), the Overall panel, and ProviderModels (failures from the + shell hook's `onResponse`). Test: a PUT answering `clientIntegrations:[{ok:false}]` shows the warning + on Providers and on Overall. +6. **Gate.** `catalogActive` stays Catalog-only; a new `catalogDataActive = catalogActive || tab === "overall"` + enables only the catalog resource. Picker, v2 and preset loaders stay Catalog-only. +7. **Test rewrites keep guarantees.** Hide cases become switch cases asserting the exact native PUT body + and identity labels; Delete dismissal, platform-dialog traps, and single flight through both + reconciliation reads stay; custom-add hidden-row cases assert `aria-checked="false"` while keeping + duplicate and hidden-save checks. + + +## Audit round 2 (terra, FAIL) — resolutions + +1. **Lock lifetime.** The Delete/Add lock moves to the shell with the visibility queue: + `modelVisibility.mutationLock` (a shell-owned ref) replaces ProviderModels' local `flight` ref when + present. Claim is unchanged (before the consent dialog). Release: on dismiss; in the reconcile effect + when mounted; in `finish()` when the instance already unmounted (it already calls `onRetryModels` + there); and in the unmount cleanup only when this instance is past its request (phase + `reconcile`/idle — never while its dialog or request is open, those paths release themselves). The + switch checks the same lock synchronously, and Delete/Add check `modelVisibility.isRunning()`, so + the two flights exclude each other across provider and tab remounts. Tests: Delete in flight -> + leave the Models tab and come back -> switch click sends nothing until the Delete settles. +2. **No ownership exception.** Switches are disabled whenever ownership for the current revision is not + ready, including while the visibility queue is pending. Test: ownership read held after a toggle -> + switches disabled until it lands. +3. **Page unmount.** Kept as the existing hook contract, with evidence that no committed write can be + missed: `PUT /api/model-visibility` has no `await` between `readManagementJsonBody` + (src/server/management/model-routes.ts:736) and `persistConfig` (:851). An aborted request either + never delivered its body (no commit) or committed in the same server turn, before any later request + is handled; remounting the shell always issues a fresh paired read (ProviderWorkspaceShell effect on + `modelRevision`). Test: toggle, unmount the page before the response, the server commits, remount -> + the switch shows the committed state. +4. **Residuals taken.** Router test uses `resolveAppHashChange` for direct load and Back/Forward. Extra + tests: virtual combo rows toggle with provider `combo` on Overall, a failed revision waiter reports + `models.networkError`, a click during the shell refresh sends nothing on Providers (single-write); + the ordered multi-click queue stays covered by gui/tests/models-visibility-queue.test.tsx. + + +## Audit round 3 (terra, FAIL) — main-agent decision: NEAR-PASS + +Three rounds narrowed to properties of the existing Delete/Add flow and of the existing +`useModelVisibility` unmount contract, not of the new surfaces. Decision (LOOP-DOOM: stop widening): + +- **Taken:** the Delete consent dialog gets an unmount-scoped AbortSignal (`confirmAction` already + supports `signal`, gui/src/action-dialogs.ts:34), so leaving the tab/provider dismisses it and + releases the local lock. Test included. +- **Simplified (replaces round-2 item 1):** no shell-owned lock. ProviderModels keeps its local + `flight` ref for Delete/Add exactly as today; the switch checks it synchronously, and Delete/Add check + the shell queue's `isRunning()` synchronously. Within one mounted inventory the two flights exclude + each other. +- **Residual A (accepted):** a Delete whose request was already sent before an unmount can overlap a + switch write in the next mount. Each server request is atomic (one `persistConfig` per request) and + both flows end in a full paired re-read, so state converges; Delete-then-Delete across a remount + already behaves this way on dev. +- **Residual B (accepted):** leaving the Providers page mid-write aborts the client request, the same + contract the Models page has today (use-model-visibility.ts:38). If the server is still suspended in + the body read when the next mount's GET is served, that first read can predate the commit; any later + read (provider re-open, Models poll, retry) converges. Fixing it belongs in the shared hook for both + pages and is out of this lane's scope; it will be named in the PR. + + +## Audit round 4 (terra, FAIL) — resolution + +- **Providers is single-write.** On the Providers surface every switch (and Delete/Add) is disabled, and + the click handler returns early, while the shell queue `isRunning()` — from the click through the + post-write paired read. The queue therefore never holds an accepted-but-unsent intent on this page, + so leaving the page can lose at most the one request already sent (Residual B, unchanged from dev). + The ordered multi-click queue stays a Models-page behavior (Catalog and Overall), as on dev. + Test: first PUT held -> every switch disabled and a second click sends nothing; release -> after + the re-read the switches enable again. + + +## Outcome (B/C) + +Implemented on `codex/fb2100-models-toggle` (71fdcba6f, 5122863c1, fc714612d): + +- Shared rule `gui/src/model-visibility-rows.ts` and switch `gui/src/model-visibility-switch.tsx`, used by the + provider Models tab and the Models Overall tab (and the same rule the catalog uses). +- Provider queue `gui/src/provider-workspace/use-provider-model-visibility.ts` owned by + ProviderWorkspaceShell; ProviderModels lists off rows with a switch, single-write, Delete consent + dialog withdrawn on unmount, switches disabled while it is open. +- Overall tab `gui/src/pages/models-overall/ModelsOverallPanel.tsx`, hash `#models/overall`, catalog + resource gate `catalogDataActive`, shared action toast, stale-refresh notice, integration warning + extracted to `gui/src/components/integration-refresh-warning.tsx`. +- Copy `gui/src/i18n/models-overall-copy.ts` (11 locales); docs in en/es/fr/ja/ko/ru/tr/zh-cn/zh-tw. + +Independent terra code review (gpt-6.1-terra, high): APPROVE-WITH-FIXES; both P2 findings fixed in +5122863c1 with failing-first tests. Real-client check on an isolated OPENCODEX_HOME/CODEX_HOME: a +switch on Providers turned `mistral/devstral-2` on (5/6 visible) and Overall showed it on; turning it +off from Overall showed it off on Providers after a fresh read (4/6 visible). + +Did not improve / residuals: Residual A and B above remain (pre-existing dev contracts). The +Providers page is deliberately single-write, so rapid multi-toggling there is slower than on Models. diff --git a/docs-site/astro.config.mjs b/docs-site/astro.config.mjs index 5278833b7c2..366a16b1fbb 100644 --- a/docs-site/astro.config.mjs +++ b/docs-site/astro.config.mjs @@ -102,6 +102,7 @@ export default defineConfig({ { label: "Providers", translations: { es: "Proveedores", fr: "Fournisseurs", ko: "프로바이더", "zh-CN": "提供商", "zh-TW": "供應商", ru: "Провайдеры", ja: "プロバイダー", tr: "Sağlayıcılar" }, slug: "guides/providers" }, { label: "Kiro request credits", translations: { es: "Créditos por solicitud de Kiro", fr: "Crédits de requête Kiro", ko: "Kiro 요청 크레딧", "zh-CN": "Kiro 请求额度", "zh-TW": "Kiro 請求額度", ru: "Кредиты запросов Kiro", ja: "Kiro リクエストクレジット", tr: "Kiro istek kredileri" }, slug: "guides/kiro-request-credits" }, { label: "API-key catalog", translations: { es: "Catálogo de proveedores con clave API", fr: "Catalogue des clés API", ko: "API 키 카탈로그", "zh-CN": "API 密钥目录", "zh-TW": "API 金鑰目錄", ru: "Каталог API-ключей", ja: "API キーカタログ", tr: "API Anahtarı Kataloğu" }, slug: "guides/api-key-catalog" }, + { label: "StepCode CLI (subscription)", translations: { es: "StepCode CLI (suscripción)" }, slug: "guides/step-cli" }, { label: "Google Vertex AI", translations: { es: "Google Vertex AI" }, slug: "guides/google-vertex" }, { label: "Factory Droid Bridge", translations: { es: "Puente Factory Droid", fr: "Pont Factory Droid", ko: "Factory Droid 브리지", "zh-CN": "Factory Droid 桥接", "zh-TW": "Factory Droid 橋接", ru: "Мост Factory Droid", ja: "Factory Droid ブリッジ", tr: "Factory Droid köprüsü" }, slug: "guides/factory-droid" }, { label: "Ollama-Compatible Clients", translations: { es: "Clientes compatibles con Ollama", fr: "Clients compatibles Ollama", ko: "Ollama 호환 클라이언트", "zh-CN": "Ollama 兼容客户端", "zh-TW": "Ollama 相容用戶端", ru: "Клиенты, совместимые с Ollama", ja: "Ollama 互換クライアント", tr: "Ollama uyumlu istemciler" }, slug: "guides/ollama-clients" }, diff --git a/docs-site/src/content/docs/es/getting-started/quickstart.md b/docs-site/src/content/docs/es/getting-started/quickstart.md index 08429c4cc5f..478f662906d 100644 --- a/docs-site/src/content/docs/es/getting-started/quickstart.md +++ b/docs-site/src/content/docs/es/getting-started/quickstart.md @@ -23,7 +23,7 @@ ocx init `ocx init` te guía por estos pasos: -1. **Elegir un proveedor**: selecciona uno de los 111 preajustes del registro integrado o `custom` para introducir una URL base y un adaptador. +1. **Elegir un proveedor**: selecciona uno de los 112 preajustes del registro integrado o `custom` para introducir una URL base y un adaptador. 2. **Clave API**: pega una clave o indica una variable de entorno como `${ANTHROPIC_API_KEY}`. 3. **Modelo predeterminado**: para proveedores con clave, locales o personalizados, acepta el preajuste o introduce un identificador de modelo. 4. **Puerto del proxy**: `10100` de forma predeterminada. diff --git a/docs-site/src/content/docs/es/guides/api-key-catalog.md b/docs-site/src/content/docs/es/guides/api-key-catalog.md index 43121649296..a4f7bd5974b 100644 --- a/docs-site/src/content/docs/es/guides/api-key-catalog.md +++ b/docs-site/src/content/docs/es/guides/api-key-catalog.md @@ -9,7 +9,7 @@ de cuentas y los proveedores locales siguen en esa página. Para rotar cuentas de suscripción, consulta [`reset-near-weighted`](/es/reference/configuration/providers/#reset-near-weighted) en los grupos OAuth de Codex y Anthropic. Los grupos de claves API usan sus propios [ajustes de selección de claves](/es/reference/configuration/providers/). -opencodex incluye 111 preajustes integrados: 89 con clave, 18 OAuth, tres locales y uno predeterminado de reenvío a ChatGPT. El selector **Añadir proveedor** abre el formulario del proveedor con clave, valida la credencial cuando el proveedor permite comprobarla y la guarda; cada proveedor tiene su propia validación. Entre ellos: +opencodex incluye 112 preajustes integrados: 90 con clave, 18 OAuth, tres locales y uno predeterminado de reenvío a ChatGPT. El selector **Añadir proveedor** abre el formulario del proveedor con clave, valida la credencial cuando el proveedor permite comprobarla y la guarda; cada proveedor tiene su propia validación. Entre ellos: **ClinePass** utiliza una clave API de Cline con el [catálogo oficial de suscripción](https://docs.cline.bot/getting-started/clinepass) y el [punto final de Chat Completions](https://docs.cline.bot/api/chat-completions), operados por Cline Bot Inc. bajo [los términos de Cline](https://cline.bot/tos). Un id enrutado como `cline-pass/cline-pass/kimi-k3` es intencional: el primer segmento selecciona el proveedor de opencodex, mientras que `cline-pass/kimi-k3` es el identificador de modelo completo que se envía aguas arriba. La cuota de ClinePass se comparte por cuenta entre límites rotativos de 5 horas, semanales y mensuales. Una sonda en vivo del 2026-08-13 verificó que todos los modelos estáticos de ClinePass aceptan `low`, `medium`, `high`, `xhigh` y `max` en el límite de entrada de la pasarela. opencodex conserva los niveles solicitados; cualquier normalización específica del backend sigue siendo responsabilidad de ClinePass. @@ -332,7 +332,7 @@ El CLI inicia primero un entorno de agente completo, por lo que el descubrimient - **Propiedad de la herramienta:** El CLI ejecuta un solo giro `stream-json` con `--tools ""`, `--strict-mcp-config`, deshabilitando las fuentes y la persistencia de la sesión, por lo que Codex mantiene la propiedad exclusiva de la herramienta. Las herramientas declaradas por el cliente se exponen a través de un servidor MCP aislado. - **Entrada de imagen:** Global sigue reenviando las imágenes compatibles mediante la proyección compartida, sin una lista de visión por modelo. CN conserva los valores predeterminados de su sidecar de visión. Su ruta de imágenes directas solo admite un PNG base64 canónico de hasta 1 MiB decodificado, 8192 píxeles por lado y 16 millones de píxeles en total, en un único turno de usuario, con `DeepSeek-Flash` o `Qwen3.8-Flash`. Usa `qoderclicn 1.1.70`: la [issue #7516](https://github.com/lidge-jun/opencodex/issues/7516) registra éxito real en Windows 11 x64 para ambos modelos con `--attachment` y con stdin en formato `--input-format stream-json --output-format stream-json`; OpenCodex solo usa stdin. Antes de descubrir la CLI, valida la longitud y el relleno base64, la firma PNG decodificada y los campos IHDR básicos. No descomprime píxeles ni valida todos los bloques o CRC. Estos límites son una política de recursos de OpenCodex, no máximos verificados del proveedor: la evidencia real corresponde a un PNG de 96×96 cuyo ráster RGBA ocupa 36 KiB. Los tamaños mayores necesitan verificación independiente. No se han verificado otras versiones de la CLI y el adaptador no comprueba la instalada. CN rechaza imágenes por URL, otros formatos o modelos, varias imágenes, imágenes de resultados de herramientas e historial con imágenes o repetición entre turnos antes de iniciar la CLI, con `unsupported_input_modality`; usa el sidecar de visión para esos casos. Las pruebas con una CLI inyectada verifican serialización y cancelación, sin demostrar soporte real del proveedor. La proyección compatible de Qoder conserva el orden de las imágenes y marca referencias no admitidas como `[image omitted: unsupported reference]`. La repetición sin estado de Global todavía puede asociar incorrectamente imágenes históricas con su texto original; CN no habilita esa repetición sin verificar. - **Recuperación de PAT:** en ambos preajustes de Qoder, un grupo de claves API con varias claves puede cambiar a otra PAT ante un rechazo de autenticación admitido o un agotamiento de cuota a nivel de cuenta, pero solo antes de que haya contenido de respuesta o un evento que haga insegura la repetición. La recuperación exige una clasificación específica de Qoder y respeta los presupuestos de credenciales y de envío; un mensaje de cuota o un HTTP 401/429 por sí solo no autoriza a repetir. Las configuraciones de una sola clave no rotan. Compartir el corredor del CLI no habilita esta recuperación de clave API para CodeBuddy ni para el CLI de Claude autenticado por sí mismo. -- **Contingente:** No se utiliza la cuota pública API, por lo que los totales y los tiempos de reinicio no están disponibles. Los códigos 110 (límite diario de cuenta) y 118 (agotamiento de créditos personales) informan `insufficient_quota` y permiten la consideración de la recuperación de PAT. Otros códigos de cuota soportados también reportan `insufficient_quota` pero no lo autorizan. Los códigos de error numéricos tienen prioridad: un código numérico no reconocido no vuelve a la cuota o al texto de autenticación. Sin un código numérico, solo el mensaje diario de la cuenta compatible que comienza con "Ha alcanzado su límite de uso diario para Chat", sin equipo/modelo/calificador compartido, otorga recuperación de cuota; el texto genérico de límite de crédito no lo hace. Solo los fallos de cuota elegibles para la recuperación de PAT ingresan al manejo de enfriamiento de claves. Cuando un fallo de este tipo no tiene tiempo de reinicio, la clave fallida utiliza el tiempo de reutilización predeterminado existente; las clasificaciones de cuotas no recuperables no crean un tiempo de reutilización a través de esta ruta, y no se infiere ningún reinicio del día siguiente. +- **Contingente:** No se utiliza la cuota pública API, por lo que los totales y los tiempos de reinicio no están disponibles. Los códigos 110 (límite diario de cuenta) y 118 (agotamiento de créditos personales), ya sean numéricos o cadenas numéricas puras, informan `insufficient_quota` y permiten la consideración de la recuperación de PAT. Otros códigos de cuota soportados también reportan `insufficient_quota` pero no lo autorizan. En `qoder-cn`, cuando `error_code` está ausente, es HTTP `403`/`"403"` externo o `112`/`"112"` (sin código de error distinto de 403 en el objeto JSON de respuesta ni en su objeto `error`/`data` de nivel superior, y sin otro campo de nivel superior que `pricingUrl` y códigos 403, de modo que un texto explicativo como un bloqueo o un permiso denegado conserva el error original), la respuesta verificada `inference.remoteChat.stream failed (403)` cuyo cuerpo JSON incluye `pricingUrl` en `https://qoder.com.cn/pricing` también informa `insufficient_quota` y permite la recuperación de PAT; Global y otros 403 no relacionados no lo hacen. Los demás códigos de error explícitos del proveedor tienen prioridad: cualquier otro `error_code` numérico o no numérico (como `114`, `130`, `PERMISSION_DENIED` o `112` sin esa respuesta CN verificada con URL de precios) no recurre al texto de cuota, URL de precios ni autenticación. Sin un `error_code` explícito, solo los mensajes diarios de cuenta admitidos que comienzan con “You've reached your daily usage limit for Chat” o “You have reached the daily usage limit”, sin calificador de equipo/modelo/compartido, otorgan recuperación de cuota; el texto genérico de límite de crédito no lo hace. Solo los fallos de cuota elegibles para la recuperación de PAT ingresan al manejo de enfriamiento de claves. Cuando un fallo de este tipo no tiene tiempo de reinicio, la clave fallida utiliza el tiempo de reutilización predeterminado existente; las clasificaciones de cuotas no recuperables no crean un tiempo de reutilización a través de esta ruta, y no se infiere ningún reinicio del día siguiente. - **Operadores:** Qoder Global es operado por BRIGHT ZENITH PRIVATE LIMITED bajo el [términos de servicio del producto](https://qoder.com/product-service); Qoder CN by?(?)? con Alibaba Cloud. Verifique `ocx provider test qoder` (o `qoder-cn` ) después de configurar. diff --git a/docs-site/src/content/docs/es/guides/claude-code.md b/docs-site/src/content/docs/es/guides/claude-code.md index f762bba75fd..b496eece20b 100644 --- a/docs-site/src/content/docs/es/guides/claude-code.md +++ b/docs-site/src/content/docs/es/guides/claude-code.md @@ -587,8 +587,8 @@ El proxy traduce cada solicitud Anthropic Messages API al formato Codex Response | Messages entrada | Responses salida | | --- | --- | -| Nivel superior `system` | `instructions` (bloques de texto unidos con `\n\n`) | -| `messages[].role: "system"` | También doblado en `instructions` | +| Nivel superior `system` | `instructions` (bloques de texto unidos con `\n\n`). Para GPT-6.2 Sol y Astra con inicio de sesión de Codex, se envía como el primer mensaje `developer` para poder almacenarse en caché | +| `messages[].role: "system"` | Se traducen a mensajes `developer` en su posición original | | Texto / imagen del usuario | `input_text` / `input_image` (base64 → URL de datos) | | Texto del asistente | `output_text` | | Asistente `tool_use` | `function_call` ( `input` → `arguments` serializado como JSON ) | @@ -693,6 +693,10 @@ La barra de guardado pegajosa muestra **Sin cambios** cuando la configuración g ## Solución de problemas +**Claude Code indica que Anthropic exige verificar la cuenta** — Abra el +[Portal de verificación de Anthropic](https://portal.anthropic.com/verify) e inicie sesión con la cuenta afectada. +OpenCodex conserva el HTTP 403 y registra `account_verification_required` en sus registros de solicitudes para este aviso. + ### Desktop en Windows informa de `client_lifecycle_lock_failed` al aplicar Actualiza OpenCodex si aplicar la configuración de Desktop se bloquea cuando hay muchos archivos de diff --git a/docs-site/src/content/docs/es/guides/codex-app-models.md b/docs-site/src/content/docs/es/guides/codex-app-models.md index ad7c441c92b..aa8951231ab 100644 --- a/docs-site/src/content/docs/es/guides/codex-app-models.md +++ b/docs-site/src/content/docs/es/guides/codex-app-models.md @@ -243,9 +243,9 @@ La asignación se aplica a todos los modelos Fast-elegibles en ese proveedor. Ut Solo un cable `service-tier` elegible con una asignación explícita de `ultrafast → ultrafast` agrega esta opción a las filas enrutadas; el soporte Fast ordinario o un nombre similar a GPT es insuficiente. Esa asignación enrutada no se aplica a filas nativas/de cuenta o alias combinados. La eliminación de la asignación o la desactivación del soporte de nivel de servicio de ese modelo elimina la opción enrutada generada tanto del catálogo como de la caché en la siguiente sincronización exitosa. La declaración activa también controla la opción Ultra Fast cuando Codex carga su lista de modelos sobre HTTP. -Para filas enrutadas, `ultraFastTier` conserva los niveles Ultra Fast suministrados de forma independiente desde la misma fila persistente exacta; los niveles enrutados generados no se tratan como proporcionados por el operador. Para las filas nativas sin calificar `gpt-6-astra` / `gpt-6.1-sol` y sus clones vinculados a la cuenta de confianza, habilitar `ultraFastTier` también genera una opción Ultrafast que falta sin cambiar el nivel predeterminado nativo. Al deshabilitarlo, solo se retiran los metadatos de nivel nativo rastreados según se generan; se conservan los descriptores de nivel nativo suministrados o editados de forma independiente. +Para filas enrutadas, `ultraFastTier` conserva los niveles Ultra Fast suministrados de forma independiente desde la misma fila persistente exacta; los niveles enrutados generados no se tratan como proporcionados por el operador. Para las filas nativas sin calificar `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.2-astra` y `gpt-6.2-sol` y sus clones vinculados a la cuenta de confianza, habilitar `ultraFastTier` también genera una opción Ultrafast que falta sin cambiar el nivel predeterminado nativo. Al deshabilitarlo, solo se retiran los metadatos de nivel nativo rastreados según se generan; se conservan los descriptores de nivel nativo suministrados o editados de forma independiente. -La [guía de la API de OpenAI](https://developers.openai.com/api/docs/guides/ultrafast-mode) documenta Ultrafast para GPT-6 Astra y GPT-6.1 Sol. El acceso a la API y el [plan y acceso al espacio de trabajo de Codex](https://learn.chatgpt.com/docs/agent-configuration/speed) son independientes. La elección del menú no otorga acceso al proveedor ni garantiza la velocidad medida; Ultra Fast aumenta el uso / costo, y los requisitos de características propias de Codex aún se aplican. +La [guía de velocidad de OpenAI](https://learn.chatgpt.com/docs/agent-configuration/speed#ultrafast-mode) documenta Ultrafast para GPT-6.2 Astra y Sol, además de GPT-6 Astra y GPT-6.1 Sol. El acceso a la API y el [plan y acceso al espacio de trabajo de Codex](https://learn.chatgpt.com/docs/agent-configuration/speed) son independientes. La elección del menú no otorga acceso al proveedor ni garantiza la velocidad medida; Ultra Fast aumenta el uso / costo, y los requisitos de características propias de Codex aún se aplican. diff --git a/docs-site/src/content/docs/es/guides/codex-integration.md b/docs-site/src/content/docs/es/guides/codex-integration.md index b8a5bbaf5ea..176e45168bb 100644 --- a/docs-site/src/content/docs/es/guides/codex-integration.md +++ b/docs-site/src/content/docs/es/guides/codex-integration.md @@ -9,6 +9,8 @@ El resumen **Conectar** incluye un interruptor de Codex para esta integración n El catálogo incluye metadatos de los programas de acceso autenticados tanto para los modelos nativos de Codex sin prefijo de cuenta como para las filas generadas del selector de cuentas. Los modelos sin prefijo utilizan la cuenta principal de Codex; los modelos con cuenta específica usan la seleccionada. Actualizar la integración renueva estas filas cuando cambian los programas de acceso de la cuenta. OpenCodex incorpora la información de disponibilidad de modelos de la cuenta principal que tiene la sesión iniciada a las filas nativas sin prefijo. +Las actualizaciones del catálogo conservan un presupuesto de compactación menor cuando la ventana de contexto final no cambia. Si el catálogo guardado tiene filas duplicadas para un modelo nativo, la primera fila aporta ese presupuesto; las filas posteriores se eliminan sin sustituir su configuración. + El proxy expone la ruta de inicio de sesión de Codex `openai` sin prefijo, con los modos de cuenta Pool (predeterminado) y Direct, además de `openai-apikey/` para la clave API configurada. Pool incluye la cuenta principal y las añadidas; Direct utiliza únicamente la credencial de quien realiza la solicitud o la cuenta principal. Estas rutas no recurren unas a otras como alternativa. Las configuraciones v1 existentes migran al marcador 2 y conservan `config.json.pre-openai-tiers-v2.bak` para una restauración manual. Cuando Pool selecciona una cuenta añadida, OpenCodex sustituye los identificadores de instalación ya presentes en los encabezados o metadatos del cliente por un identificador estable para esa cuenta y ese directorio de OpenCodex. Renovar el token conserva el identificador; cambiar de cuenta lo cambia. El modo Direct y la cuenta principal nativa mantienen los valores originales. Si no había metadatos de instalación, no se añaden. OpenCodex no modifica el archivo `installation_id` propio de Codex al cambiar de perfil nativo. Si no puede leer de forma segura el secreto local de instalación, la solicitud devuelve un 503 reintentable antes de llegar a ChatGPT. diff --git a/docs-site/src/content/docs/es/guides/combos.md b/docs-site/src/content/docs/es/guides/combos.md index 107a12772c9..2dc307a0fdb 100644 --- a/docs-site/src/content/docs/es/guides/combos.md +++ b/docs-site/src/content/docs/es/guides/combos.md @@ -822,6 +822,8 @@ Todos los objetivos no son elegibles actualmente: por ejemplo, su proveedor est Los errores de validación HTTP 400/422 que citan texto de cuota o del límite del nivel gratuito no activan una alternativa solo por ese texto. Un rechazo estructurado `free_rate_limited` sí prueba el siguiente destino apto, sin poner en enfriamiento al proveedor o destino sano. +Un HTTP 413 del proveedor indica que ese destino no admite una solicitud tan grande, no que la solicitud sea imposible. Los destinos tienen límites de entrada distintos (Groq, por ejemplo, rechaza un turno por encima del nivel de tokens por minuto de la cuenta con 413 y `rate_limit_exceeded`), así que el combo prueba el siguiente destino no intentado y no pone nada en enfriamiento. Si todos los destinos restantes también lo rechazan, el combo devuelve su error de tamaño de contexto: HTTP 413 para clientes sin streaming y un evento `response.failed` con `context_length_exceeded` para clientes de Responses con streaming. Un rechazo HTTP 400 de contexto confirmado anterior sigue teniendo prioridad, como se describe más abajo. Un 413 cuyo cuerpo OpenCodex no pudo leer completo también detiene el combo. Un 413 generado por el propio OpenCodex (`translation_buffer_limit`, `inbound_body_too_large`, `outbound_body_too_large` o el límite de atribución tardía de Ollama) sigue deteniendo el combo, porque todos los destinos alcanzarían el mismo límite. + ### ¿Por qué fue rechazado mi alias? @@ -832,6 +834,8 @@ Compruebe primero la gramática del alias y los nombres reservados. Un alias dup ### Rechazos por ventana de contexto +Los errores del proveedor con muchos espacios conservan las mismas reglas de desbordamiento y negación. Los espacios alrededor de los incisos de negación se procesan una sola vez, sin repetir la búsqueda sobre la misma secuencia. + Antes de enviar una solicitud a un destino de un combo de Responses con ventana de contexto y límite de entrada conocidos, OpenCodex aplica un margen de 1,1× a la estimación de tokens de entrada y redondea hacia arriba. La entrada ajustada debe caber en el límite de entrada, y la suma @@ -884,7 +888,7 @@ el proxy o el estado de selección del combo. Si está deshabilitada, se conserv Una pasada de recuperación pertenece solo a la solicitud que la reservó; las demás siguen observando los periodos de enfriamiento guardados. La reserva acompaña a esa solicitud durante las esperas y la selección JEV. Un destino que vuelve a estar disponible durante una espera puede reintentarse si su periodo de enfriamiento no cambió. Un enfriamiento más reciente cancela la reserva de ese destino. El éxito solo borra el enfriamiento sin cambios del destino que respondió; los destinos no probados y los fallos más recientes conservan sus periodos. -Un HTTP 400 puede ser incompatibilidad local del destino. El wrapper opaco OpenRouter `Provider returned error`, `code: 400` numérico, sin `type` y con `metadata.raw: "ERROR"`, permite otro destino sin enfriarlo. Un 400 tipado sin código, un `response_format` mal formado o código raíz terminal siguen siendo terminales. Una raíz con `model_not_found`, insufficient_quota, usage_limit_exceeded, free_rate_limited, `input_admission_refused` o unsupported_input_modality no añade otro veredicto; código vacío es ausente. Un evento de error streaming sin estado pero con `code` entero 400–599 se juzga como HTTP: antes de salida, 400/409/413/422 genéricos detienen, 401/402/403 enfrían proveedor y el exceso de contexto reconocido permite alternativa. +Un HTTP 400 puede ser incompatibilidad local del destino. El wrapper opaco OpenRouter `Provider returned error`, `code: 400` numérico, sin `type` y con `metadata.raw: "ERROR"`, permite otro destino sin enfriarlo. Un 400 tipado sin código, un `response_format` mal formado o código raíz terminal siguen siendo terminales. Una raíz con `model_not_found`, insufficient_quota, usage_limit_exceeded, free_rate_limited, `input_admission_refused` o unsupported_input_modality no añade otro veredicto; código vacío es ausente. Un evento de error streaming sin estado pero con `code` entero 400–599 se juzga como HTTP: antes de salida, 400/409/422 genéricos detienen, un 413 del proveedor avanza al siguiente destino, 401/402/403 enfrían proveedor y el exceso de contexto reconocido permite alternativa. Con `jevEffortMode: "decide"`, predeterminado, el esfuerzo elegido por JEV prevalece en el primer hijo Responses y en Chat nativo activado; elimina controles de pensamiento y service_tier incompatibles. Elegir sin esfuerzo también quita un predeterminado forzado. Con `"client"`, mantiene destino y deja esfuerzo al cliente, escala y defaultEffort; defaultEffortMode force sigue prevaleciendo. Fijaciones, límites y normalización del proveedor se aplican después. diff --git a/docs-site/src/content/docs/es/guides/google-vertex.md b/docs-site/src/content/docs/es/guides/google-vertex.md index 9cd29fdd9d2..0271e869cd4 100644 --- a/docs-site/src/content/docs/es/guides/google-vertex.md +++ b/docs-site/src/content/docs/es/guides/google-vertex.md @@ -27,19 +27,19 @@ y sin usuario ni contraseña en la URL. Los endpoints de gateways personalizados credenciales de Vertex. Restablece el endpoint de Google para usar el descubrimiento en vivo; los modelos configurados siguen disponibles cuando no se puede verificar el destino. -Los niveles de razonamiento siguen el preajuste: Gemini 4 Hydrogen ofrece low, medium, high (el +Los niveles de razonamiento siguen el preajuste: Gemini 4 Hydrogen y Neon ofrecen low, medium, high (el predeterminado) y xhigh; Gemini 4 Carbon y Argon ofrecen low, medium y high. Un modelo al que el preajuste no asigna niveles, como `gemini-3-pro`, no muestra ninguno, porque sus solicitudes no llevan nivel de razonamiento. -## Imágenes de herramientas en Gemini 4 +## Imágenes de herramientas en Gemini 3+ -En Vertex AI, `gemini-4-argon`, `gemini-4-carbon` y `gemini-4-hydrogen` reciben las imágenes -que devuelven las herramientas, como capturas de pantalla, dentro de la respuesta de función -correspondiente. En Argon esto evita el error 400 del servicio "Requests ending with a model turn -are not supported" tras una llamada a herramienta que produce imágenes; Carbon y Hydrogen usan la -misma forma documentada de respuesta de función, aunque ese error no se reprodujo en ellos. Las -imágenes de resultados duplicados o sin llamada correspondiente se conservan en un mensaje aparte -después de las respuestas de herramientas, con una marca que explica que no se pudieron emparejar. -No hace falta cambiar la configuración; este tratamiento es específico de estos modelos Gemini 4 en +En Vertex AI, los modelos Gemini 3 y posteriores (incluidos `gemini-3.8-flash`, `gemini-4-argon`, +`gemini-4-carbon`, `gemini-4-hydrogen`, `gemini-4-neon` y futuros modelos Gemini 4+ descubiertos) +reciben las imágenes que devuelven las herramientas, como capturas de pantalla, dentro de la respuesta +de función correspondiente. Esto evita el error 400 del servicio "Requests ending with a model turn are +not supported" reproducido en Argon, Neon y 3.8 Flash tras una llamada a herramienta que produce +imágenes. Las imágenes de resultados duplicados o sin llamada correspondiente se conservan en un +mensaje aparte después de las respuestas de herramientas, con una marca que explica que no se pudieron +emparejar. No hace falta cambiar la configuración; este tratamiento aplica a los modelos Gemini 3+ en Vertex. diff --git a/docs-site/src/content/docs/es/guides/image-bridge.md b/docs-site/src/content/docs/es/guides/image-bridge.md index f7769f50d68..d04a3bc52de 100644 --- a/docs-site/src/content/docs/es/guides/image-bridge.md +++ b/docs-site/src/content/docs/es/guides/image-bridge.md @@ -38,7 +38,7 @@ Las opciones del puente de imágenes se encuentran en `images`, dentro de `~/.op { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -48,7 +48,7 @@ Las opciones del puente de imágenes se encuentran en `images`, dentro de `~/.op | Opción | Predeterminado | Descripción | | --- | --- | --- | | `bridgeEnabled` | `false` | Interruptor maestro. Establecer `true` para permitir el puente. Desactivado por defecto para evitar cargos inesperados de xAI. | -| `bridgeModel` | `grok-imagine-image-quality` | El identificador de modelo de imagen xAI para enviar mensajes. | +| `bridgeModel` | `grok-imagine-image-2.0` | El identificador de modelo de imagen xAI para enviar mensajes. | | `maxRounds` | `3` | Iteraciones máximas de bucle de generación de imágenes por turno. Los valores se redondean hacia abajo al entero inferior y se limitan al intervalo `[0, 10]`; los valores no finitos usan el valor de respaldo `3`. | | `timeoutMs` | `60000` | Fecha límite xAI por llamada en milisegundos. Los valores positivos finitos se redondean hacia abajo al entero inferior y se pasan a la solicitud xAI. | | `artifactsKeepCount` | `200` | Número máximo de archivos retenidos bajo `artifacts/`. Cuando se excede, los archivos más antiguos se eliminan después de cada llamada completada. Establezca en `0` o un valor negativo para deshabilitar la poda. | @@ -81,3 +81,5 @@ Desde la perspectiva del modelo, nada cambió: llamó a una herramienta y obtuvo - **La búsqueda web tiene prioridad** cuando la solicitud es apta para el bucle de búsqueda web. Si se solicitan búsqueda y generación de imágenes en el mismo turno apto, se ejecuta la búsqueda y se omite la generación de imágenes. Esto incluye adaptadores `runTurn` aptos, como Cursor, mediante `runTurnWebSearchLoop`. El puente de imágenes solo puede atender esos turnos con ambas herramientas si la búsqueda web no resulta elegible. - **Se aplican costos de xAI.** La generación de imágenes a través de xAI requiere una suscripción activa a xAI o créditos API. - **Sólo streaming.** El puente funciona interceptando el flujo de respuesta SSE; las solicitudes con `stream: false` se rechazan con un error 400. + +El modelo predeterminado es `grok-imagine-image-2.0`. `quality` acepta `low`, `medium` y `auto`; `high` y `hd` de OpenAI se convierten en `medium`. El modelo retirado `grok-imagine-image-quality` (y `grok-imagine-image-pro`, redirigido a él desde 2026-05-15) se sirve como 2.0 con calidad baja. El precio depende de la calidad y la resolución; las ediciones añaden $0.01 por imagen de entrada. El relé `/v1/images/edits` reenvía hasta cinco imágenes de entrada (primero elimina duplicados); la herramienta puente `image_gen` envía una. diff --git a/docs-site/src/content/docs/es/guides/integrations.md b/docs-site/src/content/docs/es/guides/integrations.md index 49a07c3f84f..8823ada7e33 100644 --- a/docs-site/src/content/docs/es/guides/integrations.md +++ b/docs-site/src/content/docs/es/guides/integrations.md @@ -780,7 +780,7 @@ del proceso de OpenCodex. Si la variable se fija únicamente en el proceso de An no la detecta. En Windows `agy` no está probado, porque Google lo publica solo para macOS y Linux. Para conservar el JSON de Gemini, inicia sesión con `ocx login google-antigravity` y configura -`protocols.rollout.geminiNativeAntigravity` como `true` en el JSON de OpenCodex. Esta opción se +`protocols.rollout.geminiNativeAntigravity` como `true` en el JSON de OpenCodex. También puedes activar la transmisión nativa de Gemini en la pestaña **Cuentas** de Google Antigravity. Esta opción se aplica a las solicitudes de generación Gemini de `/v1beta` que se enrutan al proveedor OAuth canónico `google-antigravity`. Las demás rutas usan el puente de Chat. Consulta [Gemini nativo con Antigravity](/es/reference/proxy-formats/#native-gemini-with-antigravity). diff --git a/docs-site/src/content/docs/es/guides/providers.md b/docs-site/src/content/docs/es/guides/providers.md index 7ad16fd0631..9e3b8c636cd 100644 --- a/docs-site/src/content/docs/es/guides/providers.md +++ b/docs-site/src/content/docs/es/guides/providers.md @@ -7,6 +7,12 @@ Un **proveedor** es un punto final de LLM ascendente más cómo llegar a él: un La vista general del proveedor del panel separa los detalles de conexión, el uso de la cuenta y las notas editables. Las notas aparecen una vez, debajo de las secciones de conexión y autenticación. Los ajustes preestablecidos de patrocinador compatibles también muestran una breve introducción, una etiqueta de patrocinador y enlaces al sitio o consola del proveedor. Estos enlaces conservan los parámetros de referencia del preset. La información del patrocinador se muestra solo cuando el nombre del proveedor configurado, el adaptador y el punto final coinciden con el ajuste preestablecido; nunca cambia el enrutamiento, la selección de la cuenta o los valores predeterminados. + + +## Diagnósticos de rechazo del esfuerzo de razonamiento + +Los reintentos al mismo proveedor y modelo con un esfuerzo menor, y el aprendizaje de niveles no admitidos, usan un diagnóstico de error completo de hasta 1.024 unidades de código UTF-16, incluido cualquier texto envolvente. Un diagnóstico mayor no autoriza estos reintentos ni el aprendizaje a partir de su prefijo. El cuerpo original sigue disponible para el manejo habitual de errores, incluida la conmutación ordinaria de Combo; se mantienen los límites existentes de visualización de errores del cliente. Un error legítimo pero demasiado largo tampoco activa la reducción automática del esfuerzo ni actualiza los niveles aprendidos. Los diagnósticos breves como `cannot use parameter 'reasoning_effort'` siguen identificando el esfuerzo; un campo ajeno real sigue bloqueando el reintento y el aprendizaje. + ## Modos de cuenta OpenAI @@ -32,7 +38,7 @@ Para el inicio de sesión Codex en el modo Pool, la descripción general de prov Cuando la información de restablecimiento está disponible, la visión general muestra el siguiente tiempo de restablecimiento y la capacidad que se espera que se recupere como `+N% pool capacity`. **Cobertura incompleta** significa que una o más cuentas del grupo no podrían contribuir de manera segura a la estimación, por ejemplo, porque su plan o cuota es desconocido, su lectura es obsoleta o la cuenta está pausada o necesita reautenticación. -Las cuentas Business Premium identificadas como `self_serve_business_prolite` cuentan como cinco unidades Standard en esta estimación. Ese peso solo sirve para mostrar capacidad: no selecciona cuentas ni crea una ventana de cinco horas si el proveedor solo informa uso semanal. La calibración sigue los [límites oficiales de Business](https://help.openai.com/en/articles/12003714-chatgpt-business-models-and-limits), comprobados el 20 de octubre de 2026. Los planes desconocidos mantienen el peso base y se informa su cantidad. +Pro 100 (`prolite`), Pro 200 (`pro`) y Pro 500 (`promax`) cuentan como 10, 20 y 50 unidades Plus, respectivamente. Las cuentas Business Premium identificadas como `self_serve_business_prolite` cuentan como cinco unidades Standard en esta estimación. Ese peso solo sirve para mostrar capacidad: no selecciona cuentas ni crea una ventana de cinco horas si el proveedor solo informa uso semanal. La calibración sigue los [límites oficiales de Business](https://help.openai.com/en/articles/12003714-chatgpt-business-models-and-limits), comprobados el 20 de octubre de 2026. Los planes desconocidos mantienen el peso base y se informa su cantidad. Una advertencia de **Cobertura de ventana parcial** significa que algunas cuentas incluidas informaron una ventana de cuota pero no otra. La descripción general mantiene esas ventanas separadas y marca cada ventana afectada incompleta en lugar de tratar la lectura faltante como uso para esa ventana. @@ -154,7 +160,7 @@ La pestaña Cuentas Antigravity muestra un nivel de membresía observado como un Gemini 4 Argon (`gemini-4-argon`) aparece en el preajuste `google` con niveles de pensamiento bajos, medios (el predeterminado) y altos. Google lo ofrece solo en el nivel pagado Gemini API, no en el nivel gratuito. El `google-antigravity`, Argon aparece con los mismos tres niveles, que se asignan a los modelos del protocolo `gemini-4-argon-low`, `-medium` y `-high`. Google lo limita a las cuentas AI Ultra y Enterprise elegibles. Cloud Code Assist sirve Argon solo al cliente Antigravity CLI, por lo que OpenCodex envía todas las solicitudes de modelos Gemini 4 y el descubrimiento de modelos con el CLI User-Agent (`antigravity/cli/1.3.4` ) y mantiene el IDE User-Agent para cualquier otro modelo. Gemini 4 Hydrogen (low, medium, high por defecto y xhigh) aparece en `google-antigravity` solo cuando la lista de modelos de tu cuenta lo incluye, y cada nivel se asigna a su modelo del protocolo `gemini-4-hydrogen-*`; solicitar `max` o `ultra` también selecciona xhigh. -En Vertex AI, `gemini-4-argon`, `gemini-4-carbon` y `gemini-4-hydrogen` reciben las imágenes devueltas por herramientas, como capturas de pantalla, dentro de la respuesta de función correspondiente. El descubrimiento de modelos de Vertex AI, sus reglas de credenciales y este tratamiento se describen en [Google Vertex AI](/es/guides/google-vertex/). +En Vertex AI, los modelos Gemini 3 y posteriores (incluidos `gemini-4-argon`, `gemini-4-carbon`, `gemini-4-hydrogen` y `gemini-4-neon`) reciben las imágenes devueltas por herramientas, como capturas de pantalla, dentro de la respuesta de función correspondiente. El descubrimiento de modelos de Vertex AI, sus reglas de credenciales y este tratamiento se describen en [Google Vertex AI](/es/guides/google-vertex/). Para Gemini en Antigravity, incluyendo Argon, los resúmenes de pensamiento marcados por el proveedor se mantienen separados de la respuesta: Responses usa elementos de resumen de razonamiento, Chat Completions usa `reasoning_content` y Messages usa `thinking` bloques. Los clientes deciden cómo mostrar esos campos. Un cliente Responses puede solicitar `reasoning.summary: "none"` para suprimir resúmenes; esto no desactiva el razonamiento interno del modelo. Una firma de pensamiento es metadatos de continuación y puede acompañar al texto ordinario, por lo que su presencia por sí sola no oculta ese texto. OpenCodex conserva texto de respuesta sin marcar incluso cuando su redacción suena como planificación o análisis. @@ -460,6 +466,7 @@ están en la página [Catálogo de proveedores con clave API](/es/guides/api-key - [CodeBuddy Code CLI oficial (Global y CN)](/es/guides/api-key-catalog/#official-codebuddy-code-cli-global--cn) - [Oficial Qoder CLI (Global y CN)](/es/guides/api-key-catalog/#official-qoder-cli-global--cn) - [Claude Code CLI (suscripción)](/es/guides/api-key-catalog/#claude-code-cli-subscription) +- [StepCode CLI (suscripción)](/es/guides/step-cli/) - [Antigravity CLI (ACP, local)](/es/guides/api-key-catalog/#antigravity-cli-acp-local) - [Cuota de crédito A6API](/es/guides/api-key-catalog/#a6api-credit-quota) - [Plan de codificación BigModel sobre Responses](/es/guides/api-key-catalog/#bigmodel-coding-plan-over-responses) @@ -559,10 +566,12 @@ Un resultado denegado por acceso no prueba por sí mismo un inicio de sesión ve Las solicitudes de chat compatibles con la traducción OpenAI reducen las imágenes en línea cuando sus datos base64 combinados superan los 3,5 MiB. Las imágenes más antiguas pierden detalle primero. Este es un presupuesto de imagen de mejor esfuerzo, por lo que el texto grande, los esquemas o las imágenes que no se pueden procesar aún pueden exceder un límite de solicitud ascendente. Las URL de imágenes remotas no se descargan y las imágenes que no se pueden reducir permanecen adjuntas. El passthrough de Native Chat mantiene sus bytes de imagen originales. +Tras ajustar las imágenes al límite de tamaño, las solicitudes a Venice amplían las imágenes pequeñas en línea hasta que su lado más corto mida 64 píxeles, siempre que se puedan leer sus dimensiones y el códec confirme que la imagen de origen tiene como máximo 16 millones de píxeles. Si se omite la ampliación o falla, la solicitud conserva la imagen del paso anterior, que puede haberse vuelto a codificar. Venice aún puede rechazar una imagen que no alcance su tamaño mínimo. + ### Cambios del catálogo y cuotas -Mientras un inicio de sesión esté en curso, **Cuentas** ofrece **Cancelar** al aparecer instrucciones. Las plazas Business Premium `self_serve_business_prolite` pesan cinco unidades Standard en la estimación, según los límites Business oficiales citados en la sección de capacidad, verificados el 20 de octubre de 2026. No cambia selección de cuentas ni crea ventanas que no informe el proveedor. Un grupo OAuth Anthropic activado con dos o más cuentas ofrece estimación equivalente, con igual peso por cuenta; usa últimas lecturas sin consultas extra y señala cobertura incompleta por pausa, reautenticación o datos obsoletos. Con el grupo desactivado o una sola cuenta muestra su lectura individual. +Mientras un inicio de sesión esté en curso, **Cuentas** ofrece **Cancelar** al aparecer instrucciones. Pro 100 (`prolite`), Pro 200 (`pro`) y Pro 500 (`promax`) cuentan como 10, 20 y 50 unidades Plus, respectivamente. Las plazas Business Premium `self_serve_business_prolite` pesan cinco unidades Standard en la estimación, según los límites Business oficiales citados en la sección de capacidad, verificados el 20 de octubre de 2026. No cambia selección de cuentas ni crea ventanas que no informe el proveedor. Un grupo OAuth Anthropic activado con dos o más cuentas ofrece estimación equivalente, con igual peso por cuenta; usa últimas lecturas sin consultas extra y señala cobertura incompleta por pausa, reautenticación o datos obsoletos. Con el grupo desactivado o una sola cuenta muestra su lectura individual. Las configuraciones v1 migran al marcador 2 y una fila compatible con opciones. Se guarda una sola copia `~/.opencodex/config.json.pre-openai-tiers-v2.bak`; `cp ~/.opencodex/config.json.pre-openai-tiers-v2.bak ~/.opencodex/config.json` la restaura. diff --git a/docs-site/src/content/docs/es/guides/step-cli.md b/docs-site/src/content/docs/es/guides/step-cli.md new file mode 100644 index 00000000000..838bde97a84 --- /dev/null +++ b/docs-site/src/content/docs/es/guides/step-cli.md @@ -0,0 +1,75 @@ +--- +title: StepCode CLI (suscripción) +description: Envíe solicitudes de Codex a través de StepCode CLI con una suscripción Step Plan. +--- + +OpenCodex puede usar una suscripción Step Plan mediante StepCode sin llamar directamente a +`api.stepfun.com/step_plan`. El preajuste `step-cli` ejecuta la CLI oficial de StepCode +(`step --sdk-stdio`) y le declara las herramientas de cada solicitud para que el cliente pueda +aprobarlas y ejecutarlas: + +```json +{ + "providers": { + "step-cli": { + "adapter": "step-cli", + "baseUrl": "https://api.stepfun.com/step_plan" + } + } +} +``` + +- **Requisitos.** Instale StepCode CLI en `~/.stepcode/bin/step` e inicie sesión con `step login`. + La CLI obtiene su credencial de `auth.json`. +- **Credenciales.** OpenCodex no lee, copia ni reenvía el token de Step. Este preajuste tiene el + campo `keyOptional`, al igual que `claude-cli`. Para facturación directa por API, use `stepfun`. +- **Una cuenta para el proxy.** Todas las solicitudes enviadas por esta ruta consumen la cuota de + la cuenta Step Plan del usuario que ejecuta OpenCodex. El plan mide el consumo por solicitud y + aplica límites de cinco horas y semanales. Codex comparte la cuota con las sesiones de `step`. +- **Herramientas.** Las herramientas se declaran a través del SDK de StepCode. El adaptador recibe + sus llamadas por stdio y el cliente se encarga de aprobarlas y ejecutarlas. OpenCodex no monta un + servidor MCP para esta ruta ni guarda los resultados de herramientas por su cuenta. +- **Un proceso por conversación.** StepCode conserva el contexto dentro de su proceso. OpenCodex + asocia ese proceso a la identidad autenticada, el proveedor y el hilo. Si la solicitud carece de + credenciales, se abre un proceso por solicitud y las llamadas a herramientas no se pueden + continuar entre solicitudes. Mantenga el catálogo de herramientas al devolver un resultado + pendiente. Si el proceso termina, OpenCodex informa del error. Los resultados ya entregados no + se pueden reproducir por esta ruta. +- **Apagado ordenado.** El proxy espera a que terminen los procesos de StepCode dentro de su plazo + de apagado e informa de un error si no puede confirmarlo. En macOS y Linux, esto puede ocurrir si + el líder del grupo de procesos sale antes de que termine el grupo. Algunos procesos descendientes + pueden seguir ejecutándose. En POSIX, la limpieza solo envía señales al grupo mientras el líder + original se observa con vida. Bun 1.4.4 puede recoger el estado de salida del hijo antes de que + JavaScript reciba el evento de salida. En Linux, el hilo de espera nativo se usa como alternativa + cuando no está disponible la supervisión mediante pidfd. Una señal enviada al grupo entre la + recogida y la notificación de salida podría alcanzar un PGID reutilizado. Bun no expone a + JavaScript un `pidfd` ni otro identificador que acredite la pertenencia del proceso a nivel de + llamada al sistema. Para eliminar ese intervalo hace falta un supervisor nativo o un cambio en + Bun. El responsable del proyecto aceptó este riesgo residual el 2026-11-19. + En Windows, StepCode comprueba que el proceso lanzador original sigue en ejecución antes de + iniciar `taskkill /T /F`. La utilidad busca el PID numérico después de iniciarse. Si el lanzador + termina y Windows reutiliza su PID entre la comprobación y esa búsqueda, la señal podría + alcanzar un árbol de procesos ajeno. Para cerrar ese intervalo hay que establecer la pertenencia + del proceso desde el arranque, por ejemplo con un objeto de trabajo que finalice los procesos al + cerrarse, y usar su identificador de objeto para terminarlos. El responsable del proyecto aceptó + este riesgo residual el 2026-11-19 junto con el riesgo de POSIX relativo al orden de recogida y + notificación de salida. Si el lanzador ya ha salido o la limpieza sigue sin confirmarse después + de que la utilidad haya podido ejecutarse, OpenCodex pone la sesión en cuarentena, registra una + advertencia fija e informa de que la limpieza quedó incompleta. +- **Límites de sesión.** Si una herramienta tarda más de dos minutos en devolver un resultado, + el turno informa del error `step_cli_tool_result_too_late`. El protocolo no permite reemplazar + el mensaje de sistema de la sesión. OpenCodex antepone las instrucciones del cliente al turno. +- **Catálogo de herramientas.** El límite es de **128 herramientas / 2 MiB**, igual que en + `qoder`, `codebuddy` y `claude-cli`. Codex incorpora todas las herramientas MCP a su catálogo. + En Codex 0.162.0 se midieron 1749 herramientas y 2,5 MB. Si supera el límite, el error indica + ambos valores. Desactive o restrinja los servidores MCP de este proveedor. +- **Imágenes.** Los modelos se anuncian como compatibles con texto. Aunque `step-5-preview` y + `step-3.7-flash` pueden aceptar imágenes en el servicio, esta ruta las rechaza con + `unsupported_input_modality`. Si hay un servicio de visión auxiliar, convierte las imágenes en + descripciones de texto antes de reenviarlas. +- **Verificación.** Ejecute `ocx provider test step-cli`. + +> **Condiciones.** Este preajuste usa su suscripción Step Plan mediante la CLI oficial. La +> documentación del plan describe los endpoints para herramientas de programación de terceros. +> StepCode publica `--sdk-stdio` para clientes externos con licencia MIT. Consulte con 阶跃星辰 +> si las condiciones de su plan permiten usar esa interfaz a través de un proxy. diff --git a/docs-site/src/content/docs/es/guides/video-bridge.md b/docs-site/src/content/docs/es/guides/video-bridge.md index 400573bb0bd..7d4c9752012 100644 --- a/docs-site/src/content/docs/es/guides/video-bridge.md +++ b/docs-site/src/content/docs/es/guides/video-bridge.md @@ -44,7 +44,7 @@ Agregue `videoBridgeEnabled: true` a su configuración `images`: "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -54,7 +54,7 @@ Agregue `videoBridgeEnabled: true` a su configuración `images`: | Opción | Predeterminado | Descripción | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | Interruptor maestro. Debe estar explícitamente habilitado. | -| `videoBridgeModel` | `"grok-imagine-video"` | Id. de modelo de vídeo xAI. | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | Id. de modelo de vídeo xAI. | | `videoMaxRounds` | `2` | Número máximo de rondas de generación de video antes de forzar la respuesta final. | | `videoTimeoutMs` | `300000` (5 min) | Plazo máximo por video, incluidas las consultas de estado. | | `videoProvider` | sin definir (xAI) | Proveedor opcional con clave de API que atiende `video_gen` con su propio `baseUrl` y clave. Consulta [Elegir el proveedor de video](#elegir-el-proveedor-de-video). | @@ -79,7 +79,7 @@ De forma predeterminada, el puente envía los trabajos de `video_gen` a xAI con "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -108,10 +108,27 @@ La herramienta `video_gen` acepta: | Parámetro | Tipo | Alcance | Descripción | |-----------|------|-------|-------------| -| `prompt` | cadena | requerido | Indicación detallada de generación de vídeo | +| `prompt` | string | opcional con una imagen o fotograma | Indicación de texto | | `duration` | entero | 1-15 | Duración del vídeo en segundos | -| `resolution` | cadena | `"480p"`, `"720p"` | Resolución de vídeo | -| `aspect_ratio` | cadena | 7 relaciones | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | Depende del modelo; máximo 720p con `last_frame`, `keyframes` o `reference_images` | +| `aspect_ratio` | string | depende del modelo | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; se rechaza si solo se anima una `image`, que conserva su proporción | +| `image` | string | primer fotograma | URL HTTPS, URL de datos o artefacto recordado | +| `last_frame` | string | solo 1.5 | Último fotograma | +| `keyframes` | array | 1.5, máximo 4 | `{image, timestamp_s}`; marca de tiempo estrictamente dentro del clip (8 s si se omite `duration`) | +| `reference_images` | array | 1.5: 14, clásico: 7 (≤ 10 s) | Referencias de imagen; el modelo clásico no puede combinarlas con `image` | + +Los ajustes que un modelo no puede respetar se rechazan antes de cualquier llamada de pago en lugar de descartarse. + +### Modelos e imágenes de entrada + +| Modelo | Resolución | Entradas | por segundo (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p nativo | primer/último fotograma, 4 fotogramas clave, 14 referencias (720p máximo) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (predeterminado) | 480p / 720p / 1080p reescalado | primer fotograma | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | primer fotograma, 7 referencias | $0.05 / $0.07 / — | + +Configura `images.videoBridgeModel` como `grok-imagine-video-1.5` para fijar fotogramas o usar referencias. Los modelos conocidos admiten nueve relaciones de aspecto; los desconocidos conservan siete, 480p/720p y ninguna imagen. Se aceptan URL HTTPS y datos PNG/JPEG/WebP de hasta 10 MiB decodificados. Las imágenes descargadas por el puente pueden referenciarse mediante URL de artefacto, ruta absoluta o URL `file:` durante una hora: se usa la URL de origen recordada y nunca se lee el archivo local. Solo funciona con el destino xAI fijado, no con un `images.videoProvider` personalizado. Los resultados en línea no tienen URL de origen y la URL temporal puede caducar antes. + diff --git a/docs-site/src/content/docs/es/guides/web-dashboard.md b/docs-site/src/content/docs/es/guides/web-dashboard.md index cf87b2bef9c..eee4f7e2452 100644 --- a/docs-site/src/content/docs/es/guides/web-dashboard.md +++ b/docs-site/src/content/docs/es/guides/web-dashboard.md @@ -215,17 +215,22 @@ Los **Modelos** Los switches muestran la visibilidad final de Codex: un modelo e Los interruptores responden de inmediato y puedes seguir cambiando modelos mientras los cambios se guardan en segundo plano, en el orden en que haces clic. La confirmación aparece cuando la cola termina y la lista se actualiza con el estado del servidor. Si un guardado falla, se muestra un error y se restaura el estado del servidor cuando puede leerse. Espera esa confirmación antes de salir de **Modelos** o cambiar de servidor: los cambios que sigan en cola y aún no se hayan enviado se descartan al salir. +La pestaña **Todos** (`#models/overall`) muestra en una sola lista todos los modelos de todos los proveedores, en el mismo orden que el catálogo, con un cuadro de búsqueda, un filtro **Todos** / **Activados** / **Desactivados** y el mismo interruptor. Ambas pestañas leen el mismo estado y comparten una cola de guardado, así que un cambio hecho en una se ve en la otra al instante. + ### Administrar modelos en un espacio de trabajo de proveedor -En un proveedor **Modelos** token: **Eliminar** elimina la definición personalizada almacenada. Un subyacente El modelo nativo o el modelo descubierto en vivo pueden volver a aparecer, por lo que el recuento de modelos puede permanecer igual. -**Ocultar** solo cambia la visibilidad del catálogo: no elimina la definición ni cambia directamente política de enrutamiento. Uso **Gestionar la visibilidad en modelos** para abrir el **Modelos** página y restaurar visibilidad, incluso cuando la pestaña del proveedor no tiene filas. +La pestaña **Modelos** de un proveedor muestra todos sus modelos, también los desactivados, cada uno con el mismo interruptor que la página **Modelos**; ambas páginas leen y escriben el mismo estado. Un interruptor guarda al instante. Hasta que terminan ese guardado y la recarga posterior, los demás interruptores, **Añadir** y **Eliminar** esperan, de modo que solo hay un cambio en curso; elegir otro proveedor no lo cancela, pero salir de la página **Proveedores** antes de que termine puede cancelar la solicitud; la siguiente carga muestra si se guardó. Desactivar un modelo solo cambia la visibilidad del catálogo: no elimina la definición ni cambia la política de enrutamiento directo. **Gestionar la visibilidad en modelos** abre la página **Modelos**. + +**Eliminar** borra la definición personalizada almacenada. El modelo nativo o descubierto en vivo que había debajo puede volver a aparecer, por lo que el recuento de modelos puede quedar igual. -**Añadir** guarda una definición personalizada; no borra una regla de selección de proveedores o ocultación existente. Por lo tanto, un modelo guardado puede permanecer oculto. Si el modelo ya se conoce, gestionar su visibilidad en **Modelos**. Todavía se guarda un guardado confirmado con una actualización de catálogo fallida: siga la actualización mensaje en lugar de añadirlo de nuevo. Si el cambio no se puede confirmar, actualice el estado del modelo antes de volver a intentarlo. +**Añadir** guarda una definición personalizada; no anula una desactivación ni una regla de selección del proveedor que ya existan. Por lo tanto, un modelo guardado puede seguir desactivado; actívalo con su interruptor. Todavía se guarda un guardado confirmado con una actualización de catálogo fallida: siga la actualización mensaje en lugar de añadirlo de nuevo. Si el cambio no se puede confirmar, actualice el estado del modelo antes de volver a intentarlo. El recuento de modelos del proveedor es el número de entradas únicas no desactivadas en el modelo actual. inventario devuelto por el servidor, antes de buscar o mostrar truncamiento. No es el proveedor tamaño de lista de permisos, un recuento de descubrimiento en vivo o prueba de que se descubrió una entrada de origen. Selección Las insignias y la información de descubrimiento permanecen separadas de esa cuenta. +Ese recuento aparece en la lista de proveedores. El encabezado de la pestaña **Modelos** del proveedor muestra en cambio cuántos modelos están activados sobre el total: el total cuenta todas las entradas listadas, también las desactivadas, y un modelo está activado con la misma regla que en la página **Modelos**: no está desactivado y es un modelo nativo, su proveedor no tiene lista de permitidos o la lista lo incluye. + ## Selector de delegación vs enrutamiento de generación diff --git a/docs-site/src/content/docs/es/reference/adapters.md b/docs-site/src/content/docs/es/reference/adapters.md index 22b8d55dac8..6401f255c86 100644 --- a/docs-site/src/content/docs/es/reference/adapters.md +++ b/docs-site/src/content/docs/es/reference/adapters.md @@ -169,6 +169,15 @@ El adaptador OAuth `command-code` deriva un `x-session-id` opaco de la identidad El proveedor con clave API `commandcode` usa Chat Completions para la mayoría de los modelos y el adaptador Anthropic Messages (`x-api-key`) para los identificadores `claude-*`, que Command Code solo sirve en `/provider/v1/messages`. La selección fija del adaptador solo se aplica mientras el proveedor apunte a ese endpoint. `tokenlab` aplica la misma regla a `claude-*` en `https://api.tokenlab.sh/v1/messages`, el endpoint que TokenLab anuncia para Chat y Messages. Command Code permite reenviar `prompt_cache_key`; esto es independiente del encabezado de sesión del adaptador OAuth y no garantiza un acierto de caché. El preset OAuth `command-code` recibe `/alpha/generate` como NDJSON. Si la pasarela repite como texto el marcado de una llamada MiMo real, se elimina ese duplicado. El marcado que aparece después de prosa normal, incluso si su marcador llega dividido entre deltas posteriores del mismo bloque, se retiene y solo se elimina si una llamada nativa contiene el mismo contenido. Si no coincide, se emite como texto y nunca se convierte en una llamada. La espera solo dura mientras siga abierta una llamada nativa que pudiera ser su duplicado, incluida la primera llamada a esa misma herramienta que empiece después del marcado. Si esas llamadas terminan sin coincidencia, el texto se libera de inmediato; la llegada intermedia de razonamiento u otros eventos no lo libera. Tras una finalización correcta o el cierre de una llamada a herramienta, un bloque completo que contenga únicamente una llamada a una herramienta declarada y no tenga contraparte nativa se restaura como llamada real. Si el turno se interrumpe o falla, queda como texto. Si el analizador no puede interpretar una llamada aislada, pero esta abre, cierra y nombra una herramienta declarada, se descarta en lugar de imprimirse cuando llega la llamada real a esa herramienta o el turno termina correctamente. Una llamada de formato libre repetida sin el cierre `` se considera completa al llegar ``. Esto se aplica a todos los modelos MiMo servidos por Command Code. +Command Code también incluye sus modelos de decisión System One (`typesafe/jev`, +`typesafe/jev-1.14.0`) en su catálogo de modelos, pero solo los sirve en +`POST https://api.commandcode.ai/provider/v1/systemone`. Ningún preset de Command Code los ofrece +como modelos de chat, y una solicitud de chat que aún nombre uno (por ejemplo, una selección guardada) +recibe un 404 `model_not_found` que indica ese endpoint, sin llegar a Command Code; un combo o una +política de enrutamiento que lo incluya pasa a su siguiente destino. Para usar JEV en decisiones de +enrutamiento, añada un proveedor `jev-decision` cuyo `baseUrl` sea ese endpoint e indíquelo como +`decisionProvider` de un combo JEV (consulte [Combos](/es/guides/combos/)). + ## `anthropic` **Objetivos:** Anthropic **Messages** ( `/v1/messages` ). **Auth:** `key` (`x-api-key` por defecto, o `Authorization: Bearer` con `apiKeyTransport: "bearer"`) o `oauth` (Portador + `anthropic-beta`, para Claude Pro/Max). diff --git a/docs-site/src/content/docs/es/reference/cli/agents.md b/docs-site/src/content/docs/es/reference/cli/agents.md index 1f0a8558c63..c6d7791f25b 100644 --- a/docs-site/src/content/docs/es/reference/cli/agents.md +++ b/docs-site/src/content/docs/es/reference/cli/agents.md @@ -826,7 +826,7 @@ ocx system settings --stream-mode eager-relay Otros booleanos del sistema aceptan `on`/`off`: `--show-codex-credits`, `--account-picker`, `--main-account-hard-lock`, `--ultra-fast-tier`, `--fast-rows` y `--reserve`. `--reserve` controla la compatibilidad con Luna Reserve con independencia de `--desktop-authless` y no concede ningún derecho del servidor. Escriben solo campos explícitos y pueden combinarse con las opciones del sistema existentes. Mostrar créditos es una preferencia de visualización, no una opción de crédito pagado; el sistema Ultra Fast está separado del proveedor Fast. -Ultra Fast es una configuración opt-in, por defecto desactivado. Con `--ultra-fast-tier on`, el catálogo generado agrega la opción de velocidad ultrarrápida a `gpt-6-astra` y `gpt-6.1-sol` nativos (incluidas las filas vinculadas a la cuenta), por lo que el selector Codex lo ofrece junto a Fast. Ultrafast requiere un plan ChatGPT elegible; el catálogo no puede verificar eso, así que active la configuración solo si su plan lo incluye. Otros modelos y la velocidad predeterminada no se modifican. +Ultra Fast es una configuración opt-in, por defecto desactivado. Con `--ultra-fast-tier on`, el catálogo generado agrega la opción de velocidad ultrarrápida a `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.2-astra` y `gpt-6.2-sol` nativos (incluidas las filas vinculadas a la cuenta), por lo que el selector Codex lo ofrece junto a Fast. Ultrafast requiere un plan ChatGPT elegible; el catálogo no puede verificar eso, así que active la configuración solo si su plan lo incluye. Otros modelos y la velocidad predeterminada no se modifican. Para los modelos enrutados, la convergencia de sincronización y catálogo retiene las entradas `ultrafast` suministradas por el operador de una fila enrutada existente en `service_tiers` y `additional_speed_tiers` junto con su capacidad Fast actual. Las declaraciones pertenecen a la pieza exacta del proveedor/modelo; no se copian a otros modelos. La configuración no crea declaraciones faltantes ni restaura modelos eliminados. Apagarlo elimina Ultra Fast de las filas enrutadas ordinarias y la opción nativa generada en la siguiente regeneración del catálogo. diff --git a/docs-site/src/content/docs/es/reference/cli/lifecycle.md b/docs-site/src/content/docs/es/reference/cli/lifecycle.md index 5f9f7f44267..2b36f1fca34 100644 --- a/docs-site/src/content/docs/es/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/es/reference/cli/lifecycle.md @@ -106,11 +106,16 @@ Una salida proxy sola no confirma que la restauración compartida Codex / Grok t En Windows, `ocx stop` detiene una tarea registrada del Programador de tareas o un servicio nativo WinSW mediante una parada verificada. Primero finaliza la tarea y después solo los procesos envoltorios `wscript.exe` y `cmd.exe` que puede vincular a esta instalación (el lanzador o script de servicio de este directorio, una cadena de procesos padres que conduce al proxy o al servicio del Programador de tareas, y una hora de inicio registrada), y espera a que terminen. Solo entonces detiene el proxy de forma controlada. Después confirma que el puerto permanezca libre unos seis segundos y que ningún envoltorio se haya reiniciado, para impedir que un bucle de reinicio vuelva a iniciar el proxy tras una parada exitosa. OpenCodex verifica que la tarea programada inicie esta instalación con tu cuenta de Windows -y comprueba la cuenta de cada instancia en ejecución antes de detenerla. Una tarea deshabilitada +y comprueba las cuentas de sus desencadenadores y de cada instancia en ejecución antes de detenerla. Una tarea deshabilitada de tu cuenta se considera inactiva si no tiene instancias en ejecución. Si hay una tarea en cola, OpenCodex no confirma la parada. Si la comprobación falla, -revisa el lanzador y la cuenta de ejecución en el Programador de tareas y detén la tarea desde -la sesión de esa cuenta. +revisa el lanzador, las cuentas de los desencadenadores y la cuenta de ejecución en el Programador +de tareas. Finalizar sus instancias no repara el registro. Repara un registro que te pertenezca +o contacta con su propietario o administrador. La parada rechaza nuevas acciones al vencer +su límite de tiempo, cancela el proceso auxiliar de parada y conserva los cambios confirmados +en el resultado, incluso si la verificación final sigue pendiente. +Si se envía la autorización y el auxiliar no responde antes del plazo, la CLI indica +que no pudo leer el estado del servicio (`state-unknown`) y marca la parada como fallida. OpenCodex solo finaliza directamente un envoltorio si comprueba que pertenece a tu cuenta. Ignora los envoltorios que pertenecen a otro usuario. Si no puede verificar el propietario @@ -290,6 +295,16 @@ Los proxies antiguos sin `/readyz` se consideran `unreachable` y no se aceptan c En un Child de Remote Link, la disponibilidad también incluye el enlace. Si no puede transportar solicitudes, `/readyz` devuelve `503` con `status: "pending"` y `link: {state: "unavailable", reason}`; `ocx ready --wait` sigue esperando a que se recupere. Un enlace operativo añade `link: {state: "available"}` a la respuesta `200`. En un Child, `/healthz` sigue indicando únicamente que el proceso responde. Los motivos se enumeran en [Remote Link](/es/guides/remote-link/#link-status). +Si al iniciar el proxy aparece un mensaje que indica que falta el directorio de Codex, abre Codex una vez o configura `CODEX_HOME` para que apunte al directorio que Codex ya ha inicializado. Después ejecuta `ocx sync`. Si la sincronización se completa, se restablece el enrutamiento, pero `failed` sigue reflejando el fallo al iniciar el proceso actual. Reinicia el proxy y ejecuta `ocx ready` para comprobar el nuevo proceso. + +Para un servicio instalado con la CLI, usa los valores registrados de `CODEX_HOME` y `OPENCODEX_HOME`. Si la definición antigua del servicio omite estas rutas, ejecuta `ocx service repair` una vez con esos valores. Inicializa el directorio de Codex si hace falta, ejecuta `ocx sync` y reinicia el servicio. Si la aplicación de escritorio gestiona el proxy, reinícialo desde la aplicación. + +Para trasladar el servicio de la CLI a otro directorio de Codex existente, ejecuta `ocx service uninstall` con la configuración original. Si el servicio se elimina pero falla la restauración de Codex nativo, corrige el error indicado y ejecuta `ocx restore` con esa misma configuración. + +Si en Windows la restauración falla y deja un registro de limpieza pendiente, ejecuta `ocx stop` desde la instalación responsable con los directorios originales antes de cambiarlos. Mientras exista ese registro, `ocx update` rechazará el reemplazo del paquete. + +Una vez completadas la desinstalación y la restauración, conserva `OPENCODEX_HOME`, selecciona el nuevo `CODEX_HOME` y ejecuta `ocx service install` con el backend y las opciones originales. Con los nuevos valores, ejecuta `ocx sync` y comprueba el resultado con `ocx ready`. Si el inicio ha fallado, sigue los pasos de recuperación anteriores. + ### `ocx resolve [--json]` Resolver los hechos de entorno de ejecución que un shell necesita sin volver a implementarlos: la configuración de inicio, el puerto efectivo y el veredicto de vivacidad verificado de identidad. `--json` emite un documento versionado (`schema: "ocx-resolve/1"`) con `cliVersion`, `configHome`, `port` (`effective`, `configured` y `source`), y `liveness` (`status`, `pid`, `port`, `source`, más `version`, `role` y `hostname` cuando el proxy en vivo los informa). Cuando un proxy está activo, el documento también lleva `versionSkew` - la misma superficie de comparación `ocx status` y `ocx doctor` - con `cliVersion`, `proxyVersion`, `skewed`, `relation` de `match`, `cli-newer`, `proxy-newer`, `incomparable` o `unknown`, y el `warning` orientado al operador. Los shells leen `relation` en lugar de reformular la advertencia; el escritorio usa `proxy-newer` para evitar que una toma de control disminuya el oyente. Liveness tiene tres respuestas: `live`, `absent-proven` (cada punto final registrado y configurado rechazó o respondió definitivamente no opencodex), y desconocido: una sonda agotada o un oyente que no responde a `/healthz` sale con 1 en lugar de leerse como ausente, por lo que solo `absent-proven` puede autorizar el inicio de un nuevo entorno de ejecución. El puerto es el puerto del oyente en vivo cuando un proxy responde, de lo contrario, el puerto configurado (por defecto 10100). El código de salida 0 lleva un veredicto digno de confianza; el código de salida 1 significa que el CLI no se pudo resolver, incluido un `config.json` inválido, que nunca se repara aquí, y la persona que llama debe negarse a adivinar; cualquier argumento desconocido sale con 64. Discovery utiliza el mismo presupuesto de sondeo seguro para la propiedad que `ocx start`, porque una respuesta falsa de "no escuchar nada" es cómo suceden los proxies duplicados. El verbo es de solo lectura y omite la función de restauración automática previa. Un tiempo de espera sí se resuelve: cuando `hostname` es una de las direcciones no loopback de esta máquina (una IP de Tailscale o de la LAN) y la propia conexión agota el tiempo, como hace Windows con una dirección local sin listener, resolve intenta un bind exclusivo en esa dirección y puerto. Solo un bind que funciona cuenta como ausencia; un puerto ya en uso sigue siendo desconocido. Con `--json`, la salida 1 también imprime un documento, `{"schema":"ocx-resolve/1","ok":false,"reason":…,"error":…}`, donde `reason` es `config_unreadable`, `config_invalid`, `discovery_failed` o `liveness_unknown` y `error` repite el mensaje de stderr; no tiene campos de vivacidad ni de puerto. diff --git a/docs-site/src/content/docs/es/reference/cli/messaging.md b/docs-site/src/content/docs/es/reference/cli/messaging.md index bcfd7bed71b..a185fd0a750 100644 --- a/docs-site/src/content/docs/es/reference/cli/messaging.md +++ b/docs-site/src/content/docs/es/reference/cli/messaging.md @@ -11,7 +11,7 @@ El [servidor MCP de colas](#mcp-queue-host) descrito a continuación es independ ## Servidor MCP de colas -Ejecuta `ocx message mcp` solo cuando quieras que un cliente MCP, como Claude Code o Claude Desktop, descubra hilos almacenados de Codex y les envíe texto a la cola. Este servidor se comunica mediante stdio, no abre ningún listener de red ni se registra automáticamente en clientes. Configura el cliente MCP con una CLI de Codex explícita y un directorio personal existente: +Ejecuta `ocx message mcp` cuando quieras que un cliente MCP, como la CLI de Claude Code o la pestaña Code de Claude Desktop, descubra hilos almacenados de Codex y les envíe texto a la cola. Este servidor se comunica mediante stdio, no abre ningún listener de red ni se registra automáticamente en clientes. Configura el cliente MCP con una CLI de Codex explícita y un directorio personal existente: ```json { @@ -30,6 +30,8 @@ Ejecuta `ocx message mcp` solo cuando quieras que un cliente MCP, como Claude Co Sustituye ambas rutas por las rutas locales reales y usa una ruta absoluta para `ocx` si el cliente no hereda PATH. Esta primera versión admite macOS y Linux; Windows se rechaza explícitamente. +Consulta la [configuración de los clientes y la prueba de ida y vuelta](#send-from-claude-code-and-check-the-reply). El archivo de proyecto `.mcp.json` se aplica a las sesiones de Code. + - `codex_threads` enumera como máximo 50 hilos almacenados y no archivados. Para obtener otra página, pasa `nextCursor` como `cursor`. Devuelve identificadores y nombres, sin historial, vista previa ni directorios de trabajo. `liveStateVerified: false` significa que no demuestra que el hilo esté abierto en la aplicación ni listo para procesar un mensaje. - `codex_queue_message` acepta un UUID exacto `threadId` y un `message`. Envía solo mensajes autorizados por el usuario. El texto junto con la etiqueta fija de par tiene un límite de 16 KiB; se rechazan el texto vacío y NUL. No se adivinan nombres ni se cambia el modelo. Tampoco se conceden permisos ni se generan respuestas automáticas. @@ -72,6 +74,48 @@ Solo lee datos guardados; no despierta un hilo descargado. Para continuar trabaj En otro caso actualiza turno o repite posición hasta el límite, devolviendo `wait_exhausted` con la última observación válida. `attempts` cuenta intentos y `lastObservationAgeMs` su antigüedad. Solo cuenta una instantánea cuyas lecturas terminaron antes del plazo; la limpieza posterior no la invalida, pero datos leídos tarde caducan. Sin observación válida, ante error o cancelación, el resultado no está disponible; nunca es espera correcta vacía. Un `turnStatus` guardado puede diferir del servidor activo y no termina la espera. El cliente administra paginación e IDs; cancelar limpia pausas y helpers. No hay vigilancia en segundo plano, entrega automática ni creación o reanudación de sesiones. + + +### Enviar desde Claude Code y comprobar la respuesta + +Primero comprueba que `ocx help message mcp` muestra las opciones del servidor MCP en tu +instalación de OpenCodex. Usa un ejecutable local explícito de Codex y un directorio personal +de Codex existente, como en la configuración del servidor anterior. Registra el servidor para un +espacio de trabajo local: + +- **CLI de Claude Code:** ejecuta esto desde ese espacio de trabajo. `--scope local` guarda el + registro en tu propia configuración de Claude Code para ese espacio de trabajo. + + ```bash + claude mcp add --scope local --transport stdio opencodex-queue -- \ + /absolute/path/to/ocx message mcp \ + --codex /absolute/path/to/codex --codex-home /absolute/path/to/.codex \ + --allow-reply-read + ``` + +- **Pestaña Code de Claude Desktop:** añade el servidor del ejemplo JSON anterior al + `.mcp.json` del espacio de trabajo, usa la ruta absoluta de `ocx` como `command` y + añade `--allow-reply-read` a `args`. Selecciona ese espacio de trabajo local en la + pestaña Code, inicia una sesión de Code y aprueba el servidor del proyecto si se solicita. + Esta entrada de `.mcp.json` se aplica a las sesiones de Code. La superficie de chat de + Desktop usa [una configuración de Desktop independiente](https://code.claude.com/docs/en/desktop#mcp-servers-from-the-claude-desktop-chat-app). + +Activa `--allow-reply-read` solo si quieres compartir con el cliente el texto de las +respuestas guardadas de Codex. Para una prueba de ida y vuelta: + +1. Abre una conversación de prueba en tu cliente nativo de Codex y déjala inactiva. + En Claude Code, comprueba que `opencodex-queue` está conectado con `/mcp` en la + CLI o en **Connectors** en la pestaña Code. +2. Pide a Claude que llame a `codex_threads` para encontrar el UUID exacto de la + conversación y después a `codex_queue_message` una sola vez con un mensaje de prueba como + «Responde exactamente `OCX_MCP_OK`». Aprueba cada llamada de herramienta de esta prueba si + se solicita. El recibo `queued` contiene `clientMessageId`; no confirma que Codex haya + procesado el mensaje. Si el envío es `unknown`, no lo envíes de nuevo. +3. Pide a Claude que llame a `codex_wait_reply` con el mismo `threadId` y + `clientMessageId`. `reply_observed` con la respuesta de prueba esperada confirma la ida + y vuelta. Si la espera vence, vuelve a comprobar el mismo recibo o revisa la conversación de + Codex. Un tiempo de espera agotado no justifica otro envío. + ## Descubrir y enviar diff --git a/docs-site/src/content/docs/es/reference/configuration/providers.md b/docs-site/src/content/docs/es/reference/configuration/providers.md index 2d00cb004e3..08174bb0057 100644 --- a/docs-site/src/content/docs/es/reference/configuration/providers.md +++ b/docs-site/src/content/docs/es/reference/configuration/providers.md @@ -7,6 +7,12 @@ description: "Entradas de proveedores, autenticación, puntos finales, catálogo Un proveedor le dice a opencodex dónde vive un modelo, qué adaptador de cable habla y cómo se autentican las solicitudes. + + +## Diagnósticos de rechazo del esfuerzo de razonamiento + +Consulte los [límites de los diagnósticos de esfuerzo de razonamiento](/es/guides/providers/#reasoning-effort-rejection-diagnostics) antes de depender de la reducción automática del esfuerzo o del aprendizaje de niveles admitidos. + ## DeepSeek: tokens y bytes de imágenes @@ -213,7 +219,7 @@ Los proveedores pueden exponer una abreviatura incorporada, como `agy` para `goo | Campo | Tipo | Descripción | | --- | --- | --- | -| `adapter` | `string` | Uno de `openai-chat`, `openai-responses`, `anthropic`, `claude-cli`, `google`, `kiro`, `cursor`, `ollama-native`, `azure-openai` (o alias `azure`), `codebuddy`, `qoder`. | +| `adapter` | `string` | Uno de `openai-chat`, `openai-responses`, `anthropic`, `claude-cli`, `step-cli`, `google`, `kiro`, `cursor`, `ollama-native`, `azure-openai` (o alias `azure`), `codebuddy`, `qoder`. | | `baseUrl` | `string` | URL de base ascendente API. La mayoría de los puntos finales fijos incorporados ignoran una falta de coincidencia; los ajustes preestablecidos de clave seguros contra colisiones conservan un destino personalizado con el mismo nombre más antiguo. | | `proxy?` | `string \| null` | Ruta de salida por proveedor. Omita que herede la decisión de proxy global; use `"direct"` o `null` para forzar la salida directa; o proporcione una URL proxy absoluta `http://`, `https://`, `socks5://` o `socks5h://`. Se rechaza una cadena vacía. | | `noProxy?` | `string \| string[]` | Destinos a los que este proveedor llega directamente, utilizando la sintaxis de patrón de host `NO_PROXY`. Una coincidencia pasa por alto tanto el propio proxy de este proveedor como un proxy global heredado. | diff --git a/docs-site/src/content/docs/es/reference/configuration/server.md b/docs-site/src/content/docs/es/reference/configuration/server.md index ce8e7caa6ad..a4fd7616b9b 100644 --- a/docs-site/src/content/docs/es/reference/configuration/server.md +++ b/docs-site/src/content/docs/es/reference/configuration/server.md @@ -524,6 +524,9 @@ Responses (`/v1/responses`) y Chat Completions (`/v1/chat/completions`) siempre | Clave | Tipo | Predeterminado | Descripción | | --- | --- | --- | --- | | `apiSurfaces.messages.enabled?` | `boolean` | herede | `true` sirve el Messages API, `false` rechaza ambas rutas con 403. Unset hereda `claudeCode.enabled`, por lo que una integración Claude que está desactivada también cierra Messages. | +| `apiSurfaces.gemini.enabled?` | `boolean` | `true` | `false` devuelve 403 para el catálogo, las operaciones de modelos y las interacciones de Gemini, incluidas las rutas compatibles bajo `/v1beta` y `/v1`. | + +La tarjeta **API de Gemini** del panel controla este ajuste y su interruptor guarda solo `apiSurfaces.gemini.enabled`. El acceso nativo a Antigravity se configura por separado. Un valor presente pero mal formado (un no objeto `apiSurfaces` o `messages`, o un no booleano `enabled`) cierra el Messages API en lugar de volver al valor heredado. Ambas rutas siempre están de acuerdo. diff --git a/docs-site/src/content/docs/es/reference/management-api.md b/docs-site/src/content/docs/es/reference/management-api.md index 18ebf2ddb4f..eda90539e8a 100644 --- a/docs-site/src/content/docs/es/reference/management-api.md +++ b/docs-site/src/content/docs/es/reference/management-api.md @@ -491,10 +491,10 @@ Las respuestas de la lista de credenciales se enmascaran deliberadamente. Los to | Método y ruta | Finalidad | Errores notables | | --- | --- | --- | -| `GET /api/protocols` | Devuelve la versión del contrato de protocolo, qué API se sirven, la configuración del protocolo, la revisión de directiva actual y las características de la solicitud que entiende una vista previa | — | +| `GET /api/protocols` | Devuelve la versión del contrato de protocolo, qué API se sirven (incluido `geminiSurface` en el nivel superior), la configuración del protocolo, la revisión de directiva actual y las características de la solicitud que entiende una vista previa | — | | `GET /api/protocols?provider=` | El mismo cuerpo más `provider`: `{ name, adapter, adapterSource, authMode, upstream, modelOverrides: [{ model, adapter, source }] }` — el cable que recibe el proveedor y quién lo decidió (`hard-pin`, `operator`, `registry`, `provider-default`), con hasta 64 modelos en un cable diferente (`modelOverridesTruncated: true` más allá de eso). Ninguna credencial o base URL | 400 caracteres vacíos, repetidos, más de 200 caracteres o caracteres de control; 404 ningún proveedor con ese nombre | | `POST /api/protocols/plan` | Vista previa de la ruta que tomaría una solicitud: `{ "model": "...", "inbound": "responses" \| "chat" \| "messages", "features": [...] }` devuelve la ruta de solicitud y respuesta de cada candidato de ruta, el modo de entrega, la fidelidad, los efectos de características y las razones | 400 inválido JSON, campo desconocido, modelo de más de 200 caracteres, desconocido entrante, o más de 24 / características desconocidas | -| `PATCH /api/protocols/settings` | Cambiar la configuración del protocolo: `{ "messagesEnabled"?: boolean, "unrepresentable"?: "legacy" \| "reject", "rollout"?: { ...boolean switches } }`. Devuelve el mismo cuerpo que `GET /api/protocols`. Cierre Messages también establece `claudeCode.enabled` a `false` en el mismo salvo; al abrirlo escribe solamente `apiSurfaces.messages.enabled` | 400 inválido JSON, cuerpo vacío, campo desconocido, tipo incorrecto, o `rollout.managedMessagesNativeOAuth` sin `rollout.managedMessagesNative`; 409 configuración ocupada; 500 guardar falló (nada cambia) | +| `PATCH /api/protocols/settings` | Cambiar la configuración del protocolo: `{ "messagesEnabled"?: boolean, "geminiEnabled"?: boolean, "unrepresentable"?: "legacy" \| "reject", "rollout"?: { ...boolean switches } }`. Devuelve el mismo cuerpo que `GET /api/protocols`. Cierre Messages también establece `claudeCode.enabled` a `false` en el mismo salvo; al abrirlo escribe solamente `apiSurfaces.messages.enabled` | 400 inválido JSON, cuerpo vacío, campo desconocido, tipo incorrecto, o `rollout.managedMessagesNativeOAuth` sin `rollout.managedMessagesNative`; 409 configuración ocupada; 500 guardar falló (nada cambia) | Una vista previa se calcula a partir de la configuración sola. No envía nada a ningún proveedor, no cuesta nada, no avanza la rotación combinada y no se registra. La página API en el panel muestra la misma vista previa en **Solicitar vista previa de ruta**. Un modo de entrega de `native` describe cómo se desplaza la solicitud; no es una verificación de compatibilidad. diff --git a/docs-site/src/content/docs/es/reference/proxy-formats.md b/docs-site/src/content/docs/es/reference/proxy-formats.md index f589367d761..9c272a0f37c 100644 --- a/docs-site/src/content/docs/es/reference/proxy-formats.md +++ b/docs-site/src/content/docs/es/reference/proxy-formats.md @@ -471,6 +471,9 @@ La instantánea sigue siendo un contrato de lista de modelos de solo lectura; no ## API de Gemini: `/v1beta/models` y `/v1beta/interactions` +El interruptor **API de Gemini** del panel controla el acceso a estas rutas. Mientras la API +está habilitada, los ejemplos de uso muestran una solicitud `generateContent` que se puede copiar. + Los clientes de Gemini, como el SDK google-genai con una URL base personalizada, la CLI `agy` o un cliente que lee `GOOGLE_GEMINI_BASE_URL`, pueden usar las rutas de proveedor configuradas con la forma REST de Google. El proxy normalmente traduce la generación a su ruta de Chat Completions, que admite cualquier proveedor. La generación elegible con Antigravity puede usar la [ruta nativa](#gemini-nativo-con-antigravity) si está habilitada. Autentíquese con una clave API del proxy en `x-goog-api-key` o en el parámetro de consulta `?key=`; la clave se quita de la URL y de las cabeceras antes de registrar o reenviar la solicitud. Los errores usan la forma de Google `{ "error": { "code", "message", "status" } }`. - `GET /v1beta/models` lista `models//` para las rutas que la clave puede usar, y `GET /v1beta/models/{model}` devuelve una. Un modelo incluye `inputTokenLimit` y `outputTokenLimit` cuando se conocen. Para `inputTokenLimit`, tienen prioridad los límites de entrada y de ventana de contexto configurados en el proveedor, seguidos de `customModels[].contextWindow` del modelo correspondiente y de los metadatos generados. @@ -661,8 +664,11 @@ La opción está desactivada por defecto. Usa la API compatible con Gemini en `/ envía una clave de admisión de OpenCodex en `x-goog-api-key` o `?key=`. Un selector como `google-antigravity/gemini-3.8-flash` usa el transporte nativo para `generateContent` y `streamGenerateContent`. El proxy elige el modelo de Cloud Code Assist a partir de la ruta -resuelta y usa el token y el proyecto de la cuenta OAuth activa. Las solicitudes de -`/v1` y las de otros proveedores usan el puente de Chat. +resuelta. Si está activada la conmutación de cuentas OAuth, puede elegir otra cuenta disponible +según los modelos descubiertos para esa cuenta y la estrategia configurada. Si la cuenta +seleccionada carece del modelo y no se permite usar otra cuenta, el proxy devuelve 403. El token +y el proyecto siempre proceden de la misma cuenta. Las solicitudes de `/v1` y las de otros +proveedores usan el puente de Chat. El proxy conserva el JSON de la solicitud y de las respuestas correctas, incluidos los campos desconocidos, los enteros grandes, los argumentos de funciones y las firmas de @@ -670,6 +676,13 @@ razonamiento. La transmisión usa SSE con `alt=sse` y una matriz JSON en los dem El listado mediante `GET /v1beta/models` y la consulta de modelos conservan el catálogo permitido por la clave e incluyen los alias nativos que se enrutan al modelo de Antigravity correspondiente. +La columna `~$` muestra el coste estimado según el precio de la API de Gemini y el uso +informado. La tabla de intentos muestra el estado, la etiqueta opaca de la cuenta y el motivo +del reintento de cada envío. Si un 401 del proveedor da lugar a una actualización de las +credenciales y a un nuevo envío, el rechazo y el reintento aparecen como intentos separados. +Si solo algunos intentos tienen un coste estimado, el registro muestra el subtotal conocido +y cuántos intentos quedaron sin estimación. + Si una respuesta del proveedor contiene credenciales de la cuenta vinculada, el proxy devuelve un error genérico de Gemini. Un `[DONE]` válido del proveedor o un error de Gemini pone fin a la transmisión. @@ -677,7 +690,9 @@ Envía JSON con codificación `identity`. El cuerpo de la solicitud, la respuest en búfer y cada evento SSE tienen un límite de 16 MiB. Si `maxInboundBodyBytes` es menor, se aplica a la solicitud. La inactividad durante la carga tiene su propio tiempo de espera. El envío inicial y un reintento como máximo tras un 401 de la misma cuenta cuentan -para el límite de envíos del flujo. Un límite de tokens aplicable al flujo raíz, a la -identidad o al grupo devuelve 503 con `gemini_native_spend_limits_unsupported` porque el -transporte nativo no contabiliza los tokens. Desactiva la opción para contabilizarlos en -esta ruta de Gemini. +para el límite de envíos del flujo. Para los presupuestos de tokens del flujo raíz, la +identidad y el grupo, cada envío reserva una estimación de la entrada y el valor solicitado +de `maxOutputTokens` por candidato. Un presupuesto insuficiente devuelve 429 con +`workflow_spend_exhausted`. Las solicitudes completadas se contabilizan con los recuentos +de entrada y salida que informa Gemini. Un envío sin datos de uso finales conserva el +importe de la reserva como consumo sin resolver. diff --git a/docs-site/src/content/docs/es/troubleshooting/update-failed.md b/docs-site/src/content/docs/es/troubleshooting/update-failed.md index 46018c51567..05a6e559af3 100644 --- a/docs-site/src/content/docs/es/troubleshooting/update-failed.md +++ b/docs-site/src/content/docs/es/troubleshooting/update-failed.md @@ -176,9 +176,9 @@ Una configuración predeterminada de pnpm 11 o 12 supera esta comprobación y se ## La actualización de Desktop se detiene o falla en «Instalar actualización…» -En la aplicación de escritorio OpenCodex, **Instalar actualización** descarga el instalador desde GitHub Releases antes de reemplazar la aplicación y reiniciarla. Una descarga o instalación fallida con una versión conocida muestra una sugerencia de descarga manual y un enlace a la página de lanzamiento de esa versión. +En la aplicación de escritorio OpenCodex, **Instalar actualización** descarga el paquete desde GitHub Releases y verifica su firma. La ventana indica si falló la verificación, si no se pudo identificar o detener el proxy, si ya se estaba deteniendo o si falló el instalador. Si se agota el tiempo de espera, comprueba el estado antes de volver a intentarlo. -Si `Installing update…` no avanza o agota el plazo, es posible que la red esté ralentizando o bloqueando las descargas de GitHub Releases. Abre el enlace a la versión exacta que muestra el error, o busca esa misma versión en la [página de versiones de OpenCodex](https://github.com/lidge-jun/opencodex/releases). Descarga manualmente el instalador correspondiente a tu sistema operativo y arquitectura. Las versiones preview tienen sus propias páginas; elige la versión que ofrece la aplicación. +Si falla la descarga del paquete y se conoce la versión, la ventana muestra un enlace a esa versión. Abre el enlace o busca esa misma versión en la [página de versiones de OpenCodex](https://github.com/lidge-jun/opencodex/releases). Descarga el instalador correspondiente a tu sistema operativo y arquitectura. Elige la versión que ofrece la aplicación, incluida la de vista previa si corresponde. Antes de ejecutar el instalador, detenga el proxy a través de su propietario y confirme que se ha detenido: diff --git a/docs-site/src/content/docs/es/troubleshooting/windows-loopback-startup.md b/docs-site/src/content/docs/es/troubleshooting/windows-loopback-startup.md index 393d8b2550e..9e6576cafd1 100644 --- a/docs-site/src/content/docs/es/troubleshooting/windows-loopback-startup.md +++ b/docs-site/src/content/docs/es/troubleshooting/windows-loopback-startup.md @@ -9,7 +9,11 @@ de OpenCodex pueden rechazar el inicio con «Proxy ownership is unverified» o «Shared-client owner could not be verified». El servicio del Programador de tareas puede entonces volver a iniciarse y cerrarse repetidamente. -Si se agota el plazo para establecer la conexión durante el inicio, OpenCodex +Algunos equipos rechazan la conexión de inmediato, por ejemplo con +`connect EACCES ::1:10100` cuando se filtra el tráfico IPv6 de bucle local. +OpenCodex lo trata igual que un tiempo de espera agotado. + +Si se agota el plazo o se deniega la conexión durante el inicio, OpenCodex puede abrir brevemente un socket exclusivo en la misma dirección y puerto. También comprueba si hay sockets a la escucha en todas las direcciones de esa familia, pues pueden coincidir con un socket de bucle local en Windows. El inicio diff --git a/docs-site/src/content/docs/fr/getting-started/quickstart.md b/docs-site/src/content/docs/fr/getting-started/quickstart.md index b8d6d413f72..ab2f8598d00 100644 --- a/docs-site/src/content/docs/fr/getting-started/quickstart.md +++ b/docs-site/src/content/docs/fr/getting-started/quickstart.md @@ -13,7 +13,7 @@ ocx init `ocx init` vous accompagne dans les étapes suivantes : -1. **Choix d’un fournisseur** — sélectionnez l’un des 111 préréglages intégrés au registre, ou `custom` pour saisir une +1. **Choix d’un fournisseur** — sélectionnez l’un des 112 préréglages intégrés au registre, ou `custom` pour saisir une URL de base et un adaptateur. 2. **Clé API** — collez une clé ou référencez une variable d’environnement telle que `${ANTHROPIC_API_KEY}`. 3. **Modèle par défaut** — pour les fournisseurs clés, locaux et personnalisés, acceptez le préréglage ou saisissez un identifiant de modèle. diff --git a/docs-site/src/content/docs/fr/guides/claude-code.md b/docs-site/src/content/docs/fr/guides/claude-code.md index 1e20363735a..3843f11b71f 100644 --- a/docs-site/src/content/docs/fr/guides/claude-code.md +++ b/docs-site/src/content/docs/fr/guides/claude-code.md @@ -674,8 +674,8 @@ Le proxy traduit chaque requête Anthropic Messages API au format Codex Response | Entrée Messages | Sortie Responses | | --- | --- | -| Niveau supérieur `system` | `instructions` (blocs de texte joints par `\n\n`) | -| `messages[].role: "system"` | Également plié en `instructions` | +| Niveau supérieur `system` | `instructions` (blocs de texte joints par `\n\n`). Pour GPT-6.2 Sol et Astra via la connexion Codex, envoyé comme premier message `developer` afin d'être mis en cache | +| `messages[].role: "system"` | Traduits en messages `developer` à leur position d'origine | | Texte/image utilisateur | `input_text` / `input_image` (base64 → données URL) | | Texte assistant | `output_text` | | Assistant `tool_use` | `function_call` (`input` → JSON-stringifié `arguments`) | diff --git a/docs-site/src/content/docs/fr/guides/image-bridge.md b/docs-site/src/content/docs/fr/guides/image-bridge.md index 98b388221a4..40288fa297e 100644 --- a/docs-site/src/content/docs/fr/guides/image-bridge.md +++ b/docs-site/src/content/docs/fr/guides/image-bridge.md @@ -41,7 +41,7 @@ pour activer la génération payante avec xAI Grok Imagine : { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -51,7 +51,7 @@ pour activer la génération payante avec xAI Grok Imagine : | Option | Valeur par défaut | Description | | --- | --- | --- | | `bridgeEnabled` | `false` | Interrupteur principal. Définissez-le sur `true` pour activer le pont. Il est désactivé par défaut afin d'éviter des frais xAI inattendus. | -| `bridgeModel` | `grok-imagine-image-quality` | Identifiant du modèle d'image xAI auquel envoyer les invites. | +| `bridgeModel` | `grok-imagine-image-2.0` | Identifiant du modèle d'image xAI auquel envoyer les invites. | | `maxRounds` | `3` | Nombre maximal d'itérations de la boucle de génération d'images par tour. La valeur est ramenée à un entier et limitée à `[0, 10]` ; une valeur non finie est remplacée par `3`. | | `timeoutMs` | `60000` | Délai maximal par appel xAI, en millisecondes. Les valeurs positives et finies sont ramenées à un entier, puis transmises à la requête xAI. | | `artifactsKeepCount` | `200` | Nombre maximal de fichiers conservés sous `artifacts/`. Lorsque cette limite est dépassée, les fichiers les plus anciens sont supprimés après chaque appel mené à terme. Définissez la valeur sur `0` ou sur un nombre négatif pour désactiver l'élagage. | @@ -93,3 +93,5 @@ silencieusement. - **La recherche web est prioritaire** sur les adaptateurs qui prennent en charge la boucle du service auxiliaire de recherche web. Si la recherche web et la génération d'images sont toutes deux demandées pendant le même tour, la recherche web est exécutée et la génération d'images est ignorée. Les adaptateurs Cursor/`runTurn` ne peuvent actuellement pas utiliser ce service auxiliaire ; le pont de génération d'images peut donc tout de même s'exécuter pendant ces tours qui demandent les deux outils. - **Les tarifs xAI s'appliquent.** La génération d'images par xAI exige un abonnement xAI actif ou des crédits API. - **Diffusion en continu uniquement.** Le pont intercepte le flux de réponse SSE ; les requêtes contenant `stream: false` sont rejetées avec une erreur 400. + +Le modèle par défaut est `grok-imagine-image-2.0`. `quality` accepte `low`, `medium` et `auto` ; `high` et `hd` OpenAI deviennent `medium`. Le modèle retiré `grok-imagine-image-quality` (et `grok-imagine-image-pro`, redirigé vers lui depuis le 2026-05-15) est servi en 2.0 basse qualité. Le prix dépend de la qualité et de la résolution ; les modifications ajoutent $0.01 par image en entrée. Le relais `/v1/images/edits` transmet au plus cinq images d’entrée (doublons retirés d’abord) ; l’outil passerelle `image_gen` en envoie une. diff --git a/docs-site/src/content/docs/fr/guides/providers.md b/docs-site/src/content/docs/fr/guides/providers.md index 400994e490f..dc03db40597 100644 --- a/docs-site/src/content/docs/fr/guides/providers.md +++ b/docs-site/src/content/docs/fr/guides/providers.md @@ -310,7 +310,7 @@ existante n'est pas concernée. ## 3. Catalogue des clés API -opencodex fournit 111 préréglages intégrés : 89 à clé, 18 OAuth, trois locaux et un préréglage par défaut de +opencodex fournit 112 préréglages intégrés : 90 à clé, 18 OAuth, trois locaux et un préréglage par défaut de transfert ChatGPT. Dans le tableau de bord, le sélecteur **Ajouter un fournisseur** ouvre le tableau de bord du fournisseur à clé, valide la clé et l'enregistre ; la validation dépend du fournisseur. Parmi les entrées notables : diff --git a/docs-site/src/content/docs/fr/guides/video-bridge.md b/docs-site/src/content/docs/fr/guides/video-bridge.md index cc65a708b36..d5443631d6e 100644 --- a/docs-site/src/content/docs/fr/guides/video-bridge.md +++ b/docs-site/src/content/docs/fr/guides/video-bridge.md @@ -43,7 +43,7 @@ Ajoutez `videoBridgeEnabled: true` à votre configuration `images` : "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -53,7 +53,7 @@ Ajoutez `videoBridgeEnabled: true` à votre configuration `images` : | Option | Valeur par défaut | Description | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | Interrupteur principal. Doit être activé explicitement. | -| `videoBridgeModel` | `"grok-imagine-video"` | Identifiant du modèle vidéo xAI. | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | Identifiant du modèle vidéo xAI. | | `videoMaxRounds` | `2` | Nombre maximal de tours de génération vidéo avant une réponse finale forcée. | | `videoTimeoutMs` | `300000` (5 min) | Délai maximal par vidéo, interrogation comprise. | | `videoProvider` | non défini (xAI) | Fournisseur facultatif à clé d'API qui traite `video_gen` avec ses propres `baseUrl` et clé. Voir [Choisir le fournisseur vidéo](#choisir-le-fournisseur-vidéo). | @@ -76,7 +76,7 @@ Par défaut, le pont envoie les tâches `video_gen` à xAI avec la clé d'API du "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -103,16 +103,32 @@ L'outil `video_gen` accepte les paramètres suivants : | Paramètre | Type | Plage | Description | |-----------|------|-------|-------------| -| `prompt` | string | required | Invite détaillée de génération vidéo | +| `prompt` | string | facultatif avec une image ou une image clé | Invite textuelle | | `duration` | integer | 1-15 | Durée de la vidéo en secondes | -| `resolution` | string | `"480p"`, `"720p"` | Résolution de la vidéo | -| `aspect_ratio` | string | 7 ratios | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | Selon le modèle ; 720p au maximum avec `last_frame`, `keyframes` ou `reference_images` | +| `aspect_ratio` | string | selon le modèle | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; refusé si seule une `image` est animée, car elle conserve son propre format | +| `image` | string | première image | URL HTTPS, URL de données ou artefact mémorisé | +| `last_frame` | string | 1.5 uniquement | Dernière image | +| `keyframes` | array | 1.5, 4 au maximum | `{image, timestamp_s}`; horodatage strictement à l’intérieur du clip (8 s si `duration` est omis) | +| `reference_images` | array | 1.5 : 14, classique : 7 (≤ 10 s) | Images de référence ; le modèle classique ne peut pas les combiner avec `image` | + +Les réglages qu’un modèle ne peut pas respecter sont refusés avant tout appel payant au lieu d’être ignorés. + +### Modèles et images en entrée + +| Modèle | Résolution | Entrées | par seconde (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p natif | première/dernière image, 4 images clés, 14 références (720p maximum) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (par défaut) | 480p / 720p / 1080p agrandi | première image | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | première image, 7 références | $0.05 / $0.07 / — | + +Réglez `images.videoBridgeModel` sur `grok-imagine-video-1.5` pour utiliser les images clés ou références. Les modèles connus acceptent neuf formats ; les autres conservent sept formats, 480p/720p et aucune image. Les URL HTTPS et données PNG/JPEG/WebP jusqu’à 10 Mio décodés sont acceptées. Une image téléchargée par le pont peut être référencée par URL d’artefact, chemin absolu ou URL `file:` pendant une heure : son URL source est utilisée sans lire le fichier local. Cela exige la destination xAI fixe, pas un `images.videoProvider` personnalisé. Les résultats en ligne n’ont pas d’URL source et une URL temporaire peut expirer plus tôt. + ## Limitations - **xAI par défaut** : sans `videoProvider`, la génération vidéo utilise l'API Grok Imagine Video de xAI ; un autre backend doit implémenter la même API asynchrone. - **Asynchrone** : la génération d'une vidéo prend de 30 à 120 secondes. -- **Coût** : la génération vidéo est une fonctionnalité xAI payante (environ 0.05 $/s en 480p et 0.07 $/s en 720p). - **Une vidéo par appel** : chaque appel à `video_gen` produit une vidéo. - **Coexiste avec le pont de génération d'images** : les deux ponts peuvent être activés simultanément. - **Priorité à la recherche web** : lorsqu'un service auxiliaire de recherche web est actif pendant un tour (adaptateur autre que `runTurn`), le pont vidéo est ignoré ; les deux ne peuvent pas s'exécuter simultanément. Un `console.warn` est émis afin que vous puissiez le repérer dans les journaux. diff --git a/docs-site/src/content/docs/fr/guides/web-dashboard.md b/docs-site/src/content/docs/fr/guides/web-dashboard.md index c41206b5afe..6259073db32 100644 --- a/docs-site/src/content/docs/fr/guides/web-dashboard.md +++ b/docs-site/src/content/docs/fr/guides/web-dashboard.md @@ -136,18 +136,33 @@ uniquement si la liste d'autorisation de son fournisseur l'inclut — ou si aucu s'il n'est pas désactivé. Activer un modèle réconcilie atomiquement les deux filtres ; **Tout activer** efface la liste d'autorisation du fournisseur afin que les modèles découverts ultérieurement soient eux aussi actifs. -### Gérer les modèles dans l’espace fournisseur +L’onglet **Tous** (`#models/overall`) affiche dans une seule liste tous les modèles de tous les +fournisseurs, dans l’ordre du catalogue, avec un champ de recherche, un filtre **Tous** / **Activés** / +**Désactivés** et le même commutateur. Les deux onglets lisent le même état et partagent une file +d’enregistrement : un changement fait dans l’un apparaît aussitôt dans l’autre. + +Attendez la confirmation avant de quitter **Modèles** ou de changer de serveur : les modifications +en file d’attente et non encore envoyées sont abandonnées au départ. -Dans l’onglet **Modèles** d’un fournisseur, **Supprimer** retire la définition personnalisée -stockée. Le modèle natif ou découvert sous-jacent peut alors réapparaître ; le nombre de modèles -peut donc rester identique. **Masquer** change uniquement la visibilité dans le catalogue, sans -supprimer la définition ni modifier la politique de routage direct. **Gérer la visibilité dans -Modèles** ouvre la page **Modèles** pour rétablir la visibilité, même si l’onglet du fournisseur -ne contient plus aucune ligne. +### Gérer les modèles dans l’espace fournisseur -**Ajouter** enregistre une définition personnalisée sans effacer un masquage existant ni les -règles de sélection du fournisseur. Un modèle enregistré peut donc rester masqué. Si le modèle -est déjà connu, gérez sa visibilité dans **Modèles**. Un enregistrement confirmé reste valable +L’onglet **Modèles** d’un fournisseur liste tous ses modèles, y compris ceux qui sont désactivés, +chacun avec le même commutateur que la page **Modèles** ; les deux pages lisent et écrivent le même +état. Un commutateur enregistre immédiatement. Tant que cet enregistrement et le rechargement qui +suit ne sont pas terminés, les autres commutateurs, **Ajouter** et **Supprimer** attendent : une +seule modification est en cours à la fois, et choisir un autre fournisseur ne l’annule pas. Quitter +la page **Fournisseurs** avant la fin peut en revanche annuler la requête ; le chargement suivant +indique si elle a été enregistrée. +Désactiver un modèle change uniquement la visibilité dans le catalogue, sans supprimer la définition +ni modifier la politique de routage direct. **Gérer la visibilité dans Modèles** ouvre la page +**Modèles**. + +**Supprimer** retire la définition personnalisée stockée. Le modèle natif ou découvert sous-jacent +peut alors réapparaître ; le nombre de modèles peut donc rester identique. + +**Ajouter** enregistre une définition personnalisée sans annuler une désactivation existante ni les +règles de sélection du fournisseur. Un modèle enregistré peut donc rester désactivé ; activez-le avec +son commutateur. Un enregistrement confirmé reste valable même si l’actualisation du catalogue échoue : suivez le message d’actualisation au lieu d’ajouter le modèle à nouveau. Si la modification n’est pas confirmée, actualisez l’état des modèles avant de réessayer. @@ -157,6 +172,12 @@ courant renvoyé par le serveur, avant recherche ou limitation de l’affichage. liste d’autorisation ni les résultats de découverte en direct et ne prouve pas l’origine d’une entrée. Les badges de sélection et les informations de découverte restent distincts. +Ce compteur apparaît dans la liste des fournisseurs. L’en-tête de l’onglet **Modèles** du +fournisseur indique plutôt combien de modèles sont activés sur le total : le total compte chaque +entrée listée, y compris les modèles désactivés, et un modèle est activé selon la même règle que +sur la page **Modèles** : il n’est pas désactivé, et c’est un modèle natif, son fournisseur n’a pas +de liste d’autorisation, ou cette liste l’inclut. + ## Sélecteur de délégation et routage des créations de sous-agents Le sélecteur **Délégation de sous-agent** du tableau de bord enregistre `injectionModel` et, facultativement, diff --git a/docs-site/src/content/docs/fr/reference/cli/lifecycle.md b/docs-site/src/content/docs/fr/reference/cli/lifecycle.md index e791391e7e9..ecf09065a3d 100644 --- a/docs-site/src/content/docs/fr/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/fr/reference/cli/lifecycle.md @@ -166,6 +166,16 @@ Vérifie l’état de préparation après synchronisation au moyen du point de t Par défaut, la commande effectue une seule sonde. Avec `--wait`, elle interroge le service jusqu’à ce qu’il soit prêt ou jusqu’à l’expiration du délai, mais s’arrête immédiatement si elle observe l’état terminal `failed`. Le délai par défaut est de 45 secondes. `--timeout ` exige `--wait` et accepte un entier positif compris entre 1 et 300. La sortie JSON de la CLI est `{ready, status, pid, port}`, où `status` vaut `ready`, `pending`, `failed` ou `unreachable`. Les codes de sortie sont 0 si le service est prêt ; 1 s’il n’est pas prêt, reste en attente, échoue, dépasse le délai ou est inaccessible ; et 64 si les arguments sont invalides. +Si le message de démarrage du proxy indique que le répertoire de Codex est introuvable, lancez Codex une première fois ou faites pointer `CODEX_HOME` vers le répertoire déjà initialisé par Codex. Exécutez ensuite `ocx sync`. Une synchronisation réussie rétablit le routage, mais l’état `failed` conserve le résultat du démarrage du processus en cours. Redémarrez le proxy et exécutez `ocx ready` pour vérifier le nouveau processus. + +Pour un service installé avec la CLI, utilisez les valeurs enregistrées de `CODEX_HOME` et `OPENCODEX_HOME`. Si une ancienne définition du service omet ces chemins, exécutez une fois `ocx service repair` avec ces valeurs. Initialisez le répertoire de Codex si nécessaire, exécutez `ocx sync`, puis redémarrez le service. Si l’application de bureau gère le proxy, redémarrez-le depuis celle-ci. + +Pour déplacer le service CLI vers un autre répertoire Codex existant, exécutez `ocx service uninstall` avec les paramètres d’origine. Si le service est supprimé mais que la restauration de Codex natif échoue, corrigez l’erreur signalée et exécutez `ocx restore` avec ces mêmes paramètres. + +Sous Windows, si l’échec de la restauration laisse un nettoyage en attente, exécutez `ocx stop` depuis l’installation concernée avec les répertoires d’origine avant d’en changer. Tant que ce nettoyage reste en attente, `ocx update` refuse de remplacer le paquet. + +Une fois la désinstallation et la restauration réussies, conservez `OPENCODEX_HOME`, sélectionnez le nouveau `CODEX_HOME` et exécutez `ocx service install` avec le backend et les options d’origine. Avec les nouveaux paramètres, exécutez `ocx sync` et vérifiez le résultat avec `ocx ready`. En cas d’échec du démarrage, suivez les étapes de récupération ci-dessus. + ### `ocx doctor` Exécute des diagnostics en lecture seule sur l’environnement et la connectivité : chemins d’état et type de système de fichiers, installations doubles sous WSL, environnement et configuration du proxy, accessibilité de ChatGPT, avertissements liés au plug-in Codex et à la configuration du projet, ainsi que migration d’historique en attente. La section consacrée au répertoire de Codex App détecte également le cas précis où le répertoire d’exécution Windows Orca ne correspond pas et, le cas échéant, explique la migration du service. Les chemins affichés masquent le nom d’utilisateur du système d’exploitation. La commande doctor propose des réparations, mais ne les applique pas. diff --git a/docs-site/src/content/docs/getting-started/quickstart.md b/docs-site/src/content/docs/getting-started/quickstart.md index 7305bd426e0..f215bec79b6 100644 --- a/docs-site/src/content/docs/getting-started/quickstart.md +++ b/docs-site/src/content/docs/getting-started/quickstart.md @@ -21,7 +21,7 @@ ocx init `ocx init` walks you through: -1. **Pick a provider** — choose one of the 111 built-in registry presets or `custom` to type a base +1. **Pick a provider** — choose one of the 112 built-in registry presets or `custom` to type a base URL and adapter. 2. **API key** — paste a key, or reference an environment variable like `${ANTHROPIC_API_KEY}`. 3. **Default model** — for key, local, and custom providers, accept the preset or enter a model id. diff --git a/docs-site/src/content/docs/guides/api-key-catalog.md b/docs-site/src/content/docs/guides/api-key-catalog.md index 1f138e57bc5..38b00768e35 100644 --- a/docs-site/src/content/docs/guides/api-key-catalog.md +++ b/docs-site/src/content/docs/guides/api-key-catalog.md @@ -9,7 +9,7 @@ stay on that page. For subscription account rotation, see [`reset-near-weighted`](/reference/configuration/providers/#reset-near-weighted) for the Codex and Anthropic OAuth pools. API-key pools use their own [key selection settings](/reference/configuration/providers/). -opencodex ships 111 built-in presets: 89 key-based, 18 OAuth, three local, and one default +opencodex ships 112 built-in presets: 90 key-based, 18 OAuth, three local, and one default ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard, validates the key where the provider can check one, and stores it. Notable entries: @@ -767,7 +767,7 @@ OpenCodex provides official adapter support for Qoder through the `qoder` (Globa - **Output guard:** If the CLI echoes OpenCodex tool-call/result replay envelopes into assistant text, the turn fails with `vendor_scaffold_detected` (502) instead of returning the envelope as a successful answer, and neither reasoning nor tool calls following the envelope are forwarded. Reasoning starts a fresh replay-text block, so earlier prose or code fences cannot hide an envelope in later text. If the CLI's turn already ended with its own error, that error is reported instead, still without the envelope. The proxy does not retry that failure automatically. Ordinary prose and closed fenced examples follow the shared envelope recognizer; an unverified overflowing fenced example is refused. Assistant text preserves Unicode characters split across CLI frames; unpaired surrogates are replaced with U+FFFD. - **Image Input:** Global continues forwarding supported images through the shared projection without a per-model vision allowlist. CN retains its vision-sidecar defaults. Its raw-image route admits only one canonical base64 PNG of at most 1 MiB decoded, 8192 pixels per edge, and 16 million total pixels in a single user turn with `DeepSeek-Flash` or `Qwen3.8-Flash`. Use `qoderclicn 1.1.70`: [issue #7516](https://github.com/lidge-jun/opencodex/issues/7516) reports Windows 11 x64 live success for those models on both `--attachment` and inline `--input-format stream-json --output-format stream-json` stdin; OpenCodex uses only stdin. The adapter validates base64 length/padding, decoded PNG signature and basic IHDR fields before CLI discovery; it does not decompress pixels or validate every PNG chunk/CRC. These ceilings are OpenCodex resource policy, not verified vendor maxima: the reported live evidence covers a 96×96 PNG, whose RGBA raster is only 36 KiB. Larger inputs require separate verification. Other CLI versions have not been verified, and the adapter does not probe the installed version. CN refuses raw URL images, other image formats/models, multiple images, tool-result images and image-bearing history/multi-turn replay before starting the CLI with `unsupported_input_modality`; use the vision sidecar for those inputs. Injected CLI tests cover serialization and cancellation without claiming live upstream support. Qoder's supported projection keeps image blocks in conversation order and marks unsupported references as `[image omitted: unsupported reference]`. Global stateless replay can still associate historical images unreliably with their original text; CN does not enable that unverified replay surface. - **PAT recovery:** For both Qoder presets, a multi-key API-key pool can switch to another PAT on a supported authentication rejection or account-level quota exhaustion, but only before response content or an event that makes replay unsafe. Recovery requires Qoder-specific classification and respects credential-hop and send budgets; an HTTP 401/429 or quota message alone is not permission to replay. Single-key configurations do not rotate. Sharing the CLI runner does not enable this API-key recovery for CodeBuddy or self-authenticated Claude CLI. -- **Quota:** No public quota API is used, so totals and reset times are unavailable. Codes 110 (account daily limit) and 118 (personal Credits exhaustion) report `insufficient_quota` and permit consideration of PAT recovery. Other supported quota codes also report `insufficient_quota` but do not authorize it. Numeric error codes take precedence: an unrecognized numeric code does not fall back to quota or authentication text. Without a numeric code, only the supported account-daily message beginning “You've reached your daily usage limit for Chat”, with no team/model/shared qualifier, grants quota recovery; generic credit-limit text does not. Only quota failures eligible for PAT recovery enter key cooldown handling. When such a failure has no reset time, the failed key uses the existing default cooldown; nonrecoverable quota classifications do not create a cooldown through this path, and no next-day reset is inferred. +- **Quota:** No public quota API is used, so totals and reset times are unavailable. Codes 110 (account daily limit) and 118 (personal Credits exhaustion)—whether reported as numbers or pure-numeric strings—report `insufficient_quota` and permit consideration of PAT recovery. Other supported quota codes also report `insufficient_quota` but do not authorize it. On `qoder-cn`, when `error_code` is absent, outer HTTP `403`/`"403"`, or `112`/`"112"` (with no non-403 error code on the response JSON object or its top-level `error`/`data` object, and no top-level field other than `pricingUrl` and 403 codes, so explanatory text such as a lock or permission message keeps the original error), the verified `inference.remoteChat.stream failed (403)` response whose JSON body carries `pricingUrl` at `https://qoder.com.cn/pricing` also reports `insufficient_quota` and permits PAT recovery; Global and unrelated 403s do not. Other explicit vendor error codes take precedence: any other numeric or non-numeric `error_code` (such as `114`, `130`, `PERMISSION_DENIED`, or `112` without that verified CN pricing-URL response) does not fall back to quota, pricing-URL, or authentication text. Without an explicit `error_code`, only the supported account-daily messages beginning “You've reached your daily usage limit for Chat” or “You have reached the daily usage limit”, with no team/model/shared qualifier, grant quota recovery; generic credit-limit text does not. Only quota failures eligible for PAT recovery enter key cooldown handling. When such a failure has no reset time, the failed key uses the existing default cooldown; nonrecoverable quota classifications do not create a cooldown through this path, and no next-day reset is inferred. - **Operators:** Qoder Global is operated by BRIGHT ZENITH PRIVATE LIMITED under the [product service terms](https://qoder.com/product-service); Qoder CN by 通义云启(杭州)信息技术有限公司 with Alibaba Cloud. Verify `ocx provider test qoder` (or `qoder-cn`) after configuring. ## Claude Code CLI (subscription) diff --git a/docs-site/src/content/docs/guides/claude-code.md b/docs-site/src/content/docs/guides/claude-code.md index bd30083159b..0fa2c358e78 100644 --- a/docs-site/src/content/docs/guides/claude-code.md +++ b/docs-site/src/content/docs/guides/claude-code.md @@ -1109,8 +1109,8 @@ The proxy translates every Anthropic Messages API request into the Codex Respons | Messages input | Responses output | | --- | --- | -| Top-level `system` | `instructions` (text blocks joined with `\n\n`) | -| `messages[].role: "system"` | Also folded into `instructions` | +| Top-level `system` | `instructions` (text blocks joined with `\n\n`). For GPT-6.2 Sol and Astra via Codex login, sent as the first `developer` message so it can be cached. | +| `messages[].role: "system"` | Translated to `developer` messages at their original positions. | | User text / image | `input_text` / `input_image` (base64 → data URL) | | Assistant text | `output_text` | | Assistant `tool_use` | `function_call` (`input` → JSON-stringified `arguments`) | @@ -1336,6 +1336,10 @@ OAuth identity. That identity must advertise at least 2.1.290. For requests carr a genuine Claude Code client identity, update that Claude Code installation as well; OpenCodex preserves its reported version. +**Claude Code says Anthropic requires account verification** — Open the +[Anthropic Verification Portal](https://portal.anthropic.com/verify) and sign in to the affected account. +OpenCodex keeps the HTTP 403 and records `account_verification_required` in its request logs for this notice. + ### Windows Desktop apply reports `client_lifecycle_lock_failed` Update OpenCodex if Desktop apply stalls while many old lock files are present. Lifecycle acquisition @@ -1366,7 +1370,9 @@ set (automatic with `ocx claude`). Run `ocx claude` to refresh the gateway model **200k context ceiling despite big model** — Select the `[1m]` variant in the picker, or enable auto-context (on by default). If the picker shows no `[1m]` row, the model's effective catalog context -window may be below the fixed 829,800-token floor. +window may be below the fixed 829,800-token floor. If `ocx claude` reports a timeout loading model +context information, it skips automatic `[1m]` marking for that launch. The warning does not mean +that the provider reduced the model's context limit. **High token count from skill loads** — The bundled `claude-api` skill (~136k tokens) auto-loads on Claude model mentions. This is normal for native passthrough; on routed models, opencodex stubs diff --git a/docs-site/src/content/docs/guides/codex-app-models.md b/docs-site/src/content/docs/guides/codex-app-models.md index 934161f0b74..4b589f20fb4 100644 --- a/docs-site/src/content/docs/guides/codex-app-models.md +++ b/docs-site/src/content/docs/guides/codex-app-models.md @@ -400,13 +400,13 @@ The active declaration also controls the Ultra Fast choice when Codex loads its For routed rows, `ultraFastTier` retains independently supplied Ultra Fast tiers from the same exact persisted row; generated routed tiers are not treated as operator-supplied. -For bare native `gpt-6-astra` / `gpt-6.1-sol` rows and their trusted account-bound clones, +For bare native `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.2-astra` and `gpt-6.2-sol` rows and their trusted account-bound clones, enabling `ultraFastTier` also generates a missing Ultrafast choice without changing the native default tier. Disabling it withdraws only native tier metadata tracked as generated; independently supplied or edited native tier descriptors are preserved. -[OpenAI's API guide](https://developers.openai.com/api/docs/guides/ultrafast-mode) documents -Ultrafast for GPT-6 Astra and GPT-6.1 Sol. API access and +[OpenAI's speed guide](https://learn.chatgpt.com/docs/agent-configuration/speed#ultrafast-mode) documents +Ultrafast for GPT-6.2 Astra and Sol alongside GPT-6 Astra and GPT-6.1 Sol. API access and [Codex plan/workspace access](https://learn.chatgpt.com/docs/agent-configuration/speed) are separate. A menu choice does not grant provider access or guarantee measured speed; Ultra Fast increases usage/cost, and Codex's own feature requirements still apply. diff --git a/docs-site/src/content/docs/guides/codex-integration.md b/docs-site/src/content/docs/guides/codex-integration.md index 0c2c823cef6..1da5d7a9255 100644 --- a/docs-site/src/content/docs/guides/codex-integration.md +++ b/docs-site/src/content/docs/guides/codex-integration.md @@ -22,6 +22,16 @@ models use their selected account. Refreshing the integration updates these rows changes the account's access programs. OpenCodex carries the logged-in main account's live model availability prompt onto bare native model rows. +For built-in native models, a confirmed model list from the selected account also supplies the +default and maximum context windows and support for reasoning-effort updates and experimental +context. Configured window limits and compaction budgets still apply. A confirmed default above +the shipped opt-in ceiling is preserved unless a configured limit lowers it. Repeated catalog +updates preserve a lower compaction budget when the final context window stays the same. +If the saved catalog has duplicate rows for a native model, the first row supplies that +retained budget; later duplicates are removed without replacing the first row's setting. +An advertised capability +requires its normal Codex client settings and backend support. + With **Ultra Fast** enabled (`ultraFastTier: true`), OpenCodex publishes Ultrafast for native models whose authenticated account roster advertises that tier, including `gpt-6-astra` and `gpt-6.1-sol`. Existing Fast metadata is preserved. Bare Pool @@ -635,6 +645,8 @@ ocx system settings --client-compaction on # or "codexClientCompaction": true ocx sync # rewrites the active config (default: ~/.codex/config.toml); restart Desktop ``` +If the CLI reports `history_paginated_openai_provider_locked`, the preference was saved but the routing change was refused. To keep existing conversations resumable, keep client compaction and desktop authless off. Repeating the sync with the same settings will encounter the same refusal. + The setting defaults to off. For authenticated loopback routing, OpenCodeX selects its existing dedicated provider form with `requires_openai_auth = true`. If `codexDesktopAuthless` is also enabled, that stronger compatibility setting takes precedence and writes diff --git a/docs-site/src/content/docs/guides/combos.md b/docs-site/src/content/docs/guides/combos.md index 9c992035b6a..7a5b1bd0e26 100644 --- a/docs-site/src/content/docs/guides/combos.md +++ b/docs-site/src/content/docs/guides/combos.md @@ -193,8 +193,8 @@ still advance. A streamed error event that carries no status of its own but an integral numeric `code` between 400 and 599 is judged with that code as its HTTP status, so it gets the same decision and cooldown -as the matching HTTP response. Before output starts, a generic streamed 400, 409, 413 or 422 therefore -stops the combo as it does over HTTP, a 401, 402 or 403 cools the provider, and a recognized context +as the matching HTTP response. Before output starts, a generic streamed 400, 409 or 422 therefore stops +the combo as it does over HTTP, a provider 413 advances to the next target, a 401, 402 or 403 cools the provider, and a recognized context overflow still advances. ### Round-robin: smooth weighted batches @@ -794,6 +794,10 @@ cooldown. For an Anthropic OAuth or Codex pool, a 429 tied to one account that the pool has cooled does not cool the whole combo target. Other accounts behind that target remain available. A 429 with no identified, cooled pool account still cools the target, as do provider-wide failures. +For the Codex pool this includes the main ChatGPT account while the OpenAI provider runs in pool +mode, the default, because pool selection itself skips a cooled main account; when main recovers, +the combo routes to it again without waiting for a target cooldown. In direct mode nothing skips a +cooled main account, so a 429 from it still cools the target. After a Responses combo stream commits output, an incomplete terminal can cool that target for the next request. The reason can appear on the terminal event or its `response` snapshot. A refusal on @@ -1253,6 +1257,8 @@ window or a credential/billing failure, otherwise 60 seconds). Explicit Validation errors (HTTP 400/422) that quote quota or free-tier cap text do not trigger fallback by that text alone. A structured `free_rate_limited` refusal still tries the next eligible target without cooling the healthy provider or target. +A provider's HTTP 413 says that target cannot take a request this large, not that the request is impossible. Targets have different intake limits (Groq, for example, refuses a turn above the account's tokens-per-minute tier with 413 and `rate_limit_exceeded`), so the combo tries the next untried target and cools nothing. If every remaining target refuses as well, the combo returns its context-size error: HTTP 413 for non-streaming clients, and a `response.failed` event with `context_length_exceeded` for streaming Responses clients. An earlier confirmed HTTP 400 context refusal still takes precedence, as described under [Context-window refusals](#context-window-refusals). A 413 whose body OpenCodex could not read in full also stops the combo. A 413 produced by OpenCodex itself (`translation_buffer_limit`, `inbound_body_too_large`, `outbound_body_too_large`, or the Ollama late-attribution limit) still stops the combo, because every target would hit the same limit. + ### Why was my alias rejected? Check the alias grammar and reserved names first. A duplicate alias or invalid shape is rejected as @@ -1262,6 +1268,8 @@ validation message. ### Context-window refusals +Whitespace-heavy provider errors retain the same overflow and negation rules. Negation-aside processing consumes surrounding whitespace once, so long whitespace runs do not require repeated matching. + Before sending to a Responses combo target with a known context window and input limit, OpenCodex applies a 1.1× margin to the estimated input tokens and rounds up. The adjusted input must fit the input limit, and the adjusted input plus the output reserve must fit the context diff --git a/docs-site/src/content/docs/guides/desktop-app.md b/docs-site/src/content/docs/guides/desktop-app.md index 678d7ffd853..731c7c26044 100644 --- a/docs-site/src/content/docs/guides/desktop-app.md +++ b/docs-site/src/content/docs/guides/desktop-app.md @@ -149,13 +149,19 @@ when they verify that the app runs its bundled proxy, even without recorded owne CLI service repairs for that runtime. On macOS and Linux, turn on **Start at Login** in the OpenCodex menu instead of installing a background service. Startup safety credits the app only when its login registration is verified; if it cannot be verified, follow the Desktop guidance in status. -In the dashboard's Getting started checklist, the last step under the app is +Inside the app, the dashboard's Getting started checklist lists adding a provider and +sending a first request, with no Start at Login step: installing the app and opening it the +first time turns Start at Login on. In a browser dashboard for a proxy the app runs, the +checklist's last step is **Turn on Start at Login** and opens the Desktop card on the Startup page. It is marked done only when Startup safety verifies the registration and the app runs the proxy. It shows as to do when Start at Login is verified off, or on macOS when the app is confirmed not to be running the proxy. Otherwise the step stays unmarked, which is the usual case on Windows (the registration is not verified) and on Linux without a verified autostart entry; check the item in the OpenCodex menu yourself. +To put the checklist away, choose **Hide** on Home's Getting started card; **Show on Home** +on the **Checklist** tab under **Route** brings it back. The choice is remembered per +browser profile, and the app's window keeps its own. The Startup page shows a quiet **Start at Login not verified** note when the app's registration cannot be checked. A verified disabled registration is shown as action required. On macOS the menu's **Start at Login** item is checked only when Startup safety would diff --git a/docs-site/src/content/docs/guides/google-vertex.md b/docs-site/src/content/docs/guides/google-vertex.md index 55e5ab31a2b..a72b70b3ae2 100644 --- a/docs-site/src/content/docs/guides/google-vertex.md +++ b/docs-site/src/content/docs/guides/google-vertex.md @@ -26,17 +26,17 @@ port and no URL username or password. Custom gateway endpoints do not receive Ve Restore the Google endpoint to use live discovery; configured models remain available when discovery cannot verify the destination. -Reasoning levels follow the preset: Gemini 4 Hydrogen offers low, medium, high (the default) and +Reasoning levels follow the preset: Gemini 4 Hydrogen and Neon offer low, medium, high (the default) and xhigh; Gemini 4 Carbon and Argon offer low, medium and high. A model the preset gives no levels to, such as `gemini-3-pro`, shows none, because requests to it carry no thinking level. -## Tool images on Gemini 4 +## Tool images on Gemini 3+ -On Vertex AI, `gemini-4-argon`, `gemini-4-carbon` and `gemini-4-hydrogen` receive images -returned by tools, such as screenshots, inside the matching function response. On Argon this -avoids the upstream 400 error "Requests ending with a model turn are not supported" after an -image-producing tool call; Carbon and Hydrogen use the same documented function-response form, -though that error was not reproduced on them. Images from duplicate results or results +On Vertex AI, Gemini 3 and later models (including `gemini-3.8-flash`, `gemini-4-argon`, +`gemini-4-carbon`, `gemini-4-hydrogen`, `gemini-4-neon` and future discovered Gemini 4+ models) +receive images returned by tools, such as screenshots, inside the matching function response. This +avoids the upstream 400 error "Requests ending with a model turn are not supported" reproduced on +Argon, Neon and 3.8 Flash after an image-producing tool call. Images from duplicate results or results without a matching call are preserved in a separate message after the tool responses, with a marker explaining that they could not be paired. No configuration change is needed; this handling -is specific to these Gemini 4 models on Vertex. +applies to Gemini 3+ models on Vertex. diff --git a/docs-site/src/content/docs/guides/image-bridge.md b/docs-site/src/content/docs/guides/image-bridge.md index 95670fdb573..3e0495ea109 100644 --- a/docs-site/src/content/docs/guides/image-bridge.md +++ b/docs-site/src/content/docs/guides/image-bridge.md @@ -50,7 +50,7 @@ Image Bridge options live under `images` in `~/.opencodex/config.json`. Bridging { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -60,7 +60,7 @@ Image Bridge options live under `images` in `~/.opencodex/config.json`. Bridging | Option | Default | Description | | --- | --- | --- | | `bridgeEnabled` | `false` | Master switch. Set `true` to enable bridging. Off by default to avoid unexpected xAI charges. | -| `bridgeModel` | `grok-imagine-image-quality` | The xAI image model id to send prompts to. | +| `bridgeModel` | `grok-imagine-image-2.0` | The xAI image model id to send prompts to. | | `maxRounds` | `3` | Maximum image-generation loop iterations per turn. Floored to an integer and clamped to `[0, 10]`; non-finite values fall back to `3`. | | `timeoutMs` | `60000` | Per-call xAI deadline in milliseconds. Finite positive values are floored and passed to the xAI request. | | `artifactsKeepCount` | `200` | Maximum number of files retained under `artifacts/`. When exceeded, the oldest files are deleted after each fulfilled call. Set to `0` or a negative value to disable pruning. | @@ -101,3 +101,5 @@ perspective, image generation works with any routed provider instead of silently - **xAI costs apply.** Image generation via xAI requires an active xAI subscription or API credits. - **Streaming only.** The bridge works by intercepting the SSE response stream; requests with `stream: false` are rejected with a 400 error. + +The default is `grok-imagine-image-2.0`. Its `quality` accepts `low`, `medium`, and `auto`; OpenAI `high` and `hd` map to `medium`. The retired `grok-imagine-image-quality` model (and `grok-imagine-image-pro`, redirected to it since 2026-05-15) is served as 2.0 at low quality. Price depends on quality and resolution; edits add $0.01 per input image. The `/v1/images/edits` relay forwards up to five input images (duplicates are dropped first); the `image_gen` bridge tool sends one. diff --git a/docs-site/src/content/docs/guides/integrations.md b/docs-site/src/content/docs/guides/integrations.md index ca562c0c91c..ee2ab5c3b83 100644 --- a/docs-site/src/content/docs/guides/integrations.md +++ b/docs-site/src/content/docs/guides/integrations.md @@ -1265,7 +1265,8 @@ status warns about organization settings and environment overrides it can see. I OpenCodex process environment. An override set only in the Antigravity process will not appear. On Windows `agy` is untested because Google lists it for macOS and Linux only. -To preserve Gemini JSON, sign in with `ocx login google-antigravity` and set -`protocols.rollout.geminiNativeAntigravity` to `true` in OpenCodex's JSON config. This opt-in +To preserve Gemini JSON, sign in with `ocx login google-antigravity` and turn on **Native Gemini +passthrough** in the Google Antigravity **Accounts** tab. The JSON setting is +`protocols.rollout.geminiNativeAntigravity`. This opt-in applies to `/v1beta` Gemini generation routed to the canonical `google-antigravity` OAuth provider. Other routes use the Chat bridge. See [Native Gemini with Antigravity](/reference/proxy-formats/#native-gemini-with-antigravity). diff --git a/docs-site/src/content/docs/guides/providers.md b/docs-site/src/content/docs/guides/providers.md index a12a37f7d54..d70897f36c7 100644 --- a/docs-site/src/content/docs/guides/providers.md +++ b/docs-site/src/content/docs/guides/providers.md @@ -16,6 +16,17 @@ account selection or defaults. While a provider login is in progress, its Accounts panel offers **Cancel** once sign-in instructions appear. +## Reasoning-effort rejection diagnostics + +Automatic retries of the same provider and model at a lower effort, and learned unsupported +efforts, use a complete upstream error diagnostic of at most 1,024 UTF-16 code units, including +any wrapper text. Larger diagnostics cannot authorize this retry or learning from their prefix. +The original error body remains available to normal handling, including ordinary Combo failover; +existing client error-display limits still apply. A long but legitimate effort error therefore +does not trigger automatic effort repair or update the learned effort ladder. Short diagnostics such as +`cannot use parameter 'reasoning_effort'` still identify effort; an actual unrelated field +continues to block this retry and learning. + ## OpenAI account modes | Provider id | Use | Credential/account rule | @@ -60,7 +71,7 @@ reset is expected to recover as `+N% pool capacity`. **Incomplete coverage** mea accounts could not safely contribute to the estimate, for example because their plan or quota is unknown, their reading is stale, or the account is paused or needs reauthentication. -Business Premium seats reported as `self_serve_business_prolite` count as five Standard-seat units in this estimate. This display weight does not select accounts or create a five-hour window when the upstream reports only weekly usage. The calibration follows the [official Business usage limits](https://help.openai.com/en/articles/12003714-chatgpt-business-models-and-limits), checked 2026-10-20; unknown plans continue to count at the baseline with the unknown-plan count disclosed. An enabled Anthropic OAuth account pool with two or more accounts gets the same kind of estimate, every routable account weighted equally: inactive accounts use their last measured reading (no extra usage requests), paused, reauthenticating or stale accounts count as incomplete coverage, and with the pool off or one account the row shows the active account's own reading as before. +Pro 100 (`prolite`), Pro 200 (`pro`), and Pro 500 (`promax`) count as 10, 20, and 50 Plus-seat units respectively. Business Premium seats reported as `self_serve_business_prolite` count as five Standard-seat units in this estimate. This display weight does not select accounts or create a five-hour window when the upstream reports only weekly usage. The calibration follows the [official Business usage limits](https://help.openai.com/en/articles/12003714-chatgpt-business-models-and-limits), checked 2026-10-20; unknown plans continue to count at the baseline with the unknown-plan count disclosed. An enabled Anthropic OAuth account pool with two or more accounts gets the same kind of estimate, every routable account weighted equally: inactive accounts use their last measured reading (no extra usage requests), paused, reauthenticating or stale accounts count as incomplete coverage, and with the pool off or one account the row shows the active account's own reading as before. A **partial window coverage** warning means some included accounts reported one quota window but not another. The overview keeps those windows separate and marks each affected window incomplete @@ -292,7 +303,7 @@ eligible Enterprise accounts. Cloud Code Assist serves Argon only to the Antigra OpenCodex sends every Gemini 4 model request and model discovery with the CLI User-Agent (`antigravity/cli/1.3.4`) and keeps the IDE User-Agent for every other model. Gemini 4 Hydrogen (low, medium, high by default, and xhigh) appears on `google-antigravity` only when your account's model list includes it, each level mapping to its `gemini-4-hydrogen-*` wire model; requesting `max` or `ultra` also selects xhigh. -Vertex AI model discovery, its credential rules and how Gemini 4 Argon, Carbon and Hydrogen +Vertex AI model discovery, its credential rules and how Vertex Gemini 3+ models (including Gemini 4 Argon, Carbon, Hydrogen and Neon) receive tool images are described in [Google Vertex AI](/guides/google-vertex/). For Gemini on Antigravity, including Argon, provider-marked thought summaries stay separate @@ -799,6 +810,7 @@ are on the [API-key catalog](/guides/api-key-catalog/) page. Its sections: - [Official CodeBuddy Code CLI (Global & CN)](/guides/api-key-catalog/#official-codebuddy-code-cli-global--cn) - [Official Qoder CLI (Global & CN)](/guides/api-key-catalog/#official-qoder-cli-global--cn) - [Claude Code CLI (subscription)](/guides/api-key-catalog/#claude-code-cli-subscription) +- [StepCode CLI (subscription)](/guides/step-cli/) - [Antigravity CLI (ACP, local)](/guides/api-key-catalog/#antigravity-cli-acp-local) - [A6API credit quota](/guides/api-key-catalog/#a6api-credit-quota) - [BigModel Coding Plan over Responses](/guides/api-key-catalog/#bigmodel-coding-plan-over-responses) @@ -981,3 +993,5 @@ An access-denied result does not by itself prove an expired login or an ineligib ## Large inline images on Chat providers Translated OpenAI-compatible Chat requests shrink inline images when their combined base64 data exceeds 3.5 MiB. Older images lose detail first. This is a best-effort image budget, so large text, schemas, or images that cannot be processed may still exceed an upstream request limit. Remote image URLs are not downloaded, and images that cannot be shrunk remain attached. Native Chat passthrough keeps its original image bytes. + +After budget normalization, Venice requests enlarge small inline images to a minimum edge of 64 pixels when their dimensions can be read and the image codec confirms that the source is at most 16 million pixels. If enlargement is skipped or fails, the request keeps the image from the budget step, which may already have re-encoded it. Venice may still reject an image below its minimum. diff --git a/docs-site/src/content/docs/guides/remote-link.md b/docs-site/src/content/docs/guides/remote-link.md index 2413d0a9848..59031001338 100644 --- a/docs-site/src/content/docs/guides/remote-link.md +++ b/docs-site/src/content/docs/guides/remote-link.md @@ -15,6 +15,8 @@ A machine link connects an OpenCodex **Home** computer to a **Child** computer o Password SSH is not supported. Links can be started from Home or Child. Windows execution uses PowerShell over the same pinned OpenSSH connection. +On Linux, a recorded OpenCodex install is used only when its executable and optional package entrypoint belong to the SSH account and their permissions and parent directories prevent replacement by another account. If that cannot be checked, Remote Link skips the recorded install. On macOS, recorded installs are always skipped because the remote shell cannot reliably verify their extra access permissions (ACLs). Remote Link continues its existing Desktop, system and PATH discovery on both platforms. A macOS install available only through the runtime record therefore needs to be installed in a discoverable location or added to the SSH account’s PATH. Keep the installation in an account-owned directory instead of a shared writable folder; a successful version response alone does not establish ownership. + ## Add a Child from `#remote` 1. Open the dashboard at `#remote` and switch Remote Link on. diff --git a/docs-site/src/content/docs/guides/step-cli.md b/docs-site/src/content/docs/guides/step-cli.md new file mode 100644 index 00000000000..ab55701c8e6 --- /dev/null +++ b/docs-site/src/content/docs/guides/step-cli.md @@ -0,0 +1,79 @@ +--- +title: StepCode CLI (subscription) +description: Route Codex requests through the StepCode CLI with a Step Plan subscription. +--- + +OpenCodex can spend a Step Plan subscription through StepCode's own harness instead of calling +`api.stepfun.com/step_plan` directly. The `step-cli` preset runs the official StepCode CLI +(`step --sdk-stdio`) and declares your request's tools to it, so no tool ever executes inside +StepCode: + +```json +{ + "providers": { + "step-cli": { + "adapter": "step-cli", + "baseUrl": "https://api.stepfun.com/step_plan" + } + } +} +``` + +- **Prerequisites:** install the StepCode CLI (it self-installs to `~/.stepcode/bin/step`) and sign + in once with `step login`. The CLI resolves its own credential from its `auth.json`. +- **No credential stored:** this row holds no Step API key, and OpenCodex never reads, copies or + forwards a Step token. It is a keyless key row (`keyOptional`) for the same reason the + `claude-cli` preset is. Use `stepfun` if you want direct API billing instead. +- **One sign-in serves the whole proxy:** the CLI reads the Step Plan login of the user OpenCodex + runs as, so every request routed through this row spends that one account. Step Plan is + prompt-metered with a five-hour and a weekly limit, and a Codex session's traffic spends the same + quota your interactive `step` sessions do. +- **Tools stay with the client:** the request's tool catalog is declared to StepCode as SDK tools, + and a call comes back over stdio as a reverse request the adapter captures. Approval and execution + stay in your client; OpenCodex stages no MCP server and holds no tool results itself. +- **One process per conversation:** StepCode carries conversation context only inside its own + process — its input channel reduces every message to text and images — so a conversation maps onto + one long-lived process that OpenCodex keys to your authenticated caller identity, provider and + thread. Keyless callers receive a separate process per request and cannot continue tool calls + across requests. Keep the tool catalog unchanged when returning a held result. A process that dies is reported, + not silently restarted, because tool results already delivered cannot be replayed through this + route. +- **Graceful stop** waits for StepCode process cleanup within the proxy's shutdown window and + reports a shutdown failure if it cannot confirm cleanup. On macOS and Linux, this can happen + if the process group leader exits before group termination. Descendants may still be running. + On POSIX, cleanup signals the group only while the original leader is observed alive. Bun 1.4.4 + can reap the child before JavaScript receives the exit event. On Linux, the native waiter thread + is a fallback when pidfd monitoring is unavailable. A group signal between reap and exit + notification could reach a reused PGID. Bun exposes no `pidfd` or other syscall-level ownership + handle to JavaScript. Closing this window requires a native supervisor or a Bun change. The owner + accepted this residual risk on 2026-11-19. + On Windows, StepCode checks that the original wrapper is still alive before launching + `taskkill /T /F`. The helper resolves the numeric PID after launch. If the wrapper exits and + Windows reuses its PID between the liveness check and that lookup, the signal could reach an + unrelated process tree. Closing this window requires establishing ownership at launch, for + example with a kill-on-close Job Object, and terminating through that handle. The owner + accepted this residual risk on 2026-11-19 alongside the POSIX reap-ordering risk. + If the wrapper has already exited or cleanup is unconfirmed after the helper may have run, + OpenCodex quarantines the session, logs a fixed warning and reports incomplete cleanup. +- **Two documented limits:** a tool that takes longer than two minutes to come back exceeds the + CLI's own tool-result window and the turn reports `step_cli_tool_result_too_late`; and the CLI's + session system prompt cannot be replaced through this protocol, so your instructions are prepended + to the turn rather than installed as the system prompt. +- **Tool-catalog ceiling:** this row shares the CLI family's **128-tool / 2 MiB** limit. A real Codex + client can exceed it, because Codex flattens every MCP server's tools into the function catalog — + measured on Codex 0.162.0 at 1749 tools / 2.5 MB. The turn is refused rather than silently trimmed + (a tool the client thinks exists but that never reaches the model is worse), and the error names both + numbers. A stock Codex install without MCP servers carries roughly ten built-in tools and works; if you + hit the ceiling, disable or narrow MCP servers for this provider. `qoder`, `codebuddy` and + `claude-cli` enforce the same bound. +- **Input media:** the row publishes text-only models. `step-5-preview` and `step-3.7-flash` accept + images upstream, but no headless StepCode turn has been shown to hand image bytes to the model, so + an image sent straight to this provider is refused (`unsupported_input_modality`). With the vision + sidecar on the request path images are captioned into text first. +- **Verify:** `ocx provider test step-cli`. + +> **Terms:** this preset spends your Step Plan subscription through StepCode's own CLI. Step's +> Step Plan documentation lists third-party coding tools against the same endpoints, and +> `--sdk-stdio` is StepCode's published, MIT-licensed external-client surface, but whether driving +> that harness from a proxy fits your plan's terms is a question between you and 阶跃星辰. +> OpenCodex does not convert the login into an API key. diff --git a/docs-site/src/content/docs/guides/video-bridge.md b/docs-site/src/content/docs/guides/video-bridge.md index 932c635e6ab..500711986ef 100644 --- a/docs-site/src/content/docs/guides/video-bridge.md +++ b/docs-site/src/content/docs/guides/video-bridge.md @@ -42,7 +42,7 @@ Add `videoBridgeEnabled: true` to your `images` config: "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -52,7 +52,7 @@ Add `videoBridgeEnabled: true` to your `images` config: | Option | Default | Description | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | Master switch. Must be explicitly enabled. | -| `videoBridgeModel` | `"grok-imagine-video"` | xAI video model id. | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | xAI video model id. | | `videoMaxRounds` | `2` | Max video-gen rounds before forced final answer. | | `videoTimeoutMs` | `300000` (5 min) | Per-video timeout including polling. | | `videoProvider` | unset (xAI) | Optional API-key provider that serves `video_gen` with its own `baseUrl` and key. See [Choosing the video provider](#choosing-the-video-provider). | @@ -78,7 +78,7 @@ bridge: "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -127,10 +127,34 @@ The `video_gen` tool accepts: | Parameter | Type | Range | Description | |-----------|------|-------|-------------| -| `prompt` | string | required | Detailed video generation prompt | +| `prompt` | string | optional with an image or frame | Text prompt | | `duration` | integer | 1-15 | Video length in seconds | -| `resolution` | string | `"480p"`, `"720p"` | Video resolution | -| `aspect_ratio` | string | 7 ratios | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | Model-dependent; 720p at most with `last_frame`, `keyframes` or `reference_images` | +| `aspect_ratio` | string | model-dependent | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; refused when only animating an `image`, which keeps its own ratio | +| `image` | string | first frame | HTTPS URL, data URL or remembered artifact | +| `last_frame` | string | 1.5 only | Last frame | +| `keyframes` | array | 1.5, max 4 | `{image, timestamp_s}`; timestamp strictly inside the clip (8 s when `duration` is omitted) | +| `reference_images` | array | 1.5: 14, classic: 7 (≤ 10 s) | Image references; the classic model cannot combine them with `image` | + +Settings a model cannot honour are refused before any paid call instead of being dropped. + +### Models and image inputs + +| Model | Resolution | Inputs | Price per second (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / native 1080p | first/last frame, 4 keyframes, 14 references (720p maximum) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (default) | 480p / 720p / upscaled 1080p | first frame | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | first frame, 7 references | $0.05 / $0.07 / — | + +Set `images.videoBridgeModel` to `grok-imagine-video-1.5` for frame pins or references. +Known models support nine aspect ratios. Unknown models retain seven ratios, 480p/720p, +and no image inputs. Inputs accept HTTPS URLs or PNG/JPEG/WebP data URLs up to 10 MiB +decoded. Images downloaded by the image bridge may also be referenced by artifact URL, +absolute path or `file:` URL for up to one hour; the bridge uses their remembered source +URL and never reads the local file. These artifact references work only with pinned xAI, +not a custom `images.videoProvider`. Inline image results have no source URL and cannot +be referenced. An upstream temporary URL may expire earlier. + ## Limitations diff --git a/docs-site/src/content/docs/guides/web-dashboard.md b/docs-site/src/content/docs/guides/web-dashboard.md index b31928aa656..f1622533415 100644 --- a/docs-site/src/content/docs/guides/web-dashboard.md +++ b/docs-site/src/content/docs/guides/web-dashboard.md @@ -200,7 +200,7 @@ is visible) and never forces an upstream refresh. | **Windows tray** | Install a per-user login tray for one-click proxy start, stop, restart, dashboard access, and status. The tray is a controller, not a proxy restart service. | | **Codex autostart** | Allow an already-installed Codex launcher shim to run `ocx ensure`. This toggle does not install a shim or background service. | | **Telemetry** | Toggle **Share anonymous usage statistics** and inspect **Preview the JSON** under **Proxy details** (`#proxy-telemetry`). On first run or after an update while undecided, the consent popup saves a choice only when **Continue** is clicked (`PUT /api/telemetry`); dismissing it records nothing. See [Telemetry and Privacy](/guides/telemetry/). | -| **Providers** | Add, edit, set the default (enabled providers only), enable/disable, and remove providers; manage OAuth account pools and API-key pools where supported. Removing the current default switches to the first remaining enabled provider when one exists; otherwise deletion is refused and the current default is kept. Provider Settings can disable live model discovery for endpoints with missing, slow, or oversized `/models` catalogs. For Claude (Anthropic) OAuth pools, each logged-in account shows its own 5-hour and weekly rate-limit bars (usage is per credential); a failed probe keeps the last-known bars and marks them unavailable until the next successful refresh. Refreshing quota skips paused OAuth accounts and disabled API keys; skipped rows without a cached reading remain unavailable but do not affect the refresh result. Refreshing reports failure when an unpaused OAuth account or enabled API key that supports quota reads has an unavailable reading. The Provider Overview shown when no provider is selected carries a **Refresh all quotas** control that forces one server-side re-read of every configured provider; a provider whose upstream probe fails keeps its last-good row, so the status line reports that the check completed rather than claiming every value is fresh, and each row's own age stays the per-provider freshness signal. Unsaved Settings and JSON edits are kept in memory per logical dashboard server: switching servers parks the draft, saving writes only to the server where editing began, and a changed saved configuration asks you to keep your draft or use the saved values. Keeping a JSON draft merges only your changes into the latest config and names any field changed on both sides; Settings saves only the fields you changed. On a relay that predates target-bound saves, the dashboard checks the target immediately before sending but cannot verify it atomically, and says so once; update the proxy for the stronger guarantee. Closing or reloading the dashboard discards these drafts. | +| **Providers** | Add, edit, set the default (enabled providers only), enable/disable, and remove providers; manage OAuth account pools and API-key pools where supported. Removing the current default switches to the first remaining enabled provider when one exists; otherwise deletion is refused and the current default is kept. Provider Settings can disable live model discovery for endpoints with missing, slow, or oversized `/models` catalogs. For Claude (Anthropic) OAuth pools, each logged-in account shows its own 5-hour and weekly rate-limit bars (usage is per credential); a failed probe keeps the last-known bars and marks them unavailable until the next successful refresh. An account pool settings card (Claude, Claude Pool 2, and Codex usage-based switching) shows only its title and on/off switch; select the title to show its other settings, and the dashboard remembers which cards you opened. Each account's quota lists the pool name, then its 5-hour bar, then its weekly bar, each on its own line with the percentage left and the reset countdown. Refreshing quota skips paused OAuth accounts and disabled API keys; skipped rows without a cached reading remain unavailable but do not affect the refresh result. Refreshing reports failure when an unpaused OAuth account or enabled API key that supports quota reads has an unavailable reading. The Provider Overview shown when no provider is selected carries a **Refresh all quotas** control that forces one server-side re-read of every configured provider; a provider whose upstream probe fails keeps its last-good row, so the status line reports that the check completed rather than claiming every value is fresh, and each row's own age stays the per-provider freshness signal. Unsaved Settings and JSON edits are kept in memory per logical dashboard server: switching servers parks the draft, saving writes only to the server where editing began, and a changed saved configuration asks you to keep your draft or use the saved values. Keeping a JSON draft merges only your changes into the latest config and names any field changed on both sides; Settings saves only the fields you changed. On a relay that predates target-bound saves, the dashboard checks the target immediately before sending but cannot verify it atomically, and says so once; update the proxy for the stronger guarantee. Closing or reloading the dashboard discards these drafts. | | **Add provider** | One search above the tabs reaches all four at once — Accounts, Free, Local, Paid. While a query is live the results are grouped by tab with a count each, and the selected tab stays put rather than jumping. Press ArrowDown in the search box to focus the first available result action, skipping disabled buttons; if no action is available, focus stays in the search box. Local runtimes (Ollama, vLLM, LM Studio, LiteLLM) have their own tab, and a long provider note clamps to two lines with the full text one click away. Claude Code CLI (subscription) sits under Paid with a Subscription CLI badge, and selecting it warns that it bills the signed-in Claude subscription through `claude -p` and never uses an API key (use `anthropic-apikey` for key billing). | | **Codex Auth** | Add ChatGPT/Codex pool accounts, select the next-session account, refresh 5h / weekly / 30d quotas, enable or disable quota auto-switch, set its 1–100% threshold, and configure transient-failure failover. | | **Subagents** | Set the first five `spawn_agent` priorities through `subagentModels`, using bare native or namespaced routed models. This is not an allowlist: unused positions may be filled from visible catalog rows. The **Workflow limits for subagents** panel sets how many turns one task may run in parallel and how many model requests and distinct subagents it may use per 10-minute window. See [workflow limits](/reference/configuration/server/#workflow-limits). | @@ -381,17 +381,28 @@ click order. Saved feedback appears after the queue finishes and the list is rec server. Failed saves restore the server's state when it can be read and show an error. Wait for that feedback before leaving Models or changing servers: unsent queued changes are discarded on departure. -### Managing models in a provider workspace +The **Overall** tab (`#models/overall`) lists every model from every provider in one list, in the +catalog's order, with a search box, an **All** / **On** / **Off** filter, and the same switch. Both +tabs read the same state and share one save queue, so a change made on one tab shows on the other at +once. -In a provider’s **Models** tab, **Delete** removes the stored custom definition. An underlying -native or live-discovered model may then appear again, so the model count can stay the same. -**Hide** changes catalog visibility only: it does not delete the definition or change direct -routing policy. Use **Manage visibility in Models** to open the **Models** page and restore -visibility, even when the provider tab has no rows left. +### Managing models in a provider workspace -**Add** saves a custom definition; it does not clear an existing hide or provider selection rule. -A saved model can therefore remain hidden. If the model is already known, manage its visibility -in **Models**. A confirmed save with a failed catalog refresh is still saved: follow the refresh +A provider’s **Models** tab lists every model of that provider, including models that are off, +each with the same on/off switch as the **Models** page; the two pages read and write the same +state. A switch saves at once. Until that save and the reload after it finish, the tab’s other +switches, **Add**, and **Delete** wait, so one change is in flight at a time; selecting another +provider does not cancel it, but leaving the **Providers** page before it finishes can cancel the +request; the next load shows whether it was saved. Turning a model off changes catalog visibility only: it does not +delete the definition or change direct routing policy. **Manage visibility in Models** opens the +**Models** page. + +**Delete** removes the stored custom definition. An underlying native or live-discovered model may +then appear again, so the model count can stay the same. + +**Add** saves a custom definition; it does not clear an existing off state or provider selection +rule. A saved model can therefore stay off; turn it on with its switch. A confirmed save with a +failed catalog refresh is still saved: follow the refresh message instead of adding it again. If the change cannot be confirmed, refresh the model state before retrying. @@ -400,6 +411,11 @@ inventory returned by the server, before search or display truncation. It is not allowlist size, a live-discovery count, or proof that an entry was discovered upstream. Selection badges and discovery information remain separate from that count. +That count appears in the provider list. The provider's **Models** tab header instead shows how +many models are on out of the total: the total counts every listed entry, including models that +are off, and a model is on under the same rule as the **Models** page: it is not disabled, and it +is a native model, its provider has no allowlist, or the allowlist includes it. + ## Delegation picker vs spawn routing The Dashboard's **Sub-agent delegation** picker stores advisory `injectionModel` and optional `injectionEffort` preferences. **OpenCodex multi-agent guidance** independently controls whether they appear in delegation guidance on eligible v2 turns. The built-in text names preferences without ordering model overrides; it does not guarantee what Codex passes to `spawn_agent`. Clearing the model also clears the effort. diff --git a/docs-site/src/content/docs/ja/getting-started/quickstart.md b/docs-site/src/content/docs/ja/getting-started/quickstart.md index 69946eb41b2..0664f063d62 100644 --- a/docs-site/src/content/docs/ja/getting-started/quickstart.md +++ b/docs-site/src/content/docs/ja/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init` では次の手順を説明します。 -1. **プロバイダーを選択してください** — 111 個の組み込みレジストリプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。 +1. **プロバイダーを選択してください** — 112 個の組み込みレジストリプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。 2. **API キー** — キーを貼り付けるか、`${ANTHROPIC_API_KEY}` のような環境変数を参照します。 3. **デフォルト モデル** — キー、ローカル、カスタム プロバイダーの場合は、プリセットを受け入れるか、モデル ID を入力します。 4. **プロキシ ポート** — デフォルトは `10100` です。 diff --git a/docs-site/src/content/docs/ja/guides/claude-code.md b/docs-site/src/content/docs/ja/guides/claude-code.md index dca2cdcffb8..0f55c359793 100644 --- a/docs-site/src/content/docs/ja/guides/claude-code.md +++ b/docs-site/src/content/docs/ja/guides/claude-code.md @@ -548,8 +548,8 @@ Messages → Responses に変換されるリクエストでは、Claude Code の | Messages 入力 | Responses 出力 | --- | --- | -| 最上位 `system` | `instructions`(テキストブロックを `\n\n` で連結) | -| `messages[].role: "system"` | `instructions` にもマージ | +| 最上位 `system` | `instructions`(テキストブロックを `\n\n` で連結)。Codex ログイン経由の GPT-6.2 Sol と Astra では、キャッシュできるよう最初の `developer` メッセージとして送信 | +| `messages[].role: "system"` | 元の位置で `developer` メッセージに変換 | | ユーザーテキスト / 画像 | `input_text` / `input_image`(base64 → data URL) | | Assistant テキスト | `output_text` | | Assistant `tool_use` | `function_call`(`input` → JSON 文字列に変換した `arguments`) | diff --git a/docs-site/src/content/docs/ja/guides/image-bridge.md b/docs-site/src/content/docs/ja/guides/image-bridge.md index 78d9b976ec9..17cb8136040 100644 --- a/docs-site/src/content/docs/ja/guides/image-bridge.md +++ b/docs-site/src/content/docs/ja/guides/image-bridge.md @@ -27,7 +27,7 @@ Image Bridge オプションは、`~/.opencodex/config.json` の `images` の下 { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -37,7 +37,7 @@ Image Bridge オプションは、`~/.opencodex/config.json` の `images` の下 |オプション |デフォルト |説明 | | --- | --- | --- | | `bridgeEnabled` | `false` |マスタースイッチ。 `true` を設定してブリッジを有効にします。予期せぬ xAI 請求を避けるため、デフォルトではオフになっています。 | -| `bridgeModel` | `grok-imagine-image-quality` |プロンプトの送信先となる xAI イメージ モデル ID。 | +| `bridgeModel` | `grok-imagine-image-2.0` |プロンプトの送信先となる xAI イメージ モデル ID。 | | `maxRounds` | `3` |ターンごとのイメージ生成ループの最大反復数。整数に下限され、`[0, 10]` に固定されます。非有限値は `3` にフォールバックします。 | | `timeoutMs` | `60000` |呼び出しごとの xAI 期限 (ミリ秒単位)。有限の正の値は下限処理され、xAI リクエストに渡されます。 | | `artifactsKeepCount` | `200` | `artifacts/` で保持されるファイルの最大数。これを超えると、呼び出しが完了するたびに最も古いファイルが削除されます。枝刈りを無効にするには、`0` または負の値に設定します。 | @@ -70,3 +70,5 @@ Image Bridge は、**非 OpenAI** モデルが選択されているときに、` - **xAI の費用が適用されます。** xAI による画像生成には、有効な xAI サブスクリプションまたは API クレジットが必要です。 - **ストリーミングのみ。** ブリッジは SSE 応答ストリームをインターセプトすることで機能します。とのリクエスト `stream: false` は 400 エラーで拒否されます。 + +既定モデルは `grok-imagine-image-2.0` です。`quality` は `low`、`medium`、`auto` を受け付け、OpenAI の `high` と `hd` は `medium` に変換されます。廃止された `grok-imagine-image-quality`(2026-05-15 以降これに転送された `grok-imagine-image-pro` を含む)は、2.0 の低品質として提供されます。料金は品質と解像度で変わり、編集では入力画像1枚につき $0.01 が加算されます。`/v1/images/edits` リレーは重複を除いたうえで最大5枚の入力画像を転送し、`image_gen` ブリッジツールは1枚を送ります。 diff --git a/docs-site/src/content/docs/ja/guides/providers.md b/docs-site/src/content/docs/ja/guides/providers.md index 6f7c79d935e..e587a01d379 100644 --- a/docs-site/src/content/docs/ja/guides/providers.md +++ b/docs-site/src/content/docs/ja/guides/providers.md @@ -210,7 +210,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht ## 3. API キーカタログ -opencodex には組み込みプリセットが 111 個含まれています。キー方式 89、OAuth 18、ローカル 3、 +opencodex には組み込みプリセットが 112 個含まれています。キー方式 90、OAuth 18、ローカル 3、 デフォルト ChatGPT 転送プリセット 1 です。ダッシュボードの **Add provider** ピッカーはキー発行ページを開き、 入力したキーを検証した後保存します(検証はプロバイダー固有です)。主な項目は以下のとおりです: diff --git a/docs-site/src/content/docs/ja/guides/video-bridge.md b/docs-site/src/content/docs/ja/guides/video-bridge.md index 556dc12ec0f..8e98abab120 100644 --- a/docs-site/src/content/docs/ja/guides/video-bridge.md +++ b/docs-site/src/content/docs/ja/guides/video-bridge.md @@ -39,7 +39,7 @@ Video Bridge を使用すると、opencodex によってルーティングされ "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -49,7 +49,7 @@ Video Bridge を使用すると、opencodex によってルーティングされ |オプション |デフォルト |説明 | |--------|---------|-------------| | `videoBridgeEnabled` | `false` |マスタースイッチ。明示的に有効にする必要があります。 | -| `videoBridgeModel` | `"grok-imagine-video"` | xAI ビデオ モデル ID。 | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | xAI ビデオ モデル ID。 | | `videoMaxRounds` | `2` |最終回答を強制するまでの最大ビデオ生成ラウンド数。 | | `videoTimeoutMs` | `300000` (5 分) |ポーリングを含むビデオごとのタイムアウト。 | | `videoProvider` | 未設定 (xAI) | 独自の `baseUrl` とキーで `video_gen` を処理する API キープロバイダー (任意)。[動画プロバイダーの選択](#動画プロバイダーの選択) を参照してください。 | @@ -72,7 +72,7 @@ Video Bridge を使用すると、opencodex によってルーティングされ "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -99,16 +99,32 @@ Video Bridge を使用すると、opencodex によってルーティングされ |パラメータ |タイプ |範囲 |説明 | |-----------|------|-------|-------------| -| `prompt` |文字列 |必須 |詳細なビデオ生成プロンプト | +| `prompt` | string | 画像またはフレームがあれば省略可能 | テキストプロンプト | | `duration` |整数 | 1-15 |動画の長さ (秒) | -| `resolution` |文字列 | `"480p"`、`"720p"` |ビデオ解像度 | -| `aspect_ratio` |文字列 | 7つの比率 | `16:9`、`9:16`、`1:1`、`4:3`、`3:4`、`3:2`、`2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | モデルによる。`last_frame`、`keyframes`、`reference_images` 使用時は最大 720p | +| `aspect_ratio` | string | モデルによる | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; `image` のみをアニメーション化する場合は拒否され、元の比率が維持される | +| `image` | string | 最初のフレーム | HTTPS URL、データ URL、または記憶された成果物 | +| `last_frame` | string | 1.5 のみ | 最後のフレーム | +| `keyframes` | array | 1.5、最大 4 | `{image, timestamp_s}`; タイムスタンプはクリップの内部に厳密に収める(`duration` 省略時は 8 s) | +| `reference_images` | array | 1.5: 14、クラシック: 7 (≤ 10 s) | 参照画像。クラシックモデルでは `image` と併用不可 | + +モデルが対応できない設定は黙って破棄されず、課金される呼び出しの前に拒否されます。 + +### モデルと画像入力 + +| モデル | 解像度 | 入力 | 秒あたり (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p ネイティブ | 最初と最後のフレーム, 4 キーフレーム, 14 参照画像 (720p 最大) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (デフォルト) | 480p / 720p / 1080p アップスケール | 最初のフレーム | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | 最初のフレーム, 7 参照画像 | $0.05 / $0.07 / — | + +フレーム指定や参照には `images.videoBridgeModel` を `grok-imagine-video-1.5` に設定します。既知のモデルは9種類、未知のモデルは従来の7種類の比率と480p/720pのみをサポートし、画像入力はありません。HTTPS URLと、デコード後10 MiB以下のPNG/JPEG/WebPデータURLを使用できます。画像ブリッジがダウンロードした画像は、アーティファクトURL、絶対パス、`file:` URLで1時間参照できます。ローカルファイルは読まず、保存された元URLを使います。この参照は固定xAI宛先のみで、カスタム `images.videoProvider` では使えません。インライン結果に元URLはなく、一時URLは早く期限切れになる場合があります。 + ## 制限事項 - **既定は xAI**: `videoProvider` がない場合、ビデオ生成は xAI の Grok Imagine Video API を使用します。別のバックエンドは同じ非同期 API を実装する必要があります - **非同期**: ビデオの生成には 30 ~ 120 秒かかります -- **コスト**: ビデオ生成は有料の xAI 機能です (480p で ~$0.05/秒、720p で ~$0.07/秒) - **呼び出しごとに 1 つのビデオ**: `video_gen` 呼び出しごとに 1 つのビデオが生成されます - **イメージ ブリッジと共存**: 両方のブリッジを同時に有効にすることができます - **Web 検索の優先度**: Web 検索サイドカーがターン中アクティブになっている場合 (`runTurn` アダプター以外)、ビデオ ブリッジはスキップされます。この 2 つは同時に実行できません。 `console.warn` が出力されるため、これをログで検出できます。 diff --git a/docs-site/src/content/docs/ja/guides/web-dashboard.md b/docs-site/src/content/docs/ja/guides/web-dashboard.md index 6e609a51310..0c2b7436040 100644 --- a/docs-site/src/content/docs/ja/guides/web-dashboard.md +++ b/docs-site/src/content/docs/ja/guides/web-dashboard.md @@ -104,17 +104,27 @@ Logsではインターセプトされたリクエスト、プロバイダー、 **モデル** スイッチは Codex での最終的な表示状態を示します。ルーティングモデルはプロバイダーの allowlist に含まれる(または allowlist がない)うえで、無効化されていない場合だけオンになります。オン操作は両方のフィルターを原子的に調整し、**すべてオン** は allowlist を解除して新しいモデルも含めます。 +**すべて** タブ(`#models/overall`)は、すべてのプロバイダーのモデルをカタログと同じ順序で 1 つのリストに表示します。 +検索ボックス、**すべて** / **オン** / **オフ** フィルター、同じスイッチがあります。2 つのタブは同じ状態を読み、 +保存キューも共有するため、一方での変更はもう一方にもすぐ反映されます。 + +保存結果が表示されるまで、**モデル** ページを離れたりサーバーを切り替えたりしないでください。離れると、まだ送信されていないキュー内の変更は破棄されます。 + ### プロバイダー画面でモデルを管理する -プロバイダーの **モデル** タブで **Delete(削除)** を選ぶと、保存されたカスタム定義を削除します。 -元のネイティブモデルやライブ検出されたモデルが再び表示され、モデル数が変わらない場合があります。 -**非表示** はカタログの表示だけを変更し、定義の削除や直接ルーティングのポリシー変更は行いません。 -**モデルで表示を管理** から **モデル** ページを開き、表示を復元できます。プロバイダーのタブが -空になっていても、この操作は利用できます。 +プロバイダーの **モデル** タブには、オフのものも含めてそのプロバイダーのすべてのモデルが並び、 +それぞれに **モデル** ページと同じオン・オフのスイッチがあります。2 つのページは同じ状態を読み書きします。 +スイッチは押すとすぐ保存されます。その保存と後続の再読み込みが終わるまで、ほかのスイッチ、**追加**、 +**Delete(削除)** は待機するため、変更は一度に 1 つだけです。別のプロバイダーを選んでも保存は取り消されませんが、完了前に **プロバイダー** ページを離れるとリクエストが取り消されることがあります。保存されたかどうかは次の読み込みで確認できます。 +モデルをオフにしてもカタログの表示が変わるだけで、定義の削除や直接ルーティングのポリシー変更は行いません。 +**モデルで表示を管理** は **モデル** ページを開きます。 -**追加** はカスタム定義を保存しますが、既存の非表示設定やプロバイダーの選択ルールを解除しません。 -保存後もモデルが非表示のままになることがあります。すでに登録されたモデルの表示は **モデル** で -管理してください。保存が確認できた場合、カタログ更新に失敗しても保存自体は完了しています。 +**Delete(削除)** は保存されたカスタム定義を削除します。元のネイティブモデルやライブ検出されたモデルが +再び表示され、モデル数が変わらない場合があります。 + +**追加** はカスタム定義を保存しますが、既存のオフ設定やプロバイダーの選択ルールは解除しません。 +保存後もモデルがオフのままになることがあり、その場合はスイッチでオンにします。 +保存が確認できた場合、カタログ更新に失敗しても保存自体は完了しています。 再追加せず、更新の案内に従ってください。変更を確認できない場合は、モデルの状態を再読み込みしてから 再試行してください。 @@ -122,6 +132,8 @@ Logsではインターセプトされたリクエスト、プロバイダー、 検索や表示件数の制限を適用する前に数えます。許可リストの件数やライブ検出件数ではなく、上流で検出した 項目であることを示す値でもありません。選択バッジと検出情報は、この件数とは別に扱います。 +この件数はプロバイダー一覧に表示されます。プロバイダーの **モデル** タブの見出しには、オンのモデル数と全体の件数が表示されます。全体にはオフのモデルも含めた一覧のすべての項目が入り、オンかどうかは **モデル** ページと同じ規則で決まります。無効化されておらず、ネイティブモデルであるか、プロバイダーに allowlist がないか、allowlist に含まれている場合にオンです。 + ## 委任セレクターとスポーンルーティングの違い ダッシュボードの **サブエージェント委任** セレクターは `injectionModel` とオプションの `injectionEffort` を diff --git a/docs-site/src/content/docs/ja/reference/cli/lifecycle.md b/docs-site/src/content/docs/ja/reference/cli/lifecycle.md index 237073f3e68..eed0e216316 100644 --- a/docs-site/src/content/docs/ja/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/ja/reference/cli/lifecycle.md @@ -162,6 +162,16 @@ ocx status --json いずれかです。終了コードは ready が 0、not-ready/pending/failed/timeout/unreachable が 1、 不正な引数が 64 です。 +プロキシの起動時に Codex のホームディレクトリが見つからないと表示されたら、Codex を一度起動するか、Codex が初期化済みのディレクトリを `CODEX_HOME` に指定してから、`ocx sync` を実行します。同期に成功するとルーティングは復旧しますが、`failed` は現在のプロセスの起動時の結果を示し続けます。プロキシを再起動し、`ocx ready` で新しいプロセスの状態を確認してください。 + +CLI で管理するサービスでは、登録済みの `CODEX_HOME` と `OPENCODEX_HOME` を使用します。古いサービス定義にこれらのパスがない場合は、同じ設定で `ocx service repair` を一度実行してください。必要に応じて Codex ホームを初期化し、`ocx sync` を実行してからサービスを再起動します。デスクトップアプリで管理するプロキシは、アプリから再起動します。 + +CLI サービスを別の既存の Codex ホームに移すには、元の設定で `ocx service uninstall` を実行します。サービスの削除後にネイティブ Codex の復元に失敗した場合は、表示されたエラーを解消し、同じ設定で `ocx restore` を実行してください。 + +Windows で復元に失敗し、後処理が未完了という記録が残った場合は、ホームを変更する前に、元のインストール環境とホームで `ocx stop` を実行してください。この記録が残っている間、`ocx update` はパッケージの置き換えを拒否します。 + +削除と復元の両方が成功したら `OPENCODEX_HOME` はそのままにして、新しい `CODEX_HOME` を選び、元のバックエンドとオプションで `ocx service install` を実行します。新しい設定で `ocx sync` を実行し、`ocx ready` で状態を確認してください。起動に失敗した場合は、上記の手順で復旧します。 + ### `ocx doctor` 読み取り専用環境と接続の診断を実行します: 状態パスとファイル システム タイプ、WSL デュアル インストール、プロキシ環境/構成、ChatGPT の到達可能性、Codex プラグインとプロジェクト設定の警告、保留中の履歴の移行。 Codex のアプリとホームのターゲット設定セクションでは、Windows Orca ランタイムとホームの狭い不一致も検出し、該当する場合はサービスの移行について説明します。この診断によって表示されるパスでは、OS ユーザー名が編集されます。医師は修復ヒントを出力しますが、適用しません。 diff --git a/docs-site/src/content/docs/ko/getting-started/quickstart.md b/docs-site/src/content/docs/ko/getting-started/quickstart.md index 8e6e743868a..54a0229caf7 100644 --- a/docs-site/src/content/docs/ko/getting-started/quickstart.md +++ b/docs-site/src/content/docs/ko/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init`은 다음 과정을 안내합니다: -1. **프로바이더 선택** — 내장 레지스트리 프리셋 111개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다. +1. **프로바이더 선택** — 내장 레지스트리 프리셋 112개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다. 2. **API 키** — 키를 붙여넣거나 `${ANTHROPIC_API_KEY}` 같은 환경 변수를 참조합니다. 3. **기본 모델** — 키, 로컬, custom 프로바이더에서는 프리셋을 그대로 쓰거나 모델 ID를 직접 입력합니다. 4. **프록시 포트** — 기본값은 `10100`입니다. diff --git a/docs-site/src/content/docs/ko/guides/claude-code.md b/docs-site/src/content/docs/ko/guides/claude-code.md index c6e0a170f93..d251cad889f 100644 --- a/docs-site/src/content/docs/ko/guides/claude-code.md +++ b/docs-site/src/content/docs/ko/guides/claude-code.md @@ -601,8 +601,8 @@ Messages → Responses로 변환되는 요청에서는 Claude Code의 `/effort` | Messages 입력 | Responses 출력 | | --- | --- | -| 최상위 `system` | `instructions`(텍스트 블록을 `\n\n`으로 연결) | -| `messages[].role: "system"` | `instructions`에도 합쳐요 | +| 최상위 `system` | `instructions`(텍스트 블록을 `\n\n`으로 연결). Codex 로그인으로 GPT-6.2 Sol·Astra를 쓰면 캐시되도록 첫 `developer` 메시지로 보내요 | +| `messages[].role: "system"` | 원래 위치의 `developer` 메시지로 바꿔요 | | 사용자 텍스트 / 이미지 | `input_text` / `input_image`(base64 → data URL) | | Assistant 텍스트 | `output_text` | | Assistant `tool_use` | `function_call`(`input` → JSON 문자열로 변환한 `arguments`) | diff --git a/docs-site/src/content/docs/ko/guides/codex-app-models.md b/docs-site/src/content/docs/ko/guides/codex-app-models.md index 0c36e1478f7..edb4ab872ce 100644 --- a/docs-site/src/content/docs/ko/guides/codex-app-models.md +++ b/docs-site/src/content/docs/ko/guides/codex-app-models.md @@ -250,13 +250,13 @@ Codex가 HTTP로 모델 목록을 불러올 때도 현재 적용 중인 설정 라우팅 항목에서는 `ultraFastTier`가 `provider/model` 식별자가 정확히 일치하는 저장된 항목에 사용자가 별도로 넣은 Ultra Fast tier를 보존합니다. 자동 생성된 라우팅 tier는 사용자 제공 tier로 -취급하지 않습니다. bare native `gpt-6-astra` / `gpt-6.1-sol` 항목과 신뢰된 계정별 복제 +취급하지 않습니다. bare native `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.2-astra`, `gpt-6.2-sol` 항목과 신뢰된 계정별 복제 항목에서는 `ultraFastTier`를 켜면 네이티브 기본 tier를 바꾸지 않고 누락된 Ultrafast 선택지도 생성합니다. 끄면 자동 생성한 것으로 추적되는 네이티브 tier 메타데이터만 제거하며, 사용자가 별도로 넣거나 수정한 네이티브 tier 항목은 보존합니다. -[OpenAI API 문서](https://developers.openai.com/api/docs/guides/ultrafast-mode)는 GPT-6 Astra와 -GPT-6.1 Sol의 Ultrafast 지원을 안내합니다. API 사용 권한과 +[OpenAI 속도 안내](https://learn.chatgpt.com/docs/agent-configuration/speed#ultrafast-mode)는 GPT-6.2 Astra와 Sol, +GPT-6 Astra와 GPT-6.1 Sol의 Ultrafast 지원을 안내합니다. API 사용 권한과 [Codex 요금제·워크스페이스 권한](https://learn.chatgpt.com/docs/agent-configuration/speed)은 별개입니다. 메뉴 표시가 제공자의 사용 권한이나 실측 속도를 보장하지는 않습니다. Ultra Fast는 사용량·비용이 더 크며 Codex 자체 기능 제한도 계속 적용됩니다. diff --git a/docs-site/src/content/docs/ko/guides/combos.md b/docs-site/src/content/docs/ko/guides/combos.md index 95170207d6b..00cadcec515 100644 --- a/docs-site/src/content/docs/ko/guides/combos.md +++ b/docs-site/src/content/docs/ko/guides/combos.md @@ -152,6 +152,8 @@ ocx combo set balanced \ 위 HTTP 503 규칙은 아직 대상을 시도하지 않았을 때 적용됩니다. 확인된 HTTP 400 컨텍스트 거부 후 적격 대상이나 전송 예산을 소진하면 첫 거부를 `context_length_exceeded`로 반환하며, 쿼터 오류를 포함한 이후의 재시도 가능한 오류보다 우선합니다. 남은 대상이 추론을 재생할 수 없거나 과금 동의가 없는 경우도 같습니다. 취소, 이후의 치명적 거부, 명시적인 폴백 정책 거부는 즉시 중단합니다. 동의 없는 과금 대상으로 요청을 보내지 않습니다. +공급자 오류에 공백이 길게 이어져도 기존 컨텍스트 초과·부정 표현 판정 규칙을 유지합니다. 부정 표현의 삽입구 주변 공백은 한 번만 처리하여 같은 공백 구간을 반복해서 검사하지 않습니다. + :::note 페일오버는 의도적으로 범위를 제한합니다. 대상별 가용성, 인증, 쿼터, 과부하 실패에는 도움이 되지만, 호출자 오류나 정책 거부를 숨기지는 않습니다. 콤보가 아닌 Responses 요청에서는 allowlist에 오른 xAI 정책 403이 Codex가 전송 실패로 재시도하기 전에 HTTP 200 `incomplete/content_filter`로 바뀝니다. [xAI policy refusals](/reference/proxy-formats/#xai-policy-refusals)를 보세요. 콤보 홉은 원래 HTTP 403을 홉으로 분류합니다. diff --git a/docs-site/src/content/docs/ko/guides/image-bridge.md b/docs-site/src/content/docs/ko/guides/image-bridge.md index 52a985f58cc..7289a7541db 100644 --- a/docs-site/src/content/docs/ko/guides/image-bridge.md +++ b/docs-site/src/content/docs/ko/guides/image-bridge.md @@ -30,7 +30,7 @@ Image Bridge 옵션은 `~/.opencodex/config.json`의 `images` 아래에 있습 { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -40,7 +40,7 @@ Image Bridge 옵션은 `~/.opencodex/config.json`의 `images` 아래에 있습 | 옵션 | 기본값 | 설명 | | --- | --- | --- | | `bridgeEnabled` | `false` | 마스터 스위치입니다. 브리지를 켜려면 `true`로 설정합니다. 예상치 못한 xAI 요금을 막기 위해 기본값은 꺼져 있습니다. | -| `bridgeModel` | `grok-imagine-image-quality` | 프롬프트를 보낼 xAI 이미지 모델 ID입니다. | +| `bridgeModel` | `grok-imagine-image-2.0` | 프롬프트를 보낼 xAI 이미지 모델 ID입니다. | | `maxRounds` | `3` | 턴당 이미지 생성 루프의 최대 반복 횟수입니다. 정수로 내림한 뒤 `[0, 10]` 범위로 제한합니다. 유한하지 않은 값은 `3`으로 돌아갑니다. | | `timeoutMs` | `60000` | 호출당 xAI 마감 시간(밀리초)입니다. 유한한 양수 값은 내림한 뒤 xAI 요청에 전달합니다. | | `artifactsKeepCount` | `200` | `artifacts/` 아래에 유지할 최대 파일 수입니다. 이를 넘으면 각 완료된 호출 뒤에 가장 오래된 파일부터 삭제합니다. `0` 이하로 설정하면 정리를 비활성화합니다. | @@ -67,3 +67,5 @@ Image Bridge는 선택된 모델이 OpenAI가 아닌 상태에서, `/v1/response - 웹 검색 sidecar 루프를 지원하는 adapter에서는 웹 검색이 우선합니다. 같은 턴에서 웹 검색과 이미지 생성이 동시에 요청되면 웹 검색이 먼저 실행되고 이미지 생성은 건너뜁니다. 다만 현재 Cursor/`runTurn` adapter는 그 sidecar를 사용할 수 없어서, 이런 dual-tool 턴에서는 image bridge가 여전히 실행될 수 있습니다. - xAI 요금이 발생합니다. xAI를 통한 이미지 생성에는 활성 xAI 구독이나 API 크레딧이 필요합니다. - 스트리밍 전용입니다. 브리지는 SSE response stream을 가로채서 동작하므로 `stream: false` 요청은 400 오류로 거절됩니다. + +기본 모델은 `grok-imagine-image-2.0`입니다. `quality`는 `low`, `medium`, `auto`를 지원하며 OpenAI의 `high`와 `hd`는 `medium`으로 변환됩니다. 종료된 `grok-imagine-image-quality`와 2026-05-15부터 그 모델로 연결된 `grok-imagine-image-pro`는 2.0의 낮은 품질로 제공됩니다. 가격은 품질과 해상도에 따라 달라지며, 편집은 입력 이미지당 $0.01이 추가됩니다. `/v1/images/edits` 릴레이는 중복을 먼저 제거한 뒤 입력 이미지를 최대 5개까지 전달하고, `image_gen` 브리지 도구는 1개를 보냅니다. diff --git a/docs-site/src/content/docs/ko/guides/providers.md b/docs-site/src/content/docs/ko/guides/providers.md index b187921bba2..0ec689e1835 100644 --- a/docs-site/src/content/docs/ko/guides/providers.md +++ b/docs-site/src/content/docs/ko/guides/providers.md @@ -124,7 +124,7 @@ ocx logout Google Antigravity 계정·제공자 할당량 확인은 모델 목록 폴백을 포함해 고정된 Google 회계 엔드포인트를 사용합니다. 해당 목적지의 투명 Fake-IP DNS를 지원하며 TLS 검증, 리다이렉트 거부, 사설 주소 검사는 유지합니다. 사용자 지정 base URL은 모델 요청에만 적용되며 할당량 목적지는 바꾸지 않습니다. `NO_PROXY`는 기존 직접 연결 정책을 유지합니다. -Vertex AI의 `gemini-4-argon`, `gemini-4-carbon`, `gemini-4-hydrogen`은 스크린샷 같은 도구 결과 이미지를 +Vertex AI의 Gemini 3 이상 모델(`gemini-4-argon`, `gemini-4-carbon`, `gemini-4-hydrogen`, `gemini-4-neon` 등)은 스크린샷 같은 도구 결과 이미지를 해당 함수 응답 안에 담아 받습니다. Vertex AI 모델 탐색, 자격 증명 규칙과 이 처리 방식은 [Google Vertex AI](/ko/guides/google-vertex/)에 설명되어 있습니다. @@ -212,7 +212,7 @@ Kiro 로그인에는 Kiro CLI가 필요합니다. Unix에서는 `curl -fsSL http ## 3. API 키 카탈로그 -opencodex에는 빌트인 프리셋이 111개 들어 있습니다. 키 방식 89개, OAuth 18개, 로컬 3개, +opencodex에는 빌트인 프리셋이 112개 들어 있습니다. 키 방식 90개, OAuth 18개, 로컬 3개, 기본 ChatGPT 포워드 프리셋 1개입니다. 대시보드의 **Add provider** 선택기는 키 발급 페이지를 열고, 입력한 키를 검증한 뒤 저장합니다(검증은 프로바이더별로 다릅니다). 주요 항목은 다음과 같습니다: diff --git a/docs-site/src/content/docs/ko/guides/remote-link.md b/docs-site/src/content/docs/ko/guides/remote-link.md index 9e23fba87d3..6a9e24e7f04 100644 --- a/docs-site/src/content/docs/ko/guides/remote-link.md +++ b/docs-site/src/content/docs/ko/guides/remote-link.md @@ -116,6 +116,8 @@ disconnect는 소유한 키만 복구하므로 이후 편집한 모델·훅·신 ## 보안 +Linux에서는 기록된 OpenCodex 설치의 실행 파일과 패키지 진입 파일이 SSH 계정 소유이며, 파일 권한과 상위 폴더가 다른 계정의 교체를 막는 경우에만 사용합니다. 이를 확인할 수 없으면 해당 기록을 건너뜁니다. macOS에서는 원격 셸이 추가 접근 권한(ACL)을 확실하게 확인할 수 없으므로 기록된 설치를 항상 건너뜁니다. 두 플랫폼 모두 기존 Desktop·시스템·PATH 탐색을 계속합니다. macOS에서 실행 기록으로만 찾을 수 있던 설치는 탐색 가능한 위치에 설치하거나 SSH 계정의 PATH에 추가해야 합니다. 설치 파일은 여러 계정이 수정할 수 있는 공유 폴더 대신 계정 소유 폴더에 두세요. 버전 응답에 성공했다는 사실만으로 소유권이 확인되지는 않습니다. + Child는 링크를 통해 Home 컴퓨터의 프로바이더와 프로바이더 인증 정보를 사용합니다. Home은 Child마다 별도의 링크 키를 만들며, 링크를 제거하면 그 키를 폐기합니다. 확인 전에 호스트 지문을 비교하여 잘못된 컴퓨터나 변경된 호스트 키를 실수로 허용하지 않도록 하세요. Tailscale identity로 발급된 대시보드 세션은 머신 링크를 관리할 수 없습니다. Child에서 키는 OpenCodex 안에만 머뭅니다. Codex나 Claude Code가 Child에서 보내는 인증 정보는 Home으로 전달되지 않으며, Child에서 `127.0.0.1:`에 접근하는 프로그램은 키 없이 Home을 사용합니다. 이는 독립형 설치가 로컬 프로그램에 주는 것과 같은 신뢰 수준입니다. 다른 사이트의 웹 페이지는 거부됩니다. ## CLI 레퍼런스 diff --git a/docs-site/src/content/docs/ko/guides/video-bridge.md b/docs-site/src/content/docs/ko/guides/video-bridge.md index abde4eb9cc2..c8b6f2a62b6 100644 --- a/docs-site/src/content/docs/ko/guides/video-bridge.md +++ b/docs-site/src/content/docs/ko/guides/video-bridge.md @@ -39,7 +39,7 @@ Video Bridge는 opencodex가 라우팅한 OpenAI가 아닌 모델로 xAI의 Grok "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -49,7 +49,7 @@ Video Bridge는 opencodex가 라우팅한 OpenAI가 아닌 모델로 xAI의 Grok | 옵션 | 기본값 | 설명 | |------|--------|------| | `videoBridgeEnabled` | `false` | 전체 스위치입니다. 반드시 명시적으로 켜야 합니다. | -| `videoBridgeModel` | `"grok-imagine-video"` | xAI 비디오 모델 id입니다. | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | xAI 비디오 모델 id입니다. | | `videoMaxRounds` | `2` | 강제 최종 답변 전에 허용하는 최대 video-gen 라운드 수입니다. | | `videoTimeoutMs` | `300000` (5분) | 폴링 시간을 포함한 비디오별 타임아웃입니다. | | `videoProvider` | 미설정 (xAI) | `video_gen`을 자체 `baseUrl`과 키로 처리할 API 키 제공자(선택). [영상 제공자 선택](#영상-제공자-선택)을 참고하세요. | @@ -72,7 +72,7 @@ Video Bridge는 opencodex가 라우팅한 OpenAI가 아닌 모델로 xAI의 Grok "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -99,16 +99,32 @@ Video Bridge는 opencodex가 라우팅한 OpenAI가 아닌 모델로 xAI의 Grok | 파라미터 | 타입 | 범위 | 설명 | |----------|------|------|------| -| `prompt` | string | required | 상세한 영상 생성 프롬프트 | +| `prompt` | string | 이미지나 프레임이 있으면 선택 사항 | 텍스트 프롬프트 | | `duration` | integer | 1-15 | 영상 길이(초) | -| `resolution` | string | `"480p"`, `"720p"` | 영상 해상도 | -| `aspect_ratio` | string | 7 ratios | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | 모델에 따라 다름; `last_frame`, `keyframes` 또는 `reference_images` 사용 시 최대 720p | +| `aspect_ratio` | string | 모델에 따라 다름 | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; `image`만 애니메이션화할 때는 거부되며 원래 비율이 유지됨 | +| `image` | string | 첫 프레임 | HTTPS URL, 데이터 URL 또는 기억된 아티팩트 | +| `last_frame` | string | 1.5 전용 | 마지막 프레임 | +| `keyframes` | array | 1.5, 최대 4 | `{image, timestamp_s}`; 타임스탬프는 클립 내부에만 허용 (`duration` 생략 시 8 s) | +| `reference_images` | array | 1.5: 14, 클래식: 7 (≤ 10 s) | 참조 이미지; 클래식 모델에서는 `image`와 함께 사용할 수 없음 | + +모델이 지원할 수 없는 설정은 무시되지 않고 유료 호출 전에 거부됩니다. + +### 모델과 이미지 입력 + +| 모델 | 해상도 | 입력 | 초당 (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p 네이티브 | 첫/마지막 프레임, 4 키프레임, 14 참조 이미지 (720p 최대) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (기본값) | 480p / 720p / 1080p 업스케일 | 첫 프레임 | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | 첫 프레임, 7 참조 이미지 | $0.05 / $0.07 / — | + +프레임 지정이나 참조 이미지를 사용하려면 `images.videoBridgeModel`을 `grok-imagine-video-1.5`로 설정하세요. 알려진 모델은 화면비 9개를 지원합니다. 알 수 없는 모델은 기존 화면비 7개와 480p/720p만 제공하며 이미지 입력을 받지 않습니다. HTTPS URL과 디코딩 후 10 MiB 이하인 PNG/JPEG/WebP 데이터 URL을 사용할 수 있습니다. 이미지 브리지가 다운로드한 이미지는 아티팩트 URL, 절대 경로 또는 `file:` URL로 한 시간 동안 참조할 수 있습니다. 로컬 파일을 읽지 않고 저장된 원본 URL을 사용합니다. 이 참조는 고정 xAI 대상에서만 작동하며 사용자 지정 `images.videoProvider`에서는 사용할 수 없습니다. 인라인 결과에는 원본 URL이 없고 임시 URL은 더 일찍 만료될 수 있습니다. + ## 제한 사항 - **기본값은 xAI**: `videoProvider`가 없으면 xAI의 Grok Imagine Video API를 사용합니다. 다른 백엔드는 같은 비동기 API를 구현해야 합니다 - **비동기**: 영상 생성에는 30-120초가 걸립니다 -- **비용**: 영상 생성은 유료 xAI 기능입니다(~$0.05/sec @480p, ~$0.07/sec @720p) - **한 번에 한 편**: 각 `video_gen` 호출은 영상 하나를 생성합니다 - **Image Bridge와 공존 가능**: 두 브리지를 동시에 켤 수 있습니다 - **웹 검색 우선순위**: 한 턴에 웹 검색 사이드카가 활성화되어 있으면(`runTurn` 어댑터가 아닌 경우) 비디오 브리지는 건너뜁니다. 둘은 동시에 실행할 수 없습니다. 로그에서 확인할 수 있도록 `console.warn`이 출력됩니다. diff --git a/docs-site/src/content/docs/ko/guides/web-dashboard.md b/docs-site/src/content/docs/ko/guides/web-dashboard.md index 42df1f4afb3..1e74aad6aeb 100644 --- a/docs-site/src/content/docs/ko/guides/web-dashboard.md +++ b/docs-site/src/content/docs/ko/guides/web-dashboard.md @@ -135,15 +135,26 @@ Logs에서는 가로챈 요청, 공급자, 정확한 모델명, 상태, 시간, **Models** 스위치는 Codex의 최종 노출 상태를 나타냅니다. 라우팅 모델은 프로바이더 allowlist에 포함되거나 allowlist가 없고, 동시에 비활성화되지 않았을 때만 켜집니다. 모델을 켜면 두 필터를 원자적으로 조정하며, **모두 활성화**는 allowlist를 해제해 새로 발견되는 모델도 켭니다. +**전체** 탭(`#models/overall`)은 모든 프로바이더의 모델을 카탈로그와 같은 순서로 한 목록에 보여 줍니다. +검색창, **전체** / **켜짐** / **꺼짐** 필터, 같은 스위치를 제공합니다. 두 탭은 같은 상태를 읽고 저장 대기열도 +함께 쓰므로, 한 탭에서 바꾼 내용이 다른 탭에도 바로 보입니다. + +저장 결과가 표시될 때까지 **Models** 페이지를 떠나거나 서버를 바꾸지 마세요. 떠나면 아직 보내지 않은 대기 중인 변경은 버려집니다. + ### 프로바이더 화면에서 모델 관리하기 -프로바이더의 **모델** 탭에서 **삭제**를 누르면 저장된 커스텀 정의를 지웁니다. 원래 네이티브 모델이나 -라이브 발견 모델이 다시 나타날 수 있으므로 모델 수는 그대로일 수 있습니다. **숨기기**는 카탈로그 노출만 -바꾸며, 정의를 삭제하거나 직접 라우팅 정책을 바꾸지 않습니다. **모델에서 노출 관리**를 누르면 **모델** -페이지에서 다시 표시할 수 있습니다. 프로바이더 탭에 행이 하나도 없어도 이 이동 버튼을 사용할 수 있습니다. +프로바이더의 **모델** 탭은 꺼진 모델까지 그 프로바이더의 모든 모델을 보여 주며, 각 모델에 **Models** 페이지와 +같은 켜기/끄기 스위치가 있습니다. 두 페이지는 같은 상태를 읽고 씁니다. 스위치는 누르는 즉시 저장됩니다. +저장과 그 뒤의 다시 읽기가 끝날 때까지 이 탭의 다른 스위치, **추가**, **삭제**는 기다리므로 변경은 한 번에 +하나씩만 진행됩니다. 다른 프로바이더를 골라도 진행 중인 저장은 취소되지 않지만, 끝나기 전에 **프로바이더** 페이지를 떠나면 요청이 취소될 수 있습니다. +저장되었는지는 다음에 불러올 때 확인할 수 있습니다. 모델을 끄면 카탈로그 노출만 +바뀌며, 정의를 삭제하거나 직접 라우팅 정책을 바꾸지 않습니다. **모델에서 노출 관리**를 누르면 **모델** 페이지가 열립니다. -**추가**는 커스텀 정의를 저장하며, 기존 숨김 상태나 프로바이더 선택 규칙을 해제하지 않습니다. -저장된 모델이 계속 숨겨져 있을 수 있습니다. 이미 등록된 모델은 **모델**에서 노출 상태를 관리하세요. +**삭제**를 누르면 저장된 커스텀 정의를 지웁니다. 원래 네이티브 모델이나 라이브 발견 모델이 다시 나타날 수 +있으므로 모델 수는 그대로일 수 있습니다. + +**추가**는 커스텀 정의를 저장하며, 기존에 꺼 둔 상태나 프로바이더 선택 규칙을 해제하지 않습니다. +따라서 저장된 모델이 꺼진 채로 남을 수 있으며, 스위치로 켜면 됩니다. 저장이 확인됐다면 카탈로그 갱신이 실패해도 정의는 저장된 상태입니다. 다시 추가하지 말고 갱신 안내를 따르세요. 변경 여부를 확인하지 못했다면 모델 상태를 새로고침한 뒤 다시 시도하세요. @@ -151,6 +162,10 @@ Logs에서는 가로챈 요청, 공급자, 정확한 모델명, 상태, 시간, 검색이나 표시 개수 제한을 적용하기 전에 계산합니다. 허용 목록의 크기나 라이브 발견 개수가 아니며, 업스트림에서 발견한 모델임을 뜻하지도 않습니다. 선택 배지와 발견 정보는 이 개수와 별도로 표시합니다. +이 개수는 프로바이더 목록에 표시됩니다. 프로바이더 **모델** 탭의 머리글에는 대신 켜진 모델 수와 전체 수가 표시됩니다. +전체에는 꺼진 모델까지 목록의 모든 항목이 들어가며, 켜짐 여부는 **Models** 페이지와 같은 규칙으로 정해집니다. +비활성화되지 않았고, 네이티브 모델이거나 프로바이더에 allowlist가 없거나 allowlist에 포함되어 있으면 켜짐입니다. + ## 위임 선택기와 스폰 라우팅의 차이 Dashboard의 **Sub-agent delegation** 선택기는 `injectionModel`과 선택적인 `injectionEffort`를 diff --git a/docs-site/src/content/docs/ko/reference/cli/lifecycle.md b/docs-site/src/content/docs/ko/reference/cli/lifecycle.md index 3eef881e711..7d1b179ac53 100644 --- a/docs-site/src/content/docs/ko/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/ko/reference/cli/lifecycle.md @@ -239,6 +239,16 @@ probe이며, `--wait`는 준비 또는 timeout까지 polling하지만 종단 `fa `unreachable` 중 하나입니다. 종료 코드는 ready가 0, not-ready/pending/failed/timeout/unreachable이 1, 잘못된 인수가 64입니다. +프록시 시작 로그에 Codex 홈 디렉터리가 없다고 나오면 Codex를 한 번 실행하거나 `CODEX_HOME`을 Codex가 이미 초기화한 디렉터리로 지정한 다음 `ocx sync`를 실행하세요. 동기화에 성공하면 라우팅이 복구됩니다. `failed`는 현재 프로세스의 시작 결과이므로 프록시를 재시작한 뒤 `ocx ready`로 새 프로세스의 준비 상태를 확인하세요. + +CLI로 설치한 서비스에서는 등록된 `CODEX_HOME`과 `OPENCODEX_HOME`을 사용하세요. 구버전 서비스 정의에 두 경로가 빠져 있다면 같은 설정으로 `ocx service repair`를 한 번 실행하세요. 필요하면 Codex 홈을 초기화하고 `ocx sync` 후 서비스를 재시작하세요. 데스크톱 앱이 관리하는 프록시는 앱에서 재시작하세요. + +CLI 서비스를 다른 기존 Codex 홈으로 옮기려면 원래 설정으로 `ocx service uninstall`을 실행하세요. 서비스는 제거됐는데 네이티브 Codex 복원에 실패했다면 표시된 오류를 해결하고 같은 설정으로 `ocx restore`를 실행하세요. + +Windows에서 복원 실패로 정리 대기 기록이 남았다면, 홈을 바꾸기 전에 기존 서비스를 관리하던 설치본에서 원래 홈 설정으로 `ocx stop`을 실행하세요. 이 기록이 남아 있으면 `ocx update`가 패키지 교체를 거부합니다. + +제거와 복원이 모두 성공하면 `OPENCODEX_HOME`을 유지하고 새 `CODEX_HOME`을 선택한 뒤 원래 백엔드와 옵션으로 `ocx service install`을 실행하세요. 새 설정에서 `ocx sync`를 실행하고 `ocx ready`로 확인하세요. 시작에 실패했다면 위의 복구 절차를 따르세요. + ### `ocx doctor` 읽기 전용 환경 및 연결 진단을 실행합니다. 상태 경로와 파일시스템 유형, WSL 이중 설치, 프록시 diff --git a/docs-site/src/content/docs/ko/reference/configuration/providers.md b/docs-site/src/content/docs/ko/reference/configuration/providers.md index 66cff553eb8..b14ea7f0885 100644 --- a/docs-site/src/content/docs/ko/reference/configuration/providers.md +++ b/docs-site/src/content/docs/ko/reference/configuration/providers.md @@ -5,6 +5,12 @@ description: 공급자 항목, 인증, 엔드포인트, 모델 카탈로그, 할 공급자는 opencodex에 모델의 위치, 사용하는 와이어 어댑터, 요청 인증 방식을 알려줍니다. + + +## 추론 수준 거절 진단 + +같은 공급자·모델로 추론 수준을 낮춰 다시 보내는 복구와 미지원 수준 학습은 래퍼를 포함한 전체 오류 진단이 UTF-16 코드 단위 1,024개 이하일 때만 수행합니다. 이 한도를 넘으면 앞부분만 근거로 재시도·학습하지 않습니다. 일반 Combo 전환을 포함한 기존 오류 처리에 원문을 그대로 전달하며, 기존 클라이언트 오류 표시 길이 제한은 계속 적용됩니다. 정상적인 오류라도 길이가 한도를 넘으면 자동 하향·학습 대상이 되지 않습니다. `cannot use parameter 'reasoning_effort'` 같은 짧은 진단은 추론 수준 거절로 인식하며, 실제로 다른 필드를 지목한 오류는 계속 재시도·학습을 막습니다. + ## Mistral 요청당 이미지 수 Mistral 요청의 이미지 수 제한과 `mistralMaxImages` 설정은 [영문 기준 문서](/reference/configuration/providers/#mistral-images-per-request)를 참조하세요. 제한기에 도달한 `image_url` 항목의 이미지 참조가 누락되거나 비어 있거나 문자열이 아니면 전송용 사본에서 텍스트로 대체되며 이미지 한도를 소비하지 않습니다. 번역되는 Responses 요청에서 사용 가능한 URL과 파일 ID가 모두 없는 `input_image`는 파서가 제외합니다. 메시지나 도구 출력 블록 안에서 비어 있지 않은 `file_id`만 있고 비어 있지 않은 `image_url`이 없으면 미디어 가드가 Mistral 전송 전에 요청을 거절합니다. 가드가 검사하지 않는 재생된 `agent_message` 내부에서는 파서가 대신 `[image: ]` 텍스트 마커를 내보내며 일반 텍스트로 전송되고 이미지 한도를 소비하지 않습니다. 제한기는 `image_url` 또는 `image_url.url`의 비어 있지 않은 문자열만 계산하고 URL 문법이나 접근 가능성은 검증하지 않습니다. 다른 대상의 동작은 바뀌지 않습니다. diff --git a/docs-site/src/content/docs/reference/adapters.md b/docs-site/src/content/docs/reference/adapters.md index fe8cbf4f27f..7b17c4aad35 100644 --- a/docs-site/src/content/docs/reference/adapters.md +++ b/docs-site/src/content/docs/reference/adapters.md @@ -416,6 +416,15 @@ tool arrives or the turn finishes cleanly. A freeform call echoed without its `` close counts as complete once `` arrives. This applies to every MiMo model Command Code serves. +Command Code also lists its System One decision models (`typesafe/jev`, +`typesafe/jev-1.14.0`) in its model catalog, but serves them only at +`POST https://api.commandcode.ai/provider/v1/systemone`. Neither Command Code preset offers them +as chat models, and a chat request that still names one (for example a saved selection) is +answered with a 404 `model_not_found` that points at that endpoint, without reaching Command +Code; a combo or routing policy that lists one moves on to its next target. To use JEV for +routing decisions, add a `jev-decision` provider whose `baseUrl` is that endpoint and name it as +a JEV combo's `decisionProvider` (see [Combos](/guides/combos/)). + ## `anthropic` **Targets:** Anthropic **Messages** (`/v1/messages`). diff --git a/docs-site/src/content/docs/reference/cli/agents.md b/docs-site/src/content/docs/reference/cli/agents.md index 2b2e96e925d..303df33b2d6 100644 --- a/docs-site/src/content/docs/reference/cli/agents.md +++ b/docs-site/src/content/docs/reference/cli/agents.md @@ -1198,8 +1198,8 @@ provider Fast. `--reserve` controls Luna Reserve compatibility independently of `--desktop-authless` and grants no upstream entitlement. Ultra Fast is an opt-in setting, default off. With `--ultra-fast-tier on`, the -generated catalog adds the Ultrafast speed choice to native `gpt-6-astra` and -`gpt-6.1-sol` (including account-bound rows), so the Codex picker offers it next to +generated catalog adds the Ultrafast speed choice to native `gpt-6-astra`, +`gpt-6.1-sol`, `gpt-6.2-astra` and `gpt-6.2-sol` (including account-bound rows), so the Codex picker offers it next to Fast. Ultrafast requires an eligible ChatGPT plan; the catalog cannot check that, so turn the setting on only if your plan includes it. Other models and the default speed are unchanged. diff --git a/docs-site/src/content/docs/reference/cli/lifecycle.md b/docs-site/src/content/docs/reference/cli/lifecycle.md index 2e5f33a1946..fdd60495bfe 100644 --- a/docs-site/src/content/docs/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/reference/cli/lifecycle.md @@ -180,10 +180,15 @@ for about six seconds and that no wrapper started again, so a wrapper's restart the proxy back behind a successful stop. OpenCodex verifies that the scheduled task launches this installation under your Windows account -and checks the account for each running instance before stopping it. An owned, disabled task with +and checks the account for its triggers and each running instance before stopping it. An owned, disabled task with no running instances counts as idle. A queued task prevents OpenCodex from confirming the stop. -If verification fails, check the launcher and run-as account in Task Scheduler and stop the task -from its owning session. +If verification fails, check the launcher, trigger accounts and run-as account in Task Scheduler. +Ending its running instances does not repair its registration. Repair a registration you own, +or contact its owner or administrator. The stop refuses further actions once its time limit has +passed, cancels the owned stop helper, and retains confirmed changes in its result even if +final verification is still pending when the time limit expires. +If the helper has not answered by the deadline after approval was sent, the CLI reports that +it could not read the service state (`state-unknown`) and marks the stop as failed. OpenCodex terminates a wrapper directly only after verifying that it belongs to your account. It ignores wrappers proven to belong to another user. If it cannot verify the owner of a wrapper @@ -580,6 +585,19 @@ The CLI's own `--json` output is deliberately narrower than the HTTP body: it em `unreachable`. Exit codes are 0 for ready; 1 for not-ready, pending, failed, timeout, or unreachable; and 64 for invalid arguments. +If the proxy startup output says the Codex home is missing, start Codex once to initialize it +or point `CODEX_HOME` at its existing home, then run `ocx sync`. A successful sync repairs +routing, but `failed` records the startup result for that listener. Restart the proxy and run +`ocx ready` to check the new process. + +For a CLI-managed service, use the registered `CODEX_HOME` and `OPENCODEX_HOME`. If an older service definition omits these paths, run `ocx service repair` once with those settings. Initialize the Codex home if needed, run `ocx sync`, then restart the service. For a Desktop-managed proxy, restart from the app. + +To move a CLI service to another existing Codex home, run `ocx service uninstall` with the original settings. If it removes the service but reports a native Codex restore failure, correct the reported error and run `ocx restore` with those same settings. + +If a failed restore leaves a pending teardown receipt on Windows, complete teardown with `ocx stop` from the owning installation and original homes before switching. `ocx update` refuses to replace the package while that receipt remains. + +Once removal and restoration have succeeded, keep `OPENCODEX_HOME`, select the new `CODEX_HOME`, and run `ocx service install` with the original backend and options. With the new settings, run `ocx sync` and check `ocx ready`. If startup failed, follow the recovery steps above. + On a Remote Link Child, readiness also covers the link. While the link cannot carry a request, `/readyz` answers `503` with `status: "pending"` and `link: {state: "unavailable", reason}`, so `ocx ready --wait` keeps waiting until the link is back; a working link adds diff --git a/docs-site/src/content/docs/reference/cli/messaging.md b/docs-site/src/content/docs/reference/cli/messaging.md index 7f030de693f..2d52efc5fdc 100644 --- a/docs-site/src/content/docs/reference/cli/messaging.md +++ b/docs-site/src/content/docs/reference/cli/messaging.md @@ -14,8 +14,9 @@ without a control socket. It does not change the loaded-only commands above. ## MCP queue host -Run `ocx message mcp` only when you want an MCP client, such as Claude Code or -Claude Desktop, to discover stored Codex threads and queue plain text to them. +Run `ocx message mcp` when you want an MCP client, such as Claude Code CLI or +the Code tab in Claude Desktop, to discover stored Codex threads and queue +plain text to them. The host runs over stdio; it exposes no network listener and registers itself in no client. Configure the MCP client with an explicit Codex CLI and existing home: @@ -174,6 +175,45 @@ Refresh revisits partially written items; callers still manage pagination and update item IDs. Cancellation/disconnect clears pauses and reaps owned helpers. The host adds no background watch, automatic delivery, session creation or resume. +### Send from Claude Code and check the reply + +First check that `ocx help message mcp` shows the MCP host options in your +installed OpenCodex. Use an explicit local Codex executable and existing Codex +home, as in the host config above. Register the server for a local workspace: + +- **Claude Code CLI:** Run this from that workspace. `--scope local` keeps the + registration in your own Claude Code settings for the workspace. + + ```bash + claude mcp add --scope local --transport stdio opencodex-queue -- \ + /absolute/path/to/ocx message mcp \ + --codex /absolute/path/to/codex --codex-home /absolute/path/to/.codex \ + --allow-reply-read + ``` + +- **Claude Desktop, Code tab:** Add the server from the JSON example above to + the workspace's `.mcp.json`, use the absolute `ocx` path as `command`, and + append `--allow-reply-read` to `args`. Select that local workspace in the + Code tab, start a Code session and approve the project server if prompted. + This `.mcp.json` entry applies to Code sessions. The Desktop Chat surface + uses [a separate Desktop configuration](https://code.claude.com/docs/en/desktop#mcp-servers-from-the-claude-desktop-chat-app). + +Only enable `--allow-reply-read` if you intend to share stored Codex answer +text with the client. For a round trip: + +1. Open a test conversation in your native Codex client and leave it idle. + In Claude Code, check that `opencodex-queue` is connected via `/mcp` in the + CLI or under **Connectors** in the Code tab. +2. Have Claude call `codex_threads` to find the exact conversation UUID, then + call `codex_queue_message` once with a test message such as “Reply with + exactly `OCX_MCP_OK`.” Approve each tool call for this test if prompted. The + `queued` receipt contains `clientMessageId`; it does not confirm Codex has + processed the message. If submission is `unknown`, do not send it again. +3. Have Claude call `codex_wait_reply` with that same `threadId` and + `clientMessageId`. `reply_observed` with the expected test reply confirms + the round trip. If the wait expires, check the same receipt again or inspect + the Codex conversation. A wait timeout does not justify another send. + ## Discover and send ```bash diff --git a/docs-site/src/content/docs/reference/configuration/providers.md b/docs-site/src/content/docs/reference/configuration/providers.md index 17988afe063..f09d899b29a 100644 --- a/docs-site/src/content/docs/reference/configuration/providers.md +++ b/docs-site/src/content/docs/reference/configuration/providers.md @@ -337,7 +337,7 @@ Providers can expose a built-in shorthand, such as `agy` for `google-antigravity | Field | Type | Meaning | | --- | --- | --- | -| `adapter` | `string` | One of `openai-chat`, `openai-responses`, `anthropic`, `claude-cli`, `google`, `kiro`, `cursor`, `ollama-native`, `azure-openai` (or alias `azure`), `codebuddy`, `qoder`. | +| `adapter` | `string` | One of `openai-chat`, `openai-responses`, `anthropic`, `claude-cli`, `step-cli`, `google`, `kiro`, `cursor`, `ollama-native`, `azure-openai` (or alias `azure`), `codebuddy`, `qoder`. | | `baseUrl` | `string` | Upstream API base URL. Most built-in fixed endpoints ignore a mismatch; collision-safe key presets preserve an older same-named custom destination. | | `proxy?` | `string \| null` | Per-provider egress route. Omit it to inherit the global proxy decision; use `"direct"` or `null` to force direct egress; or provide an absolute `http://`, `https://`, `socks5://`, or `socks5h://` proxy URL. An empty string is rejected. | | `noProxy?` | `string \| string[]` | Destinations this provider reaches directly, using `NO_PROXY` host-pattern syntax. A match bypasses both this provider's own proxy and an inherited global proxy. | @@ -1818,6 +1818,10 @@ their previous behavior. See the [ordering migration note](/guides/model-ordering/#migration-note-native-ids-in-existing-orders). `modelDisplayNames` on a provider controls readable labels without changing wire ids. +## Reasoning-effort rejection diagnostics + +See the [reasoning-effort diagnostic limits](/guides/providers/#reasoning-effort-rejection-diagnostics) before relying on automatic effort repair or learned effort support. + ## Routed agent messages With the [`openai-responses` adapter](/reference/adapters/#openai-responses), Codex diff --git a/docs-site/src/content/docs/reference/configuration/server.md b/docs-site/src/content/docs/reference/configuration/server.md index 4d39ac7e119..d7e74f0756d 100644 --- a/docs-site/src/content/docs/reference/configuration/server.md +++ b/docs-site/src/content/docs/reference/configuration/server.md @@ -713,19 +713,20 @@ Read recent detections with `ocx provider resets` or `GET /api/quota-resets`. ## API surfaces (`apiSurfaces`) Responses (`/v1/responses`) and Chat Completions (`/v1/chat/completions`) are always served. -The Messages API (`/v1/messages` and `/v1/messages/count_tokens`) can be closed on its own. +The Messages API (`/v1/messages` and `/v1/messages/count_tokens`) and the Gemini API each have their own switch. | Key | Type | Default | Description | | --- | --- | --- | --- | | `apiSurfaces.messages.enabled?` | `boolean` | inherit | `true` serves the Messages API, `false` refuses both routes with 403. Unset inherits `claudeCode.enabled`, so a Claude integration that is off also closes Messages. | +| `apiSurfaces.gemini.enabled?` | `boolean` | `true` | `false` refuses Gemini discovery, model actions and Interactions with 403. This includes Gemini-compatible routes under both `/v1beta` and `/v1`. | -A present but malformed value (a non-object `apiSurfaces` or `messages`, or a non-boolean -`enabled`) closes the Messages API rather than falling back to the inherited value. Both -routes always agree. +A malformed `apiSurfaces` object closes both switchable APIs. A malformed surface entry or +non-boolean `enabled` closes that API. -The dashboard's API page shows one card per API with the setting's source (explicit, -inherited from Claude settings, or invalid) and a toggle for Messages. Turning Messages off -there writes `apiSurfaces.messages.enabled: false` **and** `claudeCode.enabled: false` in the +The dashboard lists each API and its setting source under **Gateway endpoints**. The Gemini +switch saves only `apiSurfaces.gemini.enabled`. Eligible requests use the independently +configured [Antigravity passthrough](/reference/proxy-formats/#native-gemini-with-antigravity). +Turning Messages off writes `apiSurfaces.messages.enabled: false` **and** `claudeCode.enabled: false` in the same save, so a proxy version older than this setting, which only reads `claudeCode.enabled`, keeps the endpoint closed after a downgrade. Turning it on writes only `apiSurfaces.messages.enabled: true`; an older version then still follows diff --git a/docs-site/src/content/docs/reference/management-api.md b/docs-site/src/content/docs/reference/management-api.md index 0a5c67f03aa..f2a46ce6880 100644 --- a/docs-site/src/content/docs/reference/management-api.md +++ b/docs-site/src/content/docs/reference/management-api.md @@ -772,10 +772,10 @@ keys are not returned to dashboard clients. | Method and path | Purpose | Notable errors | | --- | --- | --- | -| `GET /api/protocols` | Return the protocol contract version, which APIs are served, the protocol settings, the current policy revision, and the request features a preview understands | — | +| `GET /api/protocols` | Return the protocol contract version, which APIs are served (including the top-level `geminiSurface`), the protocol settings, the current policy revision, and the request features a preview understands | — | | `GET /api/protocols?provider=` | The same body plus `provider`: `{ name, adapter, adapterSource, authMode, upstream, modelOverrides: [{ model, adapter, source }] }` — the wire the provider receives and who decided it (`hard-pin`, `operator`, `registry`, `provider-default`), with up to 64 models on a different wire (`modelOverridesTruncated: true` past that). No credential or base URL | 400 empty, repeated, over 200 characters, or control characters; 404 no provider with that name | | `POST /api/protocols/plan` | Preview the path a request would take: `{ "model": "...", "inbound": "responses" \| "chat" \| "messages", "features": [...] }` returns each route candidate's request and response path, delivery mode, fidelity, feature effects, and reasons | 400 invalid JSON, unknown field, model over 200 characters, unknown inbound, or more than 24 / unknown features | -| `PATCH /api/protocols/settings` | Change protocol settings: `{ "messagesEnabled"?: boolean, "unrepresentable"?: "legacy" \| "reject", "rollout"?: { ...boolean switches } }`. Returns the same body as `GET /api/protocols`. Closing Messages also sets `claudeCode.enabled` to `false` in the same save; opening it writes only `apiSurfaces.messages.enabled` | 400 invalid JSON, empty body, unknown field, wrong type, or `rollout.managedMessagesNativeOAuth` without `rollout.managedMessagesNative`; 409 configuration busy; 500 save failed (nothing changes) | +| `PATCH /api/protocols/settings` | Change protocol settings: `{ "messagesEnabled"?: boolean, "geminiEnabled"?: boolean, "unrepresentable"?: "legacy" \| "reject", "rollout"?: { ...boolean switches } }`. Returns the same body as `GET /api/protocols`. Closing Messages also sets `claudeCode.enabled` to `false` in the same save; opening it writes only `apiSurfaces.messages.enabled` | 400 invalid JSON, empty body, unknown field, wrong type, or `rollout.managedMessagesNativeOAuth` without `rollout.managedMessagesNative`; 409 configuration busy; 500 save failed (nothing changes) | A preview is computed from configuration alone. It sends nothing to any provider, costs nothing, does not advance combo rotation, and is not logged. The API page in the dashboard shows the same diff --git a/docs-site/src/content/docs/reference/proxy-formats.md b/docs-site/src/content/docs/reference/proxy-formats.md index b457bbf0274..def6d1b613e 100644 --- a/docs-site/src/content/docs/reference/proxy-formats.md +++ b/docs-site/src/content/docs/reference/proxy-formats.md @@ -854,6 +854,10 @@ Thinking replay and prompt-cache work remain separate in [#3719](https://github. ## Gemini API: `/v1beta/models` and `/v1beta/interactions` +The **Gemini API** switch under the dashboard's **Gateway endpoints** controls access to these +routes. While the API is open, **Usage examples** includes a copyable `generateContent` request. +See [API surfaces](/reference/configuration/server/#api-surfaces-apisurfaces). + Gemini clients, such as the google-genai SDK with a custom base URL, the `agy` CLI or a client reading `GOOGLE_GEMINI_BASE_URL`, can reach the configured provider routes in Google's REST shape. The proxy normally translates generation onto its Chat Completions path, so the route behind it can be any @@ -1153,7 +1157,8 @@ A repair must decode to a JSON object. Valid JSON values containing those tags a ## Native Gemini with Antigravity Enable the canonical `google-antigravity` provider, sign in with `ocx login google-antigravity`, -and add this optional setting to OpenCodex's JSON config: +then open the Google Antigravity **Accounts** tab and turn on **Native Gemini passthrough**. +The dashboard and JSON config use the same setting: ```json { @@ -1169,14 +1174,31 @@ The default is off. Use the usual Gemini-compatible API at `/v1beta` with `x-goog-api-key` or `?key=` for an OpenCodex admission key. An eligible selector such as `google-antigravity/gemini-3.8-flash` uses the native leg for `generateContent` and `streamGenerateContent`. The proxy chooses the Cloud Code Assist model from the resolved -route and uses the active OAuth account's token and project. Other providers and `/v1` -requests use the Chat bridge. +route. With OAuth account failover enabled, it can choose another usable account according +to that account's discovered models and the configured strategy. If the selected account +is known to lack the model and no replacement is allowed, the proxy returns 403. The token +and project always come from the same account. Other providers and `/v1` requests use the +Chat bridge. The proxy preserves successful request and response JSON source, including unknown fields, large integers, function arguments, and thought signatures. Streaming uses SSE with -`alt=sse` or a streamed JSON array otherwise. `GET /v1beta/models` and model lookup keep the -configured, scoped catalog and also expose eligible native wire aliases that route back -to their Antigravity model. +`alt=sse` or a streamed JSON array otherwise. `GET /v1beta/models` and model lookup include +eligible, live-discovered Gemini models from the Antigravity discovery cache alongside configured +models. Refresh the Antigravity model list in OpenCodex to populate the cache. Native wire aliases +are available when the exact selector routes to that Antigravity model and the admission key +allows it. Requests sent through the native path show **Gemini → Gemini · Native** in the +dashboard's request logs. When a completed response reports token counts, the log displays +them and computes the end-to-end output rate. For models with a matched official rate, the +`~$` column estimates the equivalent Gemini API cost from reported input, output and cache-hit +tokens. The amount is an API price reference for Antigravity OAuth sessions. +The log details show the selected provider and model and the router's selection reason. +The upstream attempts table shows each send's status, opaque account label and recovery reason. +If an upstream 401 triggers a successful credential refresh and replay, the refusal and replay appear +as separate attempts. When only some attempts have an estimate, the log shows the known cost subtotal +and the number of attempts that could not be priced. +The log details also show the named reasoning tier or explicit thinking control and the first +visible output time for a stream. Decode throughput is estimated from the observed output +window when it includes the reported reasoning output. If an upstream payload contains bound account credentials, the proxy returns a generic Gemini error. A valid upstream `[DONE]` or a Gemini error ends stream delivery. @@ -1184,6 +1206,8 @@ Gemini error. A valid upstream `[DONE]` or a Gemini error ends stream delivery. Send identity-encoded JSON. Request and buffered response bodies and SSE events have a 16 MiB cap. A lower `maxInboundBodyBytes` also applies to requests. Upload inactivity has its own timeout. The first send and up to one 401 recovery on the same account count -against workflow physical-send ceilings. Applicable root, identity, or pool token ceilings -return 503 with `gemini_native_spend_limits_unsupported` because native token spend is -unreported. Turn off the opt-in to use token-spend accounting on this Gemini route. +against workflow physical-send ceilings. For root, identity, and pool token budgets, each +send reserves estimated input and the requested `maxOutputTokens` for each candidate. +An insufficient budget returns 429 with `workflow_spend_exhausted`. Completed requests +settle against Gemini's reported input and output counts. A send without final usage retains +its reservation amount as unresolved spend. diff --git a/docs-site/src/content/docs/ru/getting-started/quickstart.md b/docs-site/src/content/docs/ru/getting-started/quickstart.md index 32cd2800844..3c7a9f180b2 100644 --- a/docs-site/src/content/docs/ru/getting-started/quickstart.md +++ b/docs-site/src/content/docs/ru/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init` проведёт вас по следующим шагам: -1. **Выбор провайдера** — выберите один из 111 встроенных пресетов реестра или `custom`, чтобы +1. **Выбор провайдера** — выберите один из 112 встроенных пресетов реестра или `custom`, чтобы ввести базовый URL и адаптер вручную. 2. **API-ключ** — вставьте ключ или сошлитесь на переменную окружения вида `${ANTHROPIC_API_KEY}`. 3. **Модель по умолчанию** — для провайдеров с ключом, локальных и `custom` примите значение из diff --git a/docs-site/src/content/docs/ru/guides/claude-code.md b/docs-site/src/content/docs/ru/guides/claude-code.md index b12700e8633..2500f737900 100644 --- a/docs-site/src/content/docs/ru/guides/claude-code.md +++ b/docs-site/src/content/docs/ru/guides/claude-code.md @@ -584,8 +584,8 @@ Claude Code — это лишь учётные данные для доступ | Вход Messages | Выход Responses | | --- | --- | -| `system` верхнего уровня | `instructions` (текстовые блоки объединяются через `\n\n`) | -| `messages[].role: "system"` | Также сворачивается в `instructions` | +| `system` верхнего уровня | `instructions` (текстовые блоки объединяются через `\n\n`). Для GPT-6.2 Sol и Astra через вход Codex отправляется первым сообщением `developer`, чтобы его можно было кэшировать | +| `messages[].role: "system"` | Преобразуется в сообщения `developer` на исходных позициях | | Текст / изображение пользователя | `input_text` / `input_image` (base64 → data URL) | | Текст ассистента | `output_text` | | `tool_use` ассистента | `function_call` (`input` → `arguments` в виде JSON-строки) | diff --git a/docs-site/src/content/docs/ru/guides/image-bridge.md b/docs-site/src/content/docs/ru/guides/image-bridge.md index 76c67a497c7..93dfb6a91dd 100644 --- a/docs-site/src/content/docs/ru/guides/image-bridge.md +++ b/docs-site/src/content/docs/ru/guides/image-bridge.md @@ -49,7 +49,7 @@ Image Bridge обнаруживает такие вызовы и прозрач { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -59,7 +59,7 @@ Image Bridge обнаруживает такие вызовы и прозрач | Параметр | По умолчанию | Описание | | --- | --- | --- | | `bridgeEnabled` | `false` | Главный переключатель. Задайте `true`, чтобы включить bridge. По умолчанию выключен, чтобы избежать неожиданных расходов xAI. | -| `bridgeModel` | `grok-imagine-image-quality` | Id image-модели xAI, куда отправляются prompt'ы. | +| `bridgeModel` | `grok-imagine-image-2.0` | Id image-модели xAI, куда отправляются prompt'ы. | | `maxRounds` | `3` | Максимум итераций цикла image-generation за один ход. Округляется вниз до целого и ограничивается диапазоном `[0, 10]`; нечисловые значения возвращаются к `3`. | | `timeoutMs` | `60000` | Дедлайн одного вызова xAI в миллисекундах. Конечные положительные значения округляются вниз и передаются в запрос xAI. | | `artifactsKeepCount` | `200` | Максимум файлов, сохраняемых в `artifacts/`. При превышении после каждого выполненного вызова удаляются самые старые файлы. Задайте `0` или отрицательное значение, чтобы отключить pruning. | @@ -107,3 +107,5 @@ Image Bridge активируется только на **Responses**-ходах API-кредитов. - **Только streaming.** Bridge работает, перехватывая SSE-поток ответа; запросы с `stream: false` отклоняются ошибкой 400. + +По умолчанию используется `grok-imagine-image-2.0`. `quality` принимает `low`, `medium`, `auto`; значения OpenAI `high` и `hd` преобразуются в `medium`. Выведенный из эксплуатации `grok-imagine-image-quality` (и `grok-imagine-image-pro`, перенаправленный на него с 2026-05-15) обслуживается моделью 2.0 с низким качеством. Цена зависит от качества и разрешения; редактирование добавляет $0.01 за каждое входное изображение. Ретранслятор `/v1/images/edits` передаёт до пяти входных изображений (сначала удаляя дубликаты); инструмент моста `image_gen` отправляет одно. diff --git a/docs-site/src/content/docs/ru/guides/providers.md b/docs-site/src/content/docs/ru/guides/providers.md index 772b7992c54..1bf3f7a7145 100644 --- a/docs-site/src/content/docs/ru/guides/providers.md +++ b/docs-site/src/content/docs/ru/guides/providers.md @@ -222,7 +222,7 @@ Inline JSON и лишние позиционные аргументы откло ## 3. Каталог API-ключей -opencodex поставляется с 111 встроенными пресетами: 89 на основе ключей, 18 OAuth, три локальных и +opencodex поставляется с 112 встроенными пресетами: 90 на основе ключей, 18 OAuth, три локальных и один пресет ChatGPT-форварда по умолчанию. Селектор **Add provider** в дашборде открывает страницу выдачи ключей провайдера, проверяет ключ и сохраняет его; проверка зависит от провайдера. Наиболее заметные записи: diff --git a/docs-site/src/content/docs/ru/guides/video-bridge.md b/docs-site/src/content/docs/ru/guides/video-bridge.md index 8525e796a1b..ba7e0b70f11 100644 --- a/docs-site/src/content/docs/ru/guides/video-bridge.md +++ b/docs-site/src/content/docs/ru/guides/video-bridge.md @@ -44,7 +44,7 @@ Video Bridge позволяет использовать генерацию xAI "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -54,7 +54,7 @@ Video Bridge позволяет использовать генерацию xAI | Параметр | По умолчанию | Описание | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | Главный переключатель. Должен быть явно включён. | -| `videoBridgeModel` | `"grok-imagine-video"` | Id видеомодели xAI. | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | Id видеомодели xAI. | | `videoMaxRounds` | `2` | Максимум раундов video-gen до принудительного финального ответа. | | `videoTimeoutMs` | `300000` (5 min) | Таймаут одного видео, включая polling. | | `videoProvider` | не задан (xAI) | Необязательный провайдер с API-ключом, который обслуживает `video_gen` через свой `baseUrl` и ключ. См. [Выбор видеопровайдера](#выбор-видеопровайдера). | @@ -77,7 +77,7 @@ Video Bridge позволяет использовать генерацию xAI "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -104,16 +104,32 @@ Tool `video_gen` принимает: | Параметр | Тип | Диапазон | Описание | |-----------|------|-------|-------------| -| `prompt` | string | required | Подробный prompt для генерации видео | +| `prompt` | string | необязателен при наличии изображения или кадра | Текстовый запрос | | `duration` | integer | 1-15 | Длительность видео в секундах | -| `resolution` | string | `"480p"`, `"720p"` | Разрешение видео | -| `aspect_ratio` | string | 7 ratios | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | Зависит от модели; не выше 720p с `last_frame`, `keyframes` или `reference_images` | +| `aspect_ratio` | string | зависит от модели | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; отклоняется при анимации только `image`, которая сохраняет свои пропорции | +| `image` | string | первый кадр | HTTPS URL, URL данных или сохранённый артефакт | +| `last_frame` | string | только 1.5 | Последний кадр | +| `keyframes` | array | 1.5, максимум 4 | `{image, timestamp_s}`; временная метка строго внутри клипа (8 s, если `duration` не указан) | +| `reference_images` | array | 1.5: 14, классическая: 7 (≤ 10 s) | Опорные изображения; классическая модель не может сочетать их с `image` | + +Настройки, которые модель не может выполнить, отклоняются до любого платного вызова, а не игнорируются. + +### Модели и входные изображения + +| Модель | Разрешение | Входные данные | за секунду (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p нативное | первый/последний кадр, 4 ключевых кадра, 14 референсов (720p максимум) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (по умолчанию) | 480p / 720p / 1080p увеличенное | первый кадр | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | первый кадр, 7 референсов | $0.05 / $0.07 / — | + +Для ключевых кадров или референсов задайте `images.videoBridgeModel` равным `grok-imagine-video-1.5`. Известные модели поддерживают девять пропорций; неизвестные сохраняют семь, 480p/720p и не принимают изображения. Допускаются HTTPS URL и данные PNG/JPEG/WebP размером до 10 МиБ после декодирования. Изображение, скачанное мостом, можно в течение часа указать через URL артефакта, абсолютный путь или URL `file:`: используется сохранённый исходный URL без чтения локального файла. Это работает только с фиксированным адресом xAI, не с пользовательским `images.videoProvider`. У встроенных результатов исходного URL нет, а временный URL может истечь раньше. + ## Ограничения - **По умолчанию xAI**: без `videoProvider` генерация видео использует API xAI Grok Imagine Video; другой бэкенд должен реализовать тот же асинхронный API - **Асинхронно**: генерация видео занимает 30-120 секунд -- **Платно**: генерация видео — платная функция xAI (~$0.05/сек @480p, ~$0.07/сек @720p) - **Одно видео на один вызов**: каждый вызов `video_gen` создаёт одно видео - **Совместим с Image Bridge**: оба моста можно включать одновременно - **Приоритет web search**: если для хода активен web search sidecar (не-`runTurn` адаптер), diff --git a/docs-site/src/content/docs/ru/guides/web-dashboard.md b/docs-site/src/content/docs/ru/guides/web-dashboard.md index ea7e3c8ea86..a3126328696 100644 --- a/docs-site/src/content/docs/ru/guides/web-dashboard.md +++ b/docs-site/src/content/docs/ru/guides/web-dashboard.md @@ -108,17 +108,30 @@ Logs показывает запросы всех приложений вмес Переключатели **Models** показывают итоговую видимость в Codex. Маршрутизируемая модель включена, только если она входит в allowlist провайдера (или allowlist отсутствует) и не отключена. Включение атомарно согласует оба фильтра, а **Включить все** удаляет allowlist и включает новые модели. -### Управление моделями в рабочей области провайдера +Вкладка **Все** (`#models/overall`) показывает в одном списке все модели всех провайдеров в порядке +каталога, с полем поиска, фильтром **Все** / **Вкл.** / **Выкл.** и тем же переключателем. Обе вкладки +читают одно состояние и используют общую очередь сохранения, поэтому изменение на одной сразу видно на другой. + +Дождитесь подтверждения, прежде чем уходить со страницы **Модели** или менять сервер: изменения в +очереди, которые ещё не отправлены, при уходе отбрасываются. -На вкладке **Модели** провайдера действие **Удалить** удаляет сохранённое пользовательское -определение. Исходная нативная или обнаруженная модель может появиться снова, поэтому счётчик -моделей может не измениться. **Скрыть** меняет только видимость в каталоге, не удаляя определение -и не меняя политику прямой маршрутизации. Кнопка **Управлять видимостью в разделе «Модели»** -открывает страницу **Модели**, где можно восстановить видимость, даже если вкладка провайдера пуста. +### Управление моделями в рабочей области провайдера -**Добавить** сохраняет пользовательское определение, но не отменяет существующее скрытие или -правила выбора провайдера. Сохранённая модель может остаться скрытой. Если модель уже известна, -управляйте её видимостью в разделе **Модели**. Подтверждённое сохранение остаётся действительным +Вкладка **Модели** провайдера показывает все его модели, включая выключенные, и у каждой есть тот же +переключатель, что на странице **Модели**; обе страницы читают и записывают одно состояние. Переключатель +сохраняет сразу. Пока это сохранение и последующая перезагрузка не завершатся, остальные переключатели, +**Добавить** и **Удалить** ждут, так что одновременно выполняется одно изменение; выбор другого +провайдера его не отменяет. Но если уйти со страницы **Провайдеры** до завершения, запрос может +быть отменён; сохранилось ли изменение, покажет следующая загрузка. Выключение модели меняет только видимость в каталоге, не удаляя определение +и не меняя политику прямой маршрутизации. Кнопка **Управлять видимостью в разделе «Модели»** открывает +страницу **Модели**. + +**Удалить** удаляет сохранённое пользовательское определение. Исходная нативная или обнаруженная модель +может появиться снова, поэтому счётчик моделей может не измениться. + +**Добавить** сохраняет пользовательское определение, но не отменяет существующее выключение или +правила выбора провайдера. Сохранённая модель может остаться выключенной; включите её переключателем. +Подтверждённое сохранение остаётся действительным при сбое обновления каталога: следуйте сообщению об обновлении, не добавляя модель повторно. Если изменение не подтверждено, обновите состояние моделей перед повторной попыткой. @@ -127,6 +140,11 @@ Logs показывает запросы всех приложений вмес разрешений, не число моделей из живого обнаружения и не доказательство происхождения записи. Метки выбора и сведения об обнаружении учитываются отдельно. +Этот счётчик показан в списке провайдеров. Заголовок вкладки **Модели** провайдера показывает +другое: сколько моделей включено из общего числа. Общее число учитывает все записи списка, включая +выключенные модели, а модель считается включённой по тому же правилу, что на странице **Модели**: +она не отключена и при этом является нативной, или у провайдера нет allowlist, или allowlist её включает. + ## Селектор делегирования и маршрутизация порождений Селектор **Sub-agent delegation** в дашборде сохраняет `injectionModel` и, при желании, diff --git a/docs-site/src/content/docs/ru/reference/cli/lifecycle.md b/docs-site/src/content/docs/ru/reference/cli/lifecycle.md index b73896ff315..b8ba43e3f4b 100644 --- a/docs-site/src/content/docs/ru/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/ru/reference/cli/lifecycle.md @@ -242,6 +242,16 @@ Identity-check живого прокси. Текстовый вывод сооб `unreachable`. Коды завершения: 0 — готово; 1 — не готово, pending, failed, тайм-аут или недоступность; 64 — недопустимые аргументы. +Если при запуске прокси появляется сообщение, что домашний каталог Codex не найден, запустите Codex один раз или укажите в `CODEX_HOME` каталог, уже инициализированный Codex. Затем выполните `ocx sync`. Успешная синхронизация восстанавливает маршрутизацию, но статус `failed` по-прежнему отражает результат запуска текущего процесса. Перезапустите прокси и проверьте новый процесс командой `ocx ready`. + +Для службы, установленной через CLI, используйте зарегистрированные значения `CODEX_HOME` и `OPENCODEX_HOME`. Если эти пути отсутствуют в старом определении службы, один раз выполните `ocx service repair` с этими настройками. При необходимости инициализируйте каталог Codex, выполните `ocx sync` и перезапустите службу. Прокси под управлением настольного приложения перезапускайте из приложения. + +Чтобы перевести службу CLI на другой существующий каталог Codex, выполните `ocx service uninstall` с исходными настройками. Если служба удалена, но восстановить штатную конфигурацию Codex не удалось, устраните указанную ошибку и выполните `ocx restore` с теми же настройками. + +Если в Windows после неудачного восстановления осталась запись о незавершённой очистке, перед сменой каталогов выполните `ocx stop` из установки, которой принадлежала служба, с исходными путями. Пока запись существует, `ocx update` откажется заменять пакет. + +После успешного удаления и восстановления сохраните `OPENCODEX_HOME`, выберите новый `CODEX_HOME` и выполните `ocx service install` с прежним бэкендом и параметрами. С новыми настройками выполните `ocx sync` и проверьте готовность командой `ocx ready`. При сбое запуска следуйте описанным выше шагам восстановления. + ### `ocx doctor` Запускает read-only диагностику среды и связности: пути состояний и тип файловой системы, diff --git a/docs-site/src/content/docs/tr/getting-started/quickstart.md b/docs-site/src/content/docs/tr/getting-started/quickstart.md index 99ba7d3851f..c10f65b30ea 100644 --- a/docs-site/src/content/docs/tr/getting-started/quickstart.md +++ b/docs-site/src/content/docs/tr/getting-started/quickstart.md @@ -13,7 +13,7 @@ ocx init `ocx init` adım adım size rehberlik eder: -1. **Bir sağlayıcı seçin** — yerleşik kayıt defterindeki 111 önayardan birini +1. **Bir sağlayıcı seçin** — yerleşik kayıt defterindeki 112 önayardan birini veya bir temel URL ile adaptör yazmak için `custom` seçeneğini belirleyin. 2. **API anahtarı** — bir anahtar yapıştırın veya `${ANTHROPIC_API_KEY}` gibi bir ortam değişkenine başvurun. diff --git a/docs-site/src/content/docs/tr/guides/claude-code.md b/docs-site/src/content/docs/tr/guides/claude-code.md index 9231780647e..67bf763c470 100644 --- a/docs-site/src/content/docs/tr/guides/claude-code.md +++ b/docs-site/src/content/docs/tr/guides/claude-code.md @@ -747,8 +747,8 @@ dönüştürür: | Messages girdisi | Responses çıktısı | | --- | --- | -| Üst düzey `system` | `instructions` (`\n\n` ile birleştirilmiş metin blokları) | -| `messages[].role: "system"` | Ayrıca `instructions` içine katlanır | +| Üst düzey `system` | `instructions` (`\n\n` ile birleştirilmiş metin blokları). Codex girişiyle GPT-6.2 Sol ve Astra için önbelleğe alınabilmesi amacıyla ilk `developer` mesajı olarak gönderilir | +| `messages[].role: "system"` | Özgün konumlarında `developer` mesajlarına çevrilir | | Kullanıcı metni / görsel | `input_text` / `input_image` (base64 → veri URL'si) | | Asistan metni | `output_text` | | Asistan `tool_use` | `function_call` (`input` → JSON dizgeleştirilmiş `arguments`) | diff --git a/docs-site/src/content/docs/tr/guides/image-bridge.md b/docs-site/src/content/docs/tr/guides/image-bridge.md index 03ee0da4319..e1c98f6f0bf 100644 --- a/docs-site/src/content/docs/tr/guides/image-bridge.md +++ b/docs-site/src/content/docs/tr/guides/image-bridge.md @@ -45,7 +45,7 @@ görsel üretimini etkinleştirmek için `bridgeEnabled: true` ayarlamalısını { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -55,7 +55,7 @@ görsel üretimini etkinleştirmek için `bridgeEnabled: true` ayarlamalısını | Seçenek | Varsayılan | Açıklama | | --- | --- | --- | | `bridgeEnabled` | `false` | Ana anahtar. Köprüyü etkinleştirmek için `true` yapın. Beklenmeyen xAI maliyetlerini önlemek için varsayılan olarak kapalıdır. | -| `bridgeModel` | `grok-imagine-image-quality` | İsteklerin gönderileceği xAI görsel model kimliği. | +| `bridgeModel` | `grok-imagine-image-2.0` | İsteklerin gönderileceği xAI görsel model kimliği. | | `maxRounds` | `3` | Tur başına maksimum görsel üretim döngüsü sayısı. Tam sayıya yuvarlanır ve `[0, 10]` aralığına sınırlandırılır; geçersiz değerler `3`'e döner. | | `timeoutMs` | `60000` | Milisaniye cinsinden çağrı başına xAI zaman aşımı süresi. | | `artifactsKeepCount` | `200` | `artifacts/` dizininde saklanacak maksimum dosya sayısı. Aşıldığında, tamamlanan her çağrıdan sonra en eski dosyalar otomatik temizlenir. | @@ -106,3 +106,5 @@ herhangi bir sağlayıcıyla sorunsuz çalışır. çalışır; `stream: false` olan istekler 400 hatasıyla reddedilir. + +Varsayılan model `grok-imagine-image-2.0` modelidir. `quality` için `low`, `medium`, `auto` desteklenir; OpenAI `high` ve `hd` değerleri `medium` olur. Kullanımdan kaldırılan `grok-imagine-image-quality` (ve 2026-05-15 tarihinden beri ona yönlendirilen `grok-imagine-image-pro`) düşük kalitede 2.0 olarak sunulur. Fiyat kaliteye ve çözünürlüğe bağlıdır; düzenlemede girdi görseli başına $0.01 eklenir. `/v1/images/edits` aktarımı tekrarları ayıkladıktan sonra en fazla beş girdi görseli iletir; `image_gen` köprü aracı bir görsel gönderir. diff --git a/docs-site/src/content/docs/tr/guides/providers.md b/docs-site/src/content/docs/tr/guides/providers.md index 47b195d3632..03317bed745 100644 --- a/docs-site/src/content/docs/tr/guides/providers.md +++ b/docs-site/src/content/docs/tr/guides/providers.md @@ -342,7 +342,7 @@ olmayan bir makineden oturum açmak bundan etkilenmez. ## 3. API anahtarı kataloğu -opencodex 111 yerleşik önayar ile birlikte gelir: 89 anahtar tabanlı, 18 +opencodex 112 yerleşik önayar ile birlikte gelir: 90 anahtar tabanlı, 18 OAuth, üç yerel ve bir varsayılan ChatGPT iletme önayarı. Kontrol panelinin **Sağlayıcı ekle** seçicisi bir anahtar sağlayıcısının kontrol panelini açar, anahtarı doğrular ve saklar; doğrulama sağlayıcıya özgüdür. Dikkate değer diff --git a/docs-site/src/content/docs/tr/guides/video-bridge.md b/docs-site/src/content/docs/tr/guides/video-bridge.md index f74d0510d55..547676df2bf 100644 --- a/docs-site/src/content/docs/tr/guides/video-bridge.md +++ b/docs-site/src/content/docs/tr/guides/video-bridge.md @@ -47,7 +47,7 @@ Bu ön koşullar varsayılan xAI hedefi için geçerlidir. `images.videoProvider "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -57,7 +57,7 @@ Bu ön koşullar varsayılan xAI hedefi için geçerlidir. `images.videoProvider | Seçenek | Varsayılan | Açıklama | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | Ana anahtar. Açıkça etkinleştirilmelidir. | -| `videoBridgeModel` | `"grok-imagine-video"` | xAI video model kimliği. | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | xAI video model kimliği. | | `videoMaxRounds` | `2` | Zorunlu nihai yanıttan önceki maksimum video üretim turu. | | `videoTimeoutMs` | `300000` (5 dk) | Yoklama dahil video başına zaman aşımı süresi. | | `videoProvider` | ayarlanmamış (xAI) | `video_gen` çağrılarını kendi `baseUrl` ve anahtarıyla karşılayan isteğe bağlı API anahtarlı sağlayıcı. Bkz. [Video sağlayıcısını seçme](#video-sağlayıcısını-seçme). | @@ -80,7 +80,7 @@ Köprü varsayılan olarak `video_gen` işlerini `xai` sağlayıcısının API a "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -110,17 +110,32 @@ Köprü varsayılan olarak `video_gen` işlerini `xai` sağlayıcısının API a | Parametre | Tip | Aralık | Açıklama | |-----------|------|-------|-------------| -| `prompt` | string | gerekli | Ayrıntılı video üretim istemi | +| `prompt` | string | görüntü veya kare varsa isteğe bağlı | Metin istemi | | `duration` | integer | 1-15 | Saniye cinsinden video uzunluğu | -| `resolution` | string | `"480p"`, `"720p"` | Video çözünürlüğü | -| `aspect_ratio` | string | 7 oran | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | Modele bağlıdır; `last_frame`, `keyframes` veya `reference_images` ile en fazla 720p | +| `aspect_ratio` | string | modele bağlı | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; yalnızca `image` canlandırılırken reddedilir; görüntü kendi oranını korur | +| `image` | string | ilk kare | HTTPS URL’si, veri URL’si veya hatırlanan artifact | +| `last_frame` | string | yalnızca 1.5 | Son kare | +| `keyframes` | array | 1.5, en fazla 4 | `{image, timestamp_s}`; zaman damgası kesinlikle klibin içinde olmalıdır (`duration` atlanırsa 8 s) | +| `reference_images` | array | 1.5: 14, klasik: 7 (≤ 10 s) | Referans görüntüler; klasik model bunları `image` ile birleştiremez | + +Modelin karşılayamayacağı ayarlar yok sayılmak yerine ücretli çağrıdan önce reddedilir. + +### Modeller ve görüntü girdileri + +| Model | Çözünürlük | Girdiler | saniye başına (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p doğal | ilk/son kare, 4 anahtar kare, 14 referans (720p en fazla) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (varsayılan) | 480p / 720p / 1080p büyütülmüş | ilk kare | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | ilk kare, 7 referans | $0.05 / $0.07 / — | + +Kare sabitleme veya referanslar için `images.videoBridgeModel` değerini `grok-imagine-video-1.5` yapın. Bilinen modeller dokuz en boy oranını destekler; bilinmeyen modeller yedi oran ve 480p/720p ile sınırlıdır ve görüntü girdisi almaz. HTTPS URL’leri ve kodu çözülmüş boyutu 10 MiB’ye kadar PNG/JPEG/WebP veri URL’leri kabul edilir. Köprünün indirdiği görüntüler bir saat boyunca artifact URL’si, mutlak yol veya `file:` URL’siyle anılabilir; yerel dosya okunmadan kayıtlı kaynak URL kullanılır. Bu yalnızca sabit xAI hedefinde çalışır, özel `images.videoProvider` için çalışmaz. Satır içi sonuçların kaynak URL’si yoktur ve geçici URL daha erken sona erebilir. + ## Sınırlamalar - **Varsayılan olarak xAI**: `videoProvider` olmadan video üretimi xAI'ın Grok Imagine Video API'sini kullanır; başka bir arka uç aynı eşzamansız API'yi uygulamalıdır - **Zaman uyumsuz (Asynchronous)**: Video üretimi 30-120 saniye sürer -- **Maliyet**: Video üretimi ücretli bir xAI özelliğidir (~$0.05/sn @480p, - ~$0.07/sn @720p) - **Çağrı başına bir video**: Her `video_gen` çağrısı bir video üretir - **Görsel Köprüsü (Image Bridge) ile birlikte var olur**: Her iki köprü aynı anda etkinleştirilebilir diff --git a/docs-site/src/content/docs/tr/guides/web-dashboard.md b/docs-site/src/content/docs/tr/guides/web-dashboard.md index 74117ab9b53..74fcd984863 100644 --- a/docs-site/src/content/docs/tr/guides/web-dashboard.md +++ b/docs-site/src/content/docs/tr/guides/web-dashboard.md @@ -140,17 +140,29 @@ ayarlanmadığında) ve devre dışı bırakılmadığında açıktır. Bir mode iki filtreyi de atomik olarak uzlaştırır; **Tümünü aç (All on)** sağlayıcı izin listesini temizler, böylece yeni keşfedilen modeller de açık olur. +**Tümü** sekmesi (`#models/overall`), tüm sağlayıcıların modellerini katalogla aynı sırada tek bir +listede gösterir; arama kutusu, **Tümü** / **Açık** / **Kapalı** filtresi ve aynı anahtar vardır. İki +sekme aynı durumu okur ve tek bir kayıt kuyruğunu paylaşır; birinde yapılan değişiklik diğerinde hemen görünür. + +**Modeller** sayfasından ayrılmadan veya sunucu değiştirmeden önce kayıt sonucunu bekleyin: ayrılırken +kuyrukta bekleyen ve henüz gönderilmemiş değişiklikler atılır. + ### Sağlayıcı çalışma alanında modelleri yönetme -Sağlayıcının **Modeller** sekmesinde **Sil**, kayıtlı özel tanımı kaldırır. Alttaki yerel veya canlı -keşfedilmiş model yeniden görünebilir; bu nedenle model sayısı aynı kalabilir. **Gizle** yalnızca -katalog görünürlüğünü değiştirir; tanımı silmez veya doğrudan yönlendirme ilkesini değiştirmez. -**Modeller bölümünde görünürlüğü yönet**, görünürlüğü geri yükleyebileceğiniz **Modeller** sayfasını -açar. Sağlayıcı sekmesinde hiç satır kalmasa da bu bağlantı kullanılabilir. +Sağlayıcının **Modeller** sekmesi, kapalı olanlar dahil sağlayıcının tüm modellerini listeler ve her +birinde **Modeller** sayfasındakiyle aynı açma/kapama anahtarı bulunur; iki sayfa aynı durumu okur ve +yazar. Anahtar hemen kaydeder. Bu kayıt ve ardından gelen yeniden okuma bitene kadar diğer anahtarlar, +**Ekle** ve **Sil** bekler; böylece aynı anda tek bir değişiklik sürer ve başka bir sağlayıcı seçmek onu +iptal etmez; ancak bitmeden **Sağlayıcılar** sayfasından ayrılmak isteği iptal edebilir. Kaydedilip +kaydedilmediğini bir sonraki yükleme gösterir. Bir modeli kapatmak yalnızca katalog görünürlüğünü değiştirir; tanımı silmez veya doğrudan +yönlendirme ilkesini değiştirmez. **Modeller bölümünde görünürlüğü yönet**, **Modeller** sayfasını açar. -**Ekle**, özel tanımı kaydeder; mevcut gizleme durumunu veya sağlayıcı seçim kurallarını kaldırmaz. -Kaydedilen model gizli kalabilir. Model zaten biliniyorsa görünürlüğünü **Modeller** bölümünden -yönetin. Kayıt doğrulandıysa katalog yenilemesi başarısız olsa bile tanım kaydedilmiştir. Yeniden +**Sil**, kayıtlı özel tanımı kaldırır. Alttaki yerel veya canlı keşfedilmiş model yeniden görünebilir; +bu nedenle model sayısı aynı kalabilir. + +**Ekle**, özel tanımı kaydeder; mevcut kapalı durumu veya sağlayıcı seçim kurallarını kaldırmaz. +Kaydedilen model kapalı kalabilir; anahtarıyla açın. Kayıt doğrulandıysa katalog yenilemesi başarısız +olsa bile tanım kaydedilmiştir. Yeniden eklemek yerine yenileme mesajını izleyin. Değişiklik doğrulanamıyorsa tekrar denemeden önce modellerin durumunu yenileyin. @@ -159,6 +171,12 @@ benzersiz girdileri, arama ve görüntüleme sınırı uygulanmadan önce sayar. boyutu veya canlı keşif sayısı değildir; girdinin sağlayıcıdan keşfedildiğini de kanıtlamaz. Seçim rozetleri ve keşif bilgileri bu sayıdan ayrıdır. +Bu sayı sağlayıcı listesinde görünür. Sağlayıcının **Modeller** sekmesinin başlığı ise toplam içinden +kaç modelin açık olduğunu gösterir: toplam, kapalı modeller dahil listedeki her girdiyi sayar; bir model +**Modeller** sayfasındakiyle aynı kurala göre açıktır: devre dışı değildir ve ayrıca ya Codex'in +yerleşik (native) GPT modelidir, ya sağlayıcısının izin listesi yoktur ya da izin listesi onu içerir. +Ollama gibi yerel sunucu sağlayıcılarının modelleri bu istisnaya girmez. + ## Yetkilendirme seçicisi ve spawn yönlendirmesi Kontrol Panelinin **Alt ajan yetkilendirmesi** seçicisi `injectionModel`'i ve diff --git a/docs-site/src/content/docs/tr/reference/cli/lifecycle.md b/docs-site/src/content/docs/tr/reference/cli/lifecycle.md index 96ca2b0a669..cefd3d6c106 100644 --- a/docs-site/src/content/docs/tr/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/tr/reference/cli/lifecycle.md @@ -237,6 +237,16 @@ saniyeleri kabul eder. CLI JSON, `status`'un `ready`, `pending`, `failed` veya için 0; hazır değil, beklemede, başarısız, zaman aşımı veya erişilemez için 1; ve geçersiz bağımsız değişkenler için 64'tür. +Proxy başlatılırken Codex ana dizininin bulunamadığı bildirilirse Codex’i bir kez açın veya `CODEX_HOME` değişkenini Codex’in daha önce hazırladığı dizine ayarlayın. Ardından `ocx sync` komutunu çalıştırın. Başarılı bir eşitleme yönlendirmeyi düzeltir, ancak `failed` durumu çalışan sürecin başlangıç sonucunu göstermeye devam eder. Proxy’yi yeniden başlatın ve yeni sürecin hazır olup olmadığını `ocx ready` ile kontrol edin. + +CLI ile yönetilen hizmet için kayıtlı `CODEX_HOME` ve `OPENCODEX_HOME` değerlerini kullanın. Eski hizmet tanımında bu yollar yoksa aynı ayarlarla bir kez `ocx service repair` çalıştırın. Gerekirse Codex ana dizinini hazırlayın, `ocx sync` komutunu çalıştırın ve hizmeti yeniden başlatın. Proxy’yi masaüstü uygulaması yönetiyorsa uygulamadan yeniden başlatın. + +CLI hizmetini mevcut başka bir Codex ana dizinine taşımak için ilk ayarlarla `ocx service uninstall` çalıştırın. Hizmet kaldırıldığı halde yerel Codex yapılandırması geri yüklenemediyse bildirilen hatayı giderip aynı ayarlarla `ocx restore` çalıştırın. + +Windows’ta geri yükleme başarısız olup bekleyen bir temizlik kaydı bırakırsa dizinleri değiştirmeden önce hizmetin sahibi olan kurulumda ilk dizin ayarlarıyla `ocx stop` çalıştırın. Bu kayıt dururken `ocx update` paketi değiştirmeyi reddeder. + +Kaldırma ve geri yükleme başarılı olunca `OPENCODEX_HOME` değerini koruyun, yeni `CODEX_HOME` değerini seçin ve ilk kurulumdaki arka uç ve seçeneklerle `ocx service install` çalıştırın. Yeni ayarlarla `ocx sync` çalıştırıp `ocx ready` ile durumu kontrol edin. Başlatma başarısızsa yukarıdaki kurtarma adımlarını uygulayın. + ### `ocx doctor` Salt okunur ortam ve bağlantı tanılamalarını çalıştırın: durum yolları ve dosya diff --git a/docs-site/src/content/docs/tr/reference/cli/messaging.md b/docs-site/src/content/docs/tr/reference/cli/messaging.md index ca71f016e8c..1377182d678 100644 --- a/docs-site/src/content/docs/tr/reference/cli/messaging.md +++ b/docs-site/src/content/docs/tr/reference/cli/messaging.md @@ -14,6 +14,9 @@ komutu, kayıtlı konuşmalar için isteğe bağlı MCP araçları sunar ve kıs stdio app-server başlatır. Kayıtlı konuşmaların canlı olduğu doğrulanmaz; `queued` yanıtı işlenmiş veya yanıtlanmış anlamına gelmez. Kurulum ve sınırlar için [İngilizce MCP başvurusuna](/reference/cli/messaging/#mcp-queue-host) bakın. +Claude Code CLI ve Claude Desktop'ın Code sekmesi için +[istemci kurulumu ve yanıtı doğrulama](/reference/cli/messaging/#send-from-claude-code-and-check-the-reply) +adımlarına bakın. Projedeki `.mcp.json` dosyası Code oturumlarına uygulanır. `--allow-reply-read` seçeneği ayrıca `codex_read_reply` ve süre sınırlı `codex_wait_reply` araçlarını açar ve kayıtlı diff --git a/docs-site/src/content/docs/tr/troubleshooting/update-failed.md b/docs-site/src/content/docs/tr/troubleshooting/update-failed.md index 91ff412f68a..c88de504397 100644 --- a/docs-site/src/content/docs/tr/troubleshooting/update-failed.md +++ b/docs-site/src/content/docs/tr/troubleshooting/update-failed.md @@ -171,11 +171,12 @@ sürerse tam `ocx update` terminal çıktısı, `npm config get prefix` ve ## Masaüstü güncellemesi “Installing update…” aşamasında takılıyorsa OpenCodex masaüstü uygulamasında **Install update**, uygulamayı değiştirmeden ve -yeniden başlatmadan önce yükleyiciyi GitHub Releases'ten indirir. Bilinen sürümde -indirme/kurulum başarısızsa elle indirme ipucu ve o sürümün yayın bağlantısı gösterilir. +yeniden başlatmadan önce yükleyiciyi GitHub Releases'ten indirir ve imzasını doğrular. +Pencere, imza doğrulama hatasını, proxy'nin belirlenemediğini veya durdurulamadığını, +durdurma işleminin zaten sürdüğünü ya da yükleyicinin başarısız olduğunu bildirir. +Zaman aşımı durumunda yeniden denemeden önce güncelleme durumunu kontrol edin. -“Installing update…” takılır veya zaman aşımına uğrarsa ağınız GitHub yayın -indirmelerini yavaşlatıyor veya engelliyor olabilir. Hatadaki bağlantıyı kullanın +Paket indirilemezse ve sürüm biliniyorsa pencere o sürümün bağlantısını gösterir. Bağlantıyı kullanın ya da [yayınlar sayfasında](https://github.com/lidge-jun/opencodex/releases) aynı sürümü bulup işletim sisteminize ve mimarinize uygun yükleyiciyi indirin. Önizleme sürümlerinin ayrı sayfaları vardır; uygulamanın önerdiği sürümü seçin. diff --git a/docs-site/src/content/docs/troubleshooting/update-failed.md b/docs-site/src/content/docs/troubleshooting/update-failed.md index 9fcc39cf7c5..c6894268b2d 100644 --- a/docs-site/src/content/docs/troubleshooting/update-failed.md +++ b/docs-site/src/content/docs/troubleshooting/update-failed.md @@ -226,11 +226,12 @@ A default pnpm 11 or 12 setup passes this check and updates normally with `ocx u ## Desktop app update stalls or fails on "Installing update…" In the OpenCodex desktop app, **Install update** downloads the installer from GitHub -Releases before replacing the app and restarting. A failed download or installation with -a known version shows a manual-download hint and a link to that version's release page. +Releases and verifies its signature. The update window reports whether verification failed, +the runtime could not stop or be identified, another stop is in progress, or the platform +installer failed. If the window times out, check the update status before retrying. -If `Installing update…` stalls or times out, GitHub release downloads may be slow or -blocked by your network. Use the release link in the error, or find the same version on +If the package download fails, the window links to the offered version when it is known. +Use that link, or find the same version on the [OpenCodex releases page](https://github.com/lidge-jun/opencodex/releases), and download the installer for your operating system and architecture. Preview versions have their own release pages; choose the version the app offered. diff --git a/docs-site/src/content/docs/troubleshooting/windows-loopback-startup.md b/docs-site/src/content/docs/troubleshooting/windows-loopback-startup.md index 41dde54540e..4eb015be858 100644 --- a/docs-site/src/content/docs/troubleshooting/windows-loopback-startup.md +++ b/docs-site/src/content/docs/troubleshooting/windows-loopback-startup.md @@ -8,7 +8,11 @@ On some Windows hosts, a connection to an unused local port such as with “Proxy ownership is unverified” or “Shared-client owner could not be verified.” The Task Scheduler service can then retry and exit repeatedly. -When a startup connection attempt times out, OpenCodex can briefly bind the +Some hosts reject the connection immediately instead, for example with +`connect EACCES ::1:10100` when IPv6 loopback traffic is filtered. OpenCodex +treats that the same way as a timeout. + +When a startup connection attempt times out or is denied, OpenCodex can briefly bind the same address and port exclusively. It also checks for listeners bound to all addresses in that address family, which can overlap a Windows loopback bind. Startup continues only after the ownership checks permit it. A busy port, an diff --git a/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md b/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md index 81796822e10..4d93d4dd8ff 100644 --- a/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md +++ b/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init` 会引导你完成: -1. **选择 provider** — 从内置 registry 的 111 个预设中选择一个,或选择 `custom` 手动输入 base URL 和 adapter。 +1. **选择 provider** — 从内置 registry 的 112 个预设中选择一个,或选择 `custom` 手动输入 base URL 和 adapter。 2. **API key** — 粘贴一个 key,或引用一个环境变量,例如 `${ANTHROPIC_API_KEY}`。 3. **默认模型** — 对于 key、本地和 custom provider,接受预设值或输入模型 id。 4. **代理端口** — 默认为 `10100`。 diff --git a/docs-site/src/content/docs/zh-cn/guides/claude-code.md b/docs-site/src/content/docs/zh-cn/guides/claude-code.md index 7839ddc4e48..49632f186bd 100644 --- a/docs-site/src/content/docs/zh-cn/guides/claude-code.md +++ b/docs-site/src/content/docs/zh-cn/guides/claude-code.md @@ -505,8 +505,8 @@ Search 和图像描述沿用仓库已有的 Claude Code OAuth fingerprint 先例 | Messages 输入 | Responses 输出 | | --- | --- | -| 顶层 `system` | `instructions`(文本块以 `\n\n` 连接) | -| `messages[].role: "system"` | 同样合并到 `instructions` | +| 顶层 `system` | `instructions`(文本块以 `\n\n` 连接);通过 Codex 登录使用 GPT-6.2 Sol 和 Astra 时,改为作为第一条 `developer` 消息发送,以便缓存 | +| `messages[].role: "system"` | 在原位置转换为 `developer` 消息 | | 用户文本 / 图像 | `input_text` / `input_image`(base64 → data URL) | | Assistant 文本 | `output_text` | | Assistant `tool_use` | `function_call`(`input` → JSON 字符串化的 `arguments`) | diff --git a/docs-site/src/content/docs/zh-cn/guides/image-bridge.md b/docs-site/src/content/docs/zh-cn/guides/image-bridge.md index 72722b56f56..4753eb20839 100644 --- a/docs-site/src/content/docs/zh-cn/guides/image-bridge.md +++ b/docs-site/src/content/docs/zh-cn/guides/image-bridge.md @@ -30,7 +30,7 @@ Image Bridge 的选项位于 `~/.opencodex/config.json` 的 `images` 下。桥 { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -40,7 +40,7 @@ Image Bridge 的选项位于 `~/.opencodex/config.json` 的 `images` 下。桥 | 选项 | 默认值 | 说明 | | --- | --- | --- | | `bridgeEnabled` | `false` | 总开关。设为 `true` 以启用桥接。默认关闭,以避免意外产生 xAI 费用。 | -| `bridgeModel` | `grok-imagine-image-quality` | 发送提示词到的 xAI 图像模型 ID。 | +| `bridgeModel` | `grok-imagine-image-2.0` | 发送提示词到的 xAI 图像模型 ID。 | | `maxRounds` | `3` | 每个回合的最大图像生成循环迭代次数。会向下取整为整数,并限制在 `[0, 10]`;非有限值会回退到 `3`。 | | `timeoutMs` | `60000` | 每次调用的 xAI 截止时间,单位毫秒。有限且为正的值会向下取整后传入 xAI 请求。 | | `artifactsKeepCount` | `200` | 在 `artifacts/` 下保留的最大文件数。超过后,会在每次完成调用后删除最旧的文件。设为 `0` 或负值可禁用清理。 | @@ -67,3 +67,5 @@ Image Bridge 只会在 **Responses** 回合中生效,且仅当 `/v1/responses` - **Web 搜索优先。** 在支持 web-search sidecar 循环的 adapter 上,如果同一回合同时请求了 web 搜索和图像生成,会先运行 web-search,图像生成会被跳过。Cursor/`runTurn` adapter 目前不能使用该 sidecar,因此这些双工具回合中图像桥接仍可能运行。 - **会产生 xAI 成本。** 通过 xAI 进行图像生成需要有效的 xAI 订阅或 API credits。 - **仅支持流式。** 桥接通过拦截 SSE 响应流实现;`stream: false` 的请求会以 400 错误被拒绝。 + +默认模型为 `grok-imagine-image-2.0`。`quality` 支持 `low`、`medium`、`auto`;OpenAI 的 `high` 和 `hd` 映射为 `medium`。已停用的 `grok-imagine-image-quality`(以及自 2026-05-15 起重定向到它的 `grok-imagine-image-pro`)由 2.0 以低质量提供。价格取决于质量和分辨率;编辑每张输入图片加收 $0.01。`/v1/images/edits` 中继先去除重复项,最多转发五张输入图片;`image_gen` 桥接工具只发送一张。 diff --git a/docs-site/src/content/docs/zh-cn/guides/providers.md b/docs-site/src/content/docs/zh-cn/guides/providers.md index 791b46ba2b7..ffbe65d2206 100644 --- a/docs-site/src/content/docs/zh-cn/guides/providers.md +++ b/docs-site/src/content/docs/zh-cn/guides/providers.md @@ -222,7 +222,7 @@ API Key 提供商,也不负责让 WorkBuddy 桌面客户端使用 OpenCodex ## 3. API 密钥目录 -opencodex 内置 111 个预设:89 个密钥预设、18 个 OAuth 预设、3 个本地预设,以及 1 个默认的 +opencodex 内置 112 个预设:90 个密钥预设、18 个 OAuth 预设、3 个本地预设,以及 1 个默认的 ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提供商的控制台,验证并保存密钥。 验证因提供商而异。主要条目包括: diff --git a/docs-site/src/content/docs/zh-cn/guides/video-bridge.md b/docs-site/src/content/docs/zh-cn/guides/video-bridge.md index 0fb0746dab9..4f774238838 100644 --- a/docs-site/src/content/docs/zh-cn/guides/video-bridge.md +++ b/docs-site/src/content/docs/zh-cn/guides/video-bridge.md @@ -38,7 +38,7 @@ Video Bridge 允许你通过 opencodex 路由的任意非 OpenAI 模型使用 xA "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -48,7 +48,7 @@ Video Bridge 允许你通过 opencodex 路由的任意非 OpenAI 模型使用 xA | 选项 | 默认值 | 说明 | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | 总开关,必须显式启用。 | -| `videoBridgeModel` | `"grok-imagine-video"` | xAI 视频模型 id。 | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | xAI 视频模型 id。 | | `videoMaxRounds` | `2` | 在强制输出最终答案前允许的最大视频生成轮数。 | | `videoTimeoutMs` | `300000`(5 分钟) | 单个视频的超时时间,包括轮询在内。 | | `videoProvider` | 未设置(xAI) | 可选的 API 密钥提供方,使用其自身的 `baseUrl` 和密钥处理 `video_gen`。参见[选择视频提供方](#选择视频提供方)。 | @@ -71,7 +71,7 @@ Video Bridge 允许你通过 opencodex 路由的任意非 OpenAI 模型使用 xA "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -98,16 +98,32 @@ Video Bridge 允许你通过 opencodex 路由的任意非 OpenAI 模型使用 xA | 参数 | 类型 | 范围 | 说明 | |-----------|------|-------|-------------| -| `prompt` | string | required | 详细的视频生成提示词 | +| `prompt` | string | 有图像或帧时可选 | 文本提示词 | | `duration` | integer | 1-15 | 视频时长,单位为秒 | -| `resolution` | string | `"480p"`, `"720p"` | 视频分辨率 | -| `aspect_ratio` | string | 7 种比例 | `16:9`、`9:16`、`1:1`、`4:3`、`3:4`、`3:2`、`2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | 取决于模型;使用 `last_frame`、`keyframes` 或 `reference_images` 时最高为 720p | +| `aspect_ratio` | string | 取决于模型 | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; 仅为 `image` 添加动画时会被拒绝,图像保留原有比例 | +| `image` | string | 首帧 | HTTPS URL、数据 URL 或已记录的产物 | +| `last_frame` | string | 仅限 1.5 | 末帧 | +| `keyframes` | array | 1.5,最多 4 | `{image, timestamp_s}`; 时间戳必须严格位于片段内部(省略 `duration` 时为 8 s) | +| `reference_images` | array | 1.5: 14,经典版: 7 (≤ 10 s) | 参考图像;经典模型不能将其与 `image` 组合 | + +模型无法满足的设置会在任何付费调用前被拒绝,而不会被忽略。 + +### 模型和图像输入 + +| 模型 | 分辨率 | 输入 | 每秒 (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p 原生 | 首帧/末帧, 4 关键帧, 14 参考图 (720p 最多) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (默认) | 480p / 720p / 1080p 放大 | 首帧 | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | 首帧, 7 参考图 | $0.05 / $0.07 / — | + +要固定帧或使用参考图,请将 `images.videoBridgeModel` 设置为 `grok-imagine-video-1.5`。已知模型支持九种宽高比;未知模型保留七种比例和 480p/720p,不支持图像输入。支持 HTTPS URL 和解码后不超过 10 MiB 的 PNG/JPEG/WebP 数据 URL。图像桥下载的图像可在一小时内通过产物 URL、绝对路径或 `file:` URL 引用;桥使用保存的源 URL,绝不读取本地文件。此引用仅适用于固定的 xAI 目标,不适用于自定义 `images.videoProvider`。内联结果没有源 URL,临时 URL 也可能提前过期。 + ## 限制 - **默认使用 xAI**:未设置 `videoProvider` 时,视频生成使用 xAI 的 Grok Imagine Video API;其他后端必须实现相同的异步 API - **异步**:视频生成需要 30-120 秒 -- **费用**:视频生成是 xAI 的付费功能(约 `480p` 每秒 `$0.05`,`720p` 每秒 `$0.07`) - **每次调用只生成一个视频**:每次 `video_gen` 调用只会生成一个视频 - **可与图片桥接共存**:两种桥接可以同时启用 - **Web 搜索优先级**:当某一轮启用了 web search sidecar(非 `runTurn` adapter)时,视频桥接会被跳过,这两者不能并发运行。系统会发出 `console.warn`,方便你在日志中识别这一情况。 diff --git a/docs-site/src/content/docs/zh-cn/guides/web-dashboard.md b/docs-site/src/content/docs/zh-cn/guides/web-dashboard.md index e7422191cfb..5729d5824ca 100644 --- a/docs-site/src/content/docs/zh-cn/guides/web-dashboard.md +++ b/docs-site/src/content/docs/zh-cn/guides/web-dashboard.md @@ -108,19 +108,28 @@ Logs 可组合被拦截请求、提供商、完整模型名、状态、时间、 **Models** 开关表示 Codex 中的最终可见状态。路由模型只有在 provider allowlist 中(或未设置 allowlist)且未被禁用时才会开启。开启模型会原子地协调两个过滤条件;**全部开启** 会清除 allowlist,因此以后新发现的模型也会开启。 +**全部**标签页(`#models/overall`)按目录顺序在一个列表中显示所有提供方的全部模型,提供搜索框、**全部** / **已开启** / **已关闭** +筛选和同样的开关。两个标签页读取同一状态并共用一个保存队列,因此在一处的修改会立即显示在另一处。 + ### 在提供方工作区管理模型 -在提供方的**模型**标签页中,**删除**会移除已保存的自定义定义。原有的原生模型或实时发现的模型可能 -重新显示,因此模型数量可能保持不变。**隐藏**只改变目录可见性,不会删除定义,也不会改变直接路由策略。 -点击**在模型中管理可见性**可打开**模型**页面并恢复显示;即使提供方标签页已没有任何模型行,也能使用此入口。 +提供方的**模型**标签页会列出该提供方的全部模型(包括已关闭的),每个模型都有与**模型**页面相同的开关; +两个页面读写同一状态。开关会立即保存。在这次保存及随后的重新读取完成前,其他开关、**添加**和**删除**都会等待, +因此同一时间只有一项修改在进行;切换到其他提供方不会取消它,但在完成前离开**提供方**页面可能会取消请求;是否已保存以下次加载的结果为准。关闭模型只改变目录可见性,不会删除定义, +也不会改变直接路由策略。点击**在模型中管理可见性**会打开**模型**页面。 + +**删除**会移除已保存的自定义定义。原有的原生模型或实时发现的模型可能重新显示,因此模型数量可能保持不变。 -**添加**会保存自定义定义,但不会清除已有的隐藏状态或提供方选择规则。保存后的模型可能仍被隐藏。 -如果模型已存在,请在**模型**页面管理其可见性。已确认保存时,即使目录刷新失败,定义也已保存; +**添加**会保存自定义定义,但不会解除已有的关闭状态或提供方选择规则。保存后的模型可能仍处于关闭状态, +用它的开关即可开启。已确认保存时,即使目录刷新失败,定义也已保存; 请按刷新提示操作,不要重复添加。若无法确认更改结果,请先刷新模型状态,再重试。 提供方的模型数量统计服务器返回的当前模型清单中未禁用的唯一条目,计数在搜索和显示数量限制之前进行。 它不是允许列表的大小或实时发现的模型数量,也不能证明条目来自上游发现。选择标记和发现信息与该计数分开显示。 +该计数显示在提供方列表中。提供方**模型**标签页的标题则显示已开启的模型数与总数:总数包括已关闭在内的所有列出条目, +是否开启按与**模型**页面相同的规则判断:未被禁用,且是原生模型、提供方未设置 allowlist,或 allowlist 包含它。 + ## 委派选择器与生成路由的区别 Dashboard 的 **Sub-agent delegation** 选择器会保存 `injectionModel`,以及可选的 diff --git a/docs-site/src/content/docs/zh-cn/reference/cli/lifecycle.md b/docs-site/src/content/docs/zh-cn/reference/cli/lifecycle.md index 9282a43eded..61b8180824d 100644 --- a/docs-site/src/content/docs/zh-cn/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/zh-cn/reference/cli/lifecycle.md @@ -158,6 +158,16 @@ ocx status --json 输出 `{ready, status, pid, port}`,其中 `status` 为 `ready`、`pending`、`failed` 或 `unreachable`。退出码:就绪为 0;未就绪、pending、failed、超时或无法连接为 1;参数无效为 64。 +如果代理启动时提示找不到 Codex 主目录,请先启动一次 Codex,或将 `CODEX_HOME` 指向 Codex 已初始化的目录,然后运行 `ocx sync`。同步成功后路由会恢复,但 `failed` 仍表示当前进程启动时的结果。请重启代理,再运行 `ocx ready` 检查新进程是否就绪。 + +对于由 CLI 管理的服务,请使用注册时的 `CODEX_HOME` 和 `OPENCODEX_HOME`。如果旧版服务定义中缺少这些路径,请使用相同设置运行一次 `ocx service repair`。按需初始化 Codex 主目录,运行 `ocx sync`,再重启服务。如果代理由桌面应用管理,请在应用中重启。 + +如需将 CLI 服务迁移到另一个已有的 Codex 主目录,请先使用原设置运行 `ocx service uninstall`。如果服务已卸载,但恢复原生 Codex 配置失败,请解决提示的错误,再用相同设置运行 `ocx restore`。 + +在 Windows 上,如果恢复失败后留下了待清理记录,请在切换主目录前,从原先管理服务的安装实例使用原主目录设置运行 `ocx stop`。记录仍存在时,`ocx update` 会拒绝替换软件包。 + +卸载和恢复都成功后,保留 `OPENCODEX_HOME`,选择新的 `CODEX_HOME`,再使用原后端和选项运行 `ocx service install`。使用新设置运行 `ocx sync`,并用 `ocx ready` 检查状态。如果启动失败,请按上文步骤恢复。 + ### `ocx doctor` 运行只读的环境与连通性诊断:状态路径和文件系统类型、WSL 双重安装、代理环境/配置、ChatGPT 可达性、Codex 插件和项目配置警告,以及待处理的历史迁移。Codex app-home 定位部分也会检测狭义的 Windows Orca 运行时 home 不匹配,并在适用时解释服务迁移。此诊断展示的路径会对操作系统用户名进行脱敏。Doctor 会输出修复提示,但不会自动应用。 diff --git a/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md b/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md index b2196e4e7a0..0c163353f4d 100644 --- a/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md +++ b/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md @@ -13,7 +13,7 @@ ocx init `ocx init` 會引導你完成: -1. **選擇 provider** —— 從內建 registry 的 111 個預設中選擇一個,或選擇 `custom` 手動輸入 +1. **選擇 provider** —— 從內建 registry 的 112 個預設中選擇一個,或選擇 `custom` 手動輸入 base URL 和 adapter。 2. **API key** —— 貼上一個 key,或引用一個環境變數,例如 `${ANTHROPIC_API_KEY}`。 3. **預設模型** —— 對於 API key、本機和 custom provider,可接受預設值或輸入模型 id。 diff --git a/docs-site/src/content/docs/zh-tw/guides/claude-code.md b/docs-site/src/content/docs/zh-tw/guides/claude-code.md index 102534048a6..168fc843e18 100644 --- a/docs-site/src/content/docs/zh-tw/guides/claude-code.md +++ b/docs-site/src/content/docs/zh-tw/guides/claude-code.md @@ -564,8 +564,8 @@ Search 和圖像描述沿用儲存庫已有的 Claude Code OAuth fingerprint 先 | Messages 輸入 | Responses 輸出 | | --- | --- | -| 頂層 `system` | `instructions`(文字塊以 `\n\n` 連線) | -| `messages[].role: "system"` | 同樣合併到 `instructions` | +| 頂層 `system` | `instructions`(文字塊以 `\n\n` 連線);透過 Codex 登入使用 GPT-6.2 Sol 與 Astra 時,改為第一則 `developer` 訊息送出,以便快取 | +| `messages[].role: "system"` | 在原位置轉為 `developer` 訊息 | | 使用者文字 / 圖像 | `input_text` / `input_image`(base64 → data URL) | | Assistant 文字 | `output_text` | | Assistant `tool_use` | `function_call`(`input` → JSON 字串化的 `arguments`) | diff --git a/docs-site/src/content/docs/zh-tw/guides/image-bridge.md b/docs-site/src/content/docs/zh-tw/guides/image-bridge.md index a8e49cfe924..55d2652db16 100644 --- a/docs-site/src/content/docs/zh-tw/guides/image-bridge.md +++ b/docs-site/src/content/docs/zh-tw/guides/image-bridge.md @@ -30,7 +30,7 @@ Image Bridge 選項位於 `~/.opencodex/config.json` 的 `images` 之下。Bridg { "images": { "bridgeEnabled": true, - "bridgeModel": "grok-imagine-image-quality", + "bridgeModel": "grok-imagine-image-2.0", "maxRounds": 3, "timeoutMs": 60000 } @@ -40,7 +40,7 @@ Image Bridge 選項位於 `~/.opencodex/config.json` 的 `images` 之下。Bridg | 選項 | 預設值 | 說明 | | --- | --- | --- | | `bridgeEnabled` | `false` | 總開關。設 `true` 啟用 bridging。預設關閉以避免非預期的 xAI 費用。 | -| `bridgeModel` | `grok-imagine-image-quality` | 要將 prompt 送往的 xAI 圖片模型 id。 | +| `bridgeModel` | `grok-imagine-image-2.0` | 要將 prompt 送往的 xAI 圖片模型 id。 | | `maxRounds` | `3` | 每回合的最大圖片生成迴圈迭代數。向下取整為整數並限制在 `[0, 10]`;非有限值回退到 `3`。 | | `timeoutMs` | `60000` | 每次呼叫的 xAI 期限(毫秒)。有限正值會向下取整並傳給 xAI 請求。 | | `artifactsKeepCount` | `200` | `artifacts/` 下保留的最大檔案數。超過時,每次履行呼叫後刪除最舊的檔案。設為 `0` 或負值可停用修剪。 | @@ -67,3 +67,5 @@ Image Bridge 僅在選取了**非 OpenAI** 模型、且 **Responses** 回合的 - **網頁搜尋優先**,於支援網頁搜尋 sidecar 迴圈的 adapter 上。若同一回合同時請求網頁搜尋與圖片生成,會執行網頁搜尋並略過圖片生成。Cursor/`runTurn` adapter 目前無法使用該 sidecar,因此 image bridge 對那些雙工具回合仍可能執行。 - **適用 xAI 費用。** 透過 xAI 的圖片生成需要有效的 xAI 訂閱或 API 額度。 - **僅限串流。** Bridge 透過攔截 SSE 回應串流運作;帶有 `stream: false` 的請求會以 400 錯誤拒絕。 + +預設模型為 `grok-imagine-image-2.0`。`quality` 支援 `low`、`medium`、`auto`;OpenAI 的 `high` 和 `hd` 會轉成 `medium`。已停用的 `grok-imagine-image-quality`(以及自 2026-05-15 起重新導向到該模型的 `grok-imagine-image-pro`)由 2.0 以低品質提供。價格取決於品質和解析度;編輯每張輸入圖片加收 $0.01。`/v1/images/edits` 中繼會先去除重複項,最多轉送五張輸入圖片;`image_gen` 橋接工具只傳送一張。 diff --git a/docs-site/src/content/docs/zh-tw/guides/providers.md b/docs-site/src/content/docs/zh-tw/guides/providers.md index 348135b753d..a33b7a71825 100644 --- a/docs-site/src/content/docs/zh-tw/guides/providers.md +++ b/docs-site/src/content/docs/zh-tw/guides/providers.md @@ -264,7 +264,7 @@ database 並移除目前的 WAL、SHM 與 journal sidecar,再發布先前的 s ## 3. API 金鑰目錄 -opencodex 內建 111 個 preset:89 個 key-based、18 個 OAuth、3 個 local,以及 1 個預設 ChatGPT-forward +opencodex 內建 112 個 preset:90 個 key-based、18 個 OAuth、3 個 local,以及 1 個預設 ChatGPT-forward preset。儀表板的 **Add provider** picker 會開啟 key provider 的 dashboard、驗證金鑰並儲存;驗證方式 依 provider 而異。主要條目如下。 diff --git a/docs-site/src/content/docs/zh-tw/guides/video-bridge.md b/docs-site/src/content/docs/zh-tw/guides/video-bridge.md index 55b483331d9..25fa2f5da90 100644 --- a/docs-site/src/content/docs/zh-tw/guides/video-bridge.md +++ b/docs-site/src/content/docs/zh-tw/guides/video-bridge.md @@ -39,7 +39,7 @@ Video Bridge 讓你透過 opencodex 路由的任何非 OpenAI 模型,使用 xA "images": { "bridgeEnabled": true, "videoBridgeEnabled": true, - "videoBridgeModel": "grok-imagine-video", + "videoBridgeModel": "grok-imagine-video-1.5-lite", "videoMaxRounds": 2, "videoTimeoutMs": 300000 } @@ -49,7 +49,7 @@ Video Bridge 讓你透過 opencodex 路由的任何非 OpenAI 模型,使用 xA | 選項 | 預設值 | 說明 | |--------|---------|-------------| | `videoBridgeEnabled` | `false` | 總開關。必須明確啟用。 | -| `videoBridgeModel` | `"grok-imagine-video"` | xAI 影片模型 id。 | +| `videoBridgeModel` | `"grok-imagine-video-1.5-lite"` | xAI 影片模型 id。 | | `videoMaxRounds` | `2` | 強制最終回答前的最大 video-gen 回合數。 | | `videoTimeoutMs` | `300000`(5 分鐘) | 每支影片包含輪詢在內的逾時。 | | `videoProvider` | 未設定(xAI) | 選用的 API 金鑰提供者,以其自身的 `baseUrl` 與金鑰處理 `video_gen`。請參閱[選擇影片提供者](#選擇影片提供者)。 | @@ -72,7 +72,7 @@ Video Bridge 讓你透過 opencodex 路由的任何非 OpenAI 模型,使用 xA "images": { "videoBridgeEnabled": true, "videoProvider": "my-video-bridge", - "videoBridgeModel": "grok-imagine-video" + "videoBridgeModel": "grok-imagine-video-1.5-lite" } } ``` @@ -99,16 +99,32 @@ Video Bridge 讓你透過 opencodex 路由的任何非 OpenAI 模型,使用 xA | 參數 | 型別 | 範圍 | 說明 | |-----------|------|-------|-------------| -| `prompt` | string | 必填 | 詳細的影片生成 prompt | +| `prompt` | string | 有影像或影格時為選填 | 文字提示 | | `duration` | integer | 1-15 | 影片長度(秒) | -| `resolution` | string | `"480p"`、`"720p"` | 影片解析度 | -| `aspect_ratio` | string | 7 種比例 | `16:9`、`9:16`、`1:1`、`4:3`、`3:4`、`3:2`、`2:3` | +| `resolution` | string | `480p`, `720p`, `1080p` | 依模型而定;使用 `last_frame`、`keyframes` 或 `reference_images` 時最高為 720p | +| `aspect_ratio` | string | 依模型而定 | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9`, `5:2`; 只為 `image` 加入動畫時會遭拒,影像保留原有比例 | +| `image` | string | 首影格 | HTTPS URL、資料 URL 或已記錄的產物 | +| `last_frame` | string | 僅限 1.5 | 末影格 | +| `keyframes` | array | 1.5,最多 4 | `{image, timestamp_s}`; 時間戳必須嚴格位於片段內(省略 `duration` 時為 8 s) | +| `reference_images` | array | 1.5: 14,經典版: 7 (≤ 10 s) | 參考影像;經典模型無法將其與 `image` 結合 | + +模型無法遵守的設定會在任何付費呼叫前遭到拒絕,而不會被忽略。 + +### 模型與影像輸入 + +| 模型 | 解析度 | 輸入 | 每秒 (480p / 720p / 1080p) | +|-------|------------|--------|------------------| +| `grok-imagine-video-1.5` | 480p / 720p / 1080p 原生 | 首/末影格, 4 關鍵影格, 14 參考圖 (720p 最多) | $0.08 / $0.14 / $0.25 | +| `grok-imagine-video-1.5-lite` (預設) | 480p / 720p / 1080p 放大 | 首影格 | $0.02 / $0.03 / $0.14 | +| `grok-imagine-video` | 480p / 720p | 首影格, 7 參考圖 | $0.05 / $0.07 / — | + +若要固定影格或使用參考圖,請將 `images.videoBridgeModel` 設為 `grok-imagine-video-1.5`。已知模型支援九種長寬比;未知模型保留七種比例與 480p/720p,不支援影像輸入。支援 HTTPS URL 和解碼後不超過 10 MiB 的 PNG/JPEG/WebP 資料 URL。影像橋下載的影像可在一小時內以產物 URL、絕對路徑或 `file:` URL 參照;橋接器使用記錄的來源 URL,絕不讀取本機檔案。此參照只適用於固定的 xAI 目的地,不適用於自訂 `images.videoProvider`。內嵌結果沒有來源 URL,暫時 URL 也可能提早過期。 + ## 限制 - **預設為 xAI**:未設定 `videoProvider` 時,影片生成使用 xAI 的 Grok Imagine Video API;其他後端必須實作相同的非同步 API - **非同步**:影片生成需 30-120 秒 -- **費用**:影片生成是付費的 xAI 功能(~$0.05/秒 @480p、~$0.07/秒 @720p) - **每次呼叫一支影片**:每次 `video_gen` 呼叫產生一支影片 - **與 Image Bridge 共存**:兩個 bridge 可同時啟用 - **網頁搜尋優先**:當某回合有網頁搜尋 sidecar 啟用時(非 `runTurn` adapter),video bridge 會被略過 — 兩者無法並行執行。會發出 `console.warn` 讓你可在日誌中偵測到此情況。 diff --git a/docs-site/src/content/docs/zh-tw/guides/web-dashboard.md b/docs-site/src/content/docs/zh-tw/guides/web-dashboard.md index dfbadd971f4..a788dd209c1 100644 --- a/docs-site/src/content/docs/zh-tw/guides/web-dashboard.md +++ b/docs-site/src/content/docs/zh-tw/guides/web-dashboard.md @@ -113,19 +113,30 @@ Logs 可組合被攔截請求、供應商、完整模型名稱、狀態、時間 **Models** 開關表示 Codex 中的最終可見狀態。路由模型只有在 provider allowlist 中(或未設定 allowlist)且未被停用時才會開啟。開啟模型會原子地協調兩個過濾條件;**全部開啟** 會清除 allowlist,因此以後新發現的模型也會開啟。 +**全部**分頁(`#models/overall`)依目錄順序在同一個清單中顯示所有供應商的全部模型,提供搜尋框、**全部** / **已開啟** / **已關閉** +篩選與相同的開關。兩個分頁讀取同一狀態並共用一個儲存佇列,因此在一處的變更會立即顯示在另一處。 + +請等儲存結果出現後再離開**模型**頁面或切換伺服器;離開時會捨棄尚未送出的佇列變更。 + ### 在供應商工作區管理模型 -在供應商的**模型**分頁中,**刪除**會移除已儲存的自訂定義。原有的原生模型或即時探索到的模型可能 -重新顯示,因此模型數量可能維持不變。**隱藏**只改變目錄可見性,不會刪除定義,也不會改變直接路由規則。 -點選**在模型中管理可見性**可開啟**模型**頁面並恢復顯示;即使供應商分頁已沒有任何模型列,也能使用此入口。 +供應商的**模型**分頁會列出該供應商的全部模型(包括已關閉的),每個模型都有與**模型**頁面相同的開關; +兩個頁面讀寫同一狀態。開關會立即儲存。在這次儲存及之後的重新讀取完成前,其他開關、**新增**與**刪除**都會等待, +因此同一時間只有一項變更在進行;切換到其他供應商不會取消它,但在完成前離開**供應商**頁面可能會取消請求;是否已儲存以下次載入的結果為準。關閉模型只改變目錄可見性,不會刪除定義, +也不會改變直接路由規則。點選**在模型中管理可見性**會開啟**模型**頁面。 -**新增**會儲存自訂定義,但不會清除既有的隱藏狀態或供應商選擇規則。儲存後的模型可能仍被隱藏。 -如果模型已存在,請在**模型**頁面管理其可見性。已確認儲存時,即使目錄重新整理失敗,定義也已儲存; +**刪除**會移除已儲存的自訂定義。原有的原生模型或即時探索到的模型可能重新顯示,因此模型數量可能維持不變。 + +**新增**會儲存自訂定義,但不會解除既有的關閉狀態或供應商選擇規則。儲存後的模型可能仍處於關閉狀態, +用它的開關即可開啟。已確認儲存時,即使目錄重新整理失敗,定義也已儲存; 請依重新整理提示操作,不要重複新增。若無法確認變更結果,請先重新整理模型狀態,再重試。 供應商的模型數量統計伺服器回傳的目前模型清單中未停用的唯一項目,計數在搜尋與顯示數量限制之前進行。 它不是允許清單的大小或即時探索的模型數量,也不能證明項目來自上游探索。選擇標記與探索資訊和此計數分開顯示。 +此計數顯示在供應商清單中。供應商**模型**分頁的標題則顯示已開啟的模型數與總數:總數包括已關閉在內的所有列出項目, +是否開啟依與**模型**頁面相同的規則判斷:未被停用,且是原生模型、供應商未設定 allowlist,或 allowlist 包含它。 + ## 委派選擇器與生成路由的區別 Dashboard 的 **Sub-agent delegation** 選擇器會儲存 `injectionModel`,以及可選的 diff --git a/docs-site/src/content/docs/zh-tw/reference/cli/lifecycle.md b/docs-site/src/content/docs/zh-tw/reference/cli/lifecycle.md index 8dbd628dec6..78c8fad96ff 100644 --- a/docs-site/src/content/docs/zh-tw/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/zh-tw/reference/cli/lifecycle.md @@ -150,6 +150,16 @@ ocx status --json 透過免認證的 `GET /readyz` 端點檢查同步後的就緒狀態。就緒時回傳 `200`,或 `pending` 與終端 `failed` 時回傳附帶 `Retry-After: 1` 的 `503`。其淨化的 HTTP 身分為 `{service, version, uptime, pid, port, status, protocol, minimumClientProtocol, managementUrl, features}`。`protocol` 是 Hub 目前的遠端協定版本,`minimumClientProtocol` 是相容的最低用戶端協定版本,`managementUrl` 是瀏覽器可見的標準管理 origin。沒有 `/readyz` 的舊代理會以 `unreachable` 方式 fail closed;`/healthz` 是分開的存活檢查,而非就緒檢查。此指令預設執行一次探測;`--wait` 輪詢直到就緒或逾時,但在觀察到終端 `failed` 狀態時立即退出。預設逾時為 45 秒;`--timeout ` 需要 `--wait`,接受 1–300 的正整數秒。CLI JSON 輸出 `{ready, status, pid, port}`,其中 `status` 為 `ready`、`pending`、`failed` 或 `unreachable`。離開碼為:就緒 0;未就緒、pending、failed、逾時或 unreachable 1;無效引數 64。 +如果代理啟動時顯示找不到 Codex 家目錄,請先啟動一次 Codex,或將 `CODEX_HOME` 指向 Codex 已初始化的目錄,然後執行 `ocx sync`。同步成功後即可恢復路由,但 `failed` 仍反映目前程序啟動時的結果。請重新啟動代理,再執行 `ocx ready` 確認新程序是否就緒。 + +對於由 CLI 管理的服務,請使用登記時的 `CODEX_HOME` 和 `OPENCODEX_HOME`。如果舊版服務定義缺少這些路徑,請使用相同設定執行一次 `ocx service repair`。視需要初始化 Codex 家目錄,執行 `ocx sync`,再重新啟動服務。如果代理由桌面應用程式管理,請在應用程式中重新啟動。 + +如要將 CLI 服務移至另一個現有的 Codex 家目錄,請先用原本的設定執行 `ocx service uninstall`。若服務已移除,但還原原生 Codex 設定失敗,請修正提示的錯誤,並以相同設定執行 `ocx restore`。 + +在 Windows 上,若還原失敗後留下待清理紀錄,請在切換家目錄前,從原本管理服務的安裝實例使用原本的家目錄設定執行 `ocx stop`。紀錄仍存在時,`ocx update` 會拒絕替換套件。 + +移除和還原都成功後,保留 `OPENCODEX_HOME`,選擇新的 `CODEX_HOME`,再以原本的後端和選項執行 `ocx service install`。使用新設定執行 `ocx sync`,並以 `ocx ready` 確認狀態。若啟動失敗,請依照上方步驟復原。 + ### `ocx doctor` 執行唯讀環境與連線診斷:狀態路徑與檔案系統類型、WSL 雙重安裝、代理環境/設定、ChatGPT 可達性、Codex plugin 與專案設定警告,以及待處理的歷史遷移。Codex app-home 定向區段也會偵測窄義的 Windows Orca runtime-home 不符,並在適用時說明服務遷移。此診斷顯示的路徑會遮罩 OS 使用者名稱。Doctor 印出修復提示但不套用它們。 diff --git a/gui/classic/src/components/add-provider-form-pane.tsx b/gui/classic/src/components/add-provider-form-pane.tsx index 37c98a76545..886b012a17b 100644 --- a/gui/classic/src/components/add-provider-form-pane.tsx +++ b/gui/classic/src/components/add-provider-form-pane.tsx @@ -151,7 +151,7 @@ export function AddProviderFormPane({
{t("modal.subscriptionCliTitle")}
- +
) : preset.keyOptional ? ( diff --git a/gui/src/App.tsx b/gui/src/App.tsx index 3c58a31e02c..86cf03b58f0 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -700,7 +700,9 @@ export default function App() { {page === "logs" && } {page === "usage" && } {page === "storage" && } - {page === "remote" && !remotePairingFormOpen && setHubPairingOpen(true)} workspaceAvailable={remoteWorkspaceAvailable} onOpenWorkspace={() => navigateToPage("remote-workspace")} />} + {page === "remote" && !remotePairingFormOpen && setHubPairingOpen(true)} workspaceAvailable={remoteWorkspaceAvailable} onOpenWorkspace={() => navigateToPage("remote-workspace")} />} {page === "remote-workspace" && navigateToPage("remote")} />} {page === "codex-set" && } {shellPage === "integrations" && } diff --git a/gui/src/api.ts b/gui/src/api.ts index 8d7b25c5df8..dc48c67a2ae 100644 --- a/gui/src/api.ts +++ b/gui/src/api.ts @@ -561,6 +561,8 @@ function classify(input: RequestInfo | URL): { plane: ApiPlane; bootstrap: boole if (targets.shared.transport === "relay" && targetMatchesUrl(targets.shared, url)) return { plane: "shared", bootstrap: false }; const machinePath = relativeTargetPath(targets.machine, url); if (machinePath?.startsWith("/api/machine/") || machinePath?.startsWith("/api/codex/desktop-compatibility/")) return { plane: "machine", bootstrap: false }; + // A Remote Link Child serves its own link status and diagnostics beside /api/machine (#8985). + if (targets.link && (machinePath === "/api/link/status" || machinePath === "/api/link/diagnostics")) return { plane: "machine", bootstrap: false }; const sharedPath = relativeTargetPath(targets.shared, url); if (sharedPath?.startsWith("/api/")) return { plane: "shared", bootstrap: false }; if (url.href === new URL(targets.machine.bootstrapPath, window.location.href).href) return { plane: "machine", bootstrap: true }; diff --git a/gui/src/app-routing.ts b/gui/src/app-routing.ts index cb8e734ab65..9a3211d6c48 100644 --- a/gui/src/app-routing.ts +++ b/gui/src/app-routing.ts @@ -92,11 +92,11 @@ export function canonicalHashPath(hash: string): string { export const DASHBOARD_TAB_HASHES = ["dashboard/providers", "dashboard/models"] as const; /** - * Models owns four tabs: the catalog, Combos, Routing, and Compatibility. The catalog - * is the bare `#models`, so it has no suffix entry here - same convention Dashboard + * Models owns five tabs: the catalog, Overall, Combos, Routing, and Compatibility. The + * catalog is the bare `#models`, so it has no suffix entry here - same convention Dashboard * uses for Overview and Logs uses for the log list. */ -export const MODELS_TAB_HASHES = ["models/combos", "models/routing", "models/compatibility"] as const; +export const MODELS_TAB_HASHES = ["models/overall", "models/combos", "models/routing", "models/compatibility"] as const; /** Action deep link that opens the editable JEV Auto template in the Combos tab. */ export const JEV_AUTO_CREATE_HASH = "models/combos/jev-auto"; diff --git a/gui/src/components/AddProviderModal.tsx b/gui/src/components/AddProviderModal.tsx index 0d216147d4b..a8816b6a1d3 100644 --- a/gui/src/components/AddProviderModal.tsx +++ b/gui/src/components/AddProviderModal.tsx @@ -14,6 +14,7 @@ import { oauthTosRisk } from "../oauth-tos-risk"; import OAuthTosWarningModal from "./OAuthTosWarningModal"; import ProviderCatalog from "./provider-catalog/ProviderCatalog"; import ProviderNoteModal from "./provider-catalog/ProviderNoteModal"; +import { isTopmostOverlayLayer } from "./overlay-layers"; import type { AccountLoginRow, AccountLoginStatus } from "./provider-catalog/ProviderCatalog"; import type { CatalogPreset } from "./provider-catalog/provider-presets"; import type { CatalogLoginHint } from "./provider-catalog/login-hint-visibility"; @@ -37,6 +38,7 @@ export default function AddProviderModal({ apiBase, targetKey, existingNames, onClose, onAdded, initialTier, initialCustom = false, accountRows, accountStatus, accountBusy, accountLoginHint = null, accountLoginCaptures, onAccountLogin, onAccountCancelLogin, onAccountLogout, onAccountManage, onOpen, + stackedOverlayOpen = false, }: { apiBase: string; targetKey?: string; @@ -57,6 +59,11 @@ export default function AddProviderModal({ onAccountLogout?: (provider: string) => void; onAccountManage?: (provider: string) => void; onOpen?: () => void; + /** + * A dialog the providers page owns is open above this modal: the OAuth risk warning of an + * Accounts-tab login, the Codex login, or a page confirmation (#8849). Escape belongs to it. + */ + stackedOverlayOpen?: boolean; }) { const t = useT(); const fallbackPresets = useMemo(() => [ @@ -76,6 +83,7 @@ export default function AddProviderModal({ const aliveRef = useRef(true); const previousFocusRef = useRef(null); const dialogRef = useRef(null); + const overlayRef = useRef(null); // The full-note popup is owned here, not in the catalog: it has to render as a sibling // of this overlay, and its open state has to be visible to the Escape handler below. const [notePreset, setNotePreset] = useState(null); @@ -151,8 +159,16 @@ export default function AddProviderModal({ // Kept as a `!oauthTosPending` expression on purpose: tests/gui/oauth-tos-warning.test.ts // source-scans this file for that exact substring, because the guard is the only thing // stopping Escape from closing the modal out from under a stacked overlay. - const noOverlayOpen = !oauthTosPending && !notePreset; + // Page-owned dialogs are named by `stackedOverlayOpen`: this modal cannot see their state. + const noOverlayOpen = !oauthTosPending && !notePreset && !stackedOverlayOpen; if (e.key !== "Escape" || !noOverlayOpen) return; + // Another layer already took this Escape (a confirmation above this modal cancels and + // prevents it). Its state update can remove that layer before this listener runs, so the + // topmost check below alone would see this modal on top and close it on the same keystroke. + if (e.defaultPrevented) return; + // A layer opened elsewhere on the page can sit visually above this modal (a Settings + // confirmation's backdrop has a higher z-index); Escape is that layer's, not ours. + if (overlayRef.current && !isTopmostOverlayLayer(overlayRef.current)) return; // Escape unwinds one layer at a time: the note popup, then a live search, then the // dialog. Closing the modal on the keystroke that was meant to clear a query throws // away everything the user typed into the form behind it. @@ -161,7 +177,7 @@ export default function AddProviderModal({ }; window.addEventListener("keydown", onKey); return () => window.removeEventListener("keydown", onKey); - }, [onClose, oauthTosPending, notePreset, catalogQuery]); + }, [onClose, oauthTosPending, notePreset, catalogQuery, stackedOverlayOpen]); const presetDescription = (candidate: Preset): string | undefined => { const key = codexPresetDescriptionKey(candidate); @@ -305,7 +321,7 @@ export default function AddProviderModal({ selection drag that is released outside the card — would wipe every field the user already filled in. Close only via the × button, Escape, or a successful add. */} -
+

{preset ? t("modal.addNamed", { label: preset.label }) : t("modal.add")}

diff --git a/gui/src/components/CodexAccountPool.tsx b/gui/src/components/CodexAccountPool.tsx index 339f20c29c8..adaabc71b87 100644 --- a/gui/src/components/CodexAccountPool.tsx +++ b/gui/src/components/CodexAccountPool.tsx @@ -149,7 +149,7 @@ export default function CodexAccountPool({ apiBase, targetKey, accountModeState const [resetPopup, setResetPopup] = useState(null); const [resetConfirm, setResetConfirm] = useState(false); const [redeeming, setRedeeming] = useState(false); - const [creditDetails, setCreditDetails] = useState<{ granted_at: string; expires_at: string }[] | null>(null); + const [creditDetails, setCreditDetails] = useState<{ granted_at: string; expires_at: string | null }[] | null>(null); const [creditDetailsLoading, setCreditDetailsLoading] = useState(false); const doctorCopy = useCopyFeedback(); // A modal, a reauth, a confirmation or a catalog notice belongs to the target that @@ -499,7 +499,7 @@ export default function CodexAccountPool({ apiBase, targetKey, accountModeState setCreditDetailsLoading(true); try { const resp = await fetch(`${apiBase}/api/codex-auth/reset-credits?accountId=${encodeURIComponent(account.id)}`); - const data = await readJsonIfOk<{ credits?: { granted_at: string; expires_at: string }[] }>(resp); + const data = await readJsonIfOk<{ credits?: { granted_at: string; expires_at: string | null }[] }>(resp); if (data) { const sorted = (data.credits ?? []).sort((a, b) => new Date(a.granted_at).getTime() - new Date(b.granted_at).getTime() diff --git a/gui/src/components/CodexAutoSwitchSetting.tsx b/gui/src/components/CodexAutoSwitchSetting.tsx index 3ee30c2e56e..b5bea9522c9 100644 --- a/gui/src/components/CodexAutoSwitchSetting.tsx +++ b/gui/src/components/CodexAutoSwitchSetting.tsx @@ -3,6 +3,7 @@ import { useT } from "../i18n/shared"; import { clampNumberDraft } from "../clamp-draft"; import type { AccountPoolStrategy } from "../account-pool-strategy"; import { NumberStepper } from "./NumberStepper"; +import PoolSettingsDisclosure from "./PoolSettingsDisclosure"; export type AutoSwitchFeedback = { tone: "ok" | "err"; message: string } | null; @@ -71,128 +72,130 @@ export function CodexAutoSwitchSetting({ const describedBy = feedbackMessage ? "codex-auto-switch-desc codex-auto-switch-feedback" : "codex-auto-switch-desc"; + // Leaving the card settles an edit, exactly as leaving the threshold field and switch did when + // they shared one container. The disclosure button now sits between them, so the boundary is + // the whole card: moving focus from the field to the switch or the title commits nothing. + const settleEdit = () => { + onEditingChange(false); + if (togglePointerIntentRef.current) { + togglePointerIntentRef.current = false; + return; + } + if (enabled && !controlsDisabled) void onCommit(); + }; + const description = ( +
+ {loadError ? t("codexAuth.autoSwitchLoadFailed") : t(descriptionKey, { threshold })} +
+ ); return (
{ + if (event.currentTarget.contains(event.relatedTarget as Node | null)) return; + settleEdit(); + }} > -
- {t("codexAuth.autoSwitch")} -
- {loadError - ? t("codexAuth.autoSwitchLoadFailed") - : t(descriptionKey, { threshold })} -
-
{t("codexAuth.failureRecoveryNote")}
-
{t("codexAuth.cacheWarning")}
-
-
{ - if (event.currentTarget.contains(event.relatedTarget as Node | null)) return; - onEditingChange(false); - if (togglePointerIntentRef.current) { - togglePointerIntentRef.current = false; - return; - } - if (enabled && !controlsDisabled) void onCommit(); - }} - > - {loadError && ( - - )} - {enabled && ( - + + {description} + +
)} - {/* - The toggle sits in a slot as tall as the threshold field so the two controls share a - center line. The row is bottom-aligned (a 20px toggle against a 32px number compound - offset their centers by 6px, which is what read as a height bug), and the slot fixes - that without flipping the container to center — the mobile breakpoint deliberately - keeps bottom alignment. - - Rendered outside the `enabled` branch on purpose: if the slot came and went with the - threshold field, the toggle would shift every time auto-switch was turned off. - */} - - - -
+ control={ + + + + } + > +
+
+ {!loadError && description} +
{t("codexAuth.failureRecoveryNote")}
+
{t("codexAuth.cacheWarning")}
+
+ {enabled && ( + + )} +
+ {feedbackMessage && (
and would otherwise outlive its hidden trigger. + * + * Which cards a person opened is remembered per card id. Only open ids are stored, so a card nobody + * opened starts closed. Each toggle re-reads the stored set before writing it: two cards on one page + * would otherwise each write back the set they read at mount and drop the other's entry. + */ +import { useId, useRef, useState, type ReactNode } from "react"; +import { IconChevron } from "../icons"; +import { makeCollapseStore } from "../pages/collapse-store"; +import "../styles/pool-settings-disclosure.css"; + +const OPEN_CARDS = makeCollapseStore("ocx.accountPool.openSettings.v1"); + +export default function PoolSettingsDisclosure({ + cardId, + title, + control, + notice, + onCollapse, + children, +}: { + /** Remembers the open state: the provider id for a Claude card, a fixed name for a Codex one. */ + cardId: string; + title: ReactNode; + /** The card's switch, shown beside the title whether or not the details are open. */ + control?: ReactNode; + /** Lines that must stay visible while closed, such as why the switch is disabled. */ + notice?: ReactNode; + /** Runs before the details close, so a field inside can settle an edit in progress. */ + onCollapse?: () => void; + children: ReactNode; +}) { + const bodyId = useId(); + const buttonRef = useRef(null); + const [open, setOpen] = useState(() => OPEN_CARDS.read()?.has(cardId) ?? false); + const [closings, setClosings] = useState(0); + + const toggle = () => { + const next = !open; + if (!next) { + onCollapse?.(); + setClosings(count => count + 1); + } + const stored = new Set(OPEN_CARDS.read() ?? []); + if (next) stored.add(cardId); + else stored.delete(cardId); + OPEN_CARDS.write(stored); + setOpen(next); + // Safari does not focus a clicked button; focus left inside the details would be lost. + if (!next) buttonRef.current?.focus(); + }; + + return ( + <> +
+ + {control} +
+ {notice} + + + ); +} diff --git a/gui/src/components/QuotaLiveRefreshSetting.tsx b/gui/src/components/QuotaLiveRefreshSetting.tsx new file mode 100644 index 00000000000..44406c891db --- /dev/null +++ b/gui/src/components/QuotaLiveRefreshSetting.tsx @@ -0,0 +1,93 @@ +import { useId, useState } from "react"; +import { useT } from "../i18n/shared"; +import { clampNumberDraft } from "../clamp-draft"; +import { + QUOTA_LIVE_REFRESH_MAX_SECONDS as MAX_SECONDS, + QUOTA_LIVE_REFRESH_MIN_SECONDS as MIN_SECONDS, + useQuotaLiveRefreshPref, + writeQuotaLiveRefreshPref, +} from "../quota-live-refresh-pref"; +import { NumberStepper } from "./NumberStepper"; + +/** "Live quota updates": this browser's switch and interval for re-reading quota bars. */ +export default function QuotaLiveRefreshSetting() { + const t = useT(); + const descId = useId(); + const pref = useQuotaLiveRefreshPref(); + const [draft, setDraft] = useState(String(pref.intervalSeconds)); + // Follow a change saved elsewhere (another tab, or this row's own commit). + const [shownSeconds, setShownSeconds] = useState(pref.intervalSeconds); + if (shownSeconds !== pref.intervalSeconds) { + setShownSeconds(pref.intervalSeconds); + setDraft(String(pref.intervalSeconds)); + } + + // Empty or non-numeric input keeps the saved interval and a number outside the range is + // clamped; either way the field then shows the interval actually in effect. + const commit = (value: string) => { + const seconds = value.trim() === "" ? Number.NaN : Number(value); + const saved = Number.isFinite(seconds) ? writeQuotaLiveRefreshPref({ ...pref, intervalSeconds: seconds }) : pref; + setDraft(String(saved.intervalSeconds)); + }; + + return ( +
+
+ {t("quotaLive.title")} +
{t("quotaLive.hint")}
+
+
+ + + + +
+
+ ); +} diff --git a/gui/src/components/add-provider-form-pane.tsx b/gui/src/components/add-provider-form-pane.tsx index 25d67c5e9f5..a936cb29828 100644 --- a/gui/src/components/add-provider-form-pane.tsx +++ b/gui/src/components/add-provider-form-pane.tsx @@ -150,7 +150,7 @@ export function AddProviderFormPane({
{t("modal.subscriptionCliTitle")}
- +
) : preset.keyOptional ? ( diff --git a/gui/src/components/apikeys-workspace/ApiKeysWorkspace.tsx b/gui/src/components/apikeys-workspace/ApiKeysWorkspace.tsx index 0432c0db6bd..9456235f643 100644 --- a/gui/src/components/apikeys-workspace/ApiKeysWorkspace.tsx +++ b/gui/src/components/apikeys-workspace/ApiKeysWorkspace.tsx @@ -601,7 +601,11 @@ export default function ApiKeysWorkspace({ />
- +
diff --git a/gui/src/components/codex-account-pool-helpers.tsx b/gui/src/components/codex-account-pool-helpers.tsx index 7d712f71404..2b984cf2f42 100644 --- a/gui/src/components/codex-account-pool-helpers.tsx +++ b/gui/src/components/codex-account-pool-helpers.tsx @@ -4,10 +4,10 @@ import type { CodexAccountEntry } from "./codex-account-pool-types"; import { daysUntil, formatCreditDate, formatCreditDateTime } from "./codex-account-pool-utils"; export function CodexCreditItem({ index, grantedAt, expiresAt, isNext, locale, t }: { - index: number; grantedAt: string; expiresAt: string; isNext: boolean; locale: Locale; t: TFn; + index: number; grantedAt: string; expiresAt: string | null; isNext: boolean; locale: Locale; t: TFn; }) { - const days = daysUntil(expiresAt); - const urgent = days <= 7; + const days = expiresAt === null ? null : daysUntil(expiresAt); + const urgent = days !== null && days <= 7; return (
@@ -19,7 +19,7 @@ export function CodexCreditItem({ index, grantedAt, expiresAt, isNext, locale, t
{t("codexAuth.creditGranted", { date: formatCreditDate(grantedAt, locale) })} - {t("codexAuth.creditExpires", { date: formatCreditDateTime(expiresAt, locale), days: String(days) })} + {expiresAt === null ? t("codexAuth.creditNoExpiry") : t("codexAuth.creditExpires", { date: formatCreditDateTime(expiresAt, locale), days: String(days) })}
); diff --git a/gui/src/components/codex-account-reset-modal.tsx b/gui/src/components/codex-account-reset-modal.tsx index cc518029bc6..feac285f30a 100644 --- a/gui/src/components/codex-account-reset-modal.tsx +++ b/gui/src/components/codex-account-reset-modal.tsx @@ -18,7 +18,7 @@ export function CodexAccountResetModal({ }: { resetPopup: CodexAccountEntry; resetConfirm: boolean; - creditDetails: { granted_at: string; expires_at: string }[] | null; + creditDetails: { granted_at: string; expires_at: string | null }[] | null; creditDetailsLoading: boolean; redeeming: boolean; onClose: () => void; @@ -61,7 +61,7 @@ export function CodexAccountResetModal({ {creditDetails && creditDetails.length > 0 && (
{creditDetails.map((c, i) => ( - + ))}
)} diff --git a/gui/src/components/integration-refresh-warning.tsx b/gui/src/components/integration-refresh-warning.tsx new file mode 100644 index 00000000000..7eed3e53e5f --- /dev/null +++ b/gui/src/components/integration-refresh-warning.tsx @@ -0,0 +1,26 @@ +/** + * "Saved, but some client catalogs did not refresh" after a model visibility write. The write + * itself succeeded, so this is a warning, never an error; it lists each client that failed. + */ +import { Notice } from "../ui"; +import { useT } from "../i18n/shared"; +import type { ClientCatalogRefreshFailure } from "../model-visibility"; +import { describeIntegrationRefusalParts } from "../pages/integrations/refusal-copy"; + +export function IntegrationRefreshWarning({ failures }: { failures: readonly ClientCatalogRefreshFailure[] }) { + const t = useT(); + if (failures.length === 0) return null; + return ( +
+ + {t("models.integrationRefreshWarning")} +
    {failures.map(row =>
  • + {row.client}{row.profileId === undefined ? "" : ":" + row.profileId}: {describeIntegrationRefusalParts(t, { + clientId: row.client, message: row.reason === "integration_mutation_busy" ? t("integrations.error.busy") : row.reason, + reason: row.refusalReason, snapshotPath: row.snapshotPath, residual: row.residual, + })} +
  • )}
+
+
+ ); +} diff --git a/gui/src/components/overlay-layers.ts b/gui/src/components/overlay-layers.ts new file mode 100644 index 00000000000..10c8e6ddf05 --- /dev/null +++ b/gui/src/components/overlay-layers.ts @@ -0,0 +1,31 @@ +/** + * Which open overlay owns Escape (#8849). Several parts of the dashboard open overlays that can + * coexist: the Add Provider modal card, plain confirmations (`.dialog-backdrop`), and native modal + * ``s. Escape belongs to the one the user sees on top: + * - an open native modal dialog sits in the browser's top layer, above every in-page overlay, and + * the most recently opened one is on top; + * - among in-page overlays, the higher computed z-index wins (`.dialog-backdrop` is 900, + * `.modal-overlay` uses --z-modal), and document order breaks ties. + */ +const OVERLAY_LAYERS = "dialog[open], .modal-overlay, .dialog-backdrop"; + +function zIndexOf(element: Element): number { + const view = element.ownerDocument.defaultView; + const value = view ? Number.parseInt(view.getComputedStyle(element).zIndex, 10) : Number.NaN; + return Number.isFinite(value) ? value : 0; +} + +export function topmostOverlayLayer(): Element | undefined { + const open = [...document.querySelectorAll(OVERLAY_LAYERS)] + .filter(node => node.tagName !== "DIALOG" || (node as HTMLDialogElement).open); + const dialogs = open.filter(node => node.tagName === "DIALOG"); + if (dialogs.length > 0) return dialogs[dialogs.length - 1]; + let top: Element | undefined; + for (const node of open) if (!top || zIndexOf(node) >= zIndexOf(top)) top = node; + return top; +} + +/** True when `layer` is the overlay Escape belongs to. */ +export function isTopmostOverlayLayer(layer: Element | null): boolean { + return layer !== null && topmostOverlayLayer() === layer; +} diff --git a/gui/src/components/protocols/ProtocolTracePanel.tsx b/gui/src/components/protocols/ProtocolTracePanel.tsx index 80c336c8ab5..0b332d3371e 100644 --- a/gui/src/components/protocols/ProtocolTracePanel.tsx +++ b/gui/src/components/protocols/ProtocolTracePanel.tsx @@ -1,3 +1,4 @@ +import { isProtocol } from "../../../../src/protocols/contract"; import { parseProtocolTraceV1 } from "../../../../src/protocols/dto"; import type { TFn } from "../../i18n/shared"; import { openCompatibilityPair, protocolPairUpstream } from "../../protocol-deep-links"; @@ -12,6 +13,8 @@ import { FEATURE_DISPOSITION_KEYS, PROTOCOL_MODE_KEYS, protocolHopLabel, protoco */ export function ProtocolTracePanel({ trace, t }: { trace: unknown; t: TFn }) { const parsed = parseProtocolTraceV1(trace); + const inbound = parsed?.inbound; + const upstream = parsed?.upstream; return (

{t("logs.detail.protocol.section")}

@@ -64,13 +67,15 @@ export function ProtocolTracePanel({ trace, t }: { trace: unknown; t: TFn }) { )}
- + {isProtocol(inbound) && ( + + )} ) : (

{t("logs.detail.protocol.none")}

diff --git a/gui/src/components/protocols/protocol-labels.ts b/gui/src/components/protocols/protocol-labels.ts index 4c73f03e561..9b248e01184 100644 --- a/gui/src/components/protocols/protocol-labels.ts +++ b/gui/src/components/protocols/protocol-labels.ts @@ -1,5 +1,5 @@ import type { DeliveryMode, ProtocolHop } from "../../../../src/protocols/contract"; -import type { ProtocolTraceV1 } from "../../../../src/protocols/dto"; +import type { ProtocolTraceHop, ProtocolTraceV1 } from "../../../../src/protocols/dto"; import type { FeatureDisposition } from "../../../../src/protocols/features"; import type { TFn, TKey } from "../../i18n/shared"; @@ -33,11 +33,11 @@ const HOP_KEYS: Record = { const ARROW = " → "; -export function protocolHopLabel(hop: ProtocolHop, t: TFn): string { - return t(HOP_KEYS[hop]); +export function protocolHopLabel(hop: ProtocolTraceHop, t: TFn): string { + return hop === "gemini" ? "Gemini" : t(HOP_KEYS[hop]); } -export function protocolPathLabel(path: readonly ProtocolHop[], t: TFn): string { +export function protocolPathLabel(path: readonly ProtocolTraceHop[], t: TFn): string { return path.map(hop => protocolHopLabel(hop, t)).join(ARROW); } diff --git a/gui/src/components/provider-workspace/AccountQuotaTable.tsx b/gui/src/components/provider-workspace/AccountQuotaTable.tsx index 45e60915e89..99d759f542a 100644 --- a/gui/src/components/provider-workspace/AccountQuotaTable.tsx +++ b/gui/src/components/provider-workspace/AccountQuotaTable.tsx @@ -127,7 +127,11 @@ export function AccountQuotaTable({ accounts, strategy, renderRowContent }: Acco : table.pools.map(pool => { const cell = row.cells[pool.key]; return ( - + + {/* The card layout hides the table header, so each pool names itself on its + own line above its 5-hour and weekly bars, as v2.100.5 stacked them. The + header still names the column for assistive technology. */} + {cell ? <> {cell.fiveHour && } {cell.weekly && } diff --git a/gui/src/components/provider-workspace/AnthropicAccountPoolSettings.tsx b/gui/src/components/provider-workspace/AnthropicAccountPoolSettings.tsx index 837fc8c43a8..f623730b7d8 100644 --- a/gui/src/components/provider-workspace/AnthropicAccountPoolSettings.tsx +++ b/gui/src/components/provider-workspace/AnthropicAccountPoolSettings.tsx @@ -24,6 +24,7 @@ import { type AccountPoolStrategy, } from "../../account-pool-strategy"; import AccountPoolStrategyControls from "../AccountPoolStrategyControls"; +import PoolSettingsDisclosure from "../PoolSettingsDisclosure"; import { Select } from "../../ui"; /** The public guide section that explains pool selection, failover and its limits. */ @@ -257,187 +258,198 @@ export default function AnthropicAccountPoolSettings({ // Always allow turning the pool off; only block enabling when fewer than 2 accounts. const controlsDisabled = loading || saving || loadError || reloadRequired; const toggleDisabled = controlsDisabled || (!enabled && accountCount < 2); + // Collapsed, the card is its title and switch. A disabled switch still says why: a failed load, + // or too few accounts to turn the pool on. The rest of the status line waits behind the title. + const switchBlockedByLoad = loadError && !reloadRequired; + const switchBlockedByAccounts = !controlsDisabled && !enabled && accountCount < 2; return (
-
-
- {t("anthropicPool.title")} -
+ + {switchBlockedByLoad ? t("anthropicPool.loadFailed") : t("anthropicPool.needTwoAccounts")} +
+ )} + control={ + + } + > + {!switchBlockedByLoad && ( +
{reloadRequired ? t("anthropicPool.saveStateUnknown") - : loadError - ? t("anthropicPool.loadFailed") : loading ? t("common.loading") : enabled ? enabledStatus(t, strategy, threshold, quotaWindow) : t("anthropicPool.disabledDesc")}
-
- -
+ )} -

- {t("anthropicPool.experimentalWarning")} -

- - {accountCount < 2 && ( -
{t("anthropicPool.needTwoAccounts")}
- )} - -
- {t("anthropicPool.detailsSummary")} -

{t("anthropicPool.detailsEnabling")}

-

{t("anthropicPool.detailsFailover")}

-

{t("anthropicPool.detailsActivity")}

- -

- {t("anthropicPool.detailsGuide")} +

+ {t("anthropicPool.experimentalWarning")}

-
- {enabled && state && ( - <> - {usesConfigurableQuotaWindow &&