Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

Release v3.7.4 (#1730)

Diego Rodrigues de Sa e Souza0cd388efb8fa
diff --git a/.env.example b/.env.example
index eb3dc31fc4..e9992bfb91 100644
--- a/.env.example
+++ b/.env.example
@@ -705,6 +705,10 @@ APP_LOG_TO_FILE=true
# ── CC-compatible provider (experimental) ──
# Enable the Claude Code compatible provider endpoint.
+# This is only for third-party relays that accept Claude Code clients exclusively.
+# OmniRoute rewrites requests to pass those relays' Claude Code client validation.
+# If you only want to use Claude Code CLI, or you are not sure what these relays are,
+# keep this disabled and add a regular Anthropic-compatible provider instead.
# Used by: src/shared/utils/featureFlags.ts
# ENABLE_CC_COMPATIBLE_PROVIDER=false
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 96c734486c..d829a062b0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,42 @@
---
+## [3.7.4] — 2026-04-28
+
+### ✨ New Features
+
+- **feat(ui):** add endpoint tunnel visibility settings (#1743)
+- **feat(cli):** refresh CLI fingerprint provider profiles (#1746)
+- **feat(proxy):** implement bulk proxy import via pipe-delimited parser with update-or-create (upsert) logic and real-time preview table
+- **feat(pwa):** add fullscreen installable PWA with manifest, service worker, and cross-platform app icons (#1728)
+
+### 🔒 Security
+
+- **security:** replace insecure `Math.random` with `crypto.getRandomValues` for fallback UUID generation to resolve CodeQL CWE-338 finding (#182)
+
+### 🐛 Bug Fixes
+
+- **fix(cc-compatible):** fix CC-compatible relay format and UI copy (#1742)
+- **fix(codex):** normalize max reasoning effort for Codex routing (#1744)
+- **fix(claude-code):** fix Claude Code gateway config helper (#1745)
+- **fix(db):** reconcile legacy `create_reasoning_cache` migration tracking to prevent version shadowing on `032` and resolve startup warnings (#1734)
+- **fix(db):** intercept `007` migration to use idempotent `IF NOT EXISTS` logic via `PRAGMA table_info`, preventing syntax crashes on fresh installs (#1733)
+- **fix(cc-compatible):** preserve Claude Code system skeleton to prevent request rejection by strict compatible upstream providers (#1740)
+
+- **fix(providers):** add API key validation for image-only providers and fix Stability AI requests to use `multipart/form-data` instead of JSON (#1726)
+- **fix(codex):** preserve `previous_response_id` and `conversation_id` fields when input array is empty to prevent schema validation errors (#1729)
+- **fix(searxng):** bypass UI validation block when `apiKeyOptional` is true and fix typing errors in provider dashboard to allow saving search providers without credentials (#1721)
+- **fix(proxy):** disable HTTP keep-alive and pipelining in Undici proxy dispatcher to prevent "Socket hang up" rotation failures
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+### 🛠️ Maintenance
+
+- **workflow:** add phase 4 release monitoring instructions to `/generate-release` workflow
+- **test:** fix typescript compilation errors in unit tests to keep CI typecheck pipeline fully green
+- **test:** update responses store expectations for empty input arrays
+
+---
+
## [3.7.3] — 2026-04-28
### 🐛 Bug Fixes
diff --git a/docs/CLI-TOOLS.md b/docs/CLI-TOOLS.md
index bda30bd231..f263563759 100644
--- a/docs/CLI-TOOLS.md
+++ b/docs/CLI-TOOLS.md
@@ -121,8 +121,8 @@ Add to `~/.bashrc` (or `~/.zshrc`), then run `source ~/.bashrc`:
# OmniRoute Universal Endpoint
export OPENAI_BASE_URL="http://localhost:20128/v1"
export OPENAI_API_KEY="sk-your-omniroute-key"
-export ANTHROPIC_BASE_URL="http://localhost:20128/v1"
-export ANTHROPIC_API_KEY="sk-your-omniroute-key"
+export ANTHROPIC_BASE_URL="http://localhost:20128"
+export ANTHROPIC_AUTH_TOKEN="sk-your-omniroute-key"
export GEMINI_BASE_URL="http://localhost:20128/v1"
export GEMINI_API_KEY="sk-your-omniroute-key"
```
@@ -137,18 +137,19 @@ export GEMINI_API_KEY="sk-your-omniroute-key"
### Claude Code
```bash
-# Via CLI:
-claude config set --global api-base-url http://localhost:20128/v1
-
-# Or create ~/.claude/settings.json:
+# Create ~/.claude/settings.json:
mkdir -p ~/.claude && cat > ~/.claude/settings.json << EOF
{
- "apiBaseUrl": "http://localhost:20128/v1",
- "apiKey": "sk-your-omniroute-key"
+ "env": {
+ "ANTHROPIC_BASE_URL": "http://localhost:20128",
+ "ANTHROPIC_AUTH_TOKEN": "sk-your-omniroute-key"
+ }
}
EOF
```
+Use the unified Anthropic gateway root for Claude Code. Do not append `/v1` here.
+
**Test:** `claude "say hello"`
---
@@ -370,6 +371,7 @@ They run as internal routes and use OmniRoute's model routing automatically.
```bash
# Install all CLIs and configure for OmniRoute (replace with your key and server URL)
OMNIROUTE_URL="http://localhost:20128/v1"
+OMNIROUTE_ANTHROPIC_URL="http://localhost:20128"
OMNIROUTE_KEY="sk-your-omniroute-key"
npm install -g @anthropic-ai/claude-code @openai/codex opencode-ai cline kilocode @qwen-code/qwen-code
@@ -380,13 +382,13 @@ apt-get install -y unzip 2>/dev/null; curl -fsSL https://cli.kiro.dev/install |
# Write configs
mkdir -p ~/.claude ~/.codex ~/.config/opencode ~/.continue
-cat > ~/.claude/settings.json <<< "{\"apiBaseUrl\":\"$OMNIROUTE_URL\",\"apiKey\":\"$OMNIROUTE_KEY\"}"
+cat > ~/.claude/settings.json <<< "{\"env\":{\"ANTHROPIC_BASE_URL\":\"$OMNIROUTE_ANTHROPIC_URL\",\"ANTHROPIC_AUTH_TOKEN\":\"$OMNIROUTE_KEY\"}}"
cat > ~/.codex/config.yaml <<< "model: auto\napiKey: $OMNIROUTE_KEY\napiBaseUrl: $OMNIROUTE_URL"
cat >> ~/.bashrc << EOF
export OPENAI_BASE_URL="$OMNIROUTE_URL"
export OPENAI_API_KEY="$OMNIROUTE_KEY"
-export ANTHROPIC_BASE_URL="$OMNIROUTE_URL"
-export ANTHROPIC_API_KEY="$OMNIROUTE_KEY"
+export ANTHROPIC_BASE_URL="$OMNIROUTE_ANTHROPIC_URL"
+export ANTHROPIC_AUTH_TOKEN="$OMNIROUTE_KEY"
EOF
source ~/.bashrc
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md
index fddc751655..02e7c2843b 100644
--- a/docs/ENVIRONMENT.md
+++ b/docs/ENVIRONMENT.md
@@ -541,12 +541,17 @@ Automatic model pricing data synchronization from external sources.
| `CLOUDFLARED_BIN` | auto-detect | `src/lib/cloudflaredTunnel.ts` | Custom path to `cloudflared` binary. |
| `SEARCH_CACHE_TTL_MS` | `300000` (5 min) | `open-sse/services/searchCache.ts` | TTL for search API (Perplexity, Brave, etc.) response caching. |
| `ALLOW_MULTI_CONNECTIONS_PER_COMPAT_NODE` | `false` | `src/app/api/providers/route.ts` | Allow multiple simultaneous connections per OpenAI-compatible provider. |
-| `ENABLE_CC_COMPATIBLE_PROVIDER` | `false` | `src/shared/utils/featureFlags.ts` | Enable experimental Claude Code compatible provider endpoint. |
+| `ENABLE_CC_COMPATIBLE_PROVIDER` | `false` | `src/shared/utils/featureFlags.ts` | Reveal the experimental CC-compatible provider UI for Claude Code-only relays. |
| `CLIPROXYAPI_HOST` | `127.0.0.1` | `open-sse/executors/cliproxyapi.ts` | CLIProxyAPI bridge host (legacy integration). |
| `CLIPROXYAPI_PORT` | `5544` | `open-sse/executors/cliproxyapi.ts` | CLIProxyAPI bridge port. |
| `CLIPROXYAPI_CONFIG_DIR` | `~/.cli-proxy-api` | `src/lib/versionManager/processManager.ts` | CLIProxyAPI config directory. |
| `LOCAL_HOSTNAMES` | _(empty)_ | `open-sse/config/providerRegistry.ts` | Comma-separated additional hostnames treated as "local" (Docker service names, etc.). |
+`ENABLE_CC_COMPATIBLE_PROVIDER` is only for third-party relays that accept Claude Code clients
+exclusively. OmniRoute rewrites requests so those relays accept them. If you only want to use
+Claude Code CLI, or you are not sure what these relays are, keep this disabled and add a regular
+Anthropic-compatible provider instead.
+
---
## 21. Proxy Health
diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.md
index 4b076e1d00..1ea97b1278 100644
--- a/docs/USER_GUIDE.md
+++ b/docs/USER_GUIDE.md
@@ -272,15 +272,19 @@ Settings → Models → Advanced:
### Claude Code
-Edit `~/.claude/config.json`:
+Edit `~/.claude/settings.json`:
```json
{
- "anthropic_api_base": "http://localhost:20128/v1",
- "anthropic_api_key": "your-omniroute-api-key"
+ "env": {
+ "ANTHROPIC_BASE_URL": "http://localhost:20128",
+ "ANTHROPIC_AUTH_TOKEN": "your-omniroute-api-key"
+ }
}
```
+Use the Claude-compatible root endpoint here. Do not append `/v1` to `ANTHROPIC_BASE_URL`.
+
### Codex CLI
```bash
diff --git a/docs/i18n/ar/CHANGELOG.md b/docs/i18n/ar/CHANGELOG.md
index 5d1bff48ed..2f84624023 100644
--- a/docs/i18n/ar/CHANGELOG.md
+++ b/docs/i18n/ar/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/bg/CHANGELOG.md b/docs/i18n/bg/CHANGELOG.md
index 6b7682092e..532214bb70 100644
--- a/docs/i18n/bg/CHANGELOG.md
+++ b/docs/i18n/bg/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/bn/CHANGELOG.md b/docs/i18n/bn/CHANGELOG.md
index 35b0c6d20d..2a1f4023d1 100644
--- a/docs/i18n/bn/CHANGELOG.md
+++ b/docs/i18n/bn/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/cs/CHANGELOG.md b/docs/i18n/cs/CHANGELOG.md
index 068b2112c1..7b59dcdd81 100644
--- a/docs/i18n/cs/CHANGELOG.md
+++ b/docs/i18n/cs/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/da/CHANGELOG.md b/docs/i18n/da/CHANGELOG.md
index df2bdece33..5ac55da9b4 100644
--- a/docs/i18n/da/CHANGELOG.md
+++ b/docs/i18n/da/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/de/CHANGELOG.md b/docs/i18n/de/CHANGELOG.md
index 49897fdd31..f5814bcd58 100644
--- a/docs/i18n/de/CHANGELOG.md
+++ b/docs/i18n/de/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/es/CHANGELOG.md b/docs/i18n/es/CHANGELOG.md
index bed84623fa..ae27b1a6cc 100644
--- a/docs/i18n/es/CHANGELOG.md
+++ b/docs/i18n/es/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/fa/CHANGELOG.md b/docs/i18n/fa/CHANGELOG.md
index 13ea7e5911..a3a52dc001 100644
--- a/docs/i18n/fa/CHANGELOG.md
+++ b/docs/i18n/fa/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/fi/CHANGELOG.md b/docs/i18n/fi/CHANGELOG.md
index bb093ded7f..d4f07a7e00 100644
--- a/docs/i18n/fi/CHANGELOG.md
+++ b/docs/i18n/fi/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/fr/CHANGELOG.md b/docs/i18n/fr/CHANGELOG.md
index 59df590135..81e86bbc05 100644
--- a/docs/i18n/fr/CHANGELOG.md
+++ b/docs/i18n/fr/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/gu/CHANGELOG.md b/docs/i18n/gu/CHANGELOG.md
index 4f7e6146aa..0bbee5d7f8 100644
--- a/docs/i18n/gu/CHANGELOG.md
+++ b/docs/i18n/gu/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/he/CHANGELOG.md b/docs/i18n/he/CHANGELOG.md
index 135eadfcc6..1651d8eb2d 100644
--- a/docs/i18n/he/CHANGELOG.md
+++ b/docs/i18n/he/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/hi/CHANGELOG.md b/docs/i18n/hi/CHANGELOG.md
index 10a9fdb26c..9ea77a070e 100644
--- a/docs/i18n/hi/CHANGELOG.md
+++ b/docs/i18n/hi/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/hu/CHANGELOG.md b/docs/i18n/hu/CHANGELOG.md
index 67f3ef3cc4..f11a2c90b6 100644
--- a/docs/i18n/hu/CHANGELOG.md
+++ b/docs/i18n/hu/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/id/CHANGELOG.md b/docs/i18n/id/CHANGELOG.md
index 87aed59ee4..0f0fb403f5 100644
--- a/docs/i18n/id/CHANGELOG.md
+++ b/docs/i18n/id/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/it/CHANGELOG.md b/docs/i18n/it/CHANGELOG.md
index 2af1fbb7bb..4db3a1f2f2 100644
--- a/docs/i18n/it/CHANGELOG.md
+++ b/docs/i18n/it/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ja/CHANGELOG.md b/docs/i18n/ja/CHANGELOG.md
index 86b42fa60d..9447f5cf1b 100644
--- a/docs/i18n/ja/CHANGELOG.md
+++ b/docs/i18n/ja/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ko/CHANGELOG.md b/docs/i18n/ko/CHANGELOG.md
index 03fb452bf8..b85ba72008 100644
--- a/docs/i18n/ko/CHANGELOG.md
+++ b/docs/i18n/ko/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/mr/CHANGELOG.md b/docs/i18n/mr/CHANGELOG.md
index 98e9c5907d..f59c86f893 100644
--- a/docs/i18n/mr/CHANGELOG.md
+++ b/docs/i18n/mr/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ms/CHANGELOG.md b/docs/i18n/ms/CHANGELOG.md
index 04f8e66d2e..76d7f52c87 100644
--- a/docs/i18n/ms/CHANGELOG.md
+++ b/docs/i18n/ms/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/nl/CHANGELOG.md b/docs/i18n/nl/CHANGELOG.md
index dc3a8ac997..2edeab924f 100644
--- a/docs/i18n/nl/CHANGELOG.md
+++ b/docs/i18n/nl/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/no/CHANGELOG.md b/docs/i18n/no/CHANGELOG.md
index 33edd30b68..5508badcfd 100644
--- a/docs/i18n/no/CHANGELOG.md
+++ b/docs/i18n/no/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/phi/CHANGELOG.md b/docs/i18n/phi/CHANGELOG.md
index d917dd537a..79df01ab9c 100644
--- a/docs/i18n/phi/CHANGELOG.md
+++ b/docs/i18n/phi/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/pl/CHANGELOG.md b/docs/i18n/pl/CHANGELOG.md
index eaaf4e6040..449d906a62 100644
--- a/docs/i18n/pl/CHANGELOG.md
+++ b/docs/i18n/pl/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/pt-BR/CHANGELOG.md b/docs/i18n/pt-BR/CHANGELOG.md
index 4c783165b0..c2a65d5855 100644
--- a/docs/i18n/pt-BR/CHANGELOG.md
+++ b/docs/i18n/pt-BR/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/pt/CHANGELOG.md b/docs/i18n/pt/CHANGELOG.md
index 922f92eb2d..f57dc3fd71 100644
--- a/docs/i18n/pt/CHANGELOG.md
+++ b/docs/i18n/pt/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ro/CHANGELOG.md b/docs/i18n/ro/CHANGELOG.md
index 5f7d058fcc..64ecea4f27 100644
--- a/docs/i18n/ro/CHANGELOG.md
+++ b/docs/i18n/ro/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ru/CHANGELOG.md b/docs/i18n/ru/CHANGELOG.md
index 01d695da50..17252b3e41 100644
--- a/docs/i18n/ru/CHANGELOG.md
+++ b/docs/i18n/ru/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/sk/CHANGELOG.md b/docs/i18n/sk/CHANGELOG.md
index 96a42b609a..9ba25a9c88 100644
--- a/docs/i18n/sk/CHANGELOG.md
+++ b/docs/i18n/sk/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/sv/CHANGELOG.md b/docs/i18n/sv/CHANGELOG.md
index 06d09439fe..e5a2cf37c5 100644
--- a/docs/i18n/sv/CHANGELOG.md
+++ b/docs/i18n/sv/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/sw/CHANGELOG.md b/docs/i18n/sw/CHANGELOG.md
index 436b5e0a7f..a9f6058daf 100644
--- a/docs/i18n/sw/CHANGELOG.md
+++ b/docs/i18n/sw/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ta/CHANGELOG.md b/docs/i18n/ta/CHANGELOG.md
index d960f7dccd..acb416710e 100644
--- a/docs/i18n/ta/CHANGELOG.md
+++ b/docs/i18n/ta/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/te/CHANGELOG.md b/docs/i18n/te/CHANGELOG.md
index 28cf1383cb..2b31e03d3e 100644
--- a/docs/i18n/te/CHANGELOG.md
+++ b/docs/i18n/te/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/th/CHANGELOG.md b/docs/i18n/th/CHANGELOG.md
index e7072e3ef4..671a5c9493 100644
--- a/docs/i18n/th/CHANGELOG.md
+++ b/docs/i18n/th/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/tr/CHANGELOG.md b/docs/i18n/tr/CHANGELOG.md
index 76d74c3559..728d8d3411 100644
--- a/docs/i18n/tr/CHANGELOG.md
+++ b/docs/i18n/tr/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/uk-UA/CHANGELOG.md b/docs/i18n/uk-UA/CHANGELOG.md
index 76f7e70588..da8f950918 100644
--- a/docs/i18n/uk-UA/CHANGELOG.md
+++ b/docs/i18n/uk-UA/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/ur/CHANGELOG.md b/docs/i18n/ur/CHANGELOG.md
index 6d5b5d9acf..198881b9b8 100644
--- a/docs/i18n/ur/CHANGELOG.md
+++ b/docs/i18n/ur/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/vi/CHANGELOG.md b/docs/i18n/vi/CHANGELOG.md
index 46653db7bc..09c3dbec2d 100644
--- a/docs/i18n/vi/CHANGELOG.md
+++ b/docs/i18n/vi/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/i18n/zh-CN/CHANGELOG.md b/docs/i18n/zh-CN/CHANGELOG.md
index 30a0a503e7..b98fb404b2 100644
--- a/docs/i18n/zh-CN/CHANGELOG.md
+++ b/docs/i18n/zh-CN/CHANGELOG.md
@@ -4,12 +4,39 @@
---
-
## [Unreleased]
---
-## [3.7.2] — 2026-04-27
+## [3.7.4] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **stream:** correctly identify `thought` and `error` blocks in Antigravity/Gemini SSE streams to prevent premature 502 timeouts (#1725, #1705)
+
+---
+
+## [3.7.3] — 2026-04-28
+
+### 🐛 Bug Fixes
+
+- **fix(claude):** strip existing billing headers from system array before injecting to prevent Anthropic prompt cache misses — stacked `x-anthropic-billing-header` blocks invalidated prefix matching, causing ~100% cache_create instead of cache_read (#1712)
+- **fix(claude):** strip `output_config.format` for non-Anthropic Claude-compatible providers during passthrough — third-party Claude endpoints (MiniMax, DeepSeek via aggregators) reject structured output fields with 400 errors (#1719)
+- **fix(combo):** set terminal error state on response quality validation failure — prevents misleading `ALL_ACCOUNTS_INACTIVE` 503 when the real issue is response quality validation (#1707, #1710)
+- **fix(combo):** treat combo fallback as target-level orchestration — all non-ok responses (including generic 400s) now fall through to the next target instead of being terminal; removes complex bad-request allowlist regex (#1713)
+- **fix(codex):** restore namespace MCP tools and hosted-tool whitelist — regression from #1581 that silently dropped all MCP tool groups and Responses-API hosted tools (#1715)
+- **fix(codex):** add neutral instructions for bare chat requests — Codex Responses backend rejects requests without `instructions`, making Codex unusable for normal chat (#1709)
+- **fix(proxy):** wrap proxy assignment queries in try-catch for missing `proxy_assignments` table — Electron installs where migration 004 hasn't run no longer crash with `no such table` error (#1706)
+- **fix(migration):** improve Windows file URL path resolution in migration runner — adds direct URL path extraction and `process.cwd()` fallback for CI-built bundles with leaked build-time paths (#1704)
+- **fix(ui):** fix light mode active request payload modal — add missing `--color-card` theme token, use opaque `bg-surface` instead of translucent `bg-card/70`, add backdrop blur (#1714)
+
+### 🔄 Updates
+
+- **chore(image-models):** refresh image generation model registry — replace stale FLUX aliases with FLUX Kontext / FLUX.2 mappings, remove deprecated FLUX Redux/Depth/Canny variants (#1722)
+
+---
+
+## [3.7.2] — 2026-04-28
### ✨ New Features
@@ -30,6 +57,9 @@
- **fix(stream):** fail zombie SSE streams before accepting response — returns 504 instead of hanging indefinitely, enables combo fallback (#1693)
- **fix(combo):** complete context truncation hotfix — cache getCombos() with 10s TTL, pass allCombosData to resolveComboTargets() for nested combo resolution, consolidate duplicated context overflow regex patterns (#1685)
- **fix(codex):** raise default quota threshold from 90% to 99% to avoid premature account blocking when usable quota remains (#1697)
+- **fix(memory):** use `user` role for GLM/ZAI/Qianfan providers — providers with strict role constraints (no `system` role) now correctly receive memory context as a `user` message instead of a `system` message, preventing 422 validation errors (#1701)
+- **fix(oauth):** target specific connection by ID on re-auth token exchange — prevents duplicate account creation when re-authenticating an existing OAuth connection (#1702 — thanks @namhhitvn)
+- **feat(email-privacy):** integrate email visibility toggle in RequestLoggerV2 — log detail modal now respects global email privacy state, hiding email addresses by default (#1700 — thanks @namhhitvn)
- **fix(combo):** trigger fallback on Anthropic `Invalid signature in thinking block` errors instead of returning 400 directly (#1696)
- **fix:** combo retry loop stops immediately on client disconnect (499) (#1681)
- **fix(search):** support optional bearer auth for SearXNG (#1683)
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index 8d05e65cd2..ccf1626744 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: OmniRoute API
- version: 3.7.3
+ version: 3.7.4
description: |
OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatible
endpoint that routes requests to multiple AI providers with load balancing,
diff --git a/electron/package.json b/electron/package.json
index 1950cbfc25..7a023263f8 100644
--- a/electron/package.json
+++ b/electron/package.json
@@ -1,6 +1,6 @@
{
"name": "omniroute-desktop",
- "version": "3.7.3",
+ "version": "3.7.4",
"description": "OmniRoute Desktop Application",
"main": "main.js",
"author": {
diff --git a/llm.txt b/llm.txt
index 92e9d0c59b..99ba91f792 100644
--- a/llm.txt
+++ b/llm.txt
@@ -8,7 +8,7 @@ OmniRoute solves the problem of managing multiple AI provider subscriptions, quo
**Key value:** One endpoint (`http://localhost:20128/v1`), unlimited models, zero downtime, minimal cost.
-**Current version:** 3.7.3
+**Current version:** 3.7.4
## Tech Stack
@@ -279,7 +279,7 @@ OmniRoute solves the problem of managing multiple AI provider subscriptions, quo
└── .env.example # Environment variable template
```
-## Key Features (v3.7.3)
+## Key Features (v3.7.4)
### Core Proxy
- **160+ AI providers** with automatic format translation
diff --git a/open-sse/config/cliFingerprints.ts b/open-sse/config/cliFingerprints.ts
index a4d4742557..7d7921abf6 100644
--- a/open-sse/config/cliFingerprints.ts
+++ b/open-sse/config/cliFingerprints.ts
@@ -15,6 +15,7 @@ import {
GITHUB_COPILOT_CHAT_USER_AGENT,
getQwenOauthHeaders,
} from "./providerHeaderProfiles.ts";
+import { normalizeCliCompatProviderId } from "@/shared/utils/cliCompat";
export interface CliFingerprint {
/** Ordered list of header names (case-sensitive). Unlisted headers are appended. */
@@ -22,7 +23,7 @@ export interface CliFingerprint {
/** Ordered list of top-level JSON body fields. Unlisted fields are appended. */
bodyFieldOrder: string[];
/** User-Agent string to inject (overrides default) */
- userAgent?: string;
+ userAgent?: string | (() => string);
/** Extra headers to add */
extraHeaders?: Record<string, string>;
}
@@ -54,7 +55,9 @@ export const CLI_FINGERPRINTS: Record<string, CliFingerprint> = {
"n",
"stop",
],
- userAgent: "codex-cli",
+ // Codex builds mode-specific client headers in its executor/config. The CLI fingerprint must
+ // only preserve ordering here; overriding User-Agent with a generic value would erase the
+ // executor-provided version or user override.
},
claude: {
headerOrder: [
@@ -172,8 +175,16 @@ export const CLI_FINGERPRINTS: Record<string, CliFingerprint> = {
"Accept",
"Accept-Encoding",
],
- bodyFieldOrder: ["project", "model", "userAgent", "requestType", "requestId", "request"],
- userAgent: getAntigravityUserAgent(),
+ bodyFieldOrder: [
+ "project",
+ "model",
+ "userAgent",
+ "requestType",
+ "requestId",
+ "enabledCreditTypes",
+ "request",
+ ],
+ userAgent: getAntigravityUserAgent,
},
qwen: {
headerOrder: [
@@ -286,9 +297,10 @@ export function applyFingerprint(
headers: Record<string, string>,
body: unknown
): { headers: Record<string, string>; bodyString: string } {
+ const normalizedProvider = normalizeCliCompatProviderId(provider || "");
const fingerprintKey = isClaudeCodeCompatible(provider)
? "claude-code-compatible"
- : provider?.toLowerCase();
+ : normalizedProvider;
const fingerprint = CLI_FINGERPRINTS[fingerprintKey];
if (!fingerprint) {
@@ -297,7 +309,8 @@ export function applyFingerprint(
// Apply user agent override
if (fingerprint.userAgent) {
- headers["User-Agent"] = fingerprint.userAgent;
+ headers["User-Agent"] =
+ typeof fingerprint.userAgent === "function" ? fingerprint.userAgent() : fingerprint.userAgent;
}
// Apply extra headers
@@ -331,7 +344,11 @@ let _cliCompatProviders: Set<string> = new Set();
* Called from the settings API when cliCompatProviders is updated.
*/
export function setCliCompatProviders(providers: string[]): void {
- _cliCompatProviders = new Set((providers || []).map((p) => p.toLowerCase()));
+ _cliCompatProviders = new Set(
+ (providers || [])
+ .map((p) => normalizeCliCompatProviderId(p))
+ .filter((provider) => provider in CLI_FINGERPRINTS)
+ );
}
/**
@@ -351,7 +368,8 @@ export function isCliCompatEnabled(provider: string): boolean {
const key = provider?.toLowerCase().replace(/[^a-z0-9]/g, "_");
// 1. Check runtime cache (set via Settings UI)
- if (_cliCompatProviders.has(provider?.toLowerCase())) return true;
+ const normalizedProvider = normalizeCliCompatProviderId(provider || "");
+ if (_cliCompatProviders.has(normalizedProvider)) return true;
// 2. Check environment variable: CLI_COMPAT_<PROVIDER>=1
const envKey = `CLI_COMPAT_${key?.toUpperCase()}`;
diff --git a/open-sse/config/providerHeaderProfiles.ts b/open-sse/config/providerHeaderProfiles.ts
index fb379ed6b1..301053cb04 100644
--- a/open-sse/config/providerHeaderProfiles.ts
+++ b/open-sse/config/providerHeaderProfiles.ts
@@ -11,26 +11,22 @@ export const GITHUB_COPILOT_OPENAI_INTENT = "conversation-panel";
export const GITHUB_COPILOT_DEFAULT_INITIATOR = "user";
export const GITHUB_COPILOT_USER_AGENT_LIBRARY = "electron-fetch";
-export const QWEN_CLI_USER_AGENT = "QwenCode/0.15.3 (linux; x64)";
-export const QWEN_STAINLESS_ARCH = "x64";
+export const QWEN_CLI_VERSION = "0.15.4";
export const QWEN_STAINLESS_LANG = "js";
-export const QWEN_STAINLESS_OS = "Linux";
export const QWEN_STAINLESS_PACKAGE_VERSION = "5.11.0";
export const QWEN_STAINLESS_RETRY_COUNT = "1";
export const QWEN_STAINLESS_RUNTIME = "node";
-export const QWEN_STAINLESS_RUNTIME_VERSION = "v18.19.1";
export const QWEN_ACCEPT_LANGUAGE = "*";
export const QWEN_SEC_FETCH_MODE = "cors";
export const QODER_DEFAULT_USER_AGENT = "Qoder-Cli";
-export const QODER_DASHSCOPE_COMPAT_USER_AGENT = "QwenCode/0.15.3 (linux; x64)";
export const KIRO_SDK_USER_AGENT = "AWS-SDK-JS/3.0.0 kiro-ide/1.0.0";
export const KIRO_AMZ_USER_AGENT = "aws-sdk-js/3.0.0 kiro-ide/1.0.0";
export const KIRO_STREAMING_TARGET =
"AmazonCodeWhispererStreamingService.GenerateAssistantResponse";
-export const CURSOR_REGISTRY_VERSION = "3.1.0";
+export const CURSOR_REGISTRY_VERSION = "3.2.14";
export function getGitHubCopilotChatHeaders(
accept = "application/json",
@@ -50,6 +46,48 @@ export function getGitHubCopilotChatHeaders(
};
}
+function getRuntimePlatform(): string {
+ return typeof process !== "undefined" && typeof process.platform === "string"
+ ? process.platform
+ : "unknown";
+}
+
+function getRuntimeArch(): string {
+ return typeof process !== "undefined" && typeof process.arch === "string" ? process.arch : "unknown";
+}
+
+function getRuntimeVersion(): string {
+ return typeof process !== "undefined" && typeof process.version === "string"
+ ? process.version
+ : "unknown";
+}
+
+function normalizeStainlessPlatform(platform: string = getRuntimePlatform()): string {
+ const normalized = platform.toLowerCase();
+ if (normalized.includes("ios")) return "iOS";
+ if (normalized === "android") return "Android";
+ if (normalized === "darwin") return "MacOS";
+ if (normalized === "win32") return "Windows";
+ if (normalized === "freebsd") return "FreeBSD";
+ if (normalized === "openbsd") return "OpenBSD";
+ if (normalized === "linux") return "Linux";
+ return normalized ? `Other:${normalized}` : "Unknown";
+}
+
+function normalizeStainlessArch(arch: string = getRuntimeArch()): string {
+ if (arch === "x32") return "x32";
+ if (arch === "x86_64" || arch === "x64") return "x64";
+ if (arch === "arm") return "arm";
+ if (arch === "aarch64" || arch === "arm64") return "arm64";
+ return arch ? `other:${arch}` : "unknown";
+}
+
+export function getQwenCliUserAgent(version = QWEN_CLI_VERSION): string {
+ // Qwen Code builds this from the runtime process values. Keep it runtime-derived so
+ // packaged deployments use their own platform/architecture instead of a maintainer's host.
+ return `QwenCode/${version} (${getRuntimePlatform()}; ${getRuntimeArch()})`;
+}
+
export function getGitHubCopilotInternalUserHeaders(authorization: string): Record<string, string> {
return {
Authorization: authorization,
@@ -72,18 +110,19 @@ export function getGitHubCopilotRefreshHeaders(authorization: string): Record<st
}
export function getQwenOauthHeaders(): Record<string, string> {
+ const userAgent = getQwenCliUserAgent();
return {
- "User-Agent": QWEN_CLI_USER_AGENT,
+ "User-Agent": userAgent,
"X-Dashscope-AuthType": "qwen-oauth",
"X-Dashscope-CacheControl": "enable",
- "X-Dashscope-UserAgent": QWEN_CLI_USER_AGENT,
- "X-Stainless-Arch": QWEN_STAINLESS_ARCH,
+ "X-Dashscope-UserAgent": userAgent,
+ "X-Stainless-Arch": normalizeStainlessArch(),
"X-Stainless-Lang": QWEN_STAINLESS_LANG,
- "X-Stainless-Os": QWEN_STAINLESS_OS,
+ "X-Stainless-Os": normalizeStainlessPlatform(),
"X-Stainless-Package-Version": QWEN_STAINLESS_PACKAGE_VERSION,
"X-Stainless-Retry-Count": QWEN_STAINLESS_RETRY_COUNT,
"X-Stainless-Runtime": QWEN_STAINLESS_RUNTIME,
- "X-Stainless-Runtime-Version": QWEN_STAINLESS_RUNTIME_VERSION,
+ "X-Stainless-Runtime-Version": getRuntimeVersion(),
Connection: "keep-alive",
"Accept-Language": QWEN_ACCEPT_LANGUAGE,
"Sec-Fetch-Mode": QWEN_SEC_FETCH_MODE,
@@ -97,14 +136,15 @@ export function getQoderDefaultHeaders(): Record<string, string> {
}
export function getQoderDashscopeCompatHeaders(): Record<string, string> {
+ const userAgent = getQwenCliUserAgent();
return {
"x-dashscope-authtype": "qwen-oauth",
"x-dashscope-cachecontrol": "enable",
- "user-agent": QODER_DASHSCOPE_COMPAT_USER_AGENT,
- "x-dashscope-useragent": QODER_DASHSCOPE_COMPAT_USER_AGENT,
- "x-stainless-arch": QWEN_STAINLESS_ARCH,
+ "user-agent": userAgent,
+ "x-dashscope-useragent": userAgent,
+ "x-stainless-arch": normalizeStainlessArch(),
"x-stainless-lang": QWEN_STAINLESS_LANG,
- "x-stainless-os": QWEN_STAINLESS_OS,
+ "x-stainless-os": normalizeStainlessPlatform(),
};
}
diff --git a/open-sse/executors/antigravity.ts b/open-sse/executors/antigravity.ts
index 166bb38cb9..9cf0cb989d 100644
--- a/open-sse/executors/antigravity.ts
+++ b/open-sse/executors/antigravity.ts
@@ -1,5 +1,6 @@
import crypto, { randomUUID } from "crypto";
import { BaseExecutor, mergeUpstreamExtraHeaders, type ExecuteInput } from "./base.ts";
+import { applyFingerprint, isCliCompatEnabled } from "../config/cliFingerprints.ts";
import { PROVIDERS, OAUTH_ENDPOINTS, HTTP_STATUS } from "../config/constants.ts";
import { scrubProxyAndFingerprintHeaders } from "../services/antigravityHeaderScrub.ts";
import { antigravityUserAgent } from "../services/antigravityHeaders.ts";
@@ -27,6 +28,17 @@ const CREDITS_EXHAUSTED_TTL_MS = 5 * 60 * 60 * 1000; // 5 hours
const BARE_PRO_IDS = new Set(["gemini-3.1-pro"]);
+function serializeAntigravityRequest(
+ provider: string,
+ headers: Record<string, string>,
+ body: unknown
+): { headers: Record<string, string>; bodyString: string } {
+ if (!isCliCompatEnabled(provider)) {
+ return { headers, bodyString: JSON.stringify(body) };
+ }
+ return applyFingerprint(provider, { ...headers }, body);
+}
+
type AntigravityCollectedStream = {
textContent: string;
finishReason: string;
@@ -573,10 +585,13 @@ export class AntigravityExecutor extends BaseExecutor {
}
try {
+ const serializedRequest = serializeAntigravityRequest(this.provider, headers, transformedBody);
+ const finalHeaders = serializedRequest.headers;
+
const response = await fetch(url, {
method: "POST",
- headers,
- body: JSON.stringify(transformedBody),
+ headers: finalHeaders,
+ body: serializedRequest.bodyString,
signal,
});
@@ -626,11 +641,17 @@ export class AntigravityExecutor extends BaseExecutor {
) {
log?.info?.("AG_CREDITS", "Retrying with Google One AI credits");
const creditsBody = injectCreditsField(transformedBody);
+ const serializedCreditsRequest = serializeAntigravityRequest(
+ this.provider,
+ headers,
+ creditsBody
+ );
+ const finalCreditsHeaders = serializedCreditsRequest.headers;
try {
const creditsResp = await fetch(url, {
method: "POST",
- headers,
- body: JSON.stringify(creditsBody),
+ headers: finalCreditsHeaders,
+ body: serializedCreditsRequest.bodyString,
signal,
});
if (creditsResp.ok || creditsResp.status !== HTTP_STATUS.RATE_LIMITED) {
@@ -640,7 +661,7 @@ export class AntigravityExecutor extends BaseExecutor {
creditsResp,
model,
url,
- headers,
+ finalCreditsHeaders,
creditsBody,
log,
signal
@@ -668,7 +689,7 @@ export class AntigravityExecutor extends BaseExecutor {
return {
response: creditsResp,
url,
- headers,
+ headers: finalCreditsHeaders,
transformedBody: attachToolNameMap(creditsBody, requestToolNameMap),
};
}
@@ -769,7 +790,7 @@ export class AntigravityExecutor extends BaseExecutor {
return {
response: modifiedResponse,
url,
- headers,
+ headers: finalHeaders,
transformedBody: attachToolNameMap(transformedBody, requestToolNameMap),
};
} catch (err) {
@@ -785,7 +806,7 @@ export class AntigravityExecutor extends BaseExecutor {
response,
model,
url,
- headers,
+ finalHeaders,
transformedBody,
log,
signal
@@ -898,7 +919,7 @@ export class AntigravityExecutor extends BaseExecutor {
return {
response: tappedResponse,
url,
- headers,
+ headers: finalHeaders,
transformedBody: attachToolNameMap(transformedBody, requestToolNameMap),
};
}
@@ -906,7 +927,7 @@ export class AntigravityExecutor extends BaseExecutor {
return {
response,
url,
- headers,
+ headers: finalHeaders,
transformedBody: attachToolNameMap(transformedBody, requestToolNameMap),
};
} catch (error) {
diff --git a/open-sse/executors/base.ts b/open-sse/executors/base.ts
index 81cca90907..ada44b7279 100644
--- a/open-sse/executors/base.ts
+++ b/open-sse/executors/base.ts
@@ -466,7 +466,7 @@ export class BaseExecutor {
remapToolNamesInRequest(tb);
obfuscateInBody(tb);
- const ccVersion = "2.1.114";
+ const ccVersion = "2.1.121";
// Fix #1638: Use a stable fingerprint instead of message-derived one.
// The original computeFingerprint() hashed first-user-message chars, which
// changes every conversation turn. This mutated the system[] prefix on each
diff --git a/open-sse/executors/codex.ts b/open-sse/executors/codex.ts
index 720930e4d1..42b3049a7f 100644
--- a/open-sse/executors/codex.ts
+++ b/open-sse/executors/codex.ts
@@ -362,12 +362,16 @@ function convertSystemToDeveloperRole(body: Record<string, unknown>): void {
* 4. Always deletes previous_response_id (endpoint doesn't persist responses)
*/
function stripStoredItemReferences(body: Record<string, unknown>): void {
- // Always strip previous_response_id — the /codex/responses endpoint does not
- // persist responses, so any reference to a previous response would cause a 404.
- // The official Codex CLI sets previous_response_id to None for HTTP transport.
- // Ref: codex-rs codex-api/src/common.rs:187 — previous_response_id: None
- // Ref: CLIProxyAPI codex_executor.go:115 — sjson.DeleteBytes(body, "previous_response_id")
- delete body.previous_response_id;
+ const hasInput = Array.isArray(body.input) && body.input.length > 0;
+
+ // Always strip previous_response_id IF we have input.
+ // The /codex/responses endpoint does not persist responses, so any reference
+ // to a previous response would cause a 404. However, if input is missing (e.g. Cursor
+ // trying to continue generation), stripping it leaves the payload empty causing a 400 Schema error.
+ // We leave it intact so Codex returns 404, which correctly triggers Cursor's fallback to resend history.
+ if (hasInput) {
+ delete body.previous_response_id;
+ }
if (!Array.isArray(body.input)) return;
@@ -554,6 +558,7 @@ function clampEffort(model: string, requested: string): string {
function normalizeEffortValue(value: unknown): string | undefined {
if (typeof value !== "string") return undefined;
const normalized = value.trim().toLowerCase();
+ if (normalized === "max") return "xhigh";
return normalized || undefined;
}
@@ -1144,9 +1149,13 @@ export class CodexExecutor extends BaseExecutor {
// Delete session_id and conversation_id from the body.
// These are often injected by OmniRoute's fallback logic for store=true,
- // but the upstream Codex API strictly rejects them as unsupported parameters.
+ // but the upstream Codex API strictly rejects them as unsupported parameters
+ // UNLESS the request lacks input entirely (where they are required to avoid a 400 Schema Error).
delete body.session_id;
- delete body.conversation_id;
+ const hasInput = Array.isArray(body.input) && body.input.length > 0;
+ if (hasInput) {
+ delete body.conversation_id;
+ }
if (nativeCodexPassthrough) {
return body;
diff --git a/open-sse/package.json b/open-sse/package.json
index e311fc67fa..4d7bf34fe6 100644
--- a/open-sse/package.json
+++ b/open-sse/package.json
@@ -1,6 +1,6 @@
{
"name": "@omniroute/open-sse",
- "version": "3.7.3",
+ "version": "3.7.4",
"description": "Express SSE sidecar for OmniRoute — handles streaming, protocol translation, and provider orchestration",
"type": "module",
"main": "index.js",
diff --git a/open-sse/services/claudeCodeCompatible.ts b/open-sse/services/claudeCodeCompatible.ts
index 2c5299ee58..c79a20fc5c 100644
--- a/open-sse/services/claudeCodeCompatible.ts
+++ b/open-sse/services/claudeCodeCompatible.ts
@@ -249,7 +249,6 @@ export function buildClaudeCodeCompatibleRequest({
messages: normalizedMessages,
systemBlocks: effectiveClaudeBody?.system as Record<string, unknown>[] | undefined,
preserveCacheControl,
- injectDefaultSkeleton: !effectiveClaudeBody,
});
const resolvedSessionId = sessionId || randomUUID();
const effort = resolveClaudeCodeCompatibleEffort(sourceBody, normalizedBody, model);
@@ -550,12 +549,10 @@ function buildClaudeCodeCompatibleSystemBlocks({
messages,
systemBlocks,
preserveCacheControl,
- injectDefaultSkeleton,
}: {
messages: MessageLike[] | undefined;
systemBlocks?: Array<Record<string, unknown>> | undefined;
preserveCacheControl: boolean;
- injectDefaultSkeleton: boolean;
}) {
const customSystemBlocks =
Array.isArray(systemBlocks) && systemBlocks.length > 0
@@ -570,9 +567,9 @@ function buildClaudeCodeCompatibleSystemBlocks({
return preparedBlock;
});
- if (!injectDefaultSkeleton) {
- return preparedCustomSystemBlocks;
- }
+ const hasDefaultSystemBlock = containsDefaultSystemSkeleton(preparedCustomSystemBlocks);
+
+ if (hasDefaultSystemBlock) return preparedCustomSystemBlocks;
return [
...CLAUDE_CODE_COMPATIBLE_DEFAULT_SYSTEM_BLOCKS.map((block) => ({ ...block })),
@@ -580,6 +577,21 @@ function buildClaudeCodeCompatibleSystemBlocks({
];
}
+function containsDefaultSystemSkeleton(blocks: Array<Record<string, unknown>>) {
+ const skeleton = CLAUDE_CODE_COMPATIBLE_DEFAULT_SYSTEM_BLOCKS;
+ if (skeleton.length === 0) return true;
+ if (blocks.length < skeleton.length) return false;
+
+ return blocks.some((_, startIndex) =>
+ skeleton.every((defaultBlock, offset) => {
+ const candidateBlock = blocks[startIndex + offset];
+ if (!candidateBlock) return false;
+
+ return Object.entries(defaultBlock).every(([key, value]) => candidateBlock[key] === value);
+ })
+ );
+}
+
function convertClaudeCodeCompatibleMessage(message: MessageLike | null | undefined) {
const rawRole = String(message?.role || "").toLowerCase();
const role =
diff --git a/open-sse/services/thinkingBudget.ts b/open-sse/services/thinkingBudget.ts
index d1004052de..7061bb95e0 100644
--- a/open-sse/services/thinkingBudget.ts
+++ b/open-sse/services/thinkingBudget.ts
@@ -224,7 +224,8 @@ function setCustomBudget(body, budget) {
};
}
- // OpenAI reasoning_effort mapping (T11: add 'max' tier for full budget)
+ // OpenAI reasoning_effort mapping.
+ // GPT-5/Codex accepts xhigh for the top tier; keep full budget aligned.
if (result.reasoning_effort !== undefined || result.reasoning !== undefined) {
if (budget <= 0) {
delete result.reasoning_effort;
@@ -236,7 +237,7 @@ function setCustomBudget(body, budget) {
} else if (budget < 131072) {
result.reasoning_effort = "high";
} else {
- result.reasoning_effort = "max"; // T11: full budget → "max"
+ result.reasoning_effort = "xhigh";
}
}
diff --git a/open-sse/translator/request/claude-to-openai.ts b/open-sse/translator/request/claude-to-openai.ts
index 105443eed4..8f890fd31c 100644
--- a/open-sse/translator/request/claude-to-openai.ts
+++ b/open-sse/translator/request/claude-to-openai.ts
@@ -5,6 +5,13 @@ import { adjustMaxTokens } from "../helpers/maxTokensHelper.ts";
type JsonRecord = Record<string, unknown>;
const TOOL_CHOICE_ANY = ["a", "n", "y"].join("");
+function normalizeOpenAIReasoningEffort(effort: unknown): string | undefined {
+ if (typeof effort !== "string") return undefined;
+ const normalized = effort.toLowerCase();
+ if (normalized === "max") return "xhigh";
+ return normalized || undefined;
+}
+
// Convert Claude request to OpenAI format
export function claudeToOpenAIRequest(model, body, stream) {
const result: {
@@ -105,8 +112,7 @@ export function claudeToOpenAIRequest(model, body, stream) {
// Reasoning effort: map Claude-side thinking controls to OpenAI reasoning_effort.
// Priority: output_config.effort (Claude Code) > thinking.budget_tokens (Claude native).
// Budget buckets match the reverse mapping in thinkingBudget.ts::setCustomBudget.
- const outputEffort =
- typeof body.output_config?.effort === "string" ? body.output_config.effort.toLowerCase() : "";
+ const outputEffort = normalizeOpenAIReasoningEffort(body.output_config?.effort) || "";
if (outputEffort) {
result.reasoning_effort = outputEffort;
} else if (body.thinking?.type === "enabled" && typeof body.thinking.budget_tokens === "number") {
@@ -120,7 +126,7 @@ export function claudeToOpenAIRequest(model, body, stream) {
} else if (budget < 131072) {
result.reasoning_effort = "high";
} else {
- result.reasoning_effort = "max";
+ result.reasoning_effort = "xhigh";
}
}
diff --git a/open-sse/translator/request/openai-responses.ts b/open-sse/translator/request/openai-responses.ts
index 5cd5da520d..d730d830e4 100644
--- a/open-sse/translator/request/openai-responses.ts
+++ b/open-sse/translator/request/openai-responses.ts
@@ -24,6 +24,11 @@ function toString(value: unknown, fallback = ""): string {
return typeof value === "string" ? value : fallback;
}
+function normalizeResponsesReasoningEffort(value: unknown): string {
+ const effort = toString(value).toLowerCase();
+ return effort === "max" ? "xhigh" : effort;
+}
+
function unsupportedFeature(message: string): Error & { statusCode: number; errorType: string } {
const error = new Error(message) as Error & { statusCode: number; errorType: string };
error.statusCode = 400;
@@ -558,7 +563,7 @@ export function openaiToOpenAIResponsesRequest(
if (root.reasoning !== undefined) {
result.reasoning = root.reasoning;
} else if (root.reasoning_effort !== undefined) {
- const effort = toString(root.reasoning_effort);
+ const effort = normalizeResponsesReasoningEffort(root.reasoning_effort);
if (effort) {
result.reasoning = { effort };
}
diff --git a/open-sse/utils/cursorVersionDetector.ts b/open-sse/utils/cursorVersionDetector.ts
index 9ffdb524af..f42bd54fcd 100644
--- a/open-sse/utils/cursorVersionDetector.ts
+++ b/open-sse/utils/cursorVersionDetector.ts
@@ -12,7 +12,7 @@ import { createRequire } from "module";
const CACHE_TTL_MS = 60 * 60 * 1000;
const DB_KEY = "cursorupdate.lastUpdatedAndShown.version";
-const FALLBACK_VERSION = "3.1.15";
+const FALLBACK_VERSION = "3.2.14";
let cachedVersion: string | null = null;
let cachedAt = 0;
diff --git a/open-sse/utils/proxyDispatcher.ts b/open-sse/utils/proxyDispatcher.ts
index 07c73fad97..ecce8e184c 100644
--- a/open-sse/utils/proxyDispatcher.ts
+++ b/open-sse/utils/proxyDispatcher.ts
@@ -59,6 +59,20 @@ function getDispatcherOptions() {
};
}
+function getProxyDispatcherOptions() {
+ const options = getDispatcherOptions();
+ // Disable keep-alive and pipelining for proxy connections.
+ // Cheap proxy servers aggressively drop idle sockets without sending TCP RST,
+ // causing "socket hang up" or "Client network socket disconnected" errors
+ // on subsequent requests that try to reuse the pooled connection.
+ return {
+ ...options,
+ keepAliveTimeout: 1,
+ keepAliveMaxTimeout: 1,
+ pipelining: 0,
+ };
+}
+
export function getDefaultDispatcher(): Dispatcher {
const globalWithCache = globalThis as GlobalWithDispatcherCache;
if (!globalWithCache[DEFAULT_DISPATCHER_KEY]) {
@@ -74,13 +88,16 @@ export function getDefaultDispatcher(): Dispatcher {
*/
function extractExplicitPort(urlStr: string): string | null {
try {
- const idx = urlStr.indexOf('://');
+ const idx = urlStr.indexOf("://");
if (idx === -1) return null;
const authorityStart = idx + 3;
- const authorityEnd = urlStr.indexOf('/', authorityStart);
- const authority = authorityEnd === -1 ? urlStr.slice(authorityStart) : urlStr.slice(authorityStart, authorityEnd);
- const lastColon = authority.lastIndexOf(':');
- const atSign = authority.lastIndexOf('@');
+ const authorityEnd = urlStr.indexOf("/", authorityStart);
+ const authority =
+ authorityEnd === -1
+ ? urlStr.slice(authorityStart)
+ : urlStr.slice(authorityStart, authorityEnd);
+ const lastColon = authority.lastIndexOf(":");
+ const atSign = authority.lastIndexOf("@");
if (lastColon !== -1 && lastColon > atSign) {
const portStr = authority.slice(lastColon + 1);
if (/^\d+$/.test(portStr)) {
@@ -215,7 +232,7 @@ export function proxyConfigToUrl(
export function createProxyDispatcher(proxyUrl: string): Dispatcher {
const normalizedUrl = normalizeProxyUrl(proxyUrl, "proxy dispatcher");
const dispatcherCache = getDispatcherCache();
- const dispatcherOptions = getDispatcherOptions();
+ const proxyDispatcherOptions = getProxyDispatcherOptions();
let dispatcher = dispatcherCache.get(normalizedUrl);
if (dispatcher) return dispatcher;
@@ -234,12 +251,12 @@ export function createProxyDispatcher(proxyUrl: string): Dispatcher {
if (parsed.password) socksOptions.password = decodeURIComponent(parsed.password);
dispatcher = socksDispatcher(
socksOptions as Parameters<typeof socksDispatcher>[0],
- dispatcherOptions
+ proxyDispatcherOptions
) as Dispatcher;
} else {
dispatcher = new ProxyAgent({
uri: normalizedUrl,
- ...dispatcherOptions,
+ ...proxyDispatcherOptions,
});
}
diff --git a/open-sse/utils/streamReadiness.ts b/open-sse/utils/streamReadiness.ts
index ed3a5729ba..d73a883b08 100644
--- a/open-sse/utils/streamReadiness.ts
+++ b/open-sse/utils/streamReadiness.ts
@@ -31,6 +31,10 @@ function hasUsefulValue(value: unknown): boolean {
"partial_json",
"arguments",
"name",
+ "thought",
+ "error",
+ "executableCode",
+ "codeExecutionResult",
]) {
const candidate = value[key];
if (hasNonEmptyString(candidate)) return true;
@@ -68,7 +72,9 @@ function hasUsefulJsonPayload(payload: unknown): boolean {
if (hasUsefulValue(payload)) return true;
}
- return hasUsefulValue(payload.choices) || hasUsefulValue(payload.candidates) || hasUsefulValue(payload);
+ return (
+ hasUsefulValue(payload.choices) || hasUsefulValue(payload.candidates) || hasUsefulValue(payload)
+ );
}
export function hasUsefulStreamContent(text: string): boolean {
@@ -185,7 +191,11 @@ export async function ensureStreamReadiness(
`${reason} (${options.provider || "provider"}/${options.model || "unknown"})`
);
await reader.cancel(reason).catch(() => {});
- return { ok: false, reason, response: createErrorResponse(HTTP_STATUS.GATEWAY_TIMEOUT, reason) };
+ return {
+ ok: false,
+ reason,
+ response: createErrorResponse(HTTP_STATUS.GATEWAY_TIMEOUT, reason),
+ };
}
let readResult: ReadableStreamReadResult<Uint8Array>;
@@ -198,7 +208,11 @@ export async function ensureStreamReadiness(
`${reason} (${options.provider || "provider"}/${options.model || "unknown"})`
);
await reader.cancel(reason).catch(() => {});
- return { ok: false, reason, response: createErrorResponse(HTTP_STATUS.GATEWAY_TIMEOUT, reason) };
+ return {
+ ok: false,
+ reason,
+ response: createErrorResponse(HTTP_STATUS.GATEWAY_TIMEOUT, reason),
+ };
}
if (readResult.done) {
@@ -207,7 +221,11 @@ export async function ensureStreamReadiness(
"STREAM",
`${reason} (${options.provider || "provider"}/${options.model || "unknown"})`
);
- return { ok: false, reason, response: createErrorResponse(HTTP_STATUS.BAD_GATEWAY, reason) };
+ return {
+ ok: false,
+ reason,
+ response: createErrorResponse(HTTP_STATUS.BAD_GATEWAY, reason),
+ };
}
if (!readResult.value) continue;
diff --git a/package-lock.json b/package-lock.json
index 2937d025b0..dee96e1e29 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "omniroute",
- "version": "3.7.3",
+ "version": "3.7.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "omniroute",
- "version": "3.7.3",
+ "version": "3.7.4",
"hasInstallScript": true,
"license": "MIT",
"workspaces": [
@@ -42,6 +42,7 @@
"react": "19.2.5",
"react-dom": "19.2.5",
"react-is": "^19.2.5",
+ "react-markdown": "^10.1.0",
"recharts": "^3.7.0",
"selfsigned": "^5.5.0",
"tls-client-node": "^0.1.13",
@@ -3958,6 +3959,15 @@
"integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",
"license": "MIT"
},
+ "node_modules/@types/debug": {
+ "version": "4.1.13",
+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",
+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
"node_modules/@types/deep-eql": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
@@ -3969,9 +3979,26 @@
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
- "dev": true,
"license": "MIT"
},
+ "node_modules/@types/estree-jsx": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",
+ "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "*"
+ }
+ },
+ "node_modules/@types/hast": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
+ "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "*"
+ }
+ },
"node_modules/@types/http-proxy": {
"version": "1.17.17",
"resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.17.tgz",
@@ -4013,6 +4040,21 @@
"keytar": "*"
}
},
+ "node_modules/@types/mdast": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
+ "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "*"
+ }
+ },
+ "node_modules/@types/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "license": "MIT"
+ },
"node_modules/@types/node": {
"version": "25.6.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",
@@ -4055,6 +4097,12 @@
"license": "MIT",
"optional": true
},
+ "node_modules/@types/unist": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
+ "license": "MIT"
+ },
"node_modules/@types/use-sync-external-store": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",
@@ -4356,6 +4404,12 @@
"url": "https://opencollective.com/eslint"
}
},
+ "node_modules/@ungap/structured-clone": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",
+ "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",
+ "license": "ISC"
+ },
"node_modules/@unrs/resolver-binding-android-arm-eabi": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz",
@@ -5205,6 +5259,16 @@
"npm": ">=6"
}
},
+ "node_modules/bail": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",
+ "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/balanced-match": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
@@ -5561,6 +5625,16 @@
],
"license": "CC-BY-4.0"
},
+ "node_modules/ccount": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",
+ "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/chai": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",
@@ -5601,6 +5675,46 @@
"node": ">=8"
}
},
+ "node_modules/character-entities": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities-html4": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",
+ "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities-legacy": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",
+ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-reference-invalid": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",
+ "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/chownr": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
@@ -5782,6 +5896,16 @@
"node": ">= 0.8"
}
},
+ "node_modules/comma-separated-tokens": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
+ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -6196,6 +6320,19 @@
"integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==",
"license": "MIT"
},
+ "node_modules/decode-named-character-reference": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",
+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/decompress-response": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
@@ -6325,7 +6462,6 @@
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -6340,6 +6476,19 @@
"node": ">=8"
}
},
+ "node_modules/devlop": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
+ "license": "MIT",
+ "dependencies": {
+ "dequal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/doctrine": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
@@ -7184,6 +7333,16 @@
"node": ">=4.0"
}
},
+ "node_modules/estree-util-is-identifier-name": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",
+ "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/estree-walker": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
@@ -7320,6 +7479,12 @@
"express": ">= 4.11"
}
},
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
+ "license": "MIT"
+ },
"node_modules/fast-copy": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-4.0.2.tgz",
@@ -8026,6 +8191,46 @@
"node": ">= 0.4"
}
},
+ "node_modules/hast-util-to-jsx-runtime": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",
+ "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/unist": "^3.0.0",
+ "comma-separated-tokens": "^2.0.0",
+ "devlop": "^1.0.0",
+ "estree-util-is-identifier-name": "^3.0.0",
+ "hast-util-whitespace": "^3.0.0",
+ "mdast-util-mdx-expression": "^2.0.0",
+ "mdast-util-mdx-jsx": "^3.0.0",
+ "mdast-util-mdxjs-esm": "^2.0.0",
+ "property-information": "^7.0.0",
+ "space-separated-tokens": "^2.0.0",
+ "style-to-js": "^1.0.0",
+ "unist-util-position": "^5.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/hast-util-whitespace": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
+ "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/help-me": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz",
@@ -8093,6 +8298,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/html-url-attributes": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",
+ "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/http-errors": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
@@ -8292,6 +8507,12 @@
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"license": "ISC"
},
+ "node_modules/inline-style-parser": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",
+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",
+ "license": "MIT"
+ },
"node_modules/internal-slot": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",
@@ -8344,6 +8565,30 @@
"node": ">= 0.10"
}
},
+ "node_modules/is-alphabetical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",
+ "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-alphanumerical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",
+ "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",
+ "license": "MIT",
+ "dependencies": {
+ "is-alphabetical": "^2.0.0",
+ "is-decimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/is-array-buffer": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",
@@ -8507,6 +8752,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-decimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",
+ "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/is-docker": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
@@ -8595,6 +8850,16 @@
"node": ">=0.10.0"
}
},
+ "node_modules/is-hexadecimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",
+ "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/is-in-ssh": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz",
@@ -8695,6 +8960,18 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-plain-object": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
@@ -9665,6 +9942,16 @@
"url": "https://github.com/chalk/slice-ansi?sponsor=1"
}
},
+ "node_modules/longest-streak": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/loose-envify": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
@@ -9751,6 +10038,159 @@
"node": ">= 0.4"
}
},
+ "node_modules/mdast-util-from-markdown": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz",
+ "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark": "^4.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-expression": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",
+ "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-jsx": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",
+ "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "ccount": "^2.0.0",
+ "devlop": "^1.1.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "parse-entities": "^4.0.0",
+ "stringify-entities": "^4.0.0",
+ "unist-util-stringify-position": "^4.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdxjs-esm": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",
+ "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-phrasing": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",
+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-hast": {
+ "version": "13.2.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",
+ "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@ungap/structured-clone": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "trim-lines": "^3.0.0",
+ "unist-util-position": "^5.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-markdown": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",
+ "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "longest-streak": "^3.0.0",
+ "mdast-util-phrasing": "^4.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "unist-util-visit": "^5.0.0",
+ "zwitch": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",
+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/mdn-data": {
"version": "2.27.1",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",
@@ -9789,29 +10229,471 @@
"node": ">= 8"
}
},
- "node_modules/micromatch": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "node_modules/micromark": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",
+ "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
"license": "MIT",
"dependencies": {
- "braces": "^3.0.3",
- "picomatch": "^2.3.1"
- },
- "engines": {
- "node": ">=8.6"
+ "@types/debug": "^4.0.0",
+ "debug": "^4.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-core-commonmark": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-combine-extensions": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
}
},
- "node_modules/micromatch/node_modules/picomatch": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
- "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "node_modules/micromark-core-commonmark": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",
+ "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
"license": "MIT",
- "engines": {
- "node": ">=8.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-factory-destination": "^2.0.0",
+ "micromark-factory-label": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-factory-title": "^2.0.0",
+ "micromark-factory-whitespace": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-destination": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",
+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-label": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",
+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-space": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",
+ "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-title": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",
+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-whitespace": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",
+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-character": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
+ "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-chunked": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",
+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-classify-character": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",
+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-combine-extensions": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",
+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-numeric-character-reference": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",
+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-string": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",
+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-encode": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",
+ "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-html-tag-name": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",
+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-normalize-identifier": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",
+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-resolve-all": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",
+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-sanitize-uri": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",
+ "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-subtokenize": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",
+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-symbol": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",
+ "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-types": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",
+ "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/micromatch/node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/mime-db": {
@@ -10468,6 +11350,31 @@
"node": ">=6"
}
},
+ "node_modules/parse-entities": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",
+ "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^2.0.0",
+ "character-entities-legacy": "^3.0.0",
+ "character-reference-invalid": "^2.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "is-alphanumerical": "^2.0.0",
+ "is-decimal": "^2.0.0",
+ "is-hexadecimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/parse-entities/node_modules/@types/unist": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
+ "license": "MIT"
+ },
"node_modules/parse-json": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
@@ -10903,6 +11810,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/property-information": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",
+ "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/proxy-addr": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
@@ -11080,6 +11997,33 @@
"integrity": "sha512-Dn0t8IQhCmeIT3wu+Apm1/YVsJXsGWi6k4sPdnBIdqMVtHtv0IGi6dcpNpNkNac0zB2uUAqNX3MHzN8c+z2rwQ==",
"license": "MIT"
},
+ "node_modules/react-markdown": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
+ "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "hast-util-to-jsx-runtime": "^2.0.0",
+ "html-url-attributes": "^3.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "remark-parse": "^11.0.0",
+ "remark-rehype": "^11.0.0",
+ "unified": "^11.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18",
+ "react": ">=18"
+ }
+ },
"node_modules/react-redux": {
"version": "9.2.0",
"resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz",
@@ -11251,6 +12195,39 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/remark-parse": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",
+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-rehype": {
+ "version": "11.1.2",
+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",
+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "unified": "^11.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
@@ -12005,6 +12982,16 @@
"node": ">=0.10.0"
}
},
+ "node_modules/space-separated-tokens": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",
+ "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/split2": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
@@ -12236,6 +13223,20 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/stringify-entities": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",
+ "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities-html4": "^2.0.0",
+ "character-entities-legacy": "^3.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/strip-ansi": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
@@ -12299,6 +13300,24 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/style-to-js": {
+ "version": "1.1.21",
+ "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",
+ "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",
+ "license": "MIT",
+ "dependencies": {
+ "style-to-object": "1.0.14"
+ }
+ },
+ "node_modules/style-to-object": {
+ "version": "1.0.14",
+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",
+ "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",
+ "license": "MIT",
+ "dependencies": {
+ "inline-style-parser": "0.2.7"
+ }
+ },
"node_modules/styled-jsx": {
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",
@@ -12620,6 +13639,26 @@
"tree-kill": "cli.js"
}
},
+ "node_modules/trim-lines": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
+ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/trough": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",
+ "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/ts-api-utils": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",
@@ -12905,6 +13944,93 @@
"integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",
"license": "MIT"
},
+ "node_modules/unified": {
+ "version": "11.0.5",
+ "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",
+ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "bail": "^2.0.0",
+ "devlop": "^1.0.0",
+ "extend": "^3.0.0",
+ "is-plain-obj": "^4.0.0",
+ "trough": "^2.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-is": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
+ "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-position": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",
+ "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-stringify-position": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-visit": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",
+ "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0",
+ "unist-util-visit-parents": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-visit-parents": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",
+ "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
@@ -13079,6 +14205,34 @@
"node": ">= 0.8"
}
},
+ "node_modules/vfile": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",
+ "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/vfile-message": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
+ "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/victory-vendor": {
"version": "37.3.6",
"resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz",
@@ -13806,9 +14960,19 @@
}
}
},
+ "node_modules/zwitch": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"open-sse": {
"name": "@omniroute/open-sse",
- "version": "3.7.3"
+ "version": "3.7.4"
}
}
}
diff --git a/package.json b/package.json
index a077aadc94..e17f1e9d4e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "omniroute",
- "version": "3.7.3",
+ "version": "3.7.4",
"description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.",
"type": "module",
"bin": {
@@ -136,6 +136,7 @@
"react": "19.2.5",
"react-dom": "19.2.5",
"react-is": "^19.2.5",
+ "react-markdown": "^10.1.0",
"recharts": "^3.7.0",
"selfsigned": "^5.5.0",
"tls-client-node": "^0.1.13",
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 0000000000..4d4a0d1407
Binary files /dev/null and b/public/apple-touch-icon.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 0000000000..1b6fbae4f3
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/icon-512.png b/public/icon-512.png
new file mode 100644
index 0000000000..4d4a0d1407
Binary files /dev/null and b/public/icon-512.png differ
diff --git a/public/sw.js b/public/sw.js
new file mode 100644
index 0000000000..eaa1d86398
--- /dev/null
+++ b/public/sw.js
@@ -0,0 +1,77 @@
+const CACHE_NAME = "omniroute-pwa-v1";
+const APP_SHELL = [
+ "/",
+ "/offline",
+ "/manifest.webmanifest",
+ "/icon-512.png",
+ "/apple-touch-icon.png",
+];
+const EXCLUDED_PATH_PREFIXES = ["/api/", "/a2a", "/dashboard/endpoint"];
+
+self.addEventListener("install", (event) => {
+ event.waitUntil(
+ caches
+ .open(CACHE_NAME)
+ .then((cache) => cache.addAll(APP_SHELL))
+ .then(() => self.skipWaiting())
+ );
+});
+
+self.addEventListener("activate", (event) => {
+ event.waitUntil(
+ caches
+ .keys()
+ .then((keys) =>
+ Promise.all(keys.filter((key) => key !== CACHE_NAME).map((key) => caches.delete(key)))
+ )
+ .then(() => self.clients.claim())
+ );
+});
+
+self.addEventListener("fetch", (event) => {
+ if (event.request.method !== "GET") {
+ return;
+ }
+
+ const requestUrl = new URL(event.request.url);
+ const isSameOrigin = requestUrl.origin === self.location.origin;
+ const isExcludedPath = EXCLUDED_PATH_PREFIXES.some((prefix) =>
+ requestUrl.pathname.startsWith(prefix)
+ );
+ const destination = event.request.destination;
+ const isStaticAsset = ["style", "script", "image", "font"].includes(destination);
+ const isNavigateRequest = event.request.mode === "navigate";
+
+ // Never cache API/dashboard traffic with potentially auth-sensitive content.
+ if (!isSameOrigin || isExcludedPath) {
+ return;
+ }
+
+ event.respondWith(
+ (async () => {
+ if (isNavigateRequest) {
+ try {
+ return await fetch(event.request);
+ } catch {
+ return (await caches.match("/offline")) || Response.error();
+ }
+ }
+
+ if (!isStaticAsset) {
+ return fetch(event.request);
+ }
+
+ const cachedResponse = await caches.match(event.request);
+ if (cachedResponse) {
+ return cachedResponse;
+ }
+
+ const networkResponse = await fetch(event.request);
+ if (networkResponse && networkResponse.status === 200) {
+ const responseClone = networkResponse.clone();
+ void caches.open(CACHE_NAME).then((cache) => cache.put(event.request, responseClone));
+ }
+ return networkResponse;
+ })()
+ );
+});
diff --git a/src/app/(dashboard)/dashboard/HomePageClient.tsx b/src/app/(dashboard)/dashboard/HomePageClient.tsx
index adf7b079e2..6c3a7b18de 100644
--- a/src/app/(dashboard)/dashboard/HomePageClient.tsx
+++ b/src/app/(dashboard)/dashboard/HomePageClient.tsx
@@ -12,6 +12,7 @@ import ProviderIcon from "@/shared/components/ProviderIcon";
import { AI_PROVIDERS, FREE_PROVIDERS, OAUTH_PROVIDERS } from "@/shared/constants/providers";
import { useNotificationStore } from "@/store/notificationStore";
import { copyToClipboard } from "@/shared/utils/clipboard";
+import type { NewsAnnouncement } from "@/shared/utils/releaseNotes";
type UpdateStep = {
step: string;
@@ -19,6 +20,16 @@ type UpdateStep = {
message: string;
};
+type VersionInfo = {
+ current: string;
+ latest: string;
+ updateAvailable: boolean;
+ channel: string;
+ autoUpdateSupported: boolean;
+ autoUpdateError?: string | null;
+ news?: NewsAnnouncement | null;
+};
+
const wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
function mergeUpdateStep(steps: UpdateStep[], nextStep: UpdateStep) {
@@ -43,7 +54,7 @@ export default function HomePageClient({ machineId }) {
const [selectedProvider, setSelectedProvider] = useState(null);
const [providerMetrics, setProviderMetrics] = useState({});
- const [versionInfo, setVersionInfo] = useState<any>(null);
+ const [versionInfo, setVersionInfo] = useState<VersionInfo | null>(null);
const [updating, setUpdating] = useState(false);
const [updateSteps, setUpdateSteps] = useState<UpdateStep[]>([]);
const [updatePhase, setUpdatePhase] = useState<"idle" | "running" | "done" | "failed">("idle");
@@ -540,29 +551,64 @@ export default function HomePageClient({ machineId }) {
{/* Update Notification Banner */}
{versionInfo?.updateAvailable && !showUpdateOverlay && (
- <div className="bg-primary/10 border border-primary/20 text-primary px-5 py-4 rounded-xl flex items-center justify-between min-h-[64px]">
- <div className="flex items-center gap-4">
- <span className="material-symbols-outlined text-[24px]">system_update_alt</span>
- <div>
- <p className="font-semibold text-sm">Update Available: v{versionInfo.latest}</p>
- <p className="text-xs opacity-80 mt-0.5">
- {versionInfo.autoUpdateSupported
- ? t("updateAvailableDesc") ||
- `You are currently using v${versionInfo.current}. Update to access the latest features and bug fixes.`
- : versionInfo.autoUpdateError ||
- "Manual update required for this installation type."}
- </p>
+ <div className="flex flex-col gap-3">
+ <div className="flex min-h-[64px] items-center justify-between rounded-lg border border-primary/20 bg-primary/10 px-5 py-4 text-primary">
+ <div className="flex min-w-0 items-center gap-4">
+ <span className="material-symbols-outlined shrink-0 text-[24px]">
+ system_update_alt
+ </span>
+ <div>
+ <p className="font-semibold text-sm">Update Available: v{versionInfo.latest}</p>
+ <p className="text-xs opacity-80 mt-0.5">
+ {versionInfo.autoUpdateSupported
+ ? t("updateAvailableDesc") ||
+ `You are currently using v${versionInfo.current}. Update to access the latest features and bug fixes.`
+ : versionInfo.autoUpdateError ||
+ "Manual update required for this installation type."}
+ </p>
+ </div>
</div>
+ <Button
+ size="sm"
+ onClick={versionInfo.autoUpdateSupported ? handleUpdate : undefined}
+ disabled={updating || !versionInfo.autoUpdateSupported}
+ className="ml-4 shrink-0 font-semibold"
+ title={versionInfo.autoUpdateError || ""}
+ >
+ {versionInfo.autoUpdateSupported ? t("updateNow") || "Update Now" : "Manual Update"}
+ </Button>
</div>
- <Button
- size="sm"
- onClick={versionInfo.autoUpdateSupported ? handleUpdate : undefined}
- disabled={updating || !versionInfo.autoUpdateSupported}
- className="shrink-0 ml-4 font-semibold"
- title={versionInfo.autoUpdateError || ""}
- >
- {versionInfo.autoUpdateSupported ? t("updateNow") || "Update Now" : "Manual Update"}
- </Button>
+
+ {/* News Notification Banner */}
+ {versionInfo?.news && (
+ <div className="flex min-h-[64px] items-center justify-between rounded-lg border border-border bg-surface px-5 py-4">
+ <div className="flex min-w-0 items-center gap-4">
+ <div className="flex size-10 shrink-0 items-center justify-center rounded-lg bg-bg text-text-muted">
+ <span className="material-symbols-outlined text-[22px] text-primary">
+ {versionInfo.news.icon || "campaign"}
+ </span>
+ </div>
+ <div className="min-w-0">
+ <p className="text-sm font-semibold text-text-main">{versionInfo.news.title}</p>
+ <p className="mt-0.5 max-w-[560px] text-xs leading-relaxed text-text-muted">
+ {versionInfo.news.message}
+ </p>
+ </div>
+ </div>
+
+ {versionInfo.news.link && (
+ <a
+ href={versionInfo.news.link}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="ml-4 inline-flex shrink-0 items-center gap-1.5 rounded-lg border border-border bg-bg px-4 py-2 text-xs font-semibold text-text-main transition-colors hover:border-primary/30 hover:text-primary"
+ >
+ {versionInfo.news.linkLabel || "Ler Mais"}
+ <span className="material-symbols-outlined text-[14px]">arrow_forward</span>
+ </a>
+ )}
+ </div>
+ )}
</div>
)}
diff --git a/src/app/(dashboard)/dashboard/agents/page.tsx b/src/app/(dashboard)/dashboard/agents/page.tsx
index 84dfc56d57..74dc2ff90d 100644
--- a/src/app/(dashboard)/dashboard/agents/page.tsx
+++ b/src/app/(dashboard)/dashboard/agents/page.tsx
@@ -6,7 +6,12 @@ import { Card, Button, Input } from "@/shared/components";
import ProviderIcon from "@/shared/components/ProviderIcon";
import { useTranslations } from "next-intl";
import { AI_PROVIDERS } from "@/shared/constants/providers";
-import { CLI_COMPAT_PROVIDER_IDS } from "@/shared/constants/cliCompatProviders";
+import { CLI_TOOLS } from "@/shared/constants/cliTools";
+import {
+ CLI_COMPAT_PROVIDER_IDS,
+ CLI_COMPAT_TOGGLE_IDS,
+ normalizeCliCompatProviderId,
+} from "@/shared/constants/cliCompatProviders";
interface AgentInfo {
id: string;
@@ -106,6 +111,14 @@ export default function AgentsPage() {
}
};
+ const normalizedCliCompatProviders = Array.from(
+ new Set(
+ (settings.cliCompatProviders || [])
+ .map((providerId: string) => normalizeCliCompatProviderId(providerId))
+ .filter((providerId: string) => CLI_COMPAT_PROVIDER_IDS.includes(providerId))
+ )
+ );
+
const handleRefresh = async () => {
setRefreshing(true);
try {
@@ -307,19 +320,19 @@ export default function AgentsPage() {
<div className="flex flex-col gap-4">
<p className="text-sm text-text-muted">{ts("cliFingerprintDesc")}</p>
<div className="flex flex-wrap gap-2">
- {CLI_COMPAT_PROVIDER_IDS.map((providerId) => {
- const providerMeta = Object.values(AI_PROVIDERS).find(
- (p: any) => p.id === providerId
- ) as any;
- const isEnabled = (settings.cliCompatProviders || []).includes(providerId);
- const displayName = providerMeta?.name || providerId;
+ {CLI_COMPAT_TOGGLE_IDS.map((toggleId) => {
+ const providerId = normalizeCliCompatProviderId(toggleId);
+ const providerMeta = Object.values(AI_PROVIDERS).find((p: any) => p.id === providerId) as any;
+ const toolMeta = CLI_TOOLS[toggleId as keyof typeof CLI_TOOLS] as any;
+ const isEnabled = normalizedCliCompatProviders.includes(providerId);
+ const displayName = toolMeta?.name || providerMeta?.name || toggleId;
const icon = providerMeta?.icon || "terminal";
const color = providerMeta?.color || "#888";
return (
<button
- key={providerId}
+ key={toggleId}
onClick={() => {
- const current: string[] = settings.cliCompatProviders || [];
+ const current = normalizedCliCompatProviders;
const updated = current.includes(providerId)
? current.filter((p) => p !== providerId)
: [...current, providerId];
@@ -347,11 +360,11 @@ export default function AgentsPage() {
);
})}
</div>
- {(settings.cliCompatProviders || []).length > 0 && (
+ {normalizedCliCompatProviders.length > 0 && (
<p className="text-xs text-emerald-600 dark:text-emerald-400 mt-1 flex items-center gap-1">
<span className="material-symbols-outlined text-[14px]">verified</span>
{ts("cliFingerprintEnabled", {
- count: (settings.cliCompatProviders || []).length,
+ count: normalizedCliCompatProviders.length,
})}
</p>
)}
diff --git a/src/app/(dashboard)/dashboard/changelog/components/ChangelogViewer.tsx b/src/app/(dashboard)/dashboard/changelog/components/ChangelogViewer.tsx
new file mode 100644
index 0000000000..be6f89bc85
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/changelog/components/ChangelogViewer.tsx
@@ -0,0 +1,146 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import ReactMarkdown, { type Components } from "react-markdown";
+import { Button } from "@/shared/components";
+import {
+ CHANGELOG_GITHUB_URL,
+ CHANGELOG_RAW_URL,
+ getLatestChangelogMarkdown,
+} from "@/shared/utils/releaseNotes";
+
+function resolveChangelogHref(href: string | undefined): string | null {
+ if (!href) return null;
+ if (href.startsWith("#")) return href;
+
+ try {
+ const url = new URL(href, "https://github.com/diegosouzapw/OmniRoute/blob/main/");
+ return url.protocol === "https:" ? url.toString() : null;
+ } catch {
+ return null;
+ }
+}
+
+const markdownComponents: Components = {
+ h1({ children }) {
+ return <h1 className="mb-6 text-2xl font-bold text-text-main">{children}</h1>;
+ },
+ h2({ children }) {
+ return (
+ <h2 className="mt-8 mb-4 flex items-center gap-2 text-lg font-bold text-text-main first:mt-0">
+ <span className="material-symbols-outlined text-[20px] text-primary">sell</span>
+ {children}
+ </h2>
+ );
+ },
+ h3({ children }) {
+ return (
+ <h3 className="mt-5 mb-2 text-sm font-semibold uppercase text-text-main/80">{children}</h3>
+ );
+ },
+ p({ children }) {
+ return <p className="mb-2 text-sm leading-relaxed text-text-muted">{children}</p>;
+ },
+ ul({ children }) {
+ return <ul className="my-3 flex flex-col gap-2">{children}</ul>;
+ },
+ li({ children }) {
+ return (
+ <li className="ml-2 flex items-start text-sm leading-relaxed text-text-muted">
+ <span className="mr-3 mt-2 size-1.5 shrink-0 rounded-full bg-text-muted/30" />
+ <span>{children}</span>
+ </li>
+ );
+ },
+ strong({ children }) {
+ return <strong className="font-semibold text-text-main">{children}</strong>;
+ },
+ code({ children }) {
+ return (
+ <code className="rounded border border-black/5 bg-bg-subtle px-1.5 py-0.5 font-mono text-[13px] text-text-main dark:border-white/5">
+ {children}
+ </code>
+ );
+ },
+ a({ href, children }) {
+ const resolvedHref = resolveChangelogHref(href);
+ if (!resolvedHref) return <span>{children}</span>;
+
+ return (
+ <a
+ href={resolvedHref}
+ target={resolvedHref.startsWith("#") ? undefined : "_blank"}
+ rel={resolvedHref.startsWith("#") ? undefined : "noopener noreferrer"}
+ className="text-primary hover:underline"
+ >
+ {children}
+ </a>
+ );
+ },
+};
+
+export default function ChangelogViewer() {
+ const [markdown, setMarkdown] = useState("");
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(false);
+
+ useEffect(() => {
+ async function fetchChangelog() {
+ try {
+ const res = await fetch(CHANGELOG_RAW_URL, { cache: "no-store" });
+ if (!res.ok) throw new Error(`Changelog fetch failed with ${res.status}`);
+
+ const text = await res.text();
+ setMarkdown(getLatestChangelogMarkdown(text, 10));
+ } catch (err) {
+ console.error(err);
+ setError(true);
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ fetchChangelog();
+ }, []);
+
+ if (loading) {
+ return (
+ <div className="flex flex-col items-center justify-center space-y-4 py-32">
+ <span className="material-symbols-outlined animate-spin text-[32px] text-text-muted/50">
+ sync
+ </span>
+ <p className="text-sm text-text-muted">Loading changelog from GitHub...</p>
+ </div>
+ );
+ }
+
+ if (error) {
+ return (
+ <div className="flex flex-col items-center justify-center py-20 text-text-muted">
+ <span className="material-symbols-outlined mb-4 text-[48px] text-red-500/50">
+ error_outline
+ </span>
+ <p>Could not load the changelog. Please try again later.</p>
+ <Button variant="secondary" className="mt-4" onClick={() => globalThis.location.reload()}>
+ Retry
+ </Button>
+ </div>
+ );
+ }
+
+ return (
+ <div className="p-8">
+ <div className="max-w-none">
+ <ReactMarkdown components={markdownComponents}>{markdown}</ReactMarkdown>
+ </div>
+ <div className="mt-12 flex justify-center border-t border-border pt-6">
+ <a href={CHANGELOG_GITHUB_URL} target="_blank" rel="noopener noreferrer">
+ <Button variant="secondary" className="gap-2 text-xs">
+ <span className="material-symbols-outlined text-[16px]">open_in_new</span>
+ View Full History on GitHub
+ </Button>
+ </a>
+ </div>
+ </div>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/changelog/components/NewsViewer.tsx b/src/app/(dashboard)/dashboard/changelog/components/NewsViewer.tsx
new file mode 100644
index 0000000000..0910bd056b
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/changelog/components/NewsViewer.tsx
@@ -0,0 +1,95 @@
+"use client";
+
+import { useState, useEffect } from "react";
+import { Button } from "@/shared/components";
+import {
+ NEWS_JSON_URL,
+ parseActiveNewsPayload,
+ type NewsAnnouncement,
+} from "@/shared/utils/releaseNotes";
+
+export default function NewsViewer() {
+ const [news, setNews] = useState<NewsAnnouncement | null>(null);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(false);
+
+ useEffect(() => {
+ async function fetchNews() {
+ try {
+ const res = await fetch(NEWS_JSON_URL, { cache: "no-store" });
+ if (res.ok) {
+ const data = await res.json();
+ setNews(parseActiveNewsPayload(data));
+ } else {
+ setError(true);
+ }
+ } catch (err) {
+ console.error("Failed to fetch news:", err);
+ setError(true);
+ } finally {
+ setLoading(false);
+ }
+ }
+ fetchNews();
+ }, []);
+
+ if (loading) {
+ return (
+ <div className="flex justify-center py-20">
+ <span className="material-symbols-outlined animate-spin text-[32px] text-text-muted">
+ sync
+ </span>
+ </div>
+ );
+ }
+
+ if (error) {
+ return (
+ <div className="flex flex-col items-center justify-center py-20 text-text-muted">
+ <span className="material-symbols-outlined text-[48px] text-red-500/50 mb-4">
+ error_outline
+ </span>
+ <p>Could not load announcements. Please try again later.</p>
+ </div>
+ );
+ }
+
+ if (!news || !news.active) {
+ return (
+ <div className="flex flex-col items-center justify-center py-20 text-text-muted">
+ <span className="material-symbols-outlined text-[48px] opacity-50 mb-4">
+ notifications_off
+ </span>
+ <p>No new announcements at this time.</p>
+ </div>
+ );
+ }
+
+ return (
+ <div className="p-8">
+ <div className="flex flex-col gap-6 border-l-4 border-primary pl-5 md:flex-row md:items-center md:pl-6">
+ <div className="size-14 rounded-lg bg-primary/10 flex items-center justify-center shrink-0">
+ <span className="material-symbols-outlined text-[30px] text-primary">
+ {news.icon || "campaign"}
+ </span>
+ </div>
+
+ <div className="flex-1">
+ <h2 className="text-xl font-bold text-text-main mb-2">{news.title}</h2>
+ <p className="text-sm text-text-muted leading-relaxed max-w-2xl">{news.message}</p>
+ </div>
+
+ {news.link && (
+ <div className="shrink-0 md:ml-auto">
+ <a href={news.link} target="_blank" rel="noopener noreferrer">
+ <Button variant="primary" className="gap-2">
+ {news.linkLabel || "Learn More"}
+ <span className="material-symbols-outlined text-[18px]">arrow_forward</span>
+ </Button>
+ </a>
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/changelog/page.tsx b/src/app/(dashboard)/dashboard/changelog/page.tsx
new file mode 100644
index 0000000000..d467f00f27
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/changelog/page.tsx
@@ -0,0 +1,40 @@
+"use client";
+
+import { useState } from "react";
+import { useTranslations } from "next-intl";
+import { Card, SegmentedControl } from "@/shared/components";
+import ChangelogViewer from "./components/ChangelogViewer";
+import NewsViewer from "./components/NewsViewer";
+
+export default function ChangelogPage() {
+ const [activeTab, setActiveTab] = useState<"news" | "changelog">("news");
+ const t = useTranslations("sidebar");
+ const title = typeof t.has === "function" && t.has("changelog") ? t("changelog") : "Changelog";
+
+ return (
+ <div className="flex flex-col gap-6 max-w-5xl mx-auto w-full">
+ <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
+ <div>
+ <h1 className="text-2xl font-bold text-text-main">{title}</h1>
+ <p className="text-sm text-text-muted mt-1">
+ Stay up to date with the latest platform features and announcements.
+ </p>
+ </div>
+ <div className="shrink-0 w-full sm:w-[240px]">
+ <SegmentedControl
+ options={[
+ { label: "News", value: "news" },
+ { label: "Changelog", value: "changelog" },
+ ]}
+ value={activeTab}
+ onChange={(val) => setActiveTab(val as "news" | "changelog")}
+ />
+ </div>
+ </div>
+
+ <Card className="min-h-[500px] overflow-hidden" padding="none">
+ {activeTab === "news" ? <NewsViewer /> : <ChangelogViewer />}
+ </Card>
+ </div>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.tsx b/src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.tsx
index 20ae5ad1e3..6ecd322bac 100644
--- a/src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.tsx
+++ b/src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.tsx
@@ -5,6 +5,10 @@ import { Card, Button, ModelSelectModal, ManualConfigModal } from "@/shared/comp
import Image from "next/image";
import CliStatusBadge from "./CliStatusBadge";
import { useTranslations } from "next-intl";
+import {
+ getStoredClaudeAuthValue,
+ normalizeClaudeBaseUrl,
+} from "@/shared/services/claudeCliConfig";
const CLOUD_URL = process.env.NEXT_PUBLIC_CLOUD_URL;
@@ -98,7 +102,7 @@ export default function ClaudeToolCard({
}
});
// Restore selected key from file: match token stored in file against known keys
- const tokenFromFile = env.ANTHROPIC_AUTH_TOKEN;
+ const tokenFromFile = getStoredClaudeAuthValue(env);
if (tokenFromFile) {
// (#523) Keys from /api/keys are masked (first 8 + "****" + last 4).
// Mask the token from file to compare against the masked list.
@@ -124,12 +128,12 @@ export default function ClaudeToolCard({
const getEffectiveBaseUrl = () => {
const url = customBaseUrl || baseUrl;
- return url.endsWith("/v1") ? url : `${url}/v1`;
+ return normalizeClaudeBaseUrl(url);
};
const getDisplayUrl = () => {
const url = customBaseUrl || baseUrl;
- return url.endsWith("/v1") ? url : `${url}/v1`;
+ return normalizeClaudeBaseUrl(url);
};
const handleApplySettings = async () => {
@@ -139,13 +143,9 @@ export default function ClaudeToolCard({
const env: any = { ANTHROPIC_BASE_URL: getEffectiveBaseUrl() };
// (#523) Prefer keyId lookup so the backend writes the real key to disk.
- // Fall back to sk_omniroute for localhost-only setups without a key.
+ // If no key is selected, leave auth unset so local installs can rely on
+ // anonymous access instead of persisting a fake placeholder token.
const selectedKeyId = selectedApiKey?.trim() || (apiKeys?.length > 0 ? apiKeys[0].id : null);
- const skOmnirouteFallback = !cloudEnabled ? "sk_omniroute" : null;
-
- if (!selectedKeyId && skOmnirouteFallback) {
- env.ANTHROPIC_AUTH_TOKEN = skOmnirouteFallback;
- }
tool.defaultModels.forEach((model) => {
const targetModel = modelMappings[model.alias] || model.defaultValue || "";
@@ -221,13 +221,13 @@ export default function ClaudeToolCard({
// Generate settings.json content for manual copy
const getManualConfigs = () => {
- const keyToUse =
- selectedApiKey && selectedApiKey.trim()
- ? selectedApiKey
- : !cloudEnabled
- ? "sk_omniroute"
- : "<API_KEY_FROM_DASHBOARD>";
- const env = { ANTHROPIC_BASE_URL: getEffectiveBaseUrl(), ANTHROPIC_AUTH_TOKEN: keyToUse };
+ const env = { ANTHROPIC_BASE_URL: getEffectiveBaseUrl() };
+ if (selectedApiKey && selectedApiKey.trim()) {
+ env.ANTHROPIC_AUTH_TOKEN = "<API_KEY_FROM_DASHBOARD>";
+ } else if (cloudEnabled) {
+ env.ANTHROPIC_AUTH_TOKEN = "<API_KEY_FROM_DASHBOARD>";
+ }
+
tool.defaultModels.forEach((model) => {
const targetModel = modelMappings[model.alias];
if (targetModel && model.envKey) env[model.envKey] = targetModel;
@@ -443,7 +443,7 @@ export default function ClaudeToolCard({
</select>
) : (
<span className="flex-1 text-xs text-text-muted px-2 py-1.5">
- {cloudEnabled ? t("noApiKeysCreateOne") : t("defaultOmnirouteKey")}
+ {cloudEnabled ? t("noApiKeysCreateOne") : t("noApiKeysAvailable")}
</span>
)}
</div>
diff --git a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
index cd14821237..d07926b240 100644
--- a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
+++ b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
@@ -103,6 +103,8 @@ export default function APIPageClient({ machineId }) {
const [tailscaleInstallBusy, setTailscaleInstallBusy] = useState(false);
const [tailscaleInstallLog, setTailscaleInstallLog] = useState<string[]>([]);
const [tailscalePassword, setTailscalePassword] = useState("");
+ const [showCloudflaredTunnel, setShowCloudflaredTunnel] = useState(true);
+ const [showTailscaleFunnel, setShowTailscaleFunnel] = useState(true);
const { copied, copy } = useCopyToClipboard();
@@ -308,6 +310,8 @@ export default function APIPageClient({ machineId }) {
if (data.machineId) {
setResolvedMachineId(data.machineId);
}
+ setShowCloudflaredTunnel(data.hideEndpointCloudflaredTunnel !== true);
+ setShowTailscaleFunnel(data.hideEndpointTailscaleFunnel !== true);
}
} catch (error) {
console.log("Error loading cloud settings:", error);
@@ -989,236 +993,242 @@ export default function APIPageClient({ machineId }) {
</Button>
</div>
- <div className="rounded-xl border border-border/70 bg-surface/40 p-4">
- <div className="flex flex-col gap-3">
- <div className="flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between">
- <div className="min-w-0">
- <div className="flex flex-wrap items-center gap-2">
- <h3 className="text-sm font-semibold">
- {translateOrFallback("cloudflaredTitle", "Cloudflare Quick Tunnel")}
- </h3>
- <span
- className={`inline-flex items-center rounded-full border px-2 py-1 text-xs font-medium ${cloudflaredPhaseMeta[cloudflaredPhase].className}`}
+ {showCloudflaredTunnel && (
+ <div className="rounded-xl border border-border/70 bg-surface/40 p-4">
+ <div className="flex flex-col gap-3">
+ <div className="flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between">
+ <div className="min-w-0">
+ <div className="flex flex-wrap items-center gap-2">
+ <h3 className="text-sm font-semibold">
+ {translateOrFallback("cloudflaredTitle", "Cloudflare Quick Tunnel")}
+ </h3>
+ <span
+ className={`inline-flex items-center rounded-full border px-2 py-1 text-xs font-medium ${cloudflaredPhaseMeta[cloudflaredPhase].className}`}
+ >
+ {cloudflaredPhaseMeta[cloudflaredPhase].label}
+ </span>
+ </div>
+ </div>
+
+ {cloudflaredStatus?.supported !== false && (
+ <Button
+ size="sm"
+ variant={cloudflaredStatus?.running ? "secondary" : "primary"}
+ icon={cloudflaredStatus?.running ? "cloud_off" : "cloud_upload"}
+ onClick={() =>
+ handleCloudflaredAction(cloudflaredStatus?.running ? "disable" : "enable")
+ }
+ loading={cloudflaredBusy}
+ className={
+ cloudflaredStatus?.running
+ ? "border-border/70! text-text-muted! hover:text-text!"
+ : "bg-linear-to-r from-primary to-cyan-500 hover:from-primary-hover hover:to-cyan-600"
+ }
>
- {cloudflaredPhaseMeta[cloudflaredPhase].label}
+ {cloudflaredActionLabel}
+ </Button>
+ )}
+ </div>
+
+ {cloudflaredNotice && (
+ <div
+ className={`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm ${
+ cloudflaredNotice.type === "success"
+ ? "border-green-500/30 bg-green-500/10 text-green-400"
+ : cloudflaredNotice.type === "info"
+ ? "border-blue-500/30 bg-blue-500/10 text-blue-400"
+ : "border-red-500/30 bg-red-500/10 text-red-400"
+ }`}
+ >
+ <span className="material-symbols-outlined text-[18px]">
+ {cloudflaredNotice.type === "success"
+ ? "check_circle"
+ : cloudflaredNotice.type === "info"
+ ? "info"
+ : "error"}
</span>
+ <span className="flex-1">{cloudflaredNotice.message}</span>
+ <button
+ onClick={() => setCloudflaredNotice(null)}
+ className="rounded p-0.5 transition-colors hover:bg-white/10"
+ >
+ <span className="material-symbols-outlined text-[16px]">close</span>
+ </button>
</div>
- </div>
+ )}
- {cloudflaredStatus?.supported !== false && (
+ <p className="text-xs text-text-muted">{cloudflaredUrlNotice}</p>
+ <div className="flex flex-col sm:flex-row gap-2">
+ <Input
+ value={cloudflaredStatus?.apiUrl || ""}
+ readOnly
+ placeholder="https://*.trycloudflare.com/v1"
+ className="flex-1 min-w-0 font-mono text-sm"
+ />
<Button
- size="sm"
- variant={cloudflaredStatus?.running ? "secondary" : "primary"}
- icon={cloudflaredStatus?.running ? "cloud_off" : "cloud_upload"}
+ variant="secondary"
+ icon={copied === "cloudflared_url" ? "check" : "content_copy"}
onClick={() =>
- handleCloudflaredAction(cloudflaredStatus?.running ? "disable" : "enable")
- }
- loading={cloudflaredBusy}
- className={
- cloudflaredStatus?.running
- ? "border-border/70! text-text-muted! hover:text-text!"
- : "bg-linear-to-r from-primary to-cyan-500 hover:from-primary-hover hover:to-cyan-600"
+ cloudflaredStatus?.apiUrl && copy(cloudflaredStatus.apiUrl, "cloudflared_url")
}
+ disabled={!cloudflaredStatus?.apiUrl}
+ className="shrink-0 self-start sm:self-auto"
>
- {cloudflaredActionLabel}
+ {copied === "cloudflared_url" ? tc("copied") : tc("copy")}
</Button>
- )}
- </div>
-
- {cloudflaredNotice && (
- <div
- className={`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm ${
- cloudflaredNotice.type === "success"
- ? "border-green-500/30 bg-green-500/10 text-green-400"
- : cloudflaredNotice.type === "info"
- ? "border-blue-500/30 bg-blue-500/10 text-blue-400"
- : "border-red-500/30 bg-red-500/10 text-red-400"
- }`}
- >
- <span className="material-symbols-outlined text-[18px]">
- {cloudflaredNotice.type === "success"
- ? "check_circle"
- : cloudflaredNotice.type === "info"
- ? "info"
- : "error"}
- </span>
- <span className="flex-1">{cloudflaredNotice.message}</span>
- <button
- onClick={() => setCloudflaredNotice(null)}
- className="rounded p-0.5 transition-colors hover:bg-white/10"
- >
- <span className="material-symbols-outlined text-[16px]">close</span>
- </button>
</div>
- )}
-
- <p className="text-xs text-text-muted">{cloudflaredUrlNotice}</p>
- <div className="flex flex-col sm:flex-row gap-2">
- <Input
- value={cloudflaredStatus?.apiUrl || ""}
- readOnly
- placeholder="https://*.trycloudflare.com/v1"
- className="flex-1 min-w-0 font-mono text-sm"
- />
- <Button
- variant="secondary"
- icon={copied === "cloudflared_url" ? "check" : "content_copy"}
- onClick={() =>
- cloudflaredStatus?.apiUrl && copy(cloudflaredStatus.apiUrl, "cloudflared_url")
- }
- disabled={!cloudflaredStatus?.apiUrl}
- className="shrink-0 self-start sm:self-auto"
- >
- {copied === "cloudflared_url" ? tc("copied") : tc("copy")}
- </Button>
+ {cloudflaredStatus?.lastError && (
+ <p className="text-xs text-red-400">
+ {translateOrFallback("cloudflaredLastError", "Last error: {error}", {
+ error: cloudflaredStatus.lastError,
+ })}
+ </p>
+ )}
</div>
- {cloudflaredStatus?.lastError && (
- <p className="text-xs text-red-400">
- {translateOrFallback("cloudflaredLastError", "Last error: {error}", {
- error: cloudflaredStatus.lastError,
- })}
- </p>
- )}
</div>
- </div>
+ )}
- <div className="mt-4 rounded-xl border border-border/70 bg-surface/40 p-4">
- <div className="flex flex-col gap-3">
- <div className="flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between">
- <div className="min-w-0">
- <div className="flex flex-wrap items-center gap-2">
- <h3 className="text-sm font-semibold">
- {translateOrFallback("tailscaleTitle", "Tailscale Funnel")}
- </h3>
- <span
- className={`inline-flex items-center rounded-full border px-2 py-1 text-xs font-medium ${tailscalePhaseMeta[tailscalePhase].className}`}
+ {showTailscaleFunnel && (
+ <div
+ className={`${showCloudflaredTunnel ? "mt-4 " : ""}rounded-xl border border-border/70 bg-surface/40 p-4`}
+ >
+ <div className="flex flex-col gap-3">
+ <div className="flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between">
+ <div className="min-w-0">
+ <div className="flex flex-wrap items-center gap-2">
+ <h3 className="text-sm font-semibold">
+ {translateOrFallback("tailscaleTitle", "Tailscale Funnel")}
+ </h3>
+ <span
+ className={`inline-flex items-center rounded-full border px-2 py-1 text-xs font-medium ${tailscalePhaseMeta[tailscalePhase].className}`}
+ >
+ {tailscalePhaseMeta[tailscalePhase].label}
+ </span>
+ </div>
+ </div>
+
+ {tailscaleStatus?.supported !== false && (
+ <Button
+ size="sm"
+ variant={tailscaleStatus?.running ? "secondary" : "primary"}
+ icon={tailscaleStatus?.running ? "vpn_lock_off" : "vpn_lock"}
+ onClick={() => {
+ if (tailscaleStatus?.running) {
+ void handleTailscaleDisable();
+ } else if (!tailscaleStatus?.installed) {
+ setShowTailscaleInstallModal(true);
+ } else {
+ void handleTailscaleEnable();
+ }
+ }}
+ loading={tailscaleBusy}
+ className={
+ tailscaleStatus?.running
+ ? "border-border/70! text-text-muted! hover:text-text!"
+ : "bg-linear-to-r from-indigo-500 to-cyan-500 hover:from-indigo-600 hover:to-cyan-600"
+ }
>
- {tailscalePhaseMeta[tailscalePhase].label}
+ {tailscaleActionLabel}
+ </Button>
+ )}
+ </div>
+
+ {tailscaleNotice && (
+ <div
+ className={`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm ${
+ tailscaleNotice.type === "success"
+ ? "border-green-500/30 bg-green-500/10 text-green-400"
+ : tailscaleNotice.type === "info"
+ ? "border-blue-500/30 bg-blue-500/10 text-blue-400"
+ : "border-red-500/30 bg-red-500/10 text-red-400"
+ }`}
+ >
+ <span className="material-symbols-outlined text-[18px]">
+ {tailscaleNotice.type === "success"
+ ? "check_circle"
+ : tailscaleNotice.type === "info"
+ ? "info"
+ : "error"}
</span>
+ <span className="flex-1">{tailscaleNotice.message}</span>
+ <button
+ onClick={() => setTailscaleNotice(null)}
+ className="rounded p-0.5 transition-colors hover:bg-white/10"
+ >
+ <span className="material-symbols-outlined text-[16px]">close</span>
+ </button>
</div>
- </div>
+ )}
- {tailscaleStatus?.supported !== false && (
+ <p className="text-xs text-text-muted">{tailscaleUrlNotice}</p>
+ {tailscaleStatus?.phase === "needs_login" && (
+ <p className="text-xs text-blue-400">
+ {translateOrFallback(
+ "tailscaleNeedsLoginHint",
+ "Authenticate this machine with Tailscale, then enable Funnel."
+ )}
+ </p>
+ )}
+ {/* Sudo password input — shown when Tailscale is installed but not running (needs sudo to start daemon) */}
+ {tailscaleStatus?.installed &&
+ !tailscaleStatus?.running &&
+ tailscaleStatus?.platform !== "win32" && (
+ <div className="flex flex-col gap-1">
+ <label className="text-xs text-text-muted">
+ {translateOrFallback(
+ "tailscaleSudoLabel",
+ "Sudo Password (required on macOS/Linux)"
+ )}
+ </label>
+ <Input
+ type="password"
+ value={tailscalePassword}
+ onChange={(event) => setTailscalePassword(event.target.value)}
+ placeholder={translateOrFallback(
+ "tailscaleSudoPlaceholder",
+ "Enter sudo password"
+ )}
+ disabled={tailscaleBusy}
+ className="font-mono text-sm"
+ />
+ </div>
+ )}
+ <div className="flex flex-col sm:flex-row gap-2">
+ <Input
+ value={tailscaleStatus?.apiUrl || ""}
+ readOnly
+ placeholder="https://your-device.tailnet.ts.net/v1"
+ className="flex-1 min-w-0 font-mono text-sm"
+ />
<Button
- size="sm"
- variant={tailscaleStatus?.running ? "secondary" : "primary"}
- icon={tailscaleStatus?.running ? "vpn_lock_off" : "vpn_lock"}
- onClick={() => {
- if (tailscaleStatus?.running) {
- void handleTailscaleDisable();
- } else if (!tailscaleStatus?.installed) {
- setShowTailscaleInstallModal(true);
- } else {
- void handleTailscaleEnable();
- }
- }}
- loading={tailscaleBusy}
- className={
- tailscaleStatus?.running
- ? "border-border/70! text-text-muted! hover:text-text!"
- : "bg-linear-to-r from-indigo-500 to-cyan-500 hover:from-indigo-600 hover:to-cyan-600"
+ variant="secondary"
+ icon={copied === "tailscale_url" ? "check" : "content_copy"}
+ onClick={() =>
+ tailscaleStatus?.apiUrl && copy(tailscaleStatus.apiUrl, "tailscale_url")
}
+ disabled={!tailscaleStatus?.apiUrl}
+ className="shrink-0 self-start sm:self-auto"
>
- {tailscaleActionLabel}
+ {copied === "tailscale_url" ? tc("copied") : tc("copy")}
</Button>
- )}
- </div>
-
- {tailscaleNotice && (
- <div
- className={`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm ${
- tailscaleNotice.type === "success"
- ? "border-green-500/30 bg-green-500/10 text-green-400"
- : tailscaleNotice.type === "info"
- ? "border-blue-500/30 bg-blue-500/10 text-blue-400"
- : "border-red-500/30 bg-red-500/10 text-red-400"
- }`}
- >
- <span className="material-symbols-outlined text-[18px]">
- {tailscaleNotice.type === "success"
- ? "check_circle"
- : tailscaleNotice.type === "info"
- ? "info"
- : "error"}
- </span>
- <span className="flex-1">{tailscaleNotice.message}</span>
- <button
- onClick={() => setTailscaleNotice(null)}
- className="rounded p-0.5 transition-colors hover:bg-white/10"
- >
- <span className="material-symbols-outlined text-[16px]">close</span>
- </button>
</div>
- )}
-
- <p className="text-xs text-text-muted">{tailscaleUrlNotice}</p>
- {tailscaleStatus?.phase === "needs_login" && (
- <p className="text-xs text-blue-400">
- {translateOrFallback(
- "tailscaleNeedsLoginHint",
- "Authenticate this machine with Tailscale, then enable Funnel."
- )}
- </p>
- )}
- {/* Sudo password input — shown when Tailscale is installed but not running (needs sudo to start daemon) */}
- {tailscaleStatus?.installed &&
- !tailscaleStatus?.running &&
- tailscaleStatus?.platform !== "win32" && (
- <div className="flex flex-col gap-1">
- <label className="text-xs text-text-muted">
- {translateOrFallback(
- "tailscaleSudoLabel",
- "Sudo Password (required on macOS/Linux)"
- )}
- </label>
- <Input
- type="password"
- value={tailscalePassword}
- onChange={(event) => setTailscalePassword(event.target.value)}
- placeholder={translateOrFallback(
- "tailscaleSudoPlaceholder",
- "Enter sudo password"
- )}
- disabled={tailscaleBusy}
- className="font-mono text-sm"
- />
- </div>
+ {tailscaleStatus?.binaryPath && (
+ <p className="text-xs text-text-muted">
+ {translateOrFallback("tailscaleBinaryPath", "Binary: {path}", {
+ path: tailscaleStatus.binaryPath,
+ })}
+ </p>
+ )}
+ {tailscaleStatus?.lastError && (
+ <p className="text-xs text-red-400">
+ {translateOrFallback("tailscaleLastError", "Last error: {error}", {
+ error: tailscaleStatus.lastError,
+ })}
+ </p>
)}
- <div className="flex flex-col sm:flex-row gap-2">
- <Input
- value={tailscaleStatus?.apiUrl || ""}
- readOnly
- placeholder="https://your-device.tailnet.ts.net/v1"
- className="flex-1 min-w-0 font-mono text-sm"
- />
- <Button
- variant="secondary"
- icon={copied === "tailscale_url" ? "check" : "content_copy"}
- onClick={() =>
- tailscaleStatus?.apiUrl && copy(tailscaleStatus.apiUrl, "tailscale_url")
- }
- disabled={!tailscaleStatus?.apiUrl}
- className="shrink-0 self-start sm:self-auto"
- >
- {copied === "tailscale_url" ? tc("copied") : tc("copy")}
- </Button>
</div>
- {tailscaleStatus?.binaryPath && (
- <p className="text-xs text-text-muted">
- {translateOrFallback("tailscaleBinaryPath", "Binary: {path}", {
- path: tailscaleStatus.binaryPath,
- })}
- </p>
- )}
- {tailscaleStatus?.lastError && (
- <p className="text-xs text-red-400">
- {translateOrFallback("tailscaleLastError", "Last error: {error}", {
- error: tailscaleStatus.lastError,
- })}
- </p>
- )}
</div>
- </div>
+ )}
</Card>
<Card>
diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
index cdcfa5dfdd..25ad3c7f7b 100644
--- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
@@ -2730,7 +2730,7 @@ export default function ProviderDetailPage() {
{isCompatible && providerNode && (
<Card>
- <div className="flex items-center justify-between mb-4">
+ <div className="mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div>
<h2 className="text-lg font-semibold">
{isCcCompatible
@@ -2743,7 +2743,7 @@ export default function ProviderDetailPage() {
{getApiLabel()} · {(providerNode.baseUrl || "").replace(/\/$/, "")}/{getApiPath()}
</p>
</div>
- <div className="flex items-center gap-2">
+ <div className="flex flex-wrap items-center gap-2">
<Button size="sm" icon="add" onClick={() => setShowAddApiKeyModal(true)}>
{t("add")}
</Button>
@@ -2788,6 +2788,16 @@ export default function ProviderDetailPage() {
</Button>
</div>
</div>
+ {isCcCompatible && (
+ <div className="mb-4 rounded-lg border border-amber-500/25 bg-amber-500/10 px-3 py-2 text-sm text-text-muted">
+ <div className="flex items-start gap-2">
+ <span className="material-symbols-outlined mt-0.5 text-[18px] text-amber-500">
+ warning
+ </span>
+ <p>{t("ccCompatibleValidationHint")}</p>
+ </div>
+ </div>
+ )}
</Card>
)}
@@ -3525,12 +3535,12 @@ function ModelRow({
className={`rounded p-0.5 hover:bg-sidebar transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${testStatus === "ok" ? "text-green-500" : testStatus === "error" ? "text-red-500" : "text-text-muted hover:text-primary"}`}
title={
testingModel
- ? t("testingModel", "Testing...")
+ ? t("testingModel")
: testStatus === "ok"
? "OK"
: testStatus === "error"
? "Error"
- : t("testModel", "Test Model")
+ : t("testModel")
}
>
{testingModel ? (
@@ -3911,12 +3921,12 @@ function PassthroughModelRow({
className={`rounded p-0.5 hover:bg-sidebar transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${testStatus === "ok" ? "text-green-500" : testStatus === "error" ? "text-red-500" : "text-text-muted hover:text-primary"}`}
title={
testingModel
- ? t("testingModel", "Testing...")
+ ? t("testingModel")
: testStatus === "ok"
? "OK"
: testStatus === "error"
? "Error"
- : t("testModel", "Test Model")
+ : t("testModel")
}
>
{testingModel ? (
@@ -5772,6 +5782,7 @@ function AddApiKeyModal({
}
let isValid = false;
+ let validationError: string | null = null;
try {
setValidating(true);
setValidationResult(null);
@@ -5789,6 +5800,9 @@ function AddApiKeyModal({
});
const data = await res.json();
isValid = !!data.valid;
+ if (!isValid && data.error) {
+ validationError = data.error;
+ }
setValidationResult(isValid ? "success" : "failed");
} catch {
setValidationResult("failed");
@@ -5797,8 +5811,13 @@ function AddApiKeyModal({
}
if (!isValid) {
- setSaveError(t("apiKeyValidationFailed"));
- return;
+ if (apiKeyOptional && !formData.apiKey) {
+ // Bypass validation block for local/optional providers when no key is provided
+ console.debug("Validation failed but apiKey is optional; proceeding to save.");
+ } else {
+ setSaveError(validationError || t("apiKeyValidationFailed"));
+ return;
+ }
}
const providerSpecificData: Record<string, unknown> = {};
@@ -5860,6 +5879,16 @@ function AddApiKeyModal({
onClose={onClose}
>
<div className="flex flex-col gap-4">
+ {isCcCompatible && (
+ <div className="rounded-lg border border-amber-500/25 bg-amber-500/10 px-3 py-2 text-sm text-text-muted">
+ <div className="flex items-start gap-2">
+ <span className="material-symbols-outlined mt-0.5 text-[18px] text-amber-500">
+ warning
+ </span>
+ <p>{t("ccCompatibleValidationHint")}</p>
+ </div>
+ </div>
+ )}
<Input
label={t("nameLabel")}
value={formData.name}
@@ -5920,17 +5949,15 @@ function AddApiKeyModal({
/>
</div>
)}
- {isCompatible && (
+ {isCompatible && !isCcCompatible && (
<p className="text-xs text-text-muted">
- {isCcCompatible
- ? t("ccCompatibleValidationHint")
- : isAnthropic
- ? t("validationChecksAnthropicCompatible", {
- provider: providerName || t("anthropicCompatibleName"),
- })
- : t("validationChecksOpenAiCompatible", {
- provider: providerName || t("openaiCompatibleName"),
- })}
+ {isAnthropic
+ ? t("validationChecksAnthropicCompatible", {
+ provider: providerName || t("anthropicCompatibleName"),
+ })
+ : t("validationChecksOpenAiCompatible", {
+ provider: providerName || t("openaiCompatibleName"),
+ })}
</p>
)}
<button
@@ -6959,6 +6986,16 @@ function EditCompatibleNodeModal({
onClose={onClose}
>
<div className="flex flex-col gap-4">
+ {isCcCompatible && (
+ <div className="rounded-lg border border-amber-500/25 bg-amber-500/10 px-3 py-2 text-sm text-text-muted">
+ <div className="flex items-start gap-2">
+ <span className="material-symbols-outlined mt-0.5 text-[18px] text-amber-500">
+ warning
+ </span>
+ <p>{t("ccCompatibleValidationHint")}</p>
+ </div>
+ </div>
+ )}
<Input
label={t("nameLabel")}
value={formData.name}
diff --git a/src/app/(dashboard)/dashboard/providers/page.tsx b/src/app/(dashboard)/dashboard/providers/page.tsx
index 7917f2e66e..4249b8ced2 100644
--- a/src/app/(dashboard)/dashboard/providers/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/page.tsx
@@ -1044,7 +1044,6 @@ export default function ProvidersPage() {
<AddCcCompatibleModal
isOpen={showAddCcCompatibleModal}
addLabel={addCcCompatibleLabel}
- compatibleLabel={ccCompatibleLabel}
onClose={() => setShowAddCcCompatibleModal(false)}
onCreated={(node) => {
setProviderNodes((prev) => [...prev, node]);
@@ -1752,12 +1751,12 @@ AddAnthropicCompatibleModal.propTypes = {
onCreated: PropTypes.func.isRequired,
};
-function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCreated }) {
+function AddCcCompatibleModal({ isOpen, addLabel, onClose, onCreated }) {
const t = useTranslations("providers");
const [formData, setFormData] = useState({
name: "",
prefix: "",
- baseUrl: "https://api.anthropic.com",
+ baseUrl: "",
chatPath: CC_COMPATIBLE_DEFAULT_CHAT_PATH,
});
const [submitting, setSubmitting] = useState(false);
@@ -1765,6 +1764,10 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
const [validating, setValidating] = useState(false);
const [validationResult, setValidationResult] = useState<"success" | "failed" | null>(null);
const [showAdvanced, setShowAdvanced] = useState(false);
+ const hasRequiredFields = Boolean(
+ formData.name.trim() && formData.prefix.trim() && formData.baseUrl.trim()
+ );
+ const canValidate = Boolean(checkKey.trim() && formData.baseUrl.trim());
useEffect(() => {
if (isOpen) {
@@ -1774,7 +1777,7 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
}, [isOpen]);
const handleSubmit = async () => {
- if (!formData.name.trim() || !formData.prefix.trim() || !formData.baseUrl.trim()) return;
+ if (!hasRequiredFields) return;
setSubmitting(true);
try {
const res = await fetch("/api/provider-nodes", {
@@ -1795,7 +1798,7 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
setFormData({
name: "",
prefix: "",
- baseUrl: "https://api.anthropic.com",
+ baseUrl: "",
chatPath: CC_COMPATIBLE_DEFAULT_CHAT_PATH,
});
setCheckKey("");
@@ -1835,26 +1838,34 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
return (
<Modal isOpen={isOpen} title={addLabel} onClose={onClose}>
<div className="flex flex-col gap-4">
+ <div className="rounded-lg border border-amber-500/25 bg-amber-500/10 px-3 py-2 text-sm text-text-muted">
+ <div className="flex items-start gap-2">
+ <span className="material-symbols-outlined mt-0.5 text-[18px] text-amber-500">
+ warning
+ </span>
+ <p>{t("ccCompatibleValidationHint")}</p>
+ </div>
+ </div>
<Input
label={t("nameLabel")}
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
- placeholder={t("compatibleProdPlaceholder", { type: compatibleLabel })}
- hint={t("nameHint")}
+ placeholder={t("ccCompatibleNamePlaceholder")}
+ hint={t("ccCompatibleNameHint")}
/>
<Input
label={t("prefixLabel")}
value={formData.prefix}
onChange={(e) => setFormData({ ...formData, prefix: e.target.value })}
- placeholder="cc-prod"
- hint={t("prefixHint")}
+ placeholder={t("ccCompatiblePrefixPlaceholder")}
+ hint={t("ccCompatiblePrefixHint")}
/>
<Input
label={t("baseUrlLabel")}
value={formData.baseUrl}
onChange={(e) => setFormData({ ...formData, baseUrl: e.target.value })}
- placeholder="https://api.anthropic.com"
- hint={t("compatibleBaseUrlHint", { type: compatibleLabel })}
+ placeholder={t("ccCompatibleBaseUrlPlaceholder")}
+ hint={t("ccCompatibleBaseUrlHint")}
/>
<button
type="button"
@@ -1881,7 +1892,7 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
value={formData.chatPath}
onChange={(e) => setFormData({ ...formData, chatPath: e.target.value })}
placeholder={CC_COMPATIBLE_DEFAULT_CHAT_PATH}
- hint={t("chatPathHint")}
+ hint={t("ccCompatibleChatPathHint")}
/>
</div>
)}
@@ -1896,7 +1907,7 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
<div className="pt-6">
<Button
onClick={handleValidate}
- disabled={!checkKey || validating || !formData.baseUrl.trim()}
+ disabled={!canValidate || validating}
variant="secondary"
>
{validating ? t("checking") : t("check")}
@@ -1909,16 +1920,7 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
</Badge>
)}
<div className="flex gap-2">
- <Button
- onClick={handleSubmit}
- fullWidth
- disabled={
- !formData.name.trim() ||
- !formData.prefix.trim() ||
- !formData.baseUrl.trim() ||
- submitting
- }
- >
+ <Button onClick={handleSubmit} fullWidth disabled={!hasRequiredFields || submitting}>
{submitting ? t("creating") : t("add")}
</Button>
<Button onClick={onClose} variant="ghost" fullWidth>
@@ -1933,7 +1935,6 @@ function AddCcCompatibleModal({ isOpen, addLabel, compatibleLabel, onClose, onCr
AddCcCompatibleModal.propTypes = {
isOpen: PropTypes.bool.isRequired,
addLabel: PropTypes.string.isRequired,
- compatibleLabel: PropTypes.string.isRequired,
onClose: PropTypes.func.isRequired,
onCreated: PropTypes.func.isRequired,
};
diff --git a/src/app/(dashboard)/dashboard/settings/components/AppearanceTab.tsx b/src/app/(dashboard)/dashboard/settings/components/AppearanceTab.tsx
index aeef9e2255..50b6d102cb 100644
--- a/src/app/(dashboard)/dashboard/settings/components/AppearanceTab.tsx
+++ b/src/app/(dashboard)/dashboard/settings/components/AppearanceTab.tsx
@@ -36,6 +36,8 @@ export default function AppearanceTab() {
);
const hiddenSidebarSet = new Set(hiddenSidebarItems);
const comboConfigMode = normalizeComboConfigMode(settings[COMBO_CONFIG_MODE_SETTING_KEY]);
+ const showCloudflaredTunnel = settings.hideEndpointCloudflaredTunnel !== true;
+ const showTailscaleFunnel = settings.hideEndpointTailscaleFunnel !== true;
const getSettingsLabel = (key: string, fallback: string) =>
typeof t.has === "function" && t.has(key) ? t(key) : fallback;
@@ -255,6 +257,60 @@ export default function AppearanceTab() {
</div>
</div>
+ <div className="pt-4 border-t border-border">
+ <div className="mb-3">
+ <p className="font-medium">
+ {getSettingsLabel("endpointTunnelVisibility", "Endpoint tunnel visibility")}
+ </p>
+ <p className="text-sm text-text-muted">
+ {getSettingsLabel(
+ "endpointTunnelVisibilityDesc",
+ "Hide tunnel controls from the Endpoint page without changing tunnel state."
+ )}
+ </p>
+ </div>
+
+ <div className="rounded-lg border border-border bg-surface/40 divide-y divide-border/70">
+ <div className="flex items-center justify-between gap-4 px-4 py-3">
+ <div>
+ <p className="font-medium">
+ {getSettingsLabel("showCloudflareTunnel", "Cloudflare Quick Tunnel")}
+ </p>
+ <p className="text-sm text-text-muted">
+ {getSettingsLabel(
+ "showCloudflareTunnelDesc",
+ "Show Cloudflare Quick Tunnel controls on the Endpoint page."
+ )}
+ </p>
+ </div>
+ <Toggle
+ checked={showCloudflaredTunnel}
+ onChange={(checked) => updateSetting("hideEndpointCloudflaredTunnel", !checked)}
+ disabled={loading}
+ />
+ </div>
+
+ <div className="flex items-center justify-between gap-4 px-4 py-3">
+ <div>
+ <p className="font-medium">
+ {getSettingsLabel("showTailscaleFunnel", "Tailscale Funnel")}
+ </p>
+ <p className="text-sm text-text-muted">
+ {getSettingsLabel(
+ "showTailscaleFunnelDesc",
+ "Show Tailscale Funnel controls on the Endpoint page."
+ )}
+ </p>
+ </div>
+ <Toggle
+ checked={showTailscaleFunnel}
+ onChange={(checked) => updateSetting("hideEndpointTailscaleFunnel", !checked)}
+ disabled={loading}
+ />
+ </div>
+ </div>
+ </div>
+
<div className="pt-4 border-t border-border">
<div className="mb-3">
<p className="font-medium">
diff --git a/src/app/(dashboard)/dashboard/settings/components/ProxyRegistryManager.tsx b/src/app/(dashboard)/dashboard/settings/components/ProxyRegistryManager.tsx
index b673d92f22..14b3610a67 100644
--- a/src/app/(dashboard)/dashboard/settings/components/ProxyRegistryManager.tsx
+++ b/src/app/(dashboard)/dashboard/settings/components/ProxyRegistryManager.tsx
@@ -38,6 +38,23 @@ type TestResult = {
error?: string;
};
+type ParsedProxyEntry = {
+ name: string;
+ host: string;
+ port: number;
+ username: string;
+ password: string;
+ type: string;
+ region: string;
+ status: string;
+ notes: string;
+};
+
+type ParseError = {
+ line: number;
+ reason: string;
+};
+
const EMPTY_FORM = {
id: "",
name: "",
@@ -51,6 +68,85 @@ const EMPTY_FORM = {
status: "active",
};
+const BULK_IMPORT_TEMPLATE = `# Proxy Bulk Import
+# Format: NAME|HOST|PORT|USERNAME|PASSWORD|TYPE|REGION|STATUS|NOTES
+# Required: NAME, HOST, PORT
+# Optional: USERNAME, PASSWORD, TYPE (http|https|socks5, default: socks5), REGION, STATUS (active|inactive, default: active), NOTES
+# Lines starting with # are ignored. Existing proxies (same host+port) will be updated.
+#
+# SOCKS5 examples:
+# proxy-us|138.99.147.218|50101|myuser|mypass|socks5|US-East|active|US production proxy
+# proxy-eu|200.234.177.62|50101|myuser|mypass|socks5|EU-West
+#
+# HTTP/HTTPS examples:
+# http-proxy|10.0.0.50|8080|||http||active|Internal HTTP proxy
+# https-proxy|proxy.example.com|443|admin|secret123|https|US|active
+`;
+
+const VALID_TYPES = new Set(["http", "https", "socks5"]);
+const VALID_STATUSES = new Set(["active", "inactive"]);
+
+function parseBulkImportText(text: string): {
+ entries: ParsedProxyEntry[];
+ errors: ParseError[];
+ skipped: number;
+} {
+ const lines = text.split("\n");
+ const entries: ParsedProxyEntry[] = [];
+ const errors: ParseError[] = [];
+ let skipped = 0;
+
+ for (let i = 0; i < lines.length; i++) {
+ const raw = lines[i].trim();
+ if (!raw || raw.startsWith("#")) {
+ skipped++;
+ continue;
+ }
+
+ const parts = raw.split("|").map((p) => p.trim());
+ const [name, host, portStr, username, password, type, region, status, notes] = parts;
+ const lineNum = i + 1;
+
+ if (!name) {
+ errors.push({ line: lineNum, reason: "Missing NAME" });
+ continue;
+ }
+ if (!host) {
+ errors.push({ line: lineNum, reason: "Missing HOST" });
+ continue;
+ }
+ const port = Number(portStr);
+ if (!portStr || isNaN(port) || port < 1 || port > 65535) {
+ errors.push({ line: lineNum, reason: "Invalid PORT (must be 1-65535)" });
+ continue;
+ }
+ const normalizedType = (type || "socks5").toLowerCase();
+ if (!VALID_TYPES.has(normalizedType)) {
+ errors.push({ line: lineNum, reason: `Invalid TYPE '${type}' (use http, https, or socks5)` });
+ continue;
+ }
+ const normalizedStatus = (status || "active").toLowerCase();
+ if (!VALID_STATUSES.has(normalizedStatus)) {
+ errors.push({ line: lineNum, reason: `Invalid STATUS '${status}' (use active or inactive)` });
+ continue;
+ }
+
+ entries.push({
+ name,
+ host,
+ port,
+ username: username || "",
+ password: password || "",
+ type: normalizedType,
+ region: region || "",
+ status: normalizedStatus,
+ notes: notes || "",
+ });
+ }
+
+ return { entries, errors, skipped };
+}
+
export default function ProxyRegistryManager() {
const t = useTranslations("proxyRegistry");
const [items, setItems] = useState<ProxyItem[]>([]);
@@ -72,6 +168,20 @@ export default function ProxyRegistryManager() {
const [bulkScopeIds, setBulkScopeIds] = useState("");
const [bulkProxyId, setBulkProxyId] = useState("");
+ // Bulk Import state
+ const [bulkImportOpen, setBulkImportOpen] = useState(false);
+ const [bulkImportText, setBulkImportText] = useState(BULK_IMPORT_TEMPLATE);
+ const [bulkImportParsed, setBulkImportParsed] = useState<ParsedProxyEntry[]>([]);
+ const [bulkImportErrors, setBulkImportErrors] = useState<ParseError[]>([]);
+ const [bulkImportSkipped, setBulkImportSkipped] = useState(0);
+ const [bulkImportParsedOnce, setBulkImportParsedOnce] = useState(false);
+ const [bulkImporting, setBulkImporting] = useState(false);
+ const [bulkImportResult, setBulkImportResult] = useState<{
+ created: number;
+ updated: number;
+ failed: number;
+ } | null>(null);
+
const editingId = useMemo(() => form.id || "", [form.id]);
const loadHealth = useCallback(async () => {
@@ -382,6 +492,77 @@ export default function ProxyRegistryManager() {
}
};
+ const handleBulkImportParse = () => {
+ const { entries, errors, skipped } = parseBulkImportText(bulkImportText);
+ setBulkImportParsed(entries);
+ setBulkImportErrors(errors);
+ setBulkImportSkipped(skipped);
+ setBulkImportParsedOnce(true);
+ setBulkImportResult(null);
+ };
+
+ const handleBulkImportExecute = async () => {
+ if (bulkImportParsed.length === 0) return;
+ if (bulkImportParsed.length > 100) {
+ setError(t("bulkImportMaxExceeded"));
+ return;
+ }
+
+ setBulkImporting(true);
+ setError(null);
+ setBulkImportResult(null);
+
+ try {
+ const payload = {
+ items: bulkImportParsed.map((entry) => ({
+ name: entry.name,
+ type: entry.type,
+ host: entry.host,
+ port: entry.port,
+ username: entry.username || undefined,
+ password: entry.password || undefined,
+ region: entry.region || null,
+ notes: entry.notes || null,
+ status: entry.status as "active" | "inactive",
+ })),
+ };
+
+ const res = await fetch("/api/settings/proxies/bulk-import", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(payload),
+ });
+ const data = await res.json().catch(() => ({}));
+
+ if (!res.ok) {
+ setError(data?.error?.message || "Failed to import proxies");
+ return;
+ }
+
+ setBulkImportResult({
+ created: data.created || 0,
+ updated: data.updated || 0,
+ failed: data.failed || 0,
+ });
+
+ await load();
+ } catch (e: any) {
+ setError(e?.message || "Failed to import proxies");
+ } finally {
+ setBulkImporting(false);
+ }
+ };
+
+ const openBulkImport = () => {
+ setBulkImportText(BULK_IMPORT_TEMPLATE);
+ setBulkImportParsed([]);
+ setBulkImportErrors([]);
+ setBulkImportSkipped(0);
+ setBulkImportParsedOnce(false);
+ setBulkImportResult(null);
+ setBulkImportOpen(true);
+ };
+
return (
<>
<Card className="p-6">
@@ -401,6 +582,15 @@ export default function ProxyRegistryManager() {
>
{t("importLegacy")}
</Button>
+ <Button
+ size="sm"
+ variant="secondary"
+ icon="upload_file"
+ onClick={openBulkImport}
+ data-testid="proxy-registry-open-bulk-import"
+ >
+ {t("bulkImport")}
+ </Button>
<Button
size="sm"
variant="secondary"
@@ -726,6 +916,158 @@ export default function ProxyRegistryManager() {
</div>
</div>
</Modal>
+
+ {/* Bulk Import Modal */}
+ <Modal
+ isOpen={bulkImportOpen}
+ onClose={() => {
+ if (!bulkImporting) setBulkImportOpen(false);
+ }}
+ title={t("bulkImportTitle")}
+ maxWidth="xl"
+ >
+ <div className="flex flex-col gap-4">
+ <p className="text-sm text-text-muted">{t("bulkImportDescription")}</p>
+
+ <div>
+ <textarea
+ data-testid="proxy-registry-bulk-import-textarea"
+ className="w-full px-3 py-2 rounded bg-bg-subtle border border-border font-mono text-xs leading-relaxed"
+ rows={14}
+ value={bulkImportText}
+ onChange={(e) => {
+ setBulkImportText(e.target.value);
+ setBulkImportParsedOnce(false);
+ setBulkImportResult(null);
+ }}
+ spellCheck={false}
+ />
+ </div>
+
+ {/* Parse button */}
+ <div className="flex items-center gap-3">
+ <Button
+ size="sm"
+ variant="secondary"
+ icon="search"
+ onClick={handleBulkImportParse}
+ data-testid="proxy-registry-bulk-import-parse"
+ >
+ {t("bulkImportParse")}
+ </Button>
+
+ {bulkImportParsedOnce && (
+ <div className="flex items-center gap-3 text-xs">
+ <span className="text-emerald-400">
+ {t("bulkImportParsed", { count: bulkImportParsed.length })}
+ </span>
+ <span className="text-text-muted">
+ {t("bulkImportSkipped", { count: bulkImportSkipped })}
+ </span>
+ {bulkImportErrors.length > 0 && (
+ <span className="text-red-400">
+ {t("bulkImportParseErrors", { count: bulkImportErrors.length })}
+ </span>
+ )}
+ </div>
+ )}
+ </div>
+
+ {/* Parse errors */}
+ {bulkImportErrors.length > 0 && (
+ <div className="max-h-28 overflow-y-auto rounded border border-red-500/30 bg-red-500/10 p-2">
+ {bulkImportErrors.map((err, idx) => (
+ <div key={idx} className="text-xs text-red-400">
+ {t("bulkImportErrorLine", { line: err.line, reason: err.reason })}
+ </div>
+ ))}
+ </div>
+ )}
+
+ {/* Preview table */}
+ {bulkImportParsedOnce && bulkImportParsed.length > 0 && (
+ <div className="overflow-x-auto max-h-48 overflow-y-auto rounded border border-border">
+ <table className="w-full text-xs">
+ <thead>
+ <tr className="text-left text-text-muted border-b border-border bg-bg-subtle sticky top-0">
+ <th className="py-1.5 px-2">Name</th>
+ <th className="py-1.5 px-2">Type</th>
+ <th className="py-1.5 px-2">Host</th>
+ <th className="py-1.5 px-2">Port</th>
+ <th className="py-1.5 px-2">User</th>
+ <th className="py-1.5 px-2">Region</th>
+ <th className="py-1.5 px-2">Status</th>
+ </tr>
+ </thead>
+ <tbody>
+ {bulkImportParsed.map((entry, idx) => (
+ <tr key={idx} className="border-b border-border/40">
+ <td className="py-1 px-2 font-medium text-text-main">{entry.name}</td>
+ <td className="py-1 px-2">
+ <span className="px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px]">
+ {entry.type}
+ </span>
+ </td>
+ <td className="py-1 px-2 font-mono text-text-muted">{entry.host}</td>
+ <td className="py-1 px-2 font-mono text-text-muted">{entry.port}</td>
+ <td className="py-1 px-2 text-text-muted">{entry.username || "—"}</td>
+ <td className="py-1 px-2 text-text-muted">{entry.region || "—"}</td>
+ <td className="py-1 px-2">
+ <span
+ className={
+ entry.status === "active" ? "text-emerald-400" : "text-text-muted"
+ }
+ >
+ {entry.status}
+ </span>
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ </div>
+ )}
+
+ {/* No valid entries warning */}
+ {bulkImportParsedOnce &&
+ bulkImportParsed.length === 0 &&
+ bulkImportErrors.length === 0 && (
+ <div className="text-sm text-amber-400">{t("bulkImportNoValidEntries")}</div>
+ )}
+
+ {/* Import result */}
+ {bulkImportResult && (
+ <div className="px-3 py-2 rounded border border-emerald-500/30 bg-emerald-500/10 text-sm text-emerald-400">
+ {t("bulkImportSuccess", {
+ created: bulkImportResult.created,
+ updated: bulkImportResult.updated,
+ failed: bulkImportResult.failed,
+ })}
+ </div>
+ )}
+
+ {/* Actions */}
+ <div className="flex items-center justify-end gap-2 pt-2 border-t border-border">
+ <Button size="sm" variant="secondary" onClick={() => setBulkImportOpen(false)}>
+ {t("cancel")}
+ </Button>
+ <Button
+ size="sm"
+ icon="upload"
+ onClick={handleBulkImportExecute}
+ loading={bulkImporting}
+ disabled={!bulkImportParsedOnce || bulkImportParsed.length === 0}
+ data-testid="proxy-registry-bulk-import-execute"
+ >
+ {bulkImporting
+ ? t("bulkImportImporting")
+ : bulkImportParsed.length > 0
+ ? t("bulkImportImport", { count: bulkImportParsed.length })
+ : t("bulkImport")}
+ </Button>
+ </div>
+ </div>
+ </Modal>
</>
);
}
diff --git a/src/app/api/cli-tools/claude-settings/route.ts b/src/app/api/cli-tools/claude-settings/route.ts
index 45d37c45ae..ab11635644 100644
--- a/src/app/api/cli-tools/claude-settings/route.ts
+++ b/src/app/api/cli-tools/claude-settings/route.ts
@@ -10,6 +10,7 @@ import {
getCliRuntimeStatus,
} from "@/shared/services/cliRuntime";
import { createBackup } from "@/shared/services/backupService";
+import { normalizeClaudeBaseUrl } from "@/shared/services/claudeCliConfig";
import { saveCliToolLastConfigured, deleteCliToolLastConfigured } from "@/lib/db/cliToolState";
import { cliSettingsEnvSchema } from "@/shared/validation/schemas";
import { isValidationFailure, validateBody } from "@/shared/validation/helpers";
@@ -122,7 +123,7 @@ export async function POST(request: Request) {
env.ANTHROPIC_AUTH_TOKEN = keyRecord.key as string;
}
} catch {
- // Non-critical: fall back to whatever value was in env (e.g. sk_omniroute)
+ // Non-critical: fall back to whatever value was already provided in env.
}
}
@@ -146,11 +147,9 @@ export async function POST(request: Request) {
}
}
- // Normalize ANTHROPIC_BASE_URL to ensure /v1 suffix
+ // Claude Code gateway mode expects the unified root endpoint, not a forced /v1 suffix.
if (env.ANTHROPIC_BASE_URL) {
- env.ANTHROPIC_BASE_URL = env.ANTHROPIC_BASE_URL.endsWith("/v1")
- ? env.ANTHROPIC_BASE_URL
- : `${env.ANTHROPIC_BASE_URL}/v1`;
+ env.ANTHROPIC_BASE_URL = normalizeClaudeBaseUrl(env.ANTHROPIC_BASE_URL);
}
// Merge new env with existing settings
@@ -186,6 +185,7 @@ export async function POST(request: Request) {
const RESET_ENV_KEYS = [
"ANTHROPIC_BASE_URL",
"ANTHROPIC_AUTH_TOKEN",
+ "ANTHROPIC_API_KEY",
"ANTHROPIC_DEFAULT_OPUS_MODEL",
"ANTHROPIC_DEFAULT_SONNET_MODEL",
"ANTHROPIC_DEFAULT_HAIKU_MODEL",
diff --git a/src/app/api/settings/proxies/bulk-import/route.ts b/src/app/api/settings/proxies/bulk-import/route.ts
new file mode 100644
index 0000000000..9f3c3307de
--- /dev/null
+++ b/src/app/api/settings/proxies/bulk-import/route.ts
@@ -0,0 +1,75 @@
+import { upsertProxy } from "@/lib/localDb";
+import { bulkImportProxiesSchema } from "@/shared/validation/schemas";
+import { isValidationFailure, validateBody } from "@/shared/validation/helpers";
+import { createErrorResponse, createErrorResponseFromUnknown } from "@/lib/api/errorResponse";
+import { requireManagementAuth } from "@/lib/api/requireManagementAuth";
+
+export async function POST(request: Request) {
+ const authError = await requireManagementAuth(request);
+ if (authError) return authError;
+
+ let rawBody: unknown;
+ try {
+ rawBody = await request.json();
+ } catch {
+ return createErrorResponse({
+ status: 400,
+ message: "Invalid JSON body",
+ type: "invalid_request",
+ });
+ }
+
+ try {
+ const validation = validateBody(bulkImportProxiesSchema, rawBody);
+ if (isValidationFailure(validation)) {
+ return createErrorResponse({
+ status: 400,
+ message: validation.error.message,
+ details: validation.error.details,
+ type: "invalid_request",
+ });
+ }
+
+ const { items } = validation.data;
+ let created = 0;
+ let updated = 0;
+ let failed = 0;
+ const results: Array<{
+ name: string;
+ success: boolean;
+ action?: "created" | "updated";
+ id?: string;
+ error?: string;
+ }> = [];
+
+ for (const item of items) {
+ try {
+ const result = await upsertProxy(item);
+ if (result.proxy) {
+ if (result.action === "created") created++;
+ else updated++;
+ results.push({
+ name: item.name,
+ success: true,
+ action: result.action,
+ id: result.proxy.id,
+ });
+ } else {
+ failed++;
+ results.push({ name: item.name, success: false, error: "Unknown error" });
+ }
+ } catch (error) {
+ failed++;
+ results.push({
+ name: item.name,
+ success: false,
+ error: error instanceof Error ? error.message : "Unknown error",
+ });
+ }
+ }
+
+ return Response.json({ created, updated, failed, results });
+ } catch (error) {
+ return createErrorResponseFromUnknown(error, "Failed to bulk import proxies");
+ }
+}
diff --git a/src/app/api/system/version/route.ts b/src/app/api/system/version/route.ts
index b666764f6e..f05af793f1 100644
--- a/src/app/api/system/version/route.ts
+++ b/src/app/api/system/version/route.ts
@@ -15,6 +15,7 @@ import {
launchAutoUpdate,
validateAutoUpdateRuntime,
} from "@/lib/system/autoUpdate";
+import { NEWS_JSON_URL, parseActiveNewsPayload } from "@/shared/utils/releaseNotes";
const execFileAsync = promisify(execFile);
@@ -50,16 +51,32 @@ function isNewer(a: string | null, b: string): boolean {
return aPat > bPat;
}
+async function getNews() {
+ try {
+ const res = await fetch(NEWS_JSON_URL, { next: { revalidate: 3600 } });
+ if (!res.ok) return null;
+ const data = await res.json();
+ return parseActiveNewsPayload(data);
+ } catch {
+ return null;
+ }
+}
+
export async function GET(req: NextRequest) {
if (!(await isAuthenticated(req))) {
return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
}
const current = getCurrentVersion();
- const latest = await getLatestNpmVersion();
- const updateAvailable = isNewer(latest, current);
const config = getAutoUpdateConfig();
- const validation = await validateAutoUpdateRuntime(config);
+
+ const [latest, news, validation] = await Promise.all([
+ getLatestNpmVersion(),
+ getNews(),
+ validateAutoUpdateRuntime(config),
+ ]);
+
+ const updateAvailable = isNewer(latest, current);
return NextResponse.json({
current,
@@ -68,6 +85,7 @@ export async function GET(req: NextRequest) {
channel: config.mode,
autoUpdateSupported: validation.supported,
autoUpdateError: validation.reason,
+ news,
});
}
diff --git a/src/app/api/v1/images/edits/route.ts b/src/app/api/v1/images/edits/route.ts
index b3b4751cfa..6bfe33c7c0 100644
--- a/src/app/api/v1/images/edits/route.ts
+++ b/src/app/api/v1/images/edits/route.ts
@@ -1,10 +1,5 @@
import { handleImageEdit } from "@omniroute/open-sse/handlers/imageGeneration.ts";
-import {
- getProviderCredentials,
- clearRecoveredProviderState,
- extractApiKey,
- isValidApiKey,
-} from "@/sse/services/auth";
+import { getProviderCredentials, clearRecoveredProviderState } from "@/sse/services/auth";
import { parseImageModel, getImageProvider } from "@omniroute/open-sse/config/imageRegistry.ts";
import { errorResponse, unavailableResponse } from "@omniroute/open-sse/utils/error.ts";
import { HTTP_STATUS } from "@omniroute/open-sse/config/constants.ts";
@@ -99,18 +94,11 @@ export async function POST(request: Request) {
return errorResponse(HTTP_STATUS.BAD_REQUEST, "Missing required field: image");
}
- const apiKey = extractApiKey(request);
- if (!isValidApiKey(apiKey)) {
- const policyError = enforceApiKeyPolicy(apiKey);
- if (policyError) {
- return new Response(JSON.stringify(policyError.body), {
- status: policyError.status,
- headers: { "Content-Type": "application/json" },
- });
- }
- }
-
const fullModel = model || "cgpt-web/gpt-5.3-instant";
+
+ const policy = await enforceApiKeyPolicy(request, fullModel);
+ if (policy.rejection) return policy.rejection;
+
const parsed = parseImageModel(fullModel);
const providerConfig = getImageProvider(parsed.provider);
if (!providerConfig) {
@@ -126,7 +114,16 @@ export async function POST(request: Request) {
);
}
- const credentials = await getProviderCredentials(parsed.provider, apiKey);
+ const allowedConnections =
+ policy.apiKeyInfo?.allowedConnections && policy.apiKeyInfo.allowedConnections.length > 0
+ ? policy.apiKeyInfo.allowedConnections
+ : null;
+ const credentials = await getProviderCredentials(
+ parsed.provider,
+ null,
+ allowedConnections,
+ fullModel
+ );
if (!credentials) {
return errorResponse(
HTTP_STATUS.UNAUTHORIZED,
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index e259b92c67..6168ea1a2f 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -5,12 +5,19 @@ import { NextIntlClientProvider } from "next-intl";
import { getMessages, getLocale } from "next-intl/server";
import { RTL_LOCALES } from "@/i18n/config";
import { getSettings } from "@/lib/db/settings";
+import type { Viewport } from "next";
+import { PwaRegister } from "@/shared/components/PwaRegister";
const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
});
+export const viewport: Viewport = {
+ themeColor: "#0b0f1a",
+ viewportFit: "cover",
+};
+
export async function generateMetadata() {
const settings = await getSettings();
const instanceName = settings?.instanceName || "OmniRoute";
@@ -20,9 +27,25 @@ export async function generateMetadata() {
title: `${instanceName} — AI Gateway for Multi-Provider LLMs`,
description:
"OmniRoute is an AI gateway for multi-provider LLMs. One endpoint for all your AI providers.",
+ manifest: "/manifest.webmanifest",
+ applicationName: instanceName,
+ appleWebApp: {
+ capable: true,
+ title: instanceName,
+ statusBarStyle: "black-translucent",
+ },
+ other: {
+ "mobile-web-app-capable": "yes",
+ },
icons: {
- icon: customFaviconUrl ? "/api/settings/favicon" : "/favicon.svg",
- apple: "/apple-touch-icon.svg",
+ icon: customFaviconUrl
+ ? "/api/settings/favicon"
+ : [
+ { url: "/favicon.ico", sizes: "any" },
+ { url: "/favicon.svg", type: "image/svg+xml" },
+ { url: "/icon-512.png", type: "image/png", sizes: "512x512" },
+ ],
+ apple: [{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" }],
},
};
}
@@ -67,6 +90,7 @@ export default async function RootLayout({ children }) {
Skip to content
</a>
<NextIntlClientProvider locale={locale} messages={messages}>
+ <PwaRegister />
<ThemeProvider>{children}</ThemeProvider>
</NextIntlClientProvider>
</body>
diff --git a/src/app/manifest.ts b/src/app/manifest.ts
new file mode 100644
index 0000000000..66c767a6a4
--- /dev/null
+++ b/src/app/manifest.ts
@@ -0,0 +1,29 @@
+import type { MetadataRoute } from "next";
+
+export default function manifest(): MetadataRoute.Manifest {
+ return {
+ name: "OmniRoute",
+ short_name: "OmniRoute",
+ description:
+ "OmniRoute is an AI gateway for multi-provider LLMs. One endpoint for all your AI providers.",
+ start_url: "/",
+ scope: "/",
+ display: "fullscreen",
+ orientation: "any",
+ background_color: "#0b0f1a",
+ theme_color: "#0b0f1a",
+ icons: [
+ {
+ src: "/icon-512.png",
+ sizes: "512x512",
+ type: "image/png",
+ purpose: "any maskable",
+ },
+ {
+ src: "/apple-touch-icon.png",
+ sizes: "180x180",
+ type: "image/png",
+ },
+ ],
+ };
+}
diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json
index e380bc7d7b..24c73da4e6 100644
--- a/src/i18n/messages/ar.json
+++ b/src/i18n/messages/ar.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "المواضيع",
diff --git a/src/i18n/messages/bg.json b/src/i18n/messages/bg.json
index 1814436df7..7df37dab8b 100644
--- a/src/i18n/messages/bg.json
+++ b/src/i18n/messages/bg.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Теми",
diff --git a/src/i18n/messages/bn.json b/src/i18n/messages/bn.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/bn.json
+++ b/src/i18n/messages/bn.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/cs.json b/src/i18n/messages/cs.json
index 8ef28702e9..07cb1a4522 100644
--- a/src/i18n/messages/cs.json
+++ b/src/i18n/messages/cs.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Motivy",
diff --git a/src/i18n/messages/da.json b/src/i18n/messages/da.json
index b1ca73187b..7d21e3ffa4 100644
--- a/src/i18n/messages/da.json
+++ b/src/i18n/messages/da.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Temaer",
diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json
index bbdd5968b6..b392bdb37d 100644
--- a/src/i18n/messages/de.json
+++ b/src/i18n/messages/de.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themen",
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index 68a813ef38..0c36d058eb 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -270,7 +270,7 @@
"editCombo": "Edit Combo",
"testResults": "Test Results",
"searchQuery": "Search Query",
- "addCcCompatible": "Add Cc Compatible",
+ "addCcCompatible": "Add CC Compatible",
"duplicate": "Duplicate",
"createCombo": "Create Combo",
"searchTypeWeb": "Search Type Web",
@@ -344,7 +344,7 @@
"signatureDefaults": "Signature Defaults",
"errorCreating": "Error Creating",
"timeRangeYear": "Time Range Year",
- "compatibleLabel": "Compatible Label",
+ "compatibleLabel": "Compatible",
"cloudDisabledSuccess": "Cloud Disabled Success",
"deleteConfirm": "Delete Confirm",
"check": "Check",
@@ -511,7 +511,7 @@
"comboUpdated": "Combo Updated",
"weighted": "Weighted",
"providers": "Providers",
- "ccCompatibleLabel": "Cc Compatible Label",
+ "ccCompatibleLabel": "CC Compatible",
"noFallbackChainsDesc": "No Fallback Chains Desc",
"yesImport": "Yes Import",
"lockoutsAutoRefreshHint": "Lockouts Auto Refresh Hint",
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
@@ -2704,7 +2705,7 @@
"accountIdLabel": "Account Id Label",
"accountIdPlaceholder": "Account Id Placeholder",
"addAnotherApiKey": "Add Another Api Key",
- "addCcCompatible": "Add Cc Compatible",
+ "addCcCompatible": "Add CC Compatible",
"aggregatorsGateways": "Aggregators Gateways",
"apiFormatLabel": "Api Format Label",
"apiKeyOptionalHint": "Api Key Optional Hint",
@@ -2721,27 +2722,27 @@
"bailianBaseUrlHint": "Bailian Base Url Hint",
"blackboxWebCookieHint": "Blackbox Web Cookie Hint",
"blackboxWebCookiePlaceholder": "Blackbox Web Cookie Placeholder",
- "blockClaudeExtraUsageDescription": "Block Claude Extra Usage Description",
- "blockClaudeExtraUsageLabel": "Block Claude Extra Usage Label",
- "ccCompatibleBaseUrlHint": "Cc Compatible Base Url Hint",
- "ccCompatibleBaseUrlPlaceholder": "Cc Compatible Base Url Placeholder",
- "ccCompatibleChatPathHint": "Cc Compatible Chat Path Hint",
- "ccCompatibleContext1mDescription": "Cc Compatible Context1M Description",
- "ccCompatibleContext1mLabel": "Cc Compatible Context1M Label",
- "ccCompatibleDetailsTitle": "Cc Compatible Details Title",
- "ccCompatibleLabel": "Cc Compatible Label",
- "ccCompatibleModelsDescription": "Cc Compatible Models Description",
- "ccCompatibleNameHint": "Cc Compatible Name Hint",
- "ccCompatibleNamePlaceholder": "Cc Compatible Name Placeholder",
- "ccCompatiblePrefixHint": "Cc Compatible Prefix Hint",
- "ccCompatiblePrefixPlaceholder": "Cc Compatible Prefix Placeholder",
- "ccCompatibleValidationHint": "Cc Compatible Validation Hint",
- "claudeExtraUsageShort": "Claude Extra Usage Short",
- "claudeExtraUsageToggleTitle": "Claude Extra Usage Toggle Title",
- "codex5hToggleTitle": "Codex5H Toggle Title",
+ "blockClaudeExtraUsageDescription": "Hide extra Claude usage rows reported by some providers when they duplicate primary token accounting.",
+ "blockClaudeExtraUsageLabel": "Block duplicate Claude usage rows",
+ "ccCompatibleBaseUrlHint": "Base URL for a Claude Code-only relay. Do not include /messages.",
+ "ccCompatibleBaseUrlPlaceholder": "https://relay.example.com/v1",
+ "ccCompatibleChatPathHint": "Defaults to Claude Code's strict Messages API path. Change only if your relay documents a different path.",
+ "ccCompatibleContext1mDescription": "Adds the context-1m beta header when the selected Claude model supports it.",
+ "ccCompatibleContext1mLabel": "Enable 1M context beta",
+ "ccCompatibleDetailsTitle": "CC-compatible relay details",
+ "ccCompatibleLabel": "CC Compatible",
+ "ccCompatibleModelsDescription": "CC-compatible relays do not expose model listing. Add the Claude model IDs your relay accepts.",
+ "ccCompatibleNameHint": "Display name for this Claude Code-only relay.",
+ "ccCompatibleNamePlaceholder": "CC Relay Production",
+ "ccCompatiblePrefixHint": "Used in model aliases such as prefix/model-id.",
+ "ccCompatiblePrefixPlaceholder": "cc",
+ "ccCompatibleValidationHint": "Use this provider only for relays that serve Claude Code clients exclusively. OmniRoute rewrites any incoming request into the Claude Code-compatible wire format so those relays accept it. If you only want to use Claude Code CLI, or you are not sure what this relay type means, use a regular Anthropic-compatible provider instead.",
+ "claudeExtraUsageShort": "Extra usage",
+ "claudeExtraUsageToggleTitle": "Block Claude extra usage accounting for this connection",
+ "codex5hToggleTitle": "Track Codex 5-hour quota for this connection",
"codexFastServiceTierDescription": "Use the priority service tier for Codex requests when available.",
"codexFastServiceTierLabel": "Codex fast service tier",
- "codexWeeklyToggleTitle": "Codex Weekly Toggle Title",
+ "codexWeeklyToggleTitle": "Track Codex weekly quota for this connection",
"compatUpstreamHeaderNamePlaceholder": "Compat Upstream Header Name Placeholder",
"compatUpstreamHeaderValuePlaceholder": "Compat Upstream Header Value Placeholder",
"compatible": "Compatible",
@@ -2749,8 +2750,8 @@
"consoleApiKeyOracleHint": "Console Api Key Oracle Hint",
"consoleApiKeyOracleLabel": "Console Api Key Oracle Label",
"consoleApiKeyOraclePlaceholder": "Console Api Key Oracle Placeholder",
- "cpaModeDisabledTitle": "Cpa Mode Disabled Title",
- "cpaModeEnabledTitle": "Cpa Mode Enabled Title",
+ "cpaModeDisabledTitle": "CLIProxyAPI compatibility mode is disabled",
+ "cpaModeEnabledTitle": "CLIProxyAPI compatibility mode is enabled",
"customUserAgentHint": "Custom User Agent Hint",
"customUserAgentLabel": "Custom User Agent Label",
"databricksBaseUrlHint": "Databricks Base Url Hint",
@@ -2811,18 +2812,18 @@
"sessionCookieLabel": "Session Cookie Label",
"showEmail": "Show Email",
"snowflakeBaseUrlHint": "Snowflake Base Url Hint",
- "supportedEndpointAudio": "Supported Endpoint Audio",
- "supportedEndpointChat": "Supported Endpoint Chat",
- "supportedEndpointEmbeddings": "Supported Endpoint Embeddings",
- "supportedEndpointImages": "Supported Endpoint Images",
- "supportedEndpointsLabel": "Supported Endpoints Label",
+ "supportedEndpointAudio": "Audio",
+ "supportedEndpointChat": "Chat",
+ "supportedEndpointEmbeddings": "Embeddings",
+ "supportedEndpointImages": "Images",
+ "supportedEndpointsLabel": "Supported endpoints",
"tagGroupHint": "Tag Group Hint",
"tagGroupLabel": "Tag Group Label",
"tagGroupPlaceholder": "Tag Group Placeholder",
"testModel": "Test Model",
"testingModel": "Testing Model",
- "toggleOffShort": "Toggle Off Short",
- "toggleOnShort": "Toggle On Short",
+ "toggleOffShort": "Off",
+ "toggleOnShort": "On",
"tokenExpiredBadge": "Token Expired Badge",
"tokenExpiredTitle": "Token Expired Title",
"tokenExpiresSoonTitle": "Token Expires Soon Title",
@@ -4625,7 +4626,26 @@
"noData": "—",
"testSuccess": "✓ {ip}",
"testLatency": "{latency}ms",
- "testFailure": "✗ {error}"
+ "testFailure": "✗ {error}",
+ "bulkImport": "Bulk Import",
+ "bulkImportTitle": "Bulk Import Proxies",
+ "bulkImportDescription": "Paste proxy profiles using pipe-delimited format. One proxy per line. Existing proxies (same host + port) will be updated.",
+ "bulkImportParse": "Parse",
+ "bulkImportImport": "Import {count} Proxies",
+ "bulkImportImporting": "Importing...",
+ "bulkImportParsed": "{count} proxies parsed",
+ "bulkImportSkipped": "{count} lines skipped",
+ "bulkImportParseErrors": "{count} errors",
+ "bulkImportNoValidEntries": "No valid entries found. Check the format and try again.",
+ "bulkImportSuccess": "Import complete: {created} created, {updated} updated, {failed} failed",
+ "bulkImportErrorLine": "Line {line}: {reason}",
+ "bulkImportMaxExceeded": "Maximum 100 proxies per import",
+ "bulkImportPreview": "Preview",
+ "bulkImportErrorMissingName": "Missing NAME",
+ "bulkImportErrorMissingHost": "Missing HOST",
+ "bulkImportErrorInvalidPort": "Invalid PORT (must be 1-65535)",
+ "bulkImportErrorInvalidType": "Invalid TYPE (use http, https, or socks5)",
+ "bulkImportErrorInvalidStatus": "Invalid STATUS (use active or inactive)"
},
"playground": {
"title": "Model Playground",
diff --git a/src/i18n/messages/es.json b/src/i18n/messages/es.json
index 12a89c0b03..30135c685c 100644
--- a/src/i18n/messages/es.json
+++ b/src/i18n/messages/es.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Temas",
diff --git a/src/i18n/messages/fa.json b/src/i18n/messages/fa.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/fa.json
+++ b/src/i18n/messages/fa.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/fi.json b/src/i18n/messages/fi.json
index 5a489f54f0..df906fff20 100644
--- a/src/i18n/messages/fi.json
+++ b/src/i18n/messages/fi.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Teemat",
diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json
index 54b2fec39b..c81017f2a9 100644
--- a/src/i18n/messages/fr.json
+++ b/src/i18n/messages/fr.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Thèmes",
diff --git a/src/i18n/messages/gu.json b/src/i18n/messages/gu.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/gu.json
+++ b/src/i18n/messages/gu.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.json
index dcba89fb9e..cb44fc19b4 100644
--- a/src/i18n/messages/he.json
+++ b/src/i18n/messages/he.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json
index 909820327f..3d6e2f5dca 100644
--- a/src/i18n/messages/hi.json
+++ b/src/i18n/messages/hi.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/hu.json b/src/i18n/messages/hu.json
index 5ef94a9426..9e2acf95c4 100644
--- a/src/i18n/messages/hu.json
+++ b/src/i18n/messages/hu.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Témák",
diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.json
index 02638db529..bbbe0f6280 100644
--- a/src/i18n/messages/id.json
+++ b/src/i18n/messages/id.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/in.json b/src/i18n/messages/in.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/in.json
+++ b/src/i18n/messages/in.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json
index fc939c8eb4..71fcecbf68 100644
--- a/src/i18n/messages/it.json
+++ b/src/i18n/messages/it.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ja.json b/src/i18n/messages/ja.json
index ce20800a47..89252a3f6e 100644
--- a/src/i18n/messages/ja.json
+++ b/src/i18n/messages/ja.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ko.json b/src/i18n/messages/ko.json
index 2982d0928a..9ae850aba4 100644
--- a/src/i18n/messages/ko.json
+++ b/src/i18n/messages/ko.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/mr.json b/src/i18n/messages/mr.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/mr.json
+++ b/src/i18n/messages/mr.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ms.json b/src/i18n/messages/ms.json
index 10c33ff1c6..a2755fb439 100644
--- a/src/i18n/messages/ms.json
+++ b/src/i18n/messages/ms.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/nl.json b/src/i18n/messages/nl.json
index 63a0a173a0..5cc649acc6 100644
--- a/src/i18n/messages/nl.json
+++ b/src/i18n/messages/nl.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/no.json b/src/i18n/messages/no.json
index c88f56ead9..f324e86394 100644
--- a/src/i18n/messages/no.json
+++ b/src/i18n/messages/no.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/phi.json b/src/i18n/messages/phi.json
index 05239c7fe2..dc68fede35 100644
--- a/src/i18n/messages/phi.json
+++ b/src/i18n/messages/phi.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.json
index ca7bb3c704..46fadd3785 100644
--- a/src/i18n/messages/pl.json
+++ b/src/i18n/messages/pl.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.json
index 72d55d3c7b..7699421d57 100644
--- a/src/i18n/messages/pt-BR.json
+++ b/src/i18n/messages/pt-BR.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Temas",
diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json
index 3a3d1fe13e..c7369919f5 100644
--- a/src/i18n/messages/pt.json
+++ b/src/i18n/messages/pt.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ro.json b/src/i18n/messages/ro.json
index e8801d1450..382cef4020 100644
--- a/src/i18n/messages/ro.json
+++ b/src/i18n/messages/ro.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json
index 7585d803ab..8d1f489110 100644
--- a/src/i18n/messages/ru.json
+++ b/src/i18n/messages/ru.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Темы",
diff --git a/src/i18n/messages/sk.json b/src/i18n/messages/sk.json
index 178fdc90df..90c90e3537 100644
--- a/src/i18n/messages/sk.json
+++ b/src/i18n/messages/sk.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/sv.json b/src/i18n/messages/sv.json
index ac584535f0..f782de3c2c 100644
--- a/src/i18n/messages/sv.json
+++ b/src/i18n/messages/sv.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/sw.json b/src/i18n/messages/sw.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/sw.json
+++ b/src/i18n/messages/sw.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ta.json b/src/i18n/messages/ta.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/ta.json
+++ b/src/i18n/messages/ta.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/te.json b/src/i18n/messages/te.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/te.json
+++ b/src/i18n/messages/te.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.json
index 431d1b5dc9..7eed51c7d6 100644
--- a/src/i18n/messages/th.json
+++ b/src/i18n/messages/th.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "ธีมส์",
diff --git a/src/i18n/messages/tr.json b/src/i18n/messages/tr.json
index 9e13297e66..79c06bcd15 100644
--- a/src/i18n/messages/tr.json
+++ b/src/i18n/messages/tr.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Temalar",
diff --git a/src/i18n/messages/uk-UA.json b/src/i18n/messages/uk-UA.json
index 87bfc63cf9..59f17551dd 100644
--- a/src/i18n/messages/uk-UA.json
+++ b/src/i18n/messages/uk-UA.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/ur.json b/src/i18n/messages/ur.json
index 1a532eec07..4adc83cae0 100644
--- a/src/i18n/messages/ur.json
+++ b/src/i18n/messages/ur.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/vi.json b/src/i18n/messages/vi.json
index 5f240a0bd0..dbf4cb40f4 100644
--- a/src/i18n/messages/vi.json
+++ b/src/i18n/messages/vi.json
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "Themes",
diff --git a/src/i18n/messages/zh-CN.json b/src/i18n/messages/zh-CN.json
index c6348884a7..3f7f512e60 100644
--- a/src/i18n/messages/zh-CN.json
+++ b/src/i18n/messages/zh-CN.json
@@ -270,7 +270,7 @@
"editCombo": "Edit Combo",
"testResults": "Test Results",
"searchQuery": "Search Query",
- "addCcCompatible": "Add Cc Compatible",
+ "addCcCompatible": "添加 CC 兼容",
"duplicate": "Duplicate",
"createCombo": "Create Combo",
"searchTypeWeb": "Search Type Web",
@@ -344,7 +344,7 @@
"signatureDefaults": "Signature Defaults",
"errorCreating": "Error Creating",
"timeRangeYear": "Time Range Year",
- "compatibleLabel": "Compatible Label",
+ "compatibleLabel": "兼容",
"cloudDisabledSuccess": "Cloud Disabled Success",
"deleteConfirm": "Delete Confirm",
"check": "Check",
@@ -511,7 +511,7 @@
"comboUpdated": "Combo Updated",
"weighted": "Weighted",
"providers": "Providers",
- "ccCompatibleLabel": "Cc Compatible Label",
+ "ccCompatibleLabel": "CC 兼容",
"noFallbackChainsDesc": "No Fallback Chains Desc",
"yesImport": "Yes Import",
"lockoutsAutoRefreshHint": "Lockouts Auto Refresh Hint",
@@ -734,7 +734,8 @@
"logoPreview": "Logo Preview",
"themeCustom": "Theme Custom",
"hideHealthLogsDesc": "Hide Health Logs Desc",
- "faviconPreview": "Favicon Preview"
+ "faviconPreview": "Favicon Preview",
+ "changelog": "Changelog"
},
"themesPage": {
"title": "主题",
@@ -2641,7 +2642,7 @@
"accountIdLabel": "Account Id Label",
"accountIdPlaceholder": "Account Id Placeholder",
"addAnotherApiKey": "Add Another Api Key",
- "addCcCompatible": "Add Cc Compatible",
+ "addCcCompatible": "添加 CC 兼容",
"aggregatorsGateways": "Aggregators Gateways",
"apiFormatLabel": "Api Format Label",
"apiKeyOptionalHint": "Api Key Optional Hint",
@@ -2658,27 +2659,27 @@
"bailianBaseUrlHint": "Bailian Base Url Hint",
"blackboxWebCookieHint": "Blackbox Web Cookie Hint",
"blackboxWebCookiePlaceholder": "Blackbox Web Cookie Placeholder",
- "blockClaudeExtraUsageDescription": "Block Claude Extra Usage Description",
- "blockClaudeExtraUsageLabel": "Block Claude Extra Usage Label",
- "ccCompatibleBaseUrlHint": "Cc Compatible Base Url Hint",
- "ccCompatibleBaseUrlPlaceholder": "Cc Compatible Base Url Placeholder",
- "ccCompatibleChatPathHint": "Cc Compatible Chat Path Hint",
- "ccCompatibleContext1mDescription": "Cc Compatible Context1M Description",
- "ccCompatibleContext1mLabel": "Cc Compatible Context1M Label",
- "ccCompatibleDetailsTitle": "Cc Compatible Details Title",
- "ccCompatibleLabel": "Cc Compatible Label",
- "ccCompatibleModelsDescription": "Cc Compatible Models Description",
- "ccCompatibleNameHint": "Cc Compatible Name Hint",
- "ccCompatibleNamePlaceholder": "Cc Compatible Name Placeholder",
- "ccCompatiblePrefixHint": "Cc Compatible Prefix Hint",
- "ccCompatiblePrefixPlaceholder": "Cc Compatible Prefix Placeholder",
- "ccCompatibleValidationHint": "Cc Compatible Validation Hint",
- "claudeExtraUsageShort": "Claude Extra Usage Short",
- "claudeExtraUsageToggleTitle": "Claude Extra Usage Toggle Title",
- "codex5hToggleTitle": "Codex5H Toggle Title",
+ "blockClaudeExtraUsageDescription": "隐藏部分 Provider 返回的重复 Claude 额外用量记录,避免和主 token 统计重复。",
+ "blockClaudeExtraUsageLabel": "屏蔽重复 Claude 用量",
+ "ccCompatibleBaseUrlHint": "Claude Code 专用中转站的 Base URL,不要包含 /messages。",
+ "ccCompatibleBaseUrlPlaceholder": "https://relay.example.com/v1",
+ "ccCompatibleChatPathHint": "默认使用 Claude Code 严格的 Messages API 路径。仅在中转站文档要求时修改。",
+ "ccCompatibleContext1mDescription": "当所选 Claude 模型支持时,添加 context-1m beta header。",
+ "ccCompatibleContext1mLabel": "启用 1M context beta",
+ "ccCompatibleDetailsTitle": "CC 兼容中转站详情",
+ "ccCompatibleLabel": "CC 兼容",
+ "ccCompatibleModelsDescription": "CC 兼容中转站不提供模型列表。请添加该中转站接受的 Claude 模型 ID。",
+ "ccCompatibleNameHint": "这个 Claude Code 专用中转站的显示名称。",
+ "ccCompatibleNamePlaceholder": "CC 中转站生产环境",
+ "ccCompatiblePrefixHint": "用于 prefix/model-id 这类模型别名。",
+ "ccCompatiblePrefixPlaceholder": "cc",
+ "ccCompatibleValidationHint": "这个 Provider 只适用于仅向 Claude Code 客户端提供服务的中转站。OmniRoute 会把任何进入的请求改写为 Claude Code 兼容的传输格式,以通过这些中转站的验证。如果你只是想使用 Claude Code CLI,或者不清楚这类中转站是什么,请使用普通 Anthropic-compatible Provider。",
+ "claudeExtraUsageShort": "额外用量",
+ "claudeExtraUsageToggleTitle": "为此连接屏蔽 Claude 额外用量统计",
+ "codex5hToggleTitle": "为此连接跟踪 Codex 5 小时配额",
"codexFastServiceTierDescription": "可用时为 Codex 请求使用 priority 服务层。",
"codexFastServiceTierLabel": "Codex 快速服务层",
- "codexWeeklyToggleTitle": "Codex Weekly Toggle Title",
+ "codexWeeklyToggleTitle": "为此连接跟踪 Codex 周配额",
"compatUpstreamHeaderNamePlaceholder": "Compat Upstream Header Name Placeholder",
"compatUpstreamHeaderValuePlaceholder": "Compat Upstream Header Value Placeholder",
"compatible": "Compatible",
@@ -2686,8 +2687,8 @@
"consoleApiKeyOracleHint": "Console Api Key Oracle Hint",
"consoleApiKeyOracleLabel": "Console Api Key Oracle Label",
"consoleApiKeyOraclePlaceholder": "Console Api Key Oracle Placeholder",
- "cpaModeDisabledTitle": "Cpa Mode Disabled Title",
- "cpaModeEnabledTitle": "Cpa Mode Enabled Title",
+ "cpaModeDisabledTitle": "CLIProxyAPI 兼容模式已关闭",
+ "cpaModeEnabledTitle": "CLIProxyAPI 兼容模式已开启",
"customUserAgentHint": "Custom User Agent Hint",
"customUserAgentLabel": "Custom User Agent Label",
"databricksBaseUrlHint": "Databricks Base Url Hint",
@@ -2748,18 +2749,18 @@
"sessionCookieLabel": "Session Cookie Label",
"showEmail": "Show Email",
"snowflakeBaseUrlHint": "Snowflake Base Url Hint",
- "supportedEndpointAudio": "Supported Endpoint Audio",
- "supportedEndpointChat": "Supported Endpoint Chat",
- "supportedEndpointEmbeddings": "Supported Endpoint Embeddings",
- "supportedEndpointImages": "Supported Endpoint Images",
- "supportedEndpointsLabel": "Supported Endpoints Label",
+ "supportedEndpointAudio": "音频",
+ "supportedEndpointChat": "聊天",
+ "supportedEndpointEmbeddings": "Embeddings",
+ "supportedEndpointImages": "图像",
+ "supportedEndpointsLabel": "支持的端点",
"tagGroupHint": "Tag Group Hint",
"tagGroupLabel": "Tag Group Label",
"tagGroupPlaceholder": "Tag Group Placeholder",
"testModel": "Test Model",
"testingModel": "Testing Model",
- "toggleOffShort": "Toggle Off Short",
- "toggleOnShort": "Toggle On Short",
+ "toggleOffShort": "关",
+ "toggleOnShort": "开",
"tokenExpiredBadge": "Token Expired Badge",
"tokenExpiredTitle": "Token Expired Title",
"tokenExpiresSoonTitle": "Token Expires Soon Title",
diff --git a/src/lib/db/migrationRunner.ts b/src/lib/db/migrationRunner.ts
index 636352a627..d0e3d268f0 100644
--- a/src/lib/db/migrationRunner.ts
+++ b/src/lib/db/migrationRunner.ts
@@ -92,6 +92,12 @@ const RENAMED_MIGRATION_COMPATIBILITY = [
toVersion: "029",
toName: "provider_connection_max_concurrent",
},
+ {
+ fromVersion: "032",
+ fromName: "create_reasoning_cache",
+ toVersion: "033",
+ toName: "create_reasoning_cache",
+ },
] as const;
const PHYSICAL_SCHEMA_SENTINELS = [
@@ -211,6 +217,20 @@ function applyApiKeyLifecycleMigration(db: Database.Database): void {
`);
}
+function isSearchRequestTypeMigration(migration: { version: string; name: string }): boolean {
+ return migration.version === "007";
+}
+
+function applySearchRequestTypeMigration(db: Database.Database): void {
+ ensureColumn(
+ db,
+ "call_logs",
+ "request_type",
+ "ALTER TABLE call_logs ADD COLUMN request_type TEXT DEFAULT NULL"
+ );
+ db.exec("CREATE INDEX IF NOT EXISTS idx_call_logs_request_type ON call_logs(request_type);");
+}
+
function inferPhysicalSchemaBaseline(db: Database.Database): {
version: string;
description: string;
@@ -477,6 +497,8 @@ export function runMigrations(db: Database.Database, options?: { isNewDb?: boole
const applyMigration = db.transaction(() => {
if (isApiKeyLifecycleMigration(migration)) {
applyApiKeyLifecycleMigration(db);
+ } else if (isSearchRequestTypeMigration(migration)) {
+ applySearchRequestTypeMigration(db);
} else {
const sql = fs.readFileSync(migration.path, "utf-8");
db.exec(sql);
diff --git a/src/lib/db/proxies.ts b/src/lib/db/proxies.ts
index dc02836192..df70a33c0b 100755
--- a/src/lib/db/proxies.ts
+++ b/src/lib/db/proxies.ts
@@ -192,6 +192,32 @@ export async function createProxy(payload: ProxyPayload) {
return getProxyById(id, { includeSecrets: false });
}
+/**
+ * Upsert a proxy by host+port.
+ * If a proxy with the same host and port already exists, update it.
+ * Otherwise, create a new one. Used by the bulk import feature.
+ */
+export async function upsertProxy(payload: ProxyPayload): Promise<{
+ proxy: ProxyRegistryRecord | null;
+ action: "created" | "updated";
+}> {
+ const db = getDbInstance();
+ const host = (payload.host || "").trim();
+ const port = Number(payload.port);
+
+ const existing = db
+ .prepare("SELECT id FROM proxy_registry WHERE host = ? AND port = ? LIMIT 1")
+ .get(host, port) as { id?: string } | undefined;
+
+ if (existing?.id) {
+ const updated = await updateProxy(existing.id, payload);
+ return { proxy: updated, action: "updated" };
+ }
+
+ const created = await createProxy(payload);
+ return { proxy: created, action: "created" };
+}
+
export async function updateProxy(id: string, payload: Partial<ProxyPayload>) {
const db = getDbInstance();
const existing = await getProxyById(id, { includeSecrets: true });
diff --git a/src/lib/db/settings.ts b/src/lib/db/settings.ts
index 69286d7993..fd5800e6ce 100644
--- a/src/lib/db/settings.ts
+++ b/src/lib/db/settings.ts
@@ -54,6 +54,8 @@ export async function getSettings() {
antigravitySignatureCacheMode: "enabled",
requireLogin: true,
hiddenSidebarItems: [],
+ hideEndpointCloudflaredTunnel: false,
+ hideEndpointTailscaleFunnel: false,
comboConfigMode: "guided",
alwaysPreserveClientCache: "auto",
idempotencyWindowMs: 5000,
diff --git a/src/lib/localDb.ts b/src/lib/localDb.ts
index e8d23b664b..fdb1120bde 100755
--- a/src/lib/localDb.ts
+++ b/src/lib/localDb.ts
@@ -149,6 +149,7 @@ export {
getProxyById,
createProxy,
updateProxy,
+ upsertProxy,
deleteProxyById,
getProxyAssignments,
getProxyWhereUsed,
diff --git a/src/lib/oauth/constants/oauth.ts b/src/lib/oauth/constants/oauth.ts
index 202d477a32..eb3375cd5e 100644
--- a/src/lib/oauth/constants/oauth.ts
+++ b/src/lib/oauth/constants/oauth.ts
@@ -246,7 +246,7 @@ export const CURSOR_CONFIG = {
agentEndpoint: "https://agent.api5.cursor.sh", // Privacy mode
agentNonPrivacyEndpoint: "https://agentn.api5.cursor.sh", // Non-privacy mode
// Client metadata
- clientVersion: "3.1.15",
+ clientVersion: "3.2.14",
clientType: "ide",
// Token storage locations (for user reference)
tokenStoragePaths: {
diff --git a/src/shared/components/PwaRegister.tsx b/src/shared/components/PwaRegister.tsx
new file mode 100644
index 0000000000..a737fb196a
--- /dev/null
+++ b/src/shared/components/PwaRegister.tsx
@@ -0,0 +1,17 @@
+"use client";
+
+import { useEffect } from "react";
+
+export function PwaRegister() {
+ useEffect(() => {
+ if (typeof window === "undefined" || !("serviceWorker" in navigator)) {
+ return;
+ }
+
+ navigator.serviceWorker.register("/sw.js").catch(() => {
+ // Ignore registration failures to avoid blocking app rendering.
+ });
+ }, []);
+
+ return null;
+}
diff --git a/src/shared/constants/cliCompatProviders.ts b/src/shared/constants/cliCompatProviders.ts
index 95697f58ce..1cbd51c9d3 100644
--- a/src/shared/constants/cliCompatProviders.ts
+++ b/src/shared/constants/cliCompatProviders.ts
@@ -1,4 +1,53 @@
import { CLI_TOOLS } from "./cliTools";
+import { normalizeCliCompatProviderId } from "../utils/cliCompat";
+
+export { normalizeCliCompatProviderId };
+
+export const IMPLEMENTED_CLI_FINGERPRINT_PROVIDER_IDS = [
+ "claude",
+ "codex",
+ "github",
+ "antigravity",
+ "qwen",
+] as const;
+
+export const CLI_COMPAT_DISPLAY_PROVIDER_IDS = [
+ "claude",
+ "codex",
+ "copilot",
+ "antigravity",
+ "qwen",
+] as const;
+
+/**
+ * Known CLI/tool providers that are intentionally not exposed as CLI Fingerprint toggles yet.
+ *
+ * This setting controls the generic `applyFingerprint()` pipeline (header/body ordering plus
+ * optional CLI User-Agent overrides). Do not expose providers here just because they have a
+ * CLI Tools card or a provider integration:
+ *
+ * - Kiro and Cursor already apply their native parity inside custom executors, so a toggle would
+ * be misleading unless it controls additional behavior.
+ * - Droid, OpenClaw, Windsurf and Hermes are CLI tool setup guides/settings, not upstream provider
+ * fingerprints handled by OmniRoute.
+ * - Cline, Kilo Code, OpenCode and Kimi Coding have real provider/backend integrations, but no
+ * captured `CLI_FINGERPRINTS` entry is wired to `applyFingerprint()` yet.
+ *
+ * Keep this list as documentation for intentionally omitted candidates. When adding a provider to
+ * the visible toggle list, also add a real `CLI_FINGERPRINTS` entry or wire its custom executor.
+ */
+export const CLI_COMPAT_OMITTED_PROVIDER_IDS = [
+ "kiro",
+ "cursor",
+ "droid",
+ "openclaw",
+ "windsurf",
+ "hermes",
+ "cline",
+ "kilocode",
+ "opencode",
+ "kimi-coding",
+] as const;
/**
* Provider IDs toggled in Settings -> CLI Fingerprint.
@@ -13,17 +62,12 @@ const TOOL_ID_TO_PROVIDER_ID: Record<string, string> = {
};
const DERIVED_PROVIDER_IDS = Object.values(CLI_TOOLS)
- .map((tool: any) => TOOL_ID_TO_PROVIDER_ID[tool.id] ?? tool.id)
+ .map((tool: any) => normalizeCliCompatProviderId(TOOL_ID_TO_PROVIDER_ID[tool.id] ?? tool.id))
// "continue" currently has no provider id in AI_PROVIDERS
- .filter((providerId) => providerId !== "continue" && providerId !== "amp");
-
-const LEGACY_PROVIDER_IDS = [
- // Keep to avoid breaking setups that saved old IDs
- "copilot",
- "kimi-coding",
- "qwen",
-];
+ .filter((providerId) => IMPLEMENTED_CLI_FINGERPRINT_PROVIDER_IDS.includes(providerId as any));
export const CLI_COMPAT_PROVIDER_IDS = Array.from(
- new Set([...DERIVED_PROVIDER_IDS, ...LEGACY_PROVIDER_IDS])
+ new Set([...DERIVED_PROVIDER_IDS, ...IMPLEMENTED_CLI_FINGERPRINT_PROVIDER_IDS])
);
+
+export const CLI_COMPAT_TOGGLE_IDS = Array.from(new Set(CLI_COMPAT_DISPLAY_PROVIDER_IDS));
diff --git a/src/shared/constants/sidebarVisibility.ts b/src/shared/constants/sidebarVisibility.ts
index a08967a904..a5572010c2 100644
--- a/src/shared/constants/sidebarVisibility.ts
+++ b/src/shared/constants/sidebarVisibility.ts
@@ -22,6 +22,7 @@ export const HIDEABLE_SIDEBAR_ITEM_IDS = [
"settings",
"docs",
"issues",
+ "changelog",
] as const;
export type HideableSidebarItemId = (typeof HIDEABLE_SIDEBAR_ITEM_IDS)[number];
@@ -92,6 +93,7 @@ const HELP_SIDEBAR_ITEMS: readonly SidebarItemDefinition[] = [
icon: "bug_report",
external: true,
},
+ { id: "changelog", href: "/dashboard/changelog", i18nKey: "changelog", icon: "campaign" },
];
export const SIDEBAR_SECTIONS: readonly SidebarSectionDefinition[] = [
diff --git a/src/shared/services/claudeCliConfig.ts b/src/shared/services/claudeCliConfig.ts
new file mode 100644
index 0000000000..7a1173a231
--- /dev/null
+++ b/src/shared/services/claudeCliConfig.ts
@@ -0,0 +1,17 @@
+export function normalizeClaudeBaseUrl(value: string): string {
+ return String(value || "")
+ .trim()
+ .replace(/\/+$/, "");
+}
+
+export function getStoredClaudeAuthValue(
+ env: Record<string, unknown> | null | undefined
+): string | null {
+ if (!env || typeof env !== "object") return null;
+
+ const authValue = env.ANTHROPIC_AUTH_TOKEN ?? env.ANTHROPIC_API_KEY;
+ if (typeof authValue !== "string") return null;
+
+ const trimmed = authValue.trim();
+ return trimmed.length > 0 ? trimmed : null;
+}
diff --git a/src/shared/utils/cliCompat.ts b/src/shared/utils/cliCompat.ts
new file mode 100644
index 0000000000..0532e3d160
--- /dev/null
+++ b/src/shared/utils/cliCompat.ts
@@ -0,0 +1,3 @@
+export function normalizeCliCompatProviderId(providerId: string): string {
+ return providerId.toLowerCase() === "copilot" ? "github" : providerId.toLowerCase();
+}
diff --git a/src/shared/utils/machineId.ts b/src/shared/utils/machineId.ts
index 2033f61967..710d791a1f 100644
--- a/src/shared/utils/machineId.ts
+++ b/src/shared/utils/machineId.ts
@@ -117,9 +117,23 @@ export async function getConsistentMachineId(salt = null) {
const cryptoFallback = await import("crypto");
return cryptoFallback.randomUUID();
} catch {
+ if (typeof globalThis !== "undefined" && globalThis.crypto && globalThis.crypto.randomUUID) {
+ return globalThis.crypto.randomUUID();
+ }
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
- const r = (Math.random() * 16) | 0;
- const v = c == "x" ? r : (r & 0x3) | 0x8;
+ let r = 0;
+ if (
+ typeof globalThis !== "undefined" &&
+ globalThis.crypto &&
+ globalThis.crypto.getRandomValues
+ ) {
+ const arr = new Uint8Array(1);
+ globalThis.crypto.getRandomValues(arr);
+ r = arr[0] % 16;
+ } else {
+ r = (Date.now() % 16) | 0;
+ }
+ const v = c === "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
@@ -140,9 +154,23 @@ export async function getRawMachineId() {
const cryptoFallback = await import("crypto");
return cryptoFallback.randomUUID();
} catch {
+ if (typeof globalThis !== "undefined" && globalThis.crypto && globalThis.crypto.randomUUID) {
+ return globalThis.crypto.randomUUID();
+ }
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
- const r = (Math.random() * 16) | 0;
- const v = c == "x" ? r : (r & 0x3) | 0x8;
+ let r = 0;
+ if (
+ typeof globalThis !== "undefined" &&
+ globalThis.crypto &&
+ globalThis.crypto.getRandomValues
+ ) {
+ const arr = new Uint8Array(1);
+ globalThis.crypto.getRandomValues(arr);
+ r = arr[0] % 16;
+ } else {
+ r = (Date.now() % 16) | 0;
+ }
+ const v = c === "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
diff --git a/src/shared/utils/releaseNotes.ts b/src/shared/utils/releaseNotes.ts
new file mode 100644
index 0000000000..a1e25b3ad9
--- /dev/null
+++ b/src/shared/utils/releaseNotes.ts
@@ -0,0 +1,53 @@
+import { z } from "zod";
+
+export const NEWS_JSON_URL =
+ "https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/news.json";
+export const CHANGELOG_RAW_URL =
+ "https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/CHANGELOG.md";
+export const CHANGELOG_GITHUB_URL =
+ "https://github.com/diegosouzapw/OmniRoute/blob/main/CHANGELOG.md";
+
+const activeNewsSchema = z.object({
+ active: z.literal(true),
+ title: z.string().trim().min(1).max(120),
+ message: z.string().trim().min(1).max(600),
+ link: z.string().url().optional(),
+ linkLabel: z.string().trim().min(1).max(80).optional(),
+ icon: z
+ .string()
+ .trim()
+ .regex(/^[a-z0-9_]+$/)
+ .optional(),
+});
+
+const inactiveNewsSchema = z
+ .object({
+ active: z.literal(false),
+ })
+ .passthrough();
+
+const newsPayloadSchema = z.discriminatedUnion("active", [activeNewsSchema, inactiveNewsSchema]);
+
+export type NewsAnnouncement = z.infer<typeof activeNewsSchema>;
+
+export function parseActiveNewsPayload(payload: unknown): NewsAnnouncement | null {
+ const parsed = newsPayloadSchema.safeParse(payload);
+ if (!parsed.success || parsed.data.active !== true) return null;
+ return parsed.data;
+}
+
+export function getLatestChangelogMarkdown(markdown: string, limit = 10): string {
+ const parts = markdown.split(/^##\s+\[/gm);
+ if (parts.length <= 1) {
+ const truncated = markdown.slice(0, 5000).trimEnd();
+ return markdown.length > 5000 ? `${truncated}\n\n...` : truncated;
+ }
+
+ const header = parts[0].trimEnd();
+ const versions = parts
+ .slice(1, limit + 1)
+ .map((part) => `## [${part.trimEnd()}`)
+ .join("\n\n");
+
+ return [header, versions].filter(Boolean).join("\n\n");
+}
diff --git a/src/shared/validation/schemas.ts b/src/shared/validation/schemas.ts
index 8b768e9f78..88407b7388 100644
--- a/src/shared/validation/schemas.ts
+++ b/src/shared/validation/schemas.ts
@@ -1157,6 +1157,15 @@ export const updateProxyRegistrySchema = createProxyRegistrySchema.partial().ext
id: z.string().trim().min(1, "id is required"),
});
+export const bulkImportProxiesSchema = z
+ .object({
+ items: z
+ .array(createProxyRegistrySchema)
+ .min(1, "At least one proxy is required")
+ .max(100, "Maximum 100 proxies per import"),
+ })
+ .strict();
+
export const proxyAssignmentSchema = z
.object({
scope: z.enum(["global", "provider", "account", "combo", "key"]),
diff --git a/src/shared/validation/settingsSchemas.ts b/src/shared/validation/settingsSchemas.ts
index 030bf8c511..91b70585a1 100644
--- a/src/shared/validation/settingsSchemas.ts
+++ b/src/shared/validation/settingsSchemas.ts
@@ -45,6 +45,8 @@ export const updateSettingsSchema = z.object({
setupComplete: z.boolean().optional(),
blockedProviders: z.array(z.string().max(100)).optional(),
hideHealthCheckLogs: z.boolean().optional(),
+ hideEndpointCloudflaredTunnel: z.boolean().optional(),
+ hideEndpointTailscaleFunnel: z.boolean().optional(),
debugMode: z.boolean().optional(),
hiddenSidebarItems: z.array(z.enum(HIDEABLE_SIDEBAR_ITEM_IDS)).optional(),
comboConfigMode: z.enum(COMBO_CONFIG_MODES).optional(),
diff --git a/src/types/settings.ts b/src/types/settings.ts
index 273b5bf941..1c956a708c 100644
--- a/src/types/settings.ts
+++ b/src/types/settings.ts
@@ -20,6 +20,8 @@ export interface Settings {
maxRetryIntervalSec: number;
jwtSecret?: string;
hideHealthCheckLogs?: boolean;
+ hideEndpointCloudflaredTunnel?: boolean;
+ hideEndpointTailscaleFunnel?: boolean;
hiddenSidebarItems?: HideableSidebarItemId[];
resilienceSettings?: ResilienceSettings;
}
diff --git a/tests/unit/anthropic-cache-fingerprint.test.ts b/tests/unit/anthropic-cache-fingerprint.test.ts
index d57be63a0d..34351665da 100644
--- a/tests/unit/anthropic-cache-fingerprint.test.ts
+++ b/tests/unit/anthropic-cache-fingerprint.test.ts
@@ -24,7 +24,7 @@ function computeOldFingerprint(firstUserMessageText: string, version: string): s
}
describe("Anthropic billing header fingerprint (#1638)", () => {
- const ccVersion = "2.1.114";
+ const ccVersion = "2.1.121";
it("should produce the same fingerprint for different messages (stable)", () => {
const fp1 = computeStableFingerprint(ccVersion);
diff --git a/tests/unit/cc-compatible-provider.test.ts b/tests/unit/cc-compatible-provider.test.ts
index 94378df356..cc606dc150 100644
--- a/tests/unit/cc-compatible-provider.test.ts
+++ b/tests/unit/cc-compatible-provider.test.ts
@@ -212,7 +212,9 @@ test("buildClaudeCodeCompatibleRequest preserves Claude cache markers when reque
preserveCacheControl: true,
});
- assert.deepEqual((payload.system[0] as any).cache_control, { type: "ephemeral", ttl: "5m" });
+ assert.match((payload.system[0] as any).text, /Claude Agent SDK/);
+ assert.equal((payload.system[0] as any).cache_control, undefined);
+ assert.deepEqual((payload.system[1] as any).cache_control, { type: "ephemeral", ttl: "5m" });
(assert as any).deepEqual((payload.messages[0].content[0] as any).cache_control, {
type: "ephemeral",
});
@@ -295,8 +297,10 @@ test("buildClaudeCodeCompatibleRequest keeps built-in system blocks untagged whe
preserveCacheControl: true,
});
- assert.deepEqual((payload.system[0] as any).cache_control, { type: "ephemeral" });
- assert.deepEqual((payload.system[1] as any).cache_control, { type: "ephemeral", ttl: "1h" });
+ assert.match((payload.system[0] as any).text, /Claude Agent SDK/);
+ assert.equal((payload.system[0] as any).cache_control, undefined);
+ assert.deepEqual((payload.system[1] as any).cache_control, { type: "ephemeral" });
+ assert.deepEqual((payload.system[2] as any).cache_control, { type: "ephemeral", ttl: "1h" });
});
test("buildClaudeCodeCompatibleRequest does not add cache markers in non-preserve mode", () => {
@@ -670,7 +674,9 @@ test("handleChatCore preserves client cache markers for Claude Code requests to
assert.equal(result.success, true);
assert.equal(calls.length, 1);
- assert.deepEqual(calls[0].body.system[0].cache_control, {
+ assert.match(calls[0].body.system[0].text, /Claude Agent SDK/);
+ assert.equal(calls[0].body.system[0].cache_control, undefined);
+ assert.deepEqual(calls[0].body.system[1].cache_control, {
type: "ephemeral",
ttl: "5m",
});
diff --git a/tests/unit/claude-cli-config.test.ts b/tests/unit/claude-cli-config.test.ts
new file mode 100644
index 0000000000..6b6461d460
--- /dev/null
+++ b/tests/unit/claude-cli-config.test.ts
@@ -0,0 +1,31 @@
+import { describe, it } from "node:test";
+import assert from "node:assert/strict";
+
+import {
+ getStoredClaudeAuthValue,
+ normalizeClaudeBaseUrl,
+} from "../../src/shared/services/claudeCliConfig.ts";
+
+describe("claudeCliConfig", () => {
+ it("keeps the unified Claude gateway root without forcing /v1", () => {
+ assert.equal(normalizeClaudeBaseUrl("http://localhost:20128"), "http://localhost:20128");
+ assert.equal(normalizeClaudeBaseUrl("http://localhost:20128/"), "http://localhost:20128");
+ assert.equal(normalizeClaudeBaseUrl("http://localhost:20128/v1"), "http://localhost:20128/v1");
+ });
+
+ it("prefers a stored auth token but can read legacy api key config", () => {
+ assert.equal(
+ getStoredClaudeAuthValue({ ANTHROPIC_AUTH_TOKEN: "sk-live-token" }),
+ "sk-live-token"
+ );
+ assert.equal(getStoredClaudeAuthValue({ ANTHROPIC_API_KEY: "sk-legacy-key" }), "sk-legacy-key");
+ assert.equal(
+ getStoredClaudeAuthValue({
+ ANTHROPIC_AUTH_TOKEN: "sk-live-token",
+ ANTHROPIC_API_KEY: "sk-legacy-key",
+ }),
+ "sk-live-token"
+ );
+ assert.equal(getStoredClaudeAuthValue({}), null);
+ });
+});
diff --git a/tests/unit/claude-code-compatible-request.test.ts b/tests/unit/claude-code-compatible-request.test.ts
index 8df02fed1a..67057a4fa0 100644
--- a/tests/unit/claude-code-compatible-request.test.ts
+++ b/tests/unit/claude-code-compatible-request.test.ts
@@ -120,9 +120,10 @@ test("buildClaudeCodeCompatibleRequest promotes source system/developer messages
content: [{ type: "text", text: "draft answer" }],
},
]);
- assert.equal(payload.system.length, 2);
- assert.equal(payload.system[0].text, "system note");
- assert.equal(payload.system[1].text, "developer note");
+ assert.equal(payload.system.length, 3);
+ assert.match((payload as any).system[0].text, /Claude Agent SDK/);
+ assert.equal(payload.system[1].text, "system note");
+ assert.equal(payload.system[2].text, "developer note");
assert.equal(payload.tools.length, 1);
assert.deepEqual(payload.tools[0], {
name: "lookup_account",
@@ -155,13 +156,34 @@ test("buildClaudeCodeCompatibleRequest prefers existing Claude top-level system
now: new Date("2026-01-02T12:00:00.000Z"),
});
- assert.equal(payload.system.length, 1);
- assert.equal((payload.system[0] as any).text, "top-level system");
+ assert.equal(payload.system.length, 2);
+ assert.match((payload.system[0] as any).text, /Claude Agent SDK/);
+ assert.equal((payload.system[1] as any).text, "top-level system");
assert.deepEqual(payload.messages, [
{ role: "user", content: [{ type: "text", text: "hello" }] },
]);
});
+test("buildClaudeCodeCompatibleRequest does not duplicate an existing default system skeleton", () => {
+ const payload = buildClaudeCodeCompatibleRequest({
+ claudeBody: {
+ system: [
+ {
+ type: "text",
+ text: "You are a Claude agent, built on Anthropic's Claude Agent SDK.",
+ },
+ ],
+ messages: [{ role: "user", content: "hello" }],
+ },
+ model: "claude-sonnet-4-6",
+ cwd: "/tmp/claude-code-compatible",
+ now: new Date("2026-01-02T12:00:00.000Z"),
+ });
+
+ assert.equal(payload.system.length, 1);
+ assert.match((payload.system[0] as any).text, /Claude Agent SDK/);
+});
+
test("buildClaudeCodeCompatibleRequest covers Claude-native bodies and cache-control stripping", () => {
const stripped = buildClaudeCodeCompatibleRequest({
claudeBody: {
@@ -229,12 +251,16 @@ test("buildClaudeCodeCompatibleRequest covers Claude-native bodies and cache-con
assert.equal((JSON as any).parse(stripped.metadata.user_id).session_id, "explicit-session");
assert.equal(stripped.messages.at(-1).role, "user");
assert.equal((stripped as any).system[0].cache_control, undefined);
+ assert.match((stripped.system[0] as any).text, /Claude Agent SDK/);
+ assert.equal((stripped.system[1] as any).text, "sys");
assert.equal((stripped as any).messages[0].content[0].cache_control, undefined);
assert.equal(stripped.tools[0].cache_control, undefined);
assert.deepEqual(stripped.thinking, { type: "enabled", budget_tokens: 12 });
assert.deepEqual(stripped.output_config, { effort: "high", format: "compact" });
assert.equal(stripped.metadata.foo, "bar");
- (assert as any).deepEqual((preserved.system[0] as any).cache_control, { type: "ephemeral" });
+ assert.match((preserved.system[0] as any).text, /Claude Agent SDK/);
+ assert.equal((preserved.system[0] as any).cache_control, undefined);
+ (assert as any).deepEqual((preserved.system[1] as any).cache_control, { type: "ephemeral" });
(assert as any).equal((preserved.messages[0].content[0] as any).cache_control.type, "ephemeral");
assert.equal((preserved.tools[0].cache_control as any).type, "ephemeral");
});
diff --git a/tests/unit/cli-tools.test.ts b/tests/unit/cli-tools.test.ts
index a0964706c2..171a0d2b46 100644
--- a/tests/unit/cli-tools.test.ts
+++ b/tests/unit/cli-tools.test.ts
@@ -2,9 +2,18 @@ import test from "node:test";
import assert from "node:assert/strict";
const { CLI_TOOLS } = await import("../../src/shared/constants/cliTools.ts");
-const { CLI_COMPAT_PROVIDER_IDS } =
+const {
+ CLI_COMPAT_PROVIDER_IDS,
+ CLI_COMPAT_OMITTED_PROVIDER_IDS,
+ CLI_COMPAT_TOGGLE_IDS,
+ IMPLEMENTED_CLI_FINGERPRINT_PROVIDER_IDS,
+ normalizeCliCompatProviderId,
+} =
await import("../../src/shared/constants/cliCompatProviders.ts");
const { CLI_TOOL_IDS } = await import("../../src/shared/services/cliRuntime.ts");
+const { applyFingerprint, isCliCompatEnabled, setCliCompatProviders } = await import(
+ "../../open-sse/config/cliFingerprints.ts"
+);
test("Amp CLI is registered as a guide-based CLI tool with shorthand mapping guidance", () => {
const amp = CLI_TOOLS.amp;
@@ -37,3 +46,71 @@ test("Hermes quick-config is registered as a guide-based CLI tool", () => {
assert.ok(String(hermes.codeBlock?.code || "").includes('"baseURL": "{{baseUrl}}"'));
assert.ok(CLI_TOOL_IDS.includes("hermes"));
});
+
+test("CLI fingerprint toggles only expose implemented fingerprints and functional legacy aliases", () => {
+ const implemented = new Set<string>(IMPLEMENTED_CLI_FINGERPRINT_PROVIDER_IDS);
+
+ for (const providerId of CLI_COMPAT_PROVIDER_IDS) {
+ assert.equal(
+ implemented.has(providerId),
+ true,
+ `${providerId} should have an implemented fingerprint`
+ );
+ }
+
+ for (const toggleId of CLI_COMPAT_TOGGLE_IDS) {
+ const providerId = normalizeCliCompatProviderId(toggleId);
+ assert.equal(
+ implemented.has(providerId),
+ true,
+ `${toggleId} should map to an implemented fingerprint provider`
+ );
+ }
+
+ for (const providerId of IMPLEMENTED_CLI_FINGERPRINT_PROVIDER_IDS) {
+ assert.equal(CLI_COMPAT_PROVIDER_IDS.includes(providerId), true);
+ }
+
+ for (const providerId of CLI_COMPAT_OMITTED_PROVIDER_IDS) {
+ assert.equal(CLI_COMPAT_PROVIDER_IDS.includes(providerId), false);
+ assert.equal((CLI_COMPAT_TOGGLE_IDS as readonly string[]).includes(providerId), false);
+ }
+
+ assert.equal(CLI_COMPAT_TOGGLE_IDS.includes("copilot"), true);
+ assert.equal((CLI_COMPAT_TOGGLE_IDS as readonly string[]).includes("github"), false);
+});
+
+test("CLI fingerprint preserves Codex executor User-Agent and maps legacy Copilot alias", () => {
+ const codex = applyFingerprint(
+ "codex",
+ {
+ Authorization: "Bearer token",
+ "User-Agent": "codex-cli/0.125.0 (Windows 10.0.26100; x64)",
+ },
+ { model: "gpt-5.5", messages: [], stream: true }
+ );
+
+ assert.equal(codex.headers["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26100; x64)");
+ assert.deepEqual(Object.keys(JSON.parse(codex.bodyString)), ["model", "messages", "stream"]);
+
+ const copilot = applyFingerprint(
+ "copilot",
+ { Authorization: "Bearer token", Accept: "application/json" },
+ { model: "gpt-4o", messages: [] }
+ );
+
+ assert.equal(copilot.headers["User-Agent"], "GitHubCopilotChat/0.45.1");
+});
+
+test("CLI fingerprint keeps legacy Copilot settings functional without exposing duplicate UI toggles", () => {
+ assert.equal(normalizeCliCompatProviderId("copilot"), "github");
+ assert.equal(normalizeCliCompatProviderId("GitHub"), "github");
+
+ try {
+ setCliCompatProviders(["copilot"]);
+ assert.equal(isCliCompatEnabled("github"), true);
+ assert.equal(isCliCompatEnabled("copilot"), true);
+ } finally {
+ setCliCompatProviders([]);
+ }
+});
diff --git a/tests/unit/config-hot-reload.test.ts b/tests/unit/config-hot-reload.test.ts
index 4e230ca0be..edf6d3a52d 100644
--- a/tests/unit/config-hot-reload.test.ts
+++ b/tests/unit/config-hot-reload.test.ts
@@ -73,7 +73,7 @@ test("updateSettings applies runtime settings incrementally without restart", as
});
await settingsDb.updateSettings({
- cliCompatProviders: ["OpenAI", "claude"],
+ cliCompatProviders: ["OpenAI", "claude", "copilot"],
modelAliases: JSON.stringify({ "team-default": "openai/gpt-4o-mini" }),
backgroundDegradation: {
enabled: true,
@@ -92,7 +92,7 @@ test("updateSettings applies runtime settings incrementally without restart", as
antigravitySignatureCacheMode: "bypass",
});
- assert.deepEqual(getCliCompatProviders().sort(), ["claude", "openai"]);
+ assert.deepEqual(getCliCompatProviders().sort(), ["claude", "github"]);
assert.deepEqual(getCustomAliases(), { "team-default": "openai/gpt-4o-mini" });
assert.equal(getBackgroundDegradationConfig().enabled, true);
assert.equal(getBackgroundDegradationConfig().degradationMap["gpt-4o"], "gpt-4o-mini");
@@ -136,7 +136,7 @@ test("hot-reload watcher picks up external sqlite changes via polling fallback",
await waitFor(
() =>
getCliCompatProviders().includes("github") &&
- getCliCompatProviders().includes("openai") &&
+ !getCliCompatProviders().includes("openai") &&
getGeminiThoughtSignatureMode() === "bypass-strict"
);
});
diff --git a/tests/unit/cursor-version-detector.test.mjs b/tests/unit/cursor-version-detector.test.mjs
index 72d5ec7dad..78fe5e877a 100644
--- a/tests/unit/cursor-version-detector.test.mjs
+++ b/tests/unit/cursor-version-detector.test.mjs
@@ -4,7 +4,7 @@ import fs from "node:fs";
import os from "node:os";
import path from "node:path";
-const FALLBACK_VERSION = "3.1.15";
+const FALLBACK_VERSION = "3.2.14";
const Database = (await import("better-sqlite3")).default;
const { getCursorVersion, resetCursorVersionCache } =
diff --git a/tests/unit/db-migration-runner.test.ts b/tests/unit/db-migration-runner.test.ts
index 86955f7c6f..b586567638 100644
--- a/tests/unit/db-migration-runner.test.ts
+++ b/tests/unit/db-migration-runner.test.ts
@@ -617,6 +617,65 @@ test(
}
);
+test(
+ "runMigrations rehomes legacy reasoning cache tracking so api key lifecycle can apply",
+ serial,
+ async () => {
+ const runner = await importFresh("src/lib/db/migrationRunner.ts");
+ const db = createDb();
+
+ try {
+ db.exec(`
+ CREATE TABLE _omniroute_migrations (
+ version TEXT PRIMARY KEY,
+ name TEXT NOT NULL,
+ applied_at TEXT NOT NULL DEFAULT (datetime('now'))
+ );
+
+ CREATE TABLE api_keys (
+ id TEXT PRIMARY KEY,
+ key TEXT NOT NULL
+ );
+ `);
+ db.prepare("INSERT INTO _omniroute_migrations (version, name) VALUES (?, ?)").run(
+ "032",
+ "create_reasoning_cache"
+ );
+
+ const count = withMockedMigrationFs(
+ {
+ "032_apikey_lifecycle.sql": "ALTER TABLE api_keys ADD COLUMN should_not_run TEXT;",
+ "033_create_reasoning_cache.sql": "CREATE TABLE reasoning_cache_shadow (id INTEGER);",
+ },
+ () => runner.runMigrations(db)
+ );
+
+ assert.equal(count, 1);
+ assert.deepEqual(
+ db.prepare("SELECT version, name FROM _omniroute_migrations ORDER BY version").all(),
+ [
+ { version: "032", name: "apikey_lifecycle" },
+ { version: "033", name: "create_reasoning_cache" },
+ ]
+ );
+
+ const columns = db.prepare("PRAGMA table_info(api_keys)").all() as Array<{ name: string }>;
+ const names = new Set(columns.map((column) => column.name));
+ assert.equal(names.has("revoked_at"), true);
+ assert.equal(names.has("expires_at"), true);
+ assert.equal(names.has("should_not_run"), false);
+ assert.equal(
+ db
+ .prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = ?")
+ .get("reasoning_cache_shadow"),
+ undefined
+ );
+ } finally {
+ db.close();
+ }
+ }
+);
+
test(
"memory FTS migrations upgrade existing UUID memories without datatype mismatches",
serial,
diff --git a/tests/unit/executor-antigravity.test.ts b/tests/unit/executor-antigravity.test.ts
index ef00b53c34..817a3d4d1a 100644
--- a/tests/unit/executor-antigravity.test.ts
+++ b/tests/unit/executor-antigravity.test.ts
@@ -2,6 +2,7 @@ import test from "node:test";
import assert from "node:assert/strict";
import { AntigravityExecutor } from "../../open-sse/executors/antigravity.ts";
+import { setCliCompatProviders } from "../../open-sse/config/cliFingerprints.ts";
import {
clearAntigravityVersionCache,
seedAntigravityVersionCache,
@@ -367,17 +368,17 @@ test("AntigravityExecutor.execute auto-retries short 429 responses and collects
}
);
};
- globalThis.setTimeout = (callback) => {
+ globalThis.setTimeout = ((callback) => {
callback();
return 0;
- };
+ }) as typeof setTimeout;
try {
const result = await executor.execute({
model: "antigravity/gemini-2.5-flash",
body: { request: { contents: [] } },
stream: false,
- credentials: { accessToken: "token", projectId: "project-1" },
+ credentials: { accessToken: "token", projectId: "project-1" } as any,
log: { debug() {}, warn() {} },
});
const payload = (await result.response.json()) as any;
@@ -419,7 +420,7 @@ test("AntigravityExecutor.execute embeds retryAfterMs when the upstream asks for
model: "antigravity/gemini-2.5-flash",
body: { request: { contents: [] } },
stream: true,
- credentials: { accessToken: "token", projectId: "project-1" },
+ credentials: { accessToken: "token", projectId: "project-1" } as any,
log: { debug() {}, warn() {} },
});
const payload = (await result.response.json()) as any;
@@ -430,3 +431,48 @@ test("AntigravityExecutor.execute embeds retryAfterMs when the upstream asks for
globalThis.fetch = originalFetch;
}
});
+
+test("AntigravityExecutor.execute applies CLI fingerprint when enabled", async () => {
+ const executor = new AntigravityExecutor();
+ const originalFetch = globalThis.fetch;
+ seedAntigravityVersionCache("2026.04.17-test");
+ setCliCompatProviders(["antigravity"]);
+
+ globalThis.fetch = async (_url, init) => {
+ const headers = init?.headers as Record<string, string>;
+ const parsedBody = JSON.parse(String(init?.body));
+
+ assert.equal(headers["User-Agent"], "antigravity/2026.04.17-test darwin/arm64");
+ assert.deepEqual(Object.keys(parsedBody), [
+ "project",
+ "model",
+ "userAgent",
+ "requestType",
+ "requestId",
+ "enabledCreditTypes",
+ "request",
+ ]);
+
+ return new Response('data: {"response":{"candidates":[{"content":{"parts":[{"text":"OK"}]},"finishReason":"STOP"}]}}\n\n', {
+ status: 200,
+ headers: { "Content-Type": "text/event-stream" },
+ });
+ };
+
+ try {
+ const result = await withEnv("ANTIGRAVITY_CREDITS", "always", () =>
+ executor.execute({
+ model: "antigravity/gemini-2.5-flash",
+ body: { request: { contents: [] } },
+ stream: false,
+ credentials: { accessToken: "token", projectId: "project-1" } as any,
+ log: { debug() {}, warn() {}, info() {} },
+ })
+ );
+
+ assert.equal(result.response.status, 200);
+ } finally {
+ setCliCompatProviders([]);
+ globalThis.fetch = originalFetch;
+ }
+});
diff --git a/tests/unit/executor-codex.test.ts b/tests/unit/executor-codex.test.ts
index 05c67da79b..5475c78e72 100644
--- a/tests/unit/executor-codex.test.ts
+++ b/tests/unit/executor-codex.test.ts
@@ -24,7 +24,7 @@ test.afterEach(() => {
__setCodexWebSocketTransportForTesting(undefined);
});
-async function withEnv(entries, fn) {
+async function withEnv(entries: Record<string, string | undefined>, fn: () => any) {
const previous = new Map();
for (const [key, value] of Object.entries(entries)) {
@@ -201,6 +201,25 @@ test("CodexExecutor.transformRequest injects default instructions, clamps reason
assert.equal(result.stream_options, undefined);
});
+test("CodexExecutor.transformRequest normalizes max reasoning_effort to xhigh", () => {
+ const executor = new CodexExecutor();
+ const result = executor.transformRequest(
+ "gpt-5.5",
+ {
+ model: "gpt-5.5",
+ input: [],
+ reasoning_effort: "max",
+ },
+ false,
+ {
+ requestEndpointPath: "/responses",
+ }
+ );
+
+ assert.equal(result.reasoning.effort, "xhigh");
+ assert.equal(result.reasoning_effort, undefined);
+});
+
test("CodexExecutor.transformRequest sends neutral instructions for bare chat requests", () => {
const executor = new CodexExecutor();
const body = {
@@ -274,7 +293,7 @@ test("CodexExecutor.transformRequest preserves store-enabled responses state whe
assert.equal(result._omnirouteResponsesStore, undefined);
assert.equal(result.store, true);
- assert.equal(result.previous_response_id, undefined);
+ assert.equal(result.previous_response_id, "resp_prev_123");
});
test("CodexExecutor.transformRequest applies per-connection reasoning and service tier defaults", () => {
@@ -379,7 +398,7 @@ test("CodexExecutor.execute falls back to HTTP when websocket transport is unava
// When WS transport is unavailable, isCodexResponsesWebSocketRequired returns false
// and the executor falls back to HTTP via super.execute()
assert.equal(result.response.status, 200);
- assert.equal(result.transformedBody.model, "gpt-5.5");
+ assert.equal((result.transformedBody as any).model, "gpt-5.5");
} finally {
globalThis.fetch = originalFetch;
}
diff --git a/tests/unit/image-generation-route.test.ts b/tests/unit/image-generation-route.test.ts
index 678771ddec..406b854ac2 100644
--- a/tests/unit/image-generation-route.test.ts
+++ b/tests/unit/image-generation-route.test.ts
@@ -6,15 +6,19 @@ import path from "node:path";
const TEST_DATA_DIR = fs.mkdtempSync(path.join(os.tmpdir(), "omniroute-image-route-"));
process.env.DATA_DIR = TEST_DATA_DIR;
+process.env.API_KEY_SECRET = process.env.API_KEY_SECRET || "image-route-test-api-key-secret";
const core = await import("../../src/lib/db/core.ts");
const providersDb = await import("../../src/lib/db/providers.ts");
+const apiKeysDb = await import("../../src/lib/db/apiKeys.ts");
const imageRoute = await import("../../src/app/api/v1/images/generations/route.ts");
+const imageEditRoute = await import("../../src/app/api/v1/images/edits/route.ts");
const originalFetch = globalThis.fetch;
async function resetStorage() {
globalThis.fetch = originalFetch;
+ apiKeysDb.resetApiKeyState();
core.resetDbInstance();
fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });
fs.mkdirSync(TEST_DATA_DIR, { recursive: true });
@@ -38,6 +42,7 @@ test.beforeEach(async () => {
test.after(() => {
globalThis.fetch = originalFetch;
+ apiKeysDb.resetApiKeyState();
core.resetDbInstance();
fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });
});
@@ -111,3 +116,25 @@ test("v1 image generation POST still requires prompts for text-input models", as
assert.equal(response.status, 400);
assert.match(body.error.message, /Prompt is required for image model: openai\/gpt-image-2/);
});
+
+test("v1 image edit POST enforces disabled API key policy", async () => {
+ const createdKey = await apiKeysDb.createApiKey("Disabled image edit key", "machine-image-edit");
+ await apiKeysDb.updateApiKeyPermissions(createdKey.id, { isActive: false });
+
+ const formData = new FormData();
+ formData.set("prompt", "make the background lighter");
+ formData.set("model", "cgpt-web/gpt-5.3-instant");
+ formData.set("image", new File([new Uint8Array([1, 2, 3])], "source.png", { type: "image/png" }));
+
+ const response = await imageEditRoute.POST(
+ new Request("http://localhost/api/v1/images/edits", {
+ method: "POST",
+ headers: { Authorization: `Bearer ${createdKey.key}` },
+ body: formData,
+ })
+ );
+ const body = (await response.json()) as any;
+
+ assert.equal(response.status, 403);
+ assert.match(body.error.message, /disabled/);
+});
diff --git a/tests/unit/provider-header-profiles.test.ts b/tests/unit/provider-header-profiles.test.ts
index 3b47a51cfc..4383d5a262 100644
--- a/tests/unit/provider-header-profiles.test.ts
+++ b/tests/unit/provider-header-profiles.test.ts
@@ -11,9 +11,9 @@ import {
GITHUB_COPILOT_REFRESH_USER_AGENT,
KIRO_AMZ_USER_AGENT,
KIRO_SDK_USER_AGENT,
- QODER_DASHSCOPE_COMPAT_USER_AGENT,
- QWEN_CLI_USER_AGENT,
+ QWEN_CLI_VERSION,
getCursorUsageHeaders,
+ getQwenCliUserAgent,
getGitHubCopilotChatHeaders,
getGitHubCopilotInternalUserHeaders,
getGitHubCopilotRefreshHeaders,
@@ -47,13 +47,16 @@ test("provider header profiles expose dedicated refresh, qwen, qoder, kiro and c
assert.equal(refreshHeaders["Editor-Plugin-Version"], GITHUB_COPILOT_REFRESH_PLUGIN_VERSION);
const qwenHeaders = getQwenOauthHeaders();
- assert.equal(qwenHeaders["User-Agent"], QWEN_CLI_USER_AGENT);
- assert.equal(qwenHeaders["X-Dashscope-UserAgent"], QWEN_CLI_USER_AGENT);
+ assert.equal(qwenHeaders["User-Agent"], getQwenCliUserAgent());
+ assert.equal(qwenHeaders["User-Agent"], `QwenCode/${QWEN_CLI_VERSION} (${process.platform}; ${process.arch})`);
+ assert.notEqual(qwenHeaders["User-Agent"], "QwenCode/0.15.3 (linux; x64)");
+ assert.equal(qwenHeaders["X-Dashscope-UserAgent"], getQwenCliUserAgent());
assert.equal(qwenHeaders["X-Stainless-Package-Version"], "5.11.0");
+ assert.equal(qwenHeaders["X-Stainless-Runtime-Version"], process.version);
const qoderHeaders = getQoderDashscopeCompatHeaders();
- assert.equal(qoderHeaders["user-agent"], QODER_DASHSCOPE_COMPAT_USER_AGENT);
- assert.equal(qoderHeaders["x-dashscope-useragent"], QODER_DASHSCOPE_COMPAT_USER_AGENT);
+ assert.equal(qoderHeaders["user-agent"], getQwenCliUserAgent());
+ assert.equal(qoderHeaders["x-dashscope-useragent"], getQwenCliUserAgent());
const kiroHeaders = getKiroServiceHeaders("application/json");
assert.equal(kiroHeaders.Accept, "application/json");
@@ -66,3 +69,24 @@ test("provider header profiles expose dedicated refresh, qwen, qoder, kiro and c
assert.equal(cursorHeaders["x-cursor-user-agent"], `Cursor/${CURSOR_REGISTRY_VERSION}`);
assert.equal(cursorHeaders["x-cursor-client-version"], CURSOR_REGISTRY_VERSION);
});
+
+test("provider header profiles tolerate browser-like process shims", async () => {
+ const originalPlatform = process.platform;
+ const originalArch = process.arch;
+ const originalVersion = process.version;
+
+ Object.defineProperty(process, "platform", { value: undefined, configurable: true });
+ Object.defineProperty(process, "arch", { value: undefined, configurable: true });
+ Object.defineProperty(process, "version", { value: undefined, configurable: true });
+
+ try {
+ assert.equal(getQwenCliUserAgent(), `QwenCode/${QWEN_CLI_VERSION} (unknown; unknown)`);
+ const qwenHeaders = getQwenOauthHeaders();
+ assert.equal(qwenHeaders["User-Agent"], `QwenCode/${QWEN_CLI_VERSION} (unknown; unknown)`);
+ assert.equal(qwenHeaders["X-Stainless-Runtime-Version"], "unknown");
+ } finally {
+ Object.defineProperty(process, "platform", { value: originalPlatform, configurable: true });
+ Object.defineProperty(process, "arch", { value: originalArch, configurable: true });
+ Object.defineProperty(process, "version", { value: originalVersion, configurable: true });
+ }
+});
diff --git a/tests/unit/qoder-executor.test.ts b/tests/unit/qoder-executor.test.ts
index c1dae12cae..d42b3de6bd 100644
--- a/tests/unit/qoder-executor.test.ts
+++ b/tests/unit/qoder-executor.test.ts
@@ -2,6 +2,7 @@ import test from "node:test";
import assert from "node:assert/strict";
import { QoderExecutor } from "../../open-sse/executors/qoder.ts";
+import { getQwenCliUserAgent } from "../../open-sse/config/providerHeaderProfiles.ts";
import {
buildQoderPrompt,
getStaticQoderModels,
@@ -173,8 +174,8 @@ test("QoderExecutor: non-stream calls target DashScope and map alias models", as
assert.equal(options.method, "POST");
assert.equal(options.headers.Authorization, "Bearer pat_test");
assert.equal(options.headers["x-dashscope-authtype"], "qwen-oauth");
- assert.equal(options.headers["user-agent"], "QwenCode/0.15.3 (linux; x64)");
- assert.equal(options.headers["x-dashscope-useragent"], "QwenCode/0.15.3 (linux; x64)");
+ assert.equal(options.headers["user-agent"], getQwenCliUserAgent());
+ assert.equal(options.headers["x-dashscope-useragent"], getQwenCliUserAgent());
const parsedBody = JSON.parse(String(options.body));
assert.equal(parsedBody.model, "coder-model");
return new Response(
diff --git a/tests/unit/release-notes.test.ts b/tests/unit/release-notes.test.ts
new file mode 100644
index 0000000000..6a90764bc1
--- /dev/null
+++ b/tests/unit/release-notes.test.ts
@@ -0,0 +1,52 @@
+import test from "node:test";
+import assert from "node:assert/strict";
+
+const releaseNotes = await import("../../src/shared/utils/releaseNotes.ts");
+
+test("parseActiveNewsPayload returns only valid active announcements", () => {
+ assert.deepEqual(
+ releaseNotes.parseActiveNewsPayload({
+ active: true,
+ title: "Launch",
+ message: "A short announcement",
+ link: "https://github.com/diegosouzapw/tOmni",
+ linkLabel: "Learn more",
+ icon: "campaign",
+ }),
+ {
+ active: true,
+ title: "Launch",
+ message: "A short announcement",
+ link: "https://github.com/diegosouzapw/tOmni",
+ linkLabel: "Learn more",
+ icon: "campaign",
+ }
+ );
+
+ assert.equal(releaseNotes.parseActiveNewsPayload({ active: false }), null);
+ assert.equal(
+ releaseNotes.parseActiveNewsPayload({
+ active: true,
+ title: "Unsafe icon",
+ message: "Invalid icon names are rejected",
+ icon: "campaign<script>",
+ }),
+ null
+ );
+});
+
+test("getLatestChangelogMarkdown keeps the title and the ten latest releases", () => {
+ const versions = Array.from({ length: 12 }, (_, index) => {
+ const version = `1.0.${12 - index}`;
+ return `## [${version}] - 2026-04-${String(28 - index).padStart(2, "0")}\n\n### Bug Fixes\n- Fix ${version}`;
+ });
+ const markdown = ["# Changelog", ...versions].join("\n\n");
+
+ const sliced = releaseNotes.getLatestChangelogMarkdown(markdown, 10);
+
+ assert.match(sliced, /^# Changelog/);
+ assert.equal((sliced.match(/^## \[/gm) || []).length, 10);
+ assert.match(sliced, /## \[1\.0\.12\]/);
+ assert.match(sliced, /## \[1\.0\.3\]/);
+ assert.doesNotMatch(sliced, /## \[1\.0\.2\]/);
+});
diff --git a/tests/unit/responses-handler.test.ts b/tests/unit/responses-handler.test.ts
index 9f5022dde0..af10c7f0d6 100644
--- a/tests/unit/responses-handler.test.ts
+++ b/tests/unit/responses-handler.test.ts
@@ -21,7 +21,7 @@ function noopLog() {
};
}
-function toPlainHeaders(headers) {
+function toPlainHeaders(headers: any) {
if (!headers) return {};
if (headers instanceof Headers) return Object.fromEntries(headers.entries());
return Object.fromEntries(
@@ -55,7 +55,7 @@ function buildOpenAISseResponse(text = "hello") {
);
}
-function buildJsonResponse(status, payload) {
+function buildJsonResponse(status: number, payload: any) {
return new Response(JSON.stringify(payload), {
status,
headers: { "Content-Type": "application/json" },
@@ -75,8 +75,15 @@ async function invokeResponsesCore({
credentials,
responseFactory,
signal,
+}: {
+ body?: any;
+ provider?: string;
+ model?: string;
+ credentials?: any;
+ responseFactory?: any;
+ signal?: AbortSignal;
} = {}) {
- const calls = [];
+ const calls: any[] = [];
globalThis.fetch = async (url, init = {}) => {
const call = {
@@ -194,7 +201,7 @@ test("handleResponsesCore preserves store for Codex responses when connection op
});
assert.equal(result.success, true);
- assert.equal(call.body.previous_response_id, undefined);
+ assert.equal(call.body.previous_response_id, "resp_prev_store");
assert.equal(call.body.store, true);
assert.equal(call.body.stream, true);
});
@@ -263,10 +270,10 @@ test("handleResponsesCore rejects invalid Responses API input that cannot be tra
test("handleResponsesCore injects SSE keepalive comments for Responses streams", async () => {
const originalSetInterval = globalThis.setInterval;
const originalClearInterval = globalThis.clearInterval;
- const intervals = [];
+ const intervals: any[] = [];
let nextId = 0;
- globalThis.setInterval = (callback, delay = 0, ...args) => {
+ (globalThis as any).setInterval = (callback: any, delay = 0, ...args: any[]) => {
const interval = {
id: ++nextId,
callback,
@@ -278,7 +285,7 @@ test("handleResponsesCore injects SSE keepalive comments for Responses streams",
return interval;
};
- globalThis.clearInterval = (interval) => {
+ (globalThis as any).clearInterval = (interval: any) => {
if (interval && typeof interval === "object") {
interval.cleared = true;
}
@@ -312,10 +319,10 @@ test("handleResponsesCore injects SSE keepalive comments for Responses streams",
test("handleResponsesCore clears heartbeat timers immediately when the request signal aborts", async () => {
const originalSetInterval = globalThis.setInterval;
const originalClearInterval = globalThis.clearInterval;
- const intervals = [];
+ const intervals: any[] = [];
let nextId = 0;
- globalThis.setInterval = (callback, delay = 0, ...args) => {
+ (globalThis as any).setInterval = (callback: any, delay = 0, ...args: any[]) => {
const interval = {
id: ++nextId,
callback,
@@ -327,7 +334,7 @@ test("handleResponsesCore clears heartbeat timers immediately when the request s
return interval;
};
- globalThis.clearInterval = (interval) => {
+ (globalThis as any).clearInterval = (interval: any) => {
if (interval && typeof interval === "object") {
interval.cleared = true;
}
diff --git a/tests/unit/settings-api.test.ts b/tests/unit/settings-api.test.ts
index 47c39ddcd9..e5a1bd58c0 100644
--- a/tests/unit/settings-api.test.ts
+++ b/tests/unit/settings-api.test.ts
@@ -58,7 +58,7 @@ after(() => {
harness.cleanup();
});
-describe("Settings API - debugMode and hiddenSidebarItems", () => {
+describe("Settings API - persisted preferences", () => {
describe("debugMode", () => {
test("updateSettings with debugMode=true succeeds", async () => {
const result = await harness.updateSettings({ debugMode: true });
@@ -134,6 +134,27 @@ describe("Settings API - debugMode and hiddenSidebarItems", () => {
);
});
+ test("PATCH /api/settings persists endpoint tunnel visibility", async () => {
+ const response = await harness.settingsRoute.PATCH(
+ await makeManagementSessionRequest("http://localhost/api/settings", {
+ method: "PATCH",
+ body: {
+ hideEndpointCloudflaredTunnel: true,
+ hideEndpointTailscaleFunnel: true,
+ },
+ })
+ );
+ const body = (await response.json()) as any;
+
+ assert.equal(response.status, 200);
+ assert.equal(body.hideEndpointCloudflaredTunnel, true);
+ assert.equal(body.hideEndpointTailscaleFunnel, true);
+
+ const settings = await harness.getSettings();
+ assert.equal(settings.hideEndpointCloudflaredTunnel, true);
+ assert.equal(settings.hideEndpointTailscaleFunnel, true);
+ });
+
test("PUT /api/settings reuses the PATCH update flow", async () => {
const response = await harness.settingsRoute.PUT(
await makeManagementSessionRequest("http://localhost/api/settings", {
diff --git a/tests/unit/sidebar-visibility.test.ts b/tests/unit/sidebar-visibility.test.ts
index 547159e17a..c20a003b9e 100644
--- a/tests/unit/sidebar-visibility.test.ts
+++ b/tests/unit/sidebar-visibility.test.ts
@@ -52,6 +52,29 @@ test("sidebar visibility drops stale audit entries from saved settings", () => {
assert.deepEqual(sidebarVisibility.normalizeHiddenSidebarItems(["audit", "logs"]), ["logs"]);
});
+test("help sidebar exposes changelog after docs and issues", () => {
+ const helpSection = sidebarVisibility.SIDEBAR_SECTIONS.find((section) => section.id === "help");
+
+ assert.ok(helpSection, "expected help sidebar section to exist");
+ assert.deepEqual(
+ helpSection.items.map((item) => ({
+ id: item.id,
+ href: item.href,
+ i18nKey: item.i18nKey,
+ })),
+ [
+ { id: "docs", href: "/docs", i18nKey: "docs" },
+ {
+ id: "issues",
+ href: "https://github.com/diegosouzapw/OmniRoute/issues",
+ i18nKey: "issues",
+ },
+ { id: "changelog", href: "/dashboard/changelog", i18nKey: "changelog" },
+ ]
+ );
+ assert.equal(sidebarVisibility.HIDEABLE_SIDEBAR_ITEM_IDS.includes("changelog"), true);
+});
+
test("legacy dashboard routes redirect to their consolidated surfaces", async () => {
const autoComboPage = await readFile(
join(repoRoot, "src/app/(dashboard)/dashboard/auto-combo/page.tsx"),
diff --git a/tests/unit/thinking-budget.test.ts b/tests/unit/thinking-budget.test.ts
index 5242f42f8d..12b59ce8f2 100644
--- a/tests/unit/thinking-budget.test.ts
+++ b/tests/unit/thinking-budget.test.ts
@@ -113,8 +113,7 @@ test("CUSTOM: sets OpenAI reasoning_effort from budget", () => {
reasoning_effort: "low",
};
const result = applyThinkingBudget(body);
- // T11 (sub2api gap): full budget (131072) now maps to "max" instead of "high"
- assert.equal(result.reasoning_effort, "max");
+ assert.equal(result.reasoning_effort, "xhigh");
setThinkingBudgetConfig(DEFAULT_THINKING_CONFIG);
});
diff --git a/tests/unit/translator-claude-to-openai.test.ts b/tests/unit/translator-claude-to-openai.test.ts
index fe7bb797f3..df6959d428 100644
--- a/tests/unit/translator-claude-to-openai.test.ts
+++ b/tests/unit/translator-claude-to-openai.test.ts
@@ -212,7 +212,7 @@ test("Claude -> OpenAI maps thinking.budget_tokens to reasoning_effort buckets",
{ budget: 8192, expected: "medium" },
{ budget: 10240, expected: "medium" },
{ budget: 65536, expected: "high" },
- { budget: 131072, expected: "max" },
+ { budget: 131072, expected: "xhigh" },
];
for (const { budget, expected } of buckets) {
@@ -228,6 +228,19 @@ test("Claude -> OpenAI maps thinking.budget_tokens to reasoning_effort buckets",
}
});
+test("Claude -> OpenAI normalizes output_config.effort=max to xhigh", () => {
+ const result = claudeToOpenAIRequest(
+ "gpt-5",
+ {
+ messages: [{ role: "user", content: "hi" }],
+ output_config: { effort: "max" },
+ },
+ false
+ );
+
+ assert.equal(result.reasoning_effort, "xhigh");
+});
+
test("Claude -> OpenAI ignores disabled thinking and leaves reasoning_effort unset", () => {
const result = claudeToOpenAIRequest(
"gpt-5",
diff --git a/tests/unit/translator-openai-responses-req.test.ts b/tests/unit/translator-openai-responses-req.test.ts
index 118a3a4fd7..e8004c3e6c 100644
--- a/tests/unit/translator-openai-responses-req.test.ts
+++ b/tests/unit/translator-openai-responses-req.test.ts
@@ -313,6 +313,21 @@ test("Chat -> Responses maps reasoning_effort into Responses reasoning", () => {
assert.equal((result as any).store, false);
});
+test("Chat -> Responses normalizes reasoning_effort max to xhigh", () => {
+ const result = openaiToOpenAIResponsesRequest(
+ "gpt-5.5",
+ {
+ messages: [{ role: "user", content: "Hello" }],
+ reasoning_effort: "max",
+ },
+ false,
+ null
+ );
+
+ assert.deepEqual((result as any).reasoning, { effort: "xhigh" });
+ assert.equal((result as any).reasoning_effort, undefined);
+});
+
test("Chat -> Responses filters orphan function_call_output items and leaves empty instructions when absent", () => {
const result = openaiToOpenAIResponsesRequest(
"gpt-4o",
diff --git a/tests/unit/usage-service-hardening.test.ts b/tests/unit/usage-service-hardening.test.ts
index e49683675d..82b185d8b3 100644
--- a/tests/unit/usage-service-hardening.test.ts
+++ b/tests/unit/usage-service-hardening.test.ts
@@ -1034,8 +1034,8 @@ test("usage service parses Cursor team quotas and clamps on-demand ratio", async
assert.equal(calls.length, 3);
for (const call of calls) {
assert.equal(call.init.headers.Authorization, "Bearer cursor-token");
- assert.equal(call.init.headers["User-Agent"], "Cursor/3.1.0");
- assert.equal(call.init.headers["x-cursor-client-version"], "3.1.0");
+ assert.equal(call.init.headers["User-Agent"], "Cursor/3.2.14");
+ assert.equal(call.init.headers["x-cursor-client-version"], "3.2.14");
}
assert.equal(usage.plan, "Cursor Team");
@@ -1149,9 +1149,9 @@ test("usage helper branches cover reset parsing, GitHub quota math, and plan inf
assert.deepEqual(__testing.buildCursorUsageHeaders("cursor-token"), {
Authorization: "Bearer cursor-token",
Accept: "application/json",
- "User-Agent": "Cursor/3.1.0",
- "x-cursor-client-version": "3.1.0",
- "x-cursor-user-agent": "Cursor/3.1.0",
+ "User-Agent": "Cursor/3.2.14",
+ "x-cursor-client-version": "3.2.14",
+ "x-cursor-user-agent": "Cursor/3.2.14",
});
assert.equal(
__testing.getCursorMonthlyRequestLimit(