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
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
Release v3.7.5 (#1753)
Diego Rodrigues de Sa e Souza24ffdde03d15
diff --git a/.agents/workflows/resolve-issues.md b/.agents/workflows/resolve-issues.mdindex f0130fb53e..aa2aa7177a 100644--- a/.agents/workflows/resolve-issues.md+++ b/.agents/workflows/resolve-issues.md@@ -10,6 +10,8 @@ This workflow fetches all open issues from the project's GitHub repository, clas> **BRANCH RULE**: All work MUST happen on the current `release/vX.Y.Z` branch. Never create separate `fix/` branches. If no release branch exists yet, create one first using `/generate-release` Phase 1 steps 1–5.+> **⛔ PR PROHIBITION**: If a fix is associated with a contributor's PR, you MUST merge their PR — NEVER close it and re-implement the fix yourself. See `/review-prs` workflow for the full policy. The `gh pr close` command is FORBIDDEN unless the repository owner explicitly requests it.+## Steps### 1. Identify the GitHub Repositorydiff --git a/.agents/workflows/review-prs.md b/.agents/workflows/review-prs.mdindex 6cb91e08ca..58a5018646 100644--- a/.agents/workflows/review-prs.md+++ b/.agents/workflows/review-prs.md@@ -4,6 +4,25 @@ description: Analyze open Pull Requests from the project's GitHub repository, ge# /review-prs — PR Review & Analysis Workflow+## ⛔ ABSOLUTE PROHIBITION — Read Before Anything Else++> **NEVER close a contributor's PR if you intend to use ANY of their code, ideas, or fixes.**+>+> **NEVER manually integrate contributor code into a release branch and then close their PR.**+>+> These actions are **STRICTLY FORBIDDEN** under all circumstances:+>+> 1. ❌ Closing a PR and cherry-picking/copying its code into a release branch+> 2. ❌ Closing a PR "because of conflicts" and re-implementing the same fix yourself+> 3. ❌ Closing a PR and committing a "similar" solution inspired by it+> 4. ❌ Using `gh pr close` on any PR whose content was or will be used+>+> **Why**: Closing a PR after taking the contributor's work means they get ZERO credit on GitHub — no "Merged" badge, no contribution graph entry, no public record. This is effectively stealing their contribution. An audit found this happened to **37 PRs** in the past.+>+> **The ONLY acceptable flow**: Resolve conflicts IN the contributor's branch, push fixes TO their branch, then merge THEIR PR via `gh pr merge`. See Step 7 and Step 8 for the exact procedure.+>+> **When to close a PR**: ONLY when the user (repository owner) explicitly requests it, OR when the PR is clearly spam/malicious, OR when the author themselves asks to close it. In ALL other cases, leave it open.+## OverviewThis workflow fetches all open PRs from the project's GitHub repository, performs a critical analysis of each one, generates a detailed report, and waits for user approval before proceeding with implementation. **All improvements are committed on the current release branch** (`release/vX.Y.Z`).diff --git a/.omc/project-memory.json b/.omc/project-memory.jsondeleted file mode 100644index 7018fa00e1..0000000000--- a/.omc/project-memory.json+++ /dev/null@@ -1,250 +0,0 @@-{- "version": "1.0.0",- "lastScanned": 1775016362438,- "projectRoot": "/home/openclaw/omniroute-src",- "techStack": {- "languages": [- {- "name": "JavaScript/TypeScript",- "version": ">=18.0.0 <24.0.0",- "confidence": "high",- "markers": ["package.json"]- },- {- "name": "TypeScript",- "version": null,- "confidence": "high",- "markers": ["tsconfig.json"]- }- ],- "frameworks": [- {- "name": "express",- "version": "5.2.1",- "category": "backend"- },- {- "name": "next",- "version": "16.0.10",- "category": "fullstack"- },- {- "name": "react",- "version": "19.2.4",- "category": "frontend"- },- {- "name": "react-dom",- "version": "19.2.4",- "category": "frontend"- },- {- "name": "@playwright/test",- "version": "1.58.2",- "category": "testing"- },- {- "name": "vitest",- "version": "4.0.18",- "category": "testing"- }- ],- "packageManager": "npm",- "runtime": "Node.js 18.0.024.0.0"- },- "build": {- "buildCommand": "npm run build",- "testCommand": "npm test",- "lintCommand": "npm run lint",- "devCommand": "npm run dev",- "scripts": {- "dev": "node scripts/run-next.mjs dev",- "build": "node scripts/build-next-isolated.mjs",- "build:cli": "node scripts/prepublish.mjs",- "start": "node scripts/run-next.mjs start",- "lint": "eslint .",- "electron:dev": "concurrently \"npm run dev\" \"wait-on http://localhost:20128 && cd electron && npm run dev\"",- "electron:build": "npm run build && cd electron && npm run build",- "electron:build:win": "npm run build && cd electron && npm run build:win",- "electron:build:mac": "npm run build && cd electron && npm run build:mac",- "electron:build:linux": "npm run build && cd electron && npm run build:linux",- "test": "node --import tsx/esm --test tests/unit/*.test.mjs",- "test:unit": "node --import tsx/esm --test tests/unit/*.test.mjs",- "test:plan3": "node --import tsx/esm --test tests/unit/plan3-p0.test.mjs",- "test:fixes": "node --import tsx/esm --test tests/unit/fixes-p1.test.mjs",- "test:security": "node --import tsx/esm --test tests/unit/security-fase01.test.mjs",- "check:cycles": "node scripts/check-cycles.mjs",- "check:route-validation:t06": "node scripts/check-route-validation.mjs",- "check:any-budget:t11": "node scripts/check-t11-any-budget.mjs",- "check:docs-sync": "node scripts/check-docs-sync.mjs",- "typecheck:core": "tsc --pretty false -p tsconfig.typecheck-core.json",- "typecheck:noimplicit:core": "tsc --pretty false -p tsconfig.typecheck-noimplicit-core.json",- "test:integration": "node --import tsx/esm --test tests/integration/*.test.mjs",- "test:e2e": "node scripts/run-playwright-tests.mjs test tests/e2e/*.spec.ts",- "test:protocols:e2e": "node scripts/run-protocol-clients-tests.mjs",- "test:vitest": "vitest run open-sse/mcp-server/__tests__/*.test.ts open-sse/services/autoCombo/__tests__/*.test.ts",- "test:ecosystem": "node scripts/run-ecosystem-tests.mjs",- "test:coverage": "c8 --exclude=tests/** --exclude=**/*.test.* --reporter=text-summary --reporter=html --reporter=json-summary --reporter=lcov --check-coverage --statements 55 --lines 55 --functions 55 --branches 60 node --import tsx/esm --test tests/unit/*.test.mjs",- "test:coverage:legacy": "c8 --exclude=open-sse --check-coverage --lines 50 --functions 50 --branches 50 node --import tsx/esm --test tests/unit/*.test.mjs",- "coverage:report": "c8 report --exclude=tests/** --exclude=**/*.test.* --reporter=text --reporter=text-summary --reporter=html --reporter=json-summary --reporter=lcov",- "coverage:report:legacy": "c8 report --exclude=open-sse --reporter=text --reporter=text-summary",- "test:all": "npm run test:unit && npm run test:vitest && npm run test:ecosystem && npm run test:e2e",- "check": "npm run lint && npm run test",- "prepublishOnly": "npm run build:cli",- "postinstall": "node scripts/postinstall.mjs",- "prepare": "husky",- "system-info": "node scripts/system-info.mjs"- }- },- "conventions": {- "namingStyle": "camelCase",- "importStyle": null,- "testPattern": null,- "fileOrganization": null- },- "structure": {- "isMonorepo": true,- "workspaces": ["open-sse"],- "mainDirectories": ["bin", "docs", "public", "scripts", "src", "tests"],- "gitBranches": {- "defaultBranch": "main",- "branchingStrategy": null- }- },- "customNotes": [],- "directoryMap": {- "bin": {- "path": "bin",- "purpose": "Executable scripts",- "fileCount": 3,- "lastAccessed": 1775016362426,- "keyFiles": ["mcp-server.mjs", "omniroute.mjs", "reset-password.mjs"]- },- "docs": {- "path": "docs",- "purpose": "Documentation",- "fileCount": 14,- "lastAccessed": 1775016362426,- "keyFiles": [- "A2A-SERVER.md",- "API_REFERENCE.md",- "ARCHITECTURE.md",- "AUTO-COMBO.md",- "CLI-TOOLS.md"- ]- },- "electron": {- "path": "electron",- "purpose": null,- "fileCount": 5,- "lastAccessed": 1775016362431,- "keyFiles": ["README.md", "main.js", "package.json", "preload.js", "types.d.ts"]- },- "images": {- "path": "images",- "purpose": null,- "fileCount": 1,- "lastAccessed": 1775016362434,- "keyFiles": ["omniroute.png"]- },- "logs": {- "path": "logs",- "purpose": null,- "fileCount": 3,- "lastAccessed": 1775016362434,- "keyFiles": ["build_clean_tools.log", "build_debug.log", "build_force_clean.log"]- },- "open-sse": {- "path": "open-sse",- "purpose": null,- "fileCount": 5,- "lastAccessed": 1775016362434,- "keyFiles": ["index.ts", "package.json", "tsconfig.json", "types.d.ts"]- },- "public": {- "path": "public",- "purpose": "Public files",- "fileCount": 3,- "lastAccessed": 1775016362435,- "keyFiles": ["apple-touch-icon.svg", "favicon.svg", "icon-192.svg"]- },- "scripts": {- "path": "scripts",- "purpose": "Build/utility scripts",- "fileCount": 23,- "lastAccessed": 1775016362435,- "keyFiles": [- "bootstrap-env.mjs",- "build-next-isolated.mjs",- "check-cycles.mjs",- "check-docs-sync.mjs",- "check-route-validation.mjs"- ]- },- "src": {- "path": "src",- "purpose": "Source code",- "fileCount": 4,- "lastAccessed": 1775016362435,- "keyFiles": ["instrumentation-node.ts", "instrumentation.ts", "proxy.ts", "server-init.ts"]- },- "tests": {- "path": "tests",- "purpose": "Test files",- "fileCount": 0,- "lastAccessed": 1775016362435,- "keyFiles": []- },- "electron/assets": {- "path": "electron/assets",- "purpose": "Static assets",- "fileCount": 4,- "lastAccessed": 1775016362436,- "keyFiles": ["icon.icns", "icon.ico", "icon.png"]- },- "open-sse/config": {- "path": "open-sse/config",- "purpose": "Configuration files",- "fileCount": 17,- "lastAccessed": 1775016362436,- "keyFiles": ["audioRegistry.ts", "cliFingerprints.ts", "codexInstructions.ts"]- },- "open-sse/services": {- "path": "open-sse/services",- "purpose": "Business logic services",- "fileCount": 35,- "lastAccessed": 1775016362437,- "keyFiles": ["accountFallback.ts", "accountSelector.ts", "apiKeyRotator.ts"]- },- "src/app": {- "path": "src/app",- "purpose": "Application code",- "fileCount": 7,- "lastAccessed": 1775016362438,- "keyFiles": ["error.tsx", "global-error.tsx", "globals.css"]- },- "src/lib": {- "path": "src/lib",- "purpose": "Library code",- "fileCount": 30,- "lastAccessed": 1775016362438,- "keyFiles": ["apiBridgeServer.ts", "apiKeyExposure.ts", "cacheControlSettings.ts"]- },- "src/middleware": {- "path": "src/middleware",- "purpose": "Middleware",- "fileCount": 1,- "lastAccessed": 1775016362438,- "keyFiles": ["promptInjectionGuard.ts"]- },- "src/models": {- "path": "src/models",- "purpose": "Data models",- "fileCount": 1,- "lastAccessed": 1775016362438,- "keyFiles": ["index.ts"]- }- },- "hotPaths": [],- "userDirectives": []-}diff --git a/.omc/sessions/53c002c3-36a6-47c3-a52d-a8f756c264eb.json b/.omc/sessions/53c002c3-36a6-47c3-a52d-a8f756c264eb.jsondeleted file mode 100644index f3dfd0f299..0000000000--- a/.omc/sessions/53c002c3-36a6-47c3-a52d-a8f756c264eb.json+++ /dev/null@@ -1,8 +0,0 @@-{- "session_id": "53c002c3-36a6-47c3-a52d-a8f756c264eb",- "ended_at": "2026-04-01T04:06:04.924Z",- "reason": "prompt_input_exit",- "agents_spawned": 0,- "agents_completed": 0,- "modes_used": []-}diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex fae48f28c7..442a2bedab 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -17,5 +17,33 @@"level": "off"}},- "git.ignoreLimitWarning": true+ "git.ignoreLimitWarning": true,+ // "files.exclude": {+ // "**/_references": true,+ // "**/_mono_repo": true,+ // "**/electron": true,+ // "**/node_modules": true,+ // "**/.next": true,+ // "**/coverage": true,+ // "**/omniroute-*.tgz": true,+ // "**/_tasks": true+ // },+ "files.watcherExclude": {+ "**/_references/**": true,+ "**/_mono_repo/**": true,+ "**/electron/**": true,+ "**/node_modules/**": true,+ "**/.next/**": true,+ "**/coverage/**": true,+ "**/_tasks/**": true+ },+ "search.exclude": {+ "**/_references": true,+ "**/_mono_repo": true,+ "**/electron": true,+ "**/node_modules": true,+ "**/.next": true,+ "**/coverage": true,+ "**/_tasks": true+ }}diff --git a/AGENTS.md b/AGENTS.mdindex 77c697f3b3..6fa58c42f5 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -418,3 +418,4 @@ Request middleware including `promptInjectionGuard.ts`.- **Provider constants** validated at module load via Zod (`src/shared/validation/providerSchema.ts`)- **Pricing data** syncs from LiteLLM via `src/lib/pricingSync.ts`- **Memory/Skills** are cross-cutting: affect MCP tools, request pipeline, and A2A skills+- **⛔ NEVER close a contributor's PR** after using their code — always merge via GitHub so they get credit. See `.agents/workflows/review-prs.md` for full policy.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d829a062b0..16411f6e72 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,94 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [3.7.4] — 2026-04-28diff --git a/README.md b/README.mdindex f619d64816..a26c25f47b 100644--- a/README.md+++ b/README.md@@ -1,3 +1,5 @@+[](https://mseep.ai/app/diegosouzapw-omniroute)+# 🚀 OmniRoute — The Free AI Gateway### Never stop coding. Smart routing to **FREE & low-cost AI models** with automatic fallback.diff --git a/docs/i18n/README.md b/docs/i18n/README.mdindex 30da8b0077..7e8a95e592 100644--- a/docs/i18n/README.md+++ b/docs/i18n/README.md@@ -1,4 +1,4 @@-# 🌐 Multilingual Documentation — 9router+# 🌐 Multilingual Documentation — OmniRouteTranslations of documentation into 39 languages. Code blocks remain in English.diff --git a/docs/i18n/ar/CHANGELOG.md b/docs/i18n/ar/CHANGELOG.mdindex 2f84624023..b44a7d0b90 100644--- a/docs/i18n/ar/CHANGELOG.md+++ b/docs/i18n/ar/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/bg/CHANGELOG.md b/docs/i18n/bg/CHANGELOG.mdindex 532214bb70..60afd17be3 100644--- a/docs/i18n/bg/CHANGELOG.md+++ b/docs/i18n/bg/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/bn/CHANGELOG.md b/docs/i18n/bn/CHANGELOG.mdindex 2a1f4023d1..19b1510b9a 100644--- a/docs/i18n/bn/CHANGELOG.md+++ b/docs/i18n/bn/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/cs/CHANGELOG.md b/docs/i18n/cs/CHANGELOG.mdindex 7b59dcdd81..3e9a40f561 100644--- a/docs/i18n/cs/CHANGELOG.md+++ b/docs/i18n/cs/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Bezpečnost++- **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-28diff --git a/docs/i18n/da/CHANGELOG.md b/docs/i18n/da/CHANGELOG.mdindex 5ac55da9b4..cfeb78306b 100644--- a/docs/i18n/da/CHANGELOG.md+++ b/docs/i18n/da/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Sikkerhed++- **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-28diff --git a/docs/i18n/de/CHANGELOG.md b/docs/i18n/de/CHANGELOG.mdindex f5814bcd58..6ec201bb96 100644--- a/docs/i18n/de/CHANGELOG.md+++ b/docs/i18n/de/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Sicherheit++- **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-28diff --git a/docs/i18n/es/CHANGELOG.md b/docs/i18n/es/CHANGELOG.mdindex ae27b1a6cc..777e606501 100644--- a/docs/i18n/es/CHANGELOG.md+++ b/docs/i18n/es/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/fa/CHANGELOG.md b/docs/i18n/fa/CHANGELOG.mdindex a3a52dc001..73421e1abf 100644--- a/docs/i18n/fa/CHANGELOG.md+++ b/docs/i18n/fa/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/fi/CHANGELOG.md b/docs/i18n/fi/CHANGELOG.mdindex d4f07a7e00..f7e6fafca4 100644--- a/docs/i18n/fi/CHANGELOG.md+++ b/docs/i18n/fi/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Turvallisuus++- **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-28diff --git a/docs/i18n/fr/CHANGELOG.md b/docs/i18n/fr/CHANGELOG.mdindex 81e86bbc05..dbd9b620a5 100644--- a/docs/i18n/fr/CHANGELOG.md+++ b/docs/i18n/fr/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Sécurité++- **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-28diff --git a/docs/i18n/gu/CHANGELOG.md b/docs/i18n/gu/CHANGELOG.mdindex 0bbee5d7f8..484de2b0d6 100644--- a/docs/i18n/gu/CHANGELOG.md+++ b/docs/i18n/gu/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/he/CHANGELOG.md b/docs/i18n/he/CHANGELOG.mdindex 1651d8eb2d..c73723829a 100644--- a/docs/i18n/he/CHANGELOG.md+++ b/docs/i18n/he/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/hi/CHANGELOG.md b/docs/i18n/hi/CHANGELOG.mdindex 9ea77a070e..07ed812121 100644--- a/docs/i18n/hi/CHANGELOG.md+++ b/docs/i18n/hi/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/hu/CHANGELOG.md b/docs/i18n/hu/CHANGELOG.mdindex f11a2c90b6..4ccbe4a816 100644--- a/docs/i18n/hu/CHANGELOG.md+++ b/docs/i18n/hu/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Biztonság++- **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-28diff --git a/docs/i18n/id/CHANGELOG.md b/docs/i18n/id/CHANGELOG.mdindex 0f0fb403f5..5e47c1e5ca 100644--- a/docs/i18n/id/CHANGELOG.md+++ b/docs/i18n/id/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Keamanan++- **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-28diff --git a/docs/i18n/it/CHANGELOG.md b/docs/i18n/it/CHANGELOG.mdindex 4db3a1f2f2..9f5034983c 100644--- a/docs/i18n/it/CHANGELOG.md+++ b/docs/i18n/it/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Sicurezza++- **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-28diff --git a/docs/i18n/ja/CHANGELOG.md b/docs/i18n/ja/CHANGELOG.mdindex 9447f5cf1b..5d0efc0400 100644--- a/docs/i18n/ja/CHANGELOG.md+++ b/docs/i18n/ja/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/ko/CHANGELOG.md b/docs/i18n/ko/CHANGELOG.mdindex b85ba72008..a9fe9603a6 100644--- a/docs/i18n/ko/CHANGELOG.md+++ b/docs/i18n/ko/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/mr/CHANGELOG.md b/docs/i18n/mr/CHANGELOG.mdindex f59c86f893..87e7e231d7 100644--- a/docs/i18n/mr/CHANGELOG.md+++ b/docs/i18n/mr/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/ms/CHANGELOG.md b/docs/i18n/ms/CHANGELOG.mdindex 76d7f52c87..56b6a5cb46 100644--- a/docs/i18n/ms/CHANGELOG.md+++ b/docs/i18n/ms/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Keselamatan++- **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-28diff --git a/docs/i18n/nl/CHANGELOG.md b/docs/i18n/nl/CHANGELOG.mdindex 2edeab924f..2d944cc176 100644--- a/docs/i18n/nl/CHANGELOG.md+++ b/docs/i18n/nl/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Beveiliging++- **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-28diff --git a/docs/i18n/no/CHANGELOG.md b/docs/i18n/no/CHANGELOG.mdindex 5508badcfd..304b3264d9 100644--- a/docs/i18n/no/CHANGELOG.md+++ b/docs/i18n/no/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Sikkerhet++- **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-28diff --git a/docs/i18n/phi/CHANGELOG.md b/docs/i18n/phi/CHANGELOG.mdindex 79df01ab9c..e311d2b3d0 100644--- a/docs/i18n/phi/CHANGELOG.md+++ b/docs/i18n/phi/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/pl/CHANGELOG.md b/docs/i18n/pl/CHANGELOG.mdindex 449d906a62..812ad924f5 100644--- a/docs/i18n/pl/CHANGELOG.md+++ b/docs/i18n/pl/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Bezpieczeństwo++- **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-28diff --git a/docs/i18n/pt-BR/CHANGELOG.md b/docs/i18n/pt-BR/CHANGELOG.mdindex c2a65d5855..7c4677c303 100644--- a/docs/i18n/pt-BR/CHANGELOG.md+++ b/docs/i18n/pt-BR/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Segurança++- **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-28diff --git a/docs/i18n/pt/CHANGELOG.md b/docs/i18n/pt/CHANGELOG.mdindex f57dc3fd71..aad7de42fa 100644--- a/docs/i18n/pt/CHANGELOG.md+++ b/docs/i18n/pt/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Segurança++- **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-28diff --git a/docs/i18n/ro/CHANGELOG.md b/docs/i18n/ro/CHANGELOG.mdindex 64ecea4f27..f67a9e5311 100644--- a/docs/i18n/ro/CHANGELOG.md+++ b/docs/i18n/ro/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Securitate++- **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-28diff --git a/docs/i18n/ru/CHANGELOG.md b/docs/i18n/ru/CHANGELOG.mdindex 17252b3e41..5e4f6529a5 100644--- a/docs/i18n/ru/CHANGELOG.md+++ b/docs/i18n/ru/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/sk/CHANGELOG.md b/docs/i18n/sk/CHANGELOG.mdindex 9ba25a9c88..197a64c53a 100644--- a/docs/i18n/sk/CHANGELOG.md+++ b/docs/i18n/sk/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Bezpečnosť++- **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-28diff --git a/docs/i18n/sv/CHANGELOG.md b/docs/i18n/sv/CHANGELOG.mdindex e5a2cf37c5..a1aee6bb9f 100644--- a/docs/i18n/sv/CHANGELOG.md+++ b/docs/i18n/sv/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Säkerhet++- **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-28diff --git a/docs/i18n/sw/CHANGELOG.md b/docs/i18n/sw/CHANGELOG.mdindex a9f6058daf..e16b69e0e3 100644--- a/docs/i18n/sw/CHANGELOG.md+++ b/docs/i18n/sw/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/ta/CHANGELOG.md b/docs/i18n/ta/CHANGELOG.mdindex acb416710e..0511159a0e 100644--- a/docs/i18n/ta/CHANGELOG.md+++ b/docs/i18n/ta/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/te/CHANGELOG.md b/docs/i18n/te/CHANGELOG.mdindex 2b31e03d3e..6a67141fda 100644--- a/docs/i18n/te/CHANGELOG.md+++ b/docs/i18n/te/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/th/CHANGELOG.md b/docs/i18n/th/CHANGELOG.mdindex 671a5c9493..8efffb5eff 100644--- a/docs/i18n/th/CHANGELOG.md+++ b/docs/i18n/th/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/tr/CHANGELOG.md b/docs/i18n/tr/CHANGELOG.mdindex 728d8d3411..93d809bef2 100644--- a/docs/i18n/tr/CHANGELOG.md+++ b/docs/i18n/tr/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Güvenlik++- **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-28diff --git a/docs/i18n/uk-UA/CHANGELOG.md b/docs/i18n/uk-UA/CHANGELOG.mdindex da8f950918..9a0494d033 100644--- a/docs/i18n/uk-UA/CHANGELOG.md+++ b/docs/i18n/uk-UA/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/i18n/ur/CHANGELOG.md b/docs/i18n/ur/CHANGELOG.mdindex 198881b9b8..ca28771f70 100644--- a/docs/i18n/ur/CHANGELOG.md+++ b/docs/i18n/ur/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Seguridad++- **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-28diff --git a/docs/i18n/vi/CHANGELOG.md b/docs/i18n/vi/CHANGELOG.mdindex 09c3dbec2d..d801138946 100644--- a/docs/i18n/vi/CHANGELOG.md+++ b/docs/i18n/vi/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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)++### Bảo mật++- **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-28diff --git a/docs/i18n/zh-CN/CHANGELOG.md b/docs/i18n/zh-CN/CHANGELOG.mdindex b98fb404b2..ce0394c2c7 100644--- a/docs/i18n/zh-CN/CHANGELOG.md+++ b/docs/i18n/zh-CN/CHANGELOG.md@@ -6,14 +6,130 @@## [Unreleased]+### ✨ New Features++- **feat:** ongoing development++---++## [3.7.5] — 2026-04-29++### ✨ New Features++- **feat(tunnels):** integrate native ngrok tunnel support with dashboard UI parity (#1753)+- **feat(api-keys):** add rename support in the permissions modal — editable key name field with validation (#1796)++### 🐛 Bug Fixes++- **fix(dashboard):** add manual 'Clear All' button to terminate stalled long-running requests in Active Requests panel (#1799)+- **fix(schema):** remove empty string values from optional tool parameters to prevent upstream validation errors (#1674)+- **fix(providers):** ensure proper streaming cleanup and semaphore release to prevent stalls with nanoGPT (#1781)+- **fix(db):** wrap quota_snapshots access in try/catch to gracefully handle pending database migrations (#1784)+- **feat(providers):** add support for glm-cn (BigModel) provider (#1770)+- **fix(grok-web):** fix Grok validator and cookie parsing (#1793)+- **fix(antigravity):** scrub internal OmniRoute headers (#1794)+- **fix(chatgpt-web):** restore validator + expand model catalog to ChatGPT Plus tier (#1792)+- **fix(codex):** stabilize Copilot responses replay state (#1791)+- **fix(antigravity):** cap Claude bridge output tokens (#1785)+- **fix(schema):** strip `default` properties from tool-call JSON schemas during egress to prevent injection errors (#1782)+- **fix(db):** add `quota_snapshots` table to core DB schema initialization to prevent startup failures on fresh installs+- **fix(models):** apply blocked providers filter to non-chat catalog models (image, embedding, audio, etc.) (#1752)+- **fix(antigravity):** stabilize streaming payload parsing and deduplicate usage/model metadata refreshes (#1748)+- **fix(antigravity):** normalize Gemini bridge payloads — sanitize tool names, cap output tokens, and fix thinking budget (#1769)+- **fix(sse):** propagate AbortSignal to pre-fetch semaphore and rate-limit awaits to prevent memory leaks (#1771)+- **fix(models):** fix model sync import handling — separate synced models from custom models to prevent data loss (#1755)+- **fix(codex):** improve VS Code Copilot /responses reasoning and tool follow-ups (#1750)+- **fix(memory):** resolve build issues and implement memory UPSERT logic to prevent duplicate entries (#1763)+- **fix(kiro):** support organization IDC OAuth with regional endpoints and refresh (#1754)+- **fix(combo):** include 429 in provider circuit breaker to stop infinite retry loops on exhausted quotas (#1767)+- **fix(claude):** respect client-set thinking/effort params — only inject adaptive thinking and high effort when the client hasn't explicitly set them, preventing forced quota drain on Claude Max accounts (#1761)+- **fix(blackbox-web):** correct cookie name and populate session/subscription fields (#1776)+- **fix(codex):** align client identity metadata (#1778)+- **fix(claude):** fix support for claude-cli using Gemini provider (#1779)+- **test(reasoning-cache):** isolate DB state using mkdtempSync to prevent 401 middleware errors++### 🛠️ Maintenance++- **chore(docs):** add MseeP.ai security assessment badge to README (#1727)+- **chore(xiaomi):** update Xiaomi provider model list (#1759)+- **chore(db):** move DB health endpoint to management API (#1757)+- **chore(ui):** speed up endpoint initial render with background task loading (#1760)+- **chore(workflows):** add strict PR contributor credit policy to prevent future merge credit loss++### 🏆 Community Contributors Acknowledgment++We identified that **37 community PRs** across past releases (v3.4.0 → v3.7.4) were manually integrated into release branches but closed instead of properly merged through GitHub, preventing contributors from receiving merge credit on their profiles. We sincerely apologize for this oversight and have since updated our workflows to ensure this never happens again.++**The following contributors had their code and ideas integrated across multiple releases without proper merge credit. Thank you for your invaluable contributions to OmniRoute:**++| Contributor | Contributions (PRs) |+| :----------------------------------------------------- | :----------------------------------------------------------------------- |+| [@rdself](https://github.com/rdself) | #1742, #1357, #1356, #1089, #1069, #904, #880, #875, #853, #851, #974 |+| [@oyi77](https://github.com/oyi77) | #1411, #1021, #990, #926, #908, #883, #881, #868, #862, #859, #850, #983 |+| [@benzntech](https://github.com/benzntech) | #1677, #1444, #1440, #1437, #1435 |+| [@clousky2020](https://github.com/clousky2020) | #1644, #1408 |+| [@christopher-s](https://github.com/christopher-s) | #885, #868, #992 |+| [@kang-heewon](https://github.com/kang-heewon) | #1235, #884 |+| [@backryun](https://github.com/backryun) | #1627, #1358, #1722 |+| [@tombii](https://github.com/tombii) | #900, #856 |+| [@slewis3600](https://github.com/slewis3600) | #1624 |+| [@dhaern](https://github.com/dhaern) | #1647 |+| [@JasonLandbridge](https://github.com/JasonLandbridge) | #1626 |+| [@hartmark](https://github.com/hartmark) | #1500 |+| [@herjarsa](https://github.com/herjarsa) | #1480 |+| [@andruwa13](https://github.com/andruwa13) | #1457 |+| [@i1hwan](https://github.com/i1hwan) | #1386 |+| [@xandr0s](https://github.com/xandr0s) | #1376 |+| [@RaviTharuma](https://github.com/RaviTharuma) | #1188 |+| [@wlfonseca](https://github.com/wlfonseca) | #1016 |+| [@only4copilot](https://github.com/only4copilot) | #1039, #855 |+| [@AndrewDragonIV](https://github.com/AndrewDragonIV) | #898 |+| [@dt418](https://github.com/dt418) | #896 |+| [@willbnu](https://github.com/willbnu) | #882 |+| [@defhouse](https://github.com/defhouse) | #906 |+| [@mercs2910](https://github.com/mercs2910) | #1001 |+| [@zen0bit](https://github.com/zen0bit) | #912 |+| [@razllivan](https://github.com/razllivan) | #987 |+| [@foxy1402](https://github.com/foxy1402) | #934 |+| [@knopki](https://github.com/knopki) | #1434 |+| [@dail45](https://github.com/dail45) | #1413 |+---## [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:** 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-28diff --git a/docs/openapi.yaml b/docs/openapi.yamlindex ccf1626744..40a309b584 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -1,7 +1,7 @@openapi: 3.1.0info:title: OmniRoute API- version: 3.7.4+ version: 3.7.5description: |OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatibleendpoint that routes requests to multiple AI providers with load balancing,diff --git a/electron/package.json b/electron/package.jsonindex 7a023263f8..cb06672579 100644--- a/electron/package.json+++ b/electron/package.json@@ -1,6 +1,6 @@{"name": "omniroute-desktop",- "version": "3.7.4",+ "version": "3.7.5","description": "OmniRoute Desktop Application","main": "main.js","author": {diff --git a/llm.txt b/llm.txtindex 99ba91f792..5903d37c52 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.4+**Current version:** 3.7.5## 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.4)+## Key Features (v3.7.5)### Core Proxy- **160+ AI providers** with automatic format translationdiff --git a/next.config.mjs b/next.config.mjsindex b1e835a4ae..79348ec773 100644--- a/next.config.mjs+++ b/next.config.mjs@@ -67,6 +67,7 @@ const nextConfig = {"tls-client-node","koffi","tough-cookie",+ "@ngrok/ngrok","child_process","fs","path",@@ -100,6 +101,12 @@ const nextConfig = {contextRegExp: /thread-stream/,}));++ // Mark @ngrok/ngrok as external to prevent webpack from trying to bundle its .node binaries+ config.externals = config.externals || [];+ config.externals.push({+ "@ngrok/ngrok": "commonjs @ngrok/ngrok",+ });// ── Turbopack / Next.js 16 module-hash patch (#394, #396, #398) ────────//// Next.js 16 (with or without Turbopack) compiles the instrumentation hookdiff --git a/open-sse/config/codexClient.ts b/open-sse/config/codexClient.tsindex 383a9dbbf2..af8dbce4a9 100644--- a/open-sse/config/codexClient.ts+++ b/open-sse/config/codexClient.ts@@ -1,10 +1,11 @@const DEFAULT_CODEX_CLIENT_VERSION = "0.125.0";-const DEFAULT_CODEX_USER_AGENT_PLATFORM = "Windows 10.0.26100";+const DEFAULT_CODEX_USER_AGENT_PLATFORM = "Windows 10.0.26200";const DEFAULT_CODEX_USER_AGENT_ARCH = "x64";const CODEX_VERSION_OVERRIDE_ENV = "CODEX_CLIENT_VERSION";const CODEX_USER_AGENT_OVERRIDE_ENV = "CODEX_USER_AGENT";const SAFE_HEADER_TOKEN_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,31}$/;const SAFE_HEADER_VALUE_PATTERN = /^[\x20-\x7E]{1,200}$/;+const SAFE_CODEX_SESSION_ID_PATTERN = /^[A-Za-z0-9._:-]{1,200}$/;function getSafeEnvValue(name: string, pattern: RegExp): string | null {const raw = process.env[name];@@ -40,3 +41,9 @@ export function getCodexDefaultHeaders(): Record<string, string> {"User-Agent": getCodexUserAgent(),};}++export function normalizeCodexSessionId(value: unknown): string | null {+ if (typeof value !== "string") return null;+ const normalized = value.trim();+ return SAFE_CODEX_SESSION_ID_PATTERN.test(normalized) ? normalized : null;+}diff --git a/open-sse/config/codexIdentity.ts b/open-sse/config/codexIdentity.tsnew file mode 100644index 0000000000..2d336046f6--- /dev/null+++ b/open-sse/config/codexIdentity.ts@@ -0,0 +1,87 @@+import { createHash, randomUUID } from "node:crypto";++import { normalizeCodexSessionId } from "./codexClient.ts";++const CODEX_INSTALLATION_SALT = "omniroute-codex-installation";+const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;++export type CodexClientIdentity = {+ sessionId: string;+ turnId: string;+ windowId: string;+ installationId: string;+};++function normalizeUuid(value: unknown): string | null {+ return typeof value === "string" && UUID_PATTERN.test(value.trim()) ? value.trim() : null;+}++function uuidFromStableValue(value: string): string {+ const hash = createHash("sha256").update(value).digest("hex");+ return `${hash.slice(0, 8)}-${hash.slice(8, 12)}-4${hash.slice(13, 16)}-a${hash.slice(17, 20)}-${hash.slice(20, 32)}`;+}++export function getCodexInstallationId(+ providerSpecificData?: Record<string, unknown> | null+): string {+ const explicit = normalizeUuid(providerSpecificData?.codexInstallationId);+ if (explicit) return explicit;++ const stableSource =+ typeof providerSpecificData?.workspaceId === "string" && providerSpecificData.workspaceId.trim()+ ? providerSpecificData.workspaceId.trim()+ : typeof providerSpecificData?.accountId === "string" && providerSpecificData.accountId.trim()+ ? providerSpecificData.accountId.trim()+ : typeof providerSpecificData?.email === "string" && providerSpecificData.email.trim()+ ? providerSpecificData.email.trim()+ : "default";++ return uuidFromStableValue(`${CODEX_INSTALLATION_SALT}:${stableSource}`);+}++export function createCodexClientIdentity(+ sessionId: string | null,+ providerSpecificData?: Record<string, unknown> | null+): CodexClientIdentity | null {+ const normalizedSessionId = normalizeCodexSessionId(sessionId);+ if (!normalizedSessionId) return null;+ return {+ sessionId: normalizedSessionId,+ turnId: randomUUID(),+ windowId: `${normalizedSessionId}:0`,+ installationId: getCodexInstallationId(providerSpecificData),+ };+}++export function applyCodexClientIdentityHeaders(+ headers: Record<string, string>,+ identity?: CodexClientIdentity | null+): void {+ if (!identity) return;+ headers["session_id"] = identity.sessionId;+ headers["x-client-request-id"] = identity.sessionId;+ headers["x-codex-window-id"] = identity.windowId;+ headers["x-codex-turn-metadata"] = JSON.stringify({+ session_id: identity.sessionId,+ thread_source: "user",+ turn_id: identity.turnId,+ sandbox: "none",+ });+}++export function applyCodexClientMetadata(+ body: Record<string, unknown>,+ identity?: CodexClientIdentity | null+): void {+ if (!identity) return;+ const existing =+ body.client_metadata &&+ typeof body.client_metadata === "object" &&+ !Array.isArray(body.client_metadata)+ ? (body.client_metadata as Record<string, unknown>)+ : {};+ body.client_metadata = {+ ...existing,+ "x-codex-installation-id": identity.installationId,+ };+}diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.tsindex d68401e0c1..be8a496855 100644--- a/open-sse/config/providerRegistry.ts+++ b/open-sse/config/providerRegistry.ts@@ -228,7 +228,7 @@ const CHAT_OPENAI_COMPAT_MODELS: Record<string, RegistryModel[]> = {codestral: buildModels(["codestral-2405", "codestral-latest"]),upstage: buildModels(["solar-pro", "solar-mini", "solar-docvision", "solar-embedding-1-large"]),maritalk: buildModels(["sabia-3", "sabia-3-small"]),- "xiaomi-mimo": buildModels(["mimo-v2-pro", "mimo-v2-omni", "mimo-v2-tts"]),+ "xiaomi-mimo": buildModels(["mimo-v2.5-pro", "mimo-v2.5", "mimo-v2-omni", "mimo-v2-flash"]),"inference-net": buildModels(["meta-llama/Llama-3.3-70B-Instruct","deepseek-ai/DeepSeek-R1",@@ -735,6 +735,27 @@ export const REGISTRY: Record<string, RegistryEntry> = {models: [...GLM_SHARED_MODELS],},+ "glm-cn": {+ id: "glm-cn",+ alias: "glm-cn",+ format: "openai",+ executor: "default",+ baseUrl: "https://open.bigmodel.cn/api/paas/v4/chat/completions",+ authType: "apikey",+ authHeader: "bearer",+ defaultContextLength: 128000,+ models: [+ { id: "glm-4-plus", name: "GLM-4 Plus" },+ { id: "glm-4-0520", name: "GLM-4 0520" },+ { id: "glm-4-air", name: "GLM-4 Air" },+ { id: "glm-4-airx", name: "GLM-4 AirX" },+ { id: "glm-4-long", name: "GLM-4 Long", contextLength: 1000000 },+ { id: "glm-4-flashx", name: "GLM-4 FlashX" },+ { id: "glm-4-flash", name: "GLM-4 Flash" },+ ],+ passthroughModels: true,+ },+glmt: {id: "glmt",alias: "glmt",@@ -1087,7 +1108,21 @@ export const REGISTRY: Record<string, RegistryEntry> = {baseUrl: "https://chatgpt.com/backend-api/conversation",authType: "apikey",authHeader: "cookie",- models: [{ id: "gpt-5.3-instant", name: "GPT-5.3 Instant (via ChatGPT Web)" }],+ models: [+ { id: "gpt-5.3-instant", name: "GPT-5.3 Instant" },+ { id: "gpt-5.3", name: "GPT-5.3" },+ { id: "gpt-5.3-mini", name: "GPT-5.3 Mini" },+ { id: "gpt-5.5-thinking", name: "GPT-5.5 Thinking" },+ { id: "gpt-5.4-thinking", name: "GPT-5.4 Thinking" },+ { id: "gpt-5.4-thinking-mini", name: "GPT-5.4 Thinking Mini" },+ { id: "gpt-5.2-instant", name: "GPT-5.2 Instant" },+ { id: "gpt-5.2", name: "GPT-5.2" },+ { id: "gpt-5.2-thinking", name: "GPT-5.2 Thinking" },+ { id: "gpt-5.1", name: "GPT-5.1" },+ { id: "gpt-5", name: "GPT-5" },+ { id: "gpt-5-mini", name: "GPT-5 Mini" },+ { id: "o3", name: "o3" },+ ],},"grok-web": {@@ -1100,7 +1135,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {authHeader: "cookie",passthroughModels: true,models: [- { id: "auto", name: "Grok Auto" },{ id: "fast", name: "Grok Fast" },{ id: "expert", name: "Grok 4.20 Thinking" },{ id: "heavy", name: "Grok 4.20 Multi Agent" },diff --git a/open-sse/config/toolCloaking.ts b/open-sse/config/toolCloaking.tsindex 7fa5cd3b35..429a6ca28b 100644--- a/open-sse/config/toolCloaking.ts+++ b/open-sse/config/toolCloaking.ts@@ -27,7 +27,7 @@ const AG_DEFAULT_TOOL_NAMES = [const AG_DECOY_TOOL_NAMES = [...AG_DEFAULT_TOOL_NAMES,- "mcp_sequential-thinking_sequentialthinking",+ "mcp_sequential_thinking_sequentialthinking",] as const;export const AG_DEFAULT_TOOLS = new Set<string>(AG_DEFAULT_TOOL_NAMES);diff --git a/open-sse/executors/antigravity.ts b/open-sse/executors/antigravity.tsindex 9cf0cb989d..9a6f23b479 100644--- a/open-sse/executors/antigravity.ts+++ b/open-sse/executors/antigravity.ts@@ -28,15 +28,29 @@ const CREDITS_EXHAUSTED_TTL_MS = 5 * 60 * 60 * 1000; // 5 hoursconst BARE_PRO_IDS = new Set(["gemini-3.1-pro"]);+function cloneAntigravityRequestBody(body: unknown): unknown {+ if (!body || typeof body !== "object") {+ return body;+ }++ try {+ return structuredClone(body);+ } catch {+ return JSON.parse(JSON.stringify(body));+ }+}+function serializeAntigravityRequest(provider: string,headers: Record<string, string>,body: unknown): { headers: Record<string, string>; bodyString: string } {+ const serializedBody = cloneAntigravityRequestBody(body);+if (!isCliCompatEnabled(provider)) {- return { headers, bodyString: JSON.stringify(body) };+ return { headers, bodyString: JSON.stringify(serializedBody) };}- return applyFingerprint(provider, { ...headers }, body);+ return applyFingerprint(provider, { ...headers }, serializedBody);}type AntigravityCollectedStream = {@@ -585,7 +599,11 @@ export class AntigravityExecutor extends BaseExecutor {}try {- const serializedRequest = serializeAntigravityRequest(this.provider, headers, transformedBody);+ const serializedRequest = serializeAntigravityRequest(+ this.provider,+ headers,+ transformedBody+ );const finalHeaders = serializedRequest.headers;const response = await fetch(url, {diff --git a/open-sse/executors/base.ts b/open-sse/executors/base.tsindex ada44b7279..a1137eec01 100644--- a/open-sse/executors/base.ts+++ b/open-sse/executors/base.ts@@ -267,6 +267,32 @@ export class BaseExecutor {void model;void stream;void credentials;++ // Fix #1674: Remove empty string values from optional parameters+ // like tool descriptions to avoid upstream validation failures.+ if (body && typeof body === "object" && !Array.isArray(body)) {+ const cloned = { ...body } as Record<string, unknown>;++ if (Array.isArray(cloned.tools)) {+ cloned.tools = cloned.tools.map((tool: any) => {+ if (tool?.function && typeof tool.function === "object") {+ const func = { ...tool.function };+ if (func.description === "") delete func.description;+ return { ...tool, function: func };+ }+ return tool;+ });+ }++ // Also clean up top level optional fields that commonly cause issues when empty+ const optionalKeys = ["user", "stop", "seed", "response_format"];+ for (const key of optionalKeys) {+ if (cloned[key] === "") delete cloned[key];+ }++ return cloned;+ }+return body;}@@ -527,17 +553,25 @@ export class BaseExecutor {const supportsAdaptiveThinking = supportsXHighEffort("claude", model);- if (supportsAdaptiveThinking && !tb.thinking) {+ // Fix #1761: Only inject adaptive thinking/high effort if the client didn't+ // explicitly set these fields. This allows users to opt-out by sending+ // `thinking: null` or `output_config: { effort: "low" }` to prevent forced+ // quota drain on Claude Max accounts.+ const originalBody = body as Record<string, unknown>;+ const clientExplicitThinking = originalBody?.thinking !== undefined;+ const clientExplicitEffort = originalBody?.output_config !== undefined;++ if (supportsAdaptiveThinking && !tb.thinking && !clientExplicitThinking) {tb.thinking = { type: "adaptive" };}- if (supportsAdaptiveThinking && !tb.context_management) {+ if (supportsAdaptiveThinking && !tb.context_management && !clientExplicitThinking) {tb.context_management = {edits: [{ type: "clear_thinking_20251015", keep: "all" }],};}- if (supportsAdaptiveThinking && !tb.output_config) {+ if (supportsAdaptiveThinking && !tb.output_config && !clientExplicitEffort) {tb.output_config = { effort: "high" };}diff --git a/open-sse/executors/blackbox-web.ts b/open-sse/executors/blackbox-web.tsindex 1a95ecb079..35ec86d45a 100644--- a/open-sse/executors/blackbox-web.ts+++ b/open-sse/executors/blackbox-web.ts@@ -8,10 +8,21 @@ import { FETCH_TIMEOUT_MS } from "../config/constants.ts";import { normalizeSessionCookieHeader } from "@/lib/providers/webCookieAuth";const BLACKBOX_CHAT_API = "https://app.blackbox.ai/api/chat";-const BLACKBOX_DEFAULT_COOKIE = "__Secure-authjs.session-token";+const BLACKBOX_DEFAULT_COOKIE = "next-auth.session-token";const BLACKBOX_USER_AGENT ="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36";+const SESSION_CACHE_TTL_MS = 5 * 60_000; // 5 minutes++type CachedSession = {+ sessionData: Record<string, unknown> | null;+ subscriptionCache: Record<string, unknown> | null;+ teamAccount: string;+ fetchedAt: number;+};++const sessionCache = new Map<string, CachedSession>();+type BlackboxMessage = {id: string;role: "user" | "assistant";@@ -290,13 +301,86 @@ export class BlackboxWebExecutor extends BaseExecutor {}const cookieHeader = normalizeBlackboxCookieHeader(credentials.apiKey || "");+ const baseHeaders: Record<string, string> = {+ Accept: "application/json",+ Cookie: cookieHeader,+ Origin: "https://app.blackbox.ai",+ "User-Agent": BLACKBOX_USER_AGENT,+ };++ // Fetch session + subscription — Blackbox requires these in the request body.+ // Cached per cookie to avoid redundant round-trips on every request.+ let sessionData: Record<string, unknown> | null = null;+ let subscriptionCache: Record<string, unknown> | null = null;+ let teamAccount = "";++ const cacheKey = cookieHeader;+ const cached = sessionCache.get(cacheKey);+ if (cached && Date.now() - cached.fetchedAt < SESSION_CACHE_TTL_MS) {+ sessionData = cached.sessionData;+ subscriptionCache = cached.subscriptionCache;+ teamAccount = cached.teamAccount;+ log?.debug?.("BLACKBOX-WEB", `Session cache hit (${teamAccount || "no email"})`);+ } else {+ const sideSignal = signal+ ? mergeAbortSignals(signal, AbortSignal.timeout(10_000))+ : AbortSignal.timeout(10_000);++ try {+ const sessionRes = await fetch("https://app.blackbox.ai/api/auth/session", {+ method: "GET",+ headers: { ...baseHeaders, Accept: "application/json" },+ signal: sideSignal,+ });+ sessionData = sessionRes.ok ? ((await sessionRes.json()) as Record<string, unknown>) : null;+ const email = (sessionData as any)?.user?.email as string | undefined;+ teamAccount = email || "";+ log?.debug?.("BLACKBOX-WEB", `Session email: ${email ?? "none"}`);++ if (email) {+ const subRes = await fetch("https://app.blackbox.ai/api/check-subscription", {+ method: "POST",+ headers: { ...baseHeaders, "Content-Type": "application/json" },+ body: JSON.stringify({ email }),+ signal: sideSignal,+ });+ const rawSub = subRes.ok ? ((await subRes.json()) as Record<string, unknown>) : null;+ if (rawSub) {+ subscriptionCache = {+ status: rawSub.hasActiveSubscription ? "PREMIUM" : "FREE",+ customerId: rawSub.customerId ?? null,+ expiryTimestamp: rawSub.expiryTimestamp ?? null,+ lastChecked: Date.now(),+ isTrialSubscription: rawSub.isTrialSubscription ?? false,+ hasPaymentVerificationFailure: false,+ verificationFailureTimestamp: null,+ requiresAuthentication: false,+ isTeam: rawSub.isTeam ?? false,+ numSeats: rawSub.numSeats ?? 1,+ provider: rawSub.provider ?? null,+ previouslySubscribed: rawSub.previouslySubscribed ?? false,+ activeInsuffientCredits: rawSub.activeInsuffientCredits ?? false,+ };+ log?.debug?.("BLACKBOX-WEB", `Subscription: ${subscriptionCache.status}`);+ }+ }++ sessionCache.set(cacheKey, {+ sessionData,+ subscriptionCache,+ teamAccount,+ fetchedAt: Date.now(),+ });+ } catch (diagErr) {+ log?.debug?.("BLACKBOX-WEB", `Session/subscription fetch failed (non-fatal): ${diagErr}`);+ }+ }+const headers: Record<string, string> = {+ ...baseHeaders,Accept: "text/plain, */*","Content-Type": "application/json",- Cookie: cookieHeader,- Origin: "https://app.blackbox.ai",Referer: `https://app.blackbox.ai/chat/${chatId}`,- "User-Agent": BLACKBOX_USER_AGENT,};mergeUpstreamExtraHeaders(headers, upstreamExtraHeaders);@@ -343,10 +427,12 @@ export class BlackboxWebExecutor extends BaseExecutor {webMode: false,offlineMode: false,},- session: null,- isPremium: credentials.providerSpecificData?.isPremium ?? true,- teamAccount: "",- subscriptionCache: null,+ session: sessionData,+ isPremium: subscriptionCache+ ? subscriptionCache.status === "PREMIUM"+ : (credentials.providerSpecificData?.isPremium ?? true),+ teamAccount,+ subscriptionCache,beastMode: false,reasoningMode: false,designerMode: false,@@ -434,6 +520,70 @@ export class BlackboxWebExecutor extends BaseExecutor {}const responseText = (await readTextResponse(upstreamResponse.body, signal)).trim();++ log?.debug?.("BLACKBOX-WEB", `Response (first 300 chars): ${responseText.slice(0, 300)}`);+ log?.debug?.("BLACKBOX-WEB", `userSelectedModel sent: ${transformedBody.userSelectedModel}`);+ log?.debug?.("BLACKBOX-WEB", `isPremium sent: ${transformedBody.isPremium}`);++ // Blackbox sometimes returns HTTP 200 with in-band error messages instead of proper HTTP status codes.+ // Detect known error patterns and surface them as real errors.+ const lowerText = responseText.toLowerCase();+ const isSubscriptionError =+ /not upgraded|upgrade to a premium plan|upgrade.required/i.test(responseText) ||+ lowerText.includes("please upgrade");+ const isAuthError =+ /please login|login required|authentication required/i.test(responseText) &&+ !isSubscriptionError;+ const isRateLimit = /rate limit|too many requests/i.test(responseText) && !isSubscriptionError;++ if (isSubscriptionError) {+ log?.warn?.("BLACKBOX-WEB", "Blackbox returned subscription error in response body");+ const errorResponse = new Response(+ JSON.stringify({+ error: {+ message:+ "Blackbox reports your account lacks a premium subscription. " ++ "If you have a paid plan, re-paste your session cookie from app.blackbox.ai.",+ type: "upstream_error",+ code: "BLACKBOX_SUBSCRIPTION_REQUIRED",+ },+ }),+ { status: 402, headers: { "Content-Type": "application/json" } }+ );+ return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };+ }++ if (isAuthError) {+ log?.warn?.("BLACKBOX-WEB", "Blackbox returned auth error in response body");+ const errorResponse = new Response(+ JSON.stringify({+ error: {+ message:+ "Blackbox session is not authenticated — re-paste next-auth.session-token from app.blackbox.ai",+ type: "upstream_error",+ code: "BLACKBOX_AUTH_REQUIRED",+ },+ }),+ { status: 401, headers: { "Content-Type": "application/json" } }+ );+ return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };+ }++ if (isRateLimit) {+ log?.warn?.("BLACKBOX-WEB", "Blackbox returned rate-limit error in response body");+ const errorResponse = new Response(+ JSON.stringify({+ error: {+ message: "Blackbox Web rate limited the session. Wait a moment and retry.",+ type: "upstream_error",+ code: "BLACKBOX_RATE_LIMIT",+ },+ }),+ { status: 429, headers: { "Content-Type": "application/json" } }+ );+ return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };+ }+const id = `chatcmpl-blackbox-${crypto.randomUUID().slice(0, 12)}`;const created = Math.floor(Date.now() / 1000);diff --git a/open-sse/executors/chatgpt-web.ts b/open-sse/executors/chatgpt-web.tsindex dca26a18e5..3acc626d8c 100644--- a/open-sse/executors/chatgpt-web.ts+++ b/open-sse/executors/chatgpt-web.ts@@ -71,11 +71,25 @@ function deviceIdFor(cookie: string): string {return id;}-// OmniRoute model ID → ChatGPT internal slug. ChatGPT's web routes use-// dash-separated IDs (e.g. "gpt-5-3" not "gpt-5.3-instant").+// OmniRoute model ID → ChatGPT internal slug. OmniRoute uses dot-form IDs+// (e.g. "gpt-5.3-instant"), ChatGPT's web routes use dash-form+// (e.g. "gpt-5-3-instant"). The slug catalog comes from+// /backend-api/models on a logged-in account; "gpt-5-4-t-mini" is ChatGPT's+// abbreviated slug for "GPT-5.4 Thinking Mini".const MODEL_MAP: Record<string, string> = {- "gpt-5.3-instant": "gpt-5-3",- "gpt-5-3": "gpt-5-3",+ "gpt-5.3-instant": "gpt-5-3-instant",+ "gpt-5.3": "gpt-5-3",+ "gpt-5.3-mini": "gpt-5-3-mini",+ "gpt-5.5-thinking": "gpt-5-5-thinking",+ "gpt-5.4-thinking": "gpt-5-4-thinking",+ "gpt-5.4-thinking-mini": "gpt-5-4-t-mini",+ "gpt-5.2-instant": "gpt-5-2-instant",+ "gpt-5.2": "gpt-5-2",+ "gpt-5.2-thinking": "gpt-5-2-thinking",+ "gpt-5.1": "gpt-5-1",+ "gpt-5": "gpt-5",+ "gpt-5-mini": "gpt-5-mini",+ o3: "o3",};// ─── Browser-like default headers ──────────────────────────────────────────diff --git a/open-sse/executors/codex.ts b/open-sse/executors/codex.tsindex 42b3049a7f..49c200c8fb 100644--- a/open-sse/executors/codex.ts+++ b/open-sse/executors/codex.ts@@ -10,8 +10,22 @@ import {CODEX_DEFAULT_INSTRUCTIONS,} from "../config/codexInstructions.ts";import { PROVIDERS } from "../config/constants.ts";-import { getCodexClientVersion, getCodexUserAgent } from "../config/codexClient.ts";+import {+ getCodexClientVersion,+ getCodexUserAgent,+ normalizeCodexSessionId,+} from "../config/codexClient.ts";+import {+ applyCodexClientIdentityHeaders,+ applyCodexClientMetadata,+ createCodexClientIdentity,+} from "../config/codexIdentity.ts";import { getAccessToken } from "../services/tokenRefresh.ts";+import {+ getRememberedFunctionCallsByIds,+ getRememberedResponseConversationItems,+ getRememberedResponseFunctionCalls,+} from "../services/responsesToolCallState.ts";import { getThinkingBudgetConfig, ThinkingMode } from "../services/thinkingBudget.ts";import { CORS_HEADERS } from "../utils/cors.ts";import { createRequire } from "module";@@ -253,68 +267,11 @@ export function getCodexUpstreamModel(model: unknown): string {return splitCodexReasoningSuffix(model).baseModel;}-function stringifyCodexInstructionContent(content: unknown): string {- if (typeof content === "string") {- return content.trim();- }-- if (Array.isArray(content)) {- return content- .map((part) => {- if (typeof part === "string") return part.trim();- if (!part || typeof part !== "object") return "";- const record = part as Record<string, unknown>;- if (typeof record.text === "string") return record.text.trim();- if (typeof record.content === "string") return record.content.trim();- return "";- })- .filter(Boolean)- .join("\n")- .trim();- }-- return "";-}--function hoistSystemMessagesToInstructions(body: Record<string, unknown>): void {- if (!Array.isArray(body.input)) return;-- const systemChunks: string[] = [];- const filteredInput = body.input.filter((itemValue) => {- if (!itemValue || typeof itemValue !== "object" || Array.isArray(itemValue)) {- return true;- }-- const item = itemValue as Record<string, unknown>;- const role = typeof item.role === "string" ? item.role : "";- const type = typeof item.type === "string" ? item.type : "";- const isSystemMessage = role === "system" && (!type || type === "message");- if (!isSystemMessage) {- return true;- }-- const text = stringifyCodexInstructionContent(item.content);- if (text) {- systemChunks.push(text);- }- return false;- });-- if (systemChunks.length === 0) return;-- const existingInstructions =- typeof body.instructions === "string" ? body.instructions.trim() : "";- body.instructions = existingInstructions- ? `${systemChunks.join("\n\n")}\n\n${existingInstructions}`- : systemChunks.join("\n\n");- body.input = filteredInput;-}-/*** Convert role=system messages in `input` to role=developer.** GPT-5 models support the `developer` role in input, but reject `system`.- * Unlike hoistSystemMessagesToInstructions(), this keeps the content inside+ * This keeps the content inside* the `input` array where it benefits from OpenAI's automatic prompt caching.** OpenAI's prompt caching matches on the serialized prefix of the `input` array@@ -343,6 +300,23 @@ function convertSystemToDeveloperRole(body: Record<string, unknown>): void {}}+function buildRecoveredToolContextMessage(+ droppedItems: Array<Record<string, unknown>>+): Record<string, unknown> {+ return {+ type: "message",+ role: "user",+ content: [+ {+ type: "input_text",+ text:+ "Recovered tool context from the previous turn. Continue using this context instead of calling the same tools again unless you must.\n" ++ JSON.stringify(droppedItems),+ },+ ],+ };+}+/*** Strip server-generated item IDs from the input array.*@@ -359,18 +333,155 @@ function convertSystemToDeveloperRole(body: Record<string, unknown>): void {* 3. Strips the "id" field from any object in input whose id matches a* server-generated prefix (rs_, fc_, resp_, msg_) — so the content is* preserved but the backend won't try to look it up- * 4. Always deletes previous_response_id (endpoint doesn't persist responses)+ * 4. Expands locally remembered conversation snapshots for stateful follow-ups+ * when the upstream backend rejects previous_response_id+ * 5. Falls back to rehydrating missing function_call items if only the older+ * tool-call state is available+ * 6. Filters orphaned function_call/function_call_output items when one side+ * of the tool exchange is still missing after local replay/fallback repair*/function stripStoredItemReferences(body: Record<string, unknown>): void {const hasInput = Array.isArray(body.input) && body.input.length > 0;+ const inputItems = Array.isArray(body.input) ? body.input : [];+ const previousResponseId =+ typeof body.previous_response_id === "string" ? body.previous_response_id : "";+ const rememberedConversationItems =+ hasInput && previousResponseId+ ? getRememberedResponseConversationItems(previousResponseId)+ : [];++ if (rememberedConversationItems.length > 0) {+ body.input = [...rememberedConversationItems, ...inputItems];+ }+ const inputFunctionCallIds = new Set<string>();+ const inputFunctionCallOutputIds = new Set<string>();++ for (const item of Array.isArray(body.input) ? body.input : []) {+ if (!item || typeof item !== "object" || Array.isArray(item)) continue;+ const record = item as Record<string, unknown>;+ const type = typeof record.type === "string" ? record.type : "";+ const callId = typeof record.call_id === "string" ? record.call_id : "";+ if (!callId) continue;+ if (type === "function_call") {+ inputFunctionCallIds.add(callId);+ continue;+ }+ if (type === "function_call_output") {+ inputFunctionCallOutputIds.add(callId);+ }+ }- // 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;+ const missingFunctionCallIds = [...inputFunctionCallOutputIds].filter(+ (callId) => !inputFunctionCallIds.has(callId)+ );++ if (hasInput && previousResponseId && missingFunctionCallIds.length > 0) {+ const rememberedFunctionCalls = getRememberedResponseFunctionCalls(previousResponseId);+ const globallyRememberedFunctionCalls = getRememberedFunctionCallsByIds(missingFunctionCallIds);+ const injectedFunctionCalls = [...rememberedFunctionCalls, ...globallyRememberedFunctionCalls]+ .filter((functionCall) => missingFunctionCallIds.includes(functionCall.call_id))+ .filter((functionCall) => !inputFunctionCallIds.has(functionCall.call_id))+ .filter(+ (functionCall, index, allFunctionCalls) =>+ allFunctionCalls.findIndex((candidate) => candidate.call_id === functionCall.call_id) ===+ index+ )+ .map((functionCall) => ({+ type: "function_call",+ call_id: functionCall.call_id,+ name: functionCall.name,+ arguments: functionCall.arguments,+ }));++ if (injectedFunctionCalls.length > 0) {+ body.input = [...injectedFunctionCalls, ...inputItems];+ for (const functionCall of injectedFunctionCalls) {+ inputFunctionCallIds.add(functionCall.call_id);+ }+ }+ }++ const finalFunctionCallIds = new Set<string>();+ const finalFunctionCallOutputIds = new Set<string>();+ if (Array.isArray(body.input)) {+ for (const item of body.input) {+ if (!item || typeof item !== "object" || Array.isArray(item)) continue;+ const record = item as Record<string, unknown>;+ const type = typeof record.type === "string" ? record.type : "";+ const callId = typeof record.call_id === "string" ? record.call_id : "";+ if (!callId) continue;+ if (type === "function_call") {+ finalFunctionCallIds.add(callId);+ continue;+ }+ if (type === "function_call_output") {+ finalFunctionCallOutputIds.add(callId);+ }+ }+ }++ const droppedOrphanFunctionCallIds: string[] = [];+ const droppedOrphanFunctionCallOutputIds: string[] = [];+ const droppedOrphanItems: Array<Record<string, unknown>> = [];+ if (Array.isArray(body.input)) {+ body.input = body.input.filter((item) => {+ if (!item || typeof item !== "object" || Array.isArray(item)) {+ return true;+ }++ const record = item as Record<string, unknown>;+ const callId = typeof record.call_id === "string" ? record.call_id : "";+ if (!callId) {+ return true;+ }++ if (record.type === "function_call") {+ if (finalFunctionCallOutputIds.has(callId)) {+ return true;+ }++ droppedOrphanFunctionCallIds.push(callId);+ droppedOrphanItems.push({ ...record });+ return false;+ }++ if (record.type === "function_call_output") {+ if (finalFunctionCallIds.has(callId)) {+ return true;+ }++ droppedOrphanFunctionCallOutputIds.push(callId);+ droppedOrphanItems.push({ ...record });+ return false;+ }++ return true;+ });+ }++ if (droppedOrphanFunctionCallIds.length > 0) {+ console.warn(+ `[Codex] stripStoredItemReferences: dropped ${droppedOrphanFunctionCallIds.length} orphan function_call item(s): ${droppedOrphanFunctionCallIds.join(", ")}`+ );+ }++ if (droppedOrphanFunctionCallOutputIds.length > 0) {+ console.warn(+ `[Codex] stripStoredItemReferences: dropped ${droppedOrphanFunctionCallOutputIds.length} orphan function_call_output item(s): ${droppedOrphanFunctionCallOutputIds.join(", ")}`+ );+ }++ if (Array.isArray(body.input) && body.input.length === 0 && droppedOrphanItems.length > 0) {+ body.input = [buildRecoveredToolContextMessage(droppedOrphanItems)];+ console.warn(+ `[Codex] stripStoredItemReferences: synthesized recovery message from ${droppedOrphanItems.length} dropped orphan tool item(s)`+ );+ }++ // Codex rejects previous_response_id for passthrough requests.+ delete body.previous_response_id;+ if (Array.isArray(body.input) && body.input.length === 0) {+ delete body.input;}if (!Array.isArray(body.input)) return;@@ -514,7 +625,7 @@ function getResponsesSubpath(endpointPath: unknown): string | null {return match[1] || "";}-function isCompactResponsesEndpoint(endpointPath: unknown): boolean {+export function isCompactResponsesEndpoint(endpointPath: unknown): boolean {return getResponsesSubpath(endpointPath)?.toLowerCase() === "/compact";}@@ -711,21 +822,40 @@ export class CodexExecutor extends BaseExecutor {}async execute(input: ExecuteInput) {- if (!isCodexResponsesWebSocketRequired(input.model, input.credentials)) {- return super.execute(input);+ const sessionId = this.getPromptCacheSessionId(+ input.credentials,+ input.body as Record<string, unknown> | null+ );+ const identity = createCodexClientIdentity(+ sessionId,+ input.credentials?.providerSpecificData ?? null+ );+ const credentials = identity+ ? {+ ...input.credentials,+ providerSpecificData: {+ ...(input.credentials?.providerSpecificData || {}),+ codexClientIdentity: identity,+ },+ }+ : input.credentials;+ const nextInput = { ...input, credentials };++ if (!isCodexResponsesWebSocketRequired(nextInput.model, nextInput.credentials)) {+ return super.execute(nextInput);}const url = CODEX_RESPONSES_WS_URL;- const headers = normalizeCodexWsHeaders(this.buildHeaders(input.credentials, true));- mergeUpstreamExtraHeaders(headers, input.upstreamExtraHeaders);+ const headers = normalizeCodexWsHeaders(this.buildHeaders(nextInput.credentials, true));+ mergeUpstreamExtraHeaders(headers, nextInput.upstreamExtraHeaders);const transformedBody = (await this.transformRequest(- input.model,- input.body,+ nextInput.model,+ nextInput.body,true,- input.credentials+ nextInput.credentials)) as Record<string, unknown>;- transformedBody.model = getCodexUpstreamModel(transformedBody.model || input.model);+ transformedBody.model = getCodexUpstreamModel(transformedBody.model || nextInput.model);delete transformedBody.stream;delete transformedBody.stream_options;@@ -760,7 +890,7 @@ export class CodexExecutor extends BaseExecutor {let abortHandler: (() => void) | null = null;const removeAbortListener = () => {if (!abortHandler) return;- input.signal?.removeEventListener("abort", abortHandler);+ nextInput.signal?.removeEventListener("abort", abortHandler);abortHandler = null;};@@ -821,7 +951,7 @@ export class CodexExecutor extends BaseExecutor {abortHandler = () => {finishStream({ reason: "client_aborted" });};- input.signal?.addEventListener("abort", abortHandler, { once: true });+ nextInput.signal?.addEventListener("abort", abortHandler, { once: true });try {ws = await websocketFn(toWebSocketUrl(url), {@@ -830,7 +960,7 @@ export class CodexExecutor extends BaseExecutor {headers,});if (closed) return;- if (input.signal?.aborted) {+ if (nextInput.signal?.aborted) {finishStream({ reason: "client_aborted" });return;}@@ -928,6 +1058,7 @@ export class CodexExecutor extends BaseExecutor {if (workspaceId) {headers["chatgpt-account-id"] = workspaceId;}+ const clientIdentity = credentials?.providerSpecificData?.codexClientIdentity;// Originator header — identifies the client type to the Codex backend.// Ref: openai/codex login/src/auth/default_client.rs DEFAULT_ORIGINATOR = "codex_cli_rs"@@ -940,6 +1071,7 @@ export class CodexExecutor extends BaseExecutor {if (cacheSessionId) {headers["session_id"] = cacheSessionId;}+ applyCodexClientIdentityHeaders(headers, clientIdentity);return headers;}@@ -956,13 +1088,17 @@ export class CodexExecutor extends BaseExecutor {credentials,body: Record<string, unknown> | null): string | null {+ const promptCacheKey = normalizeCodexSessionId(body?.prompt_cache_key);+ if (promptCacheKey) return promptCacheKey;+// Prefer per-session identifiers from the client request bodyconst sessionId = body?.session_id ?? body?.conversation_id;- if (typeof sessionId === "string" && sessionId.length > 0) {- return sessionId;+ const normalizedSessionId = normalizeCodexSessionId(sessionId);+ if (normalizedSessionId) {+ return normalizedSessionId;}// Fall back to workspaceId (account-wide) — better than nothing- return credentials?.providerSpecificData?.workspaceId || null;+ return normalizeCodexSessionId(credentials?.providerSpecificData?.workspaceId) || null;}/**@@ -1061,9 +1197,10 @@ export class CodexExecutor extends BaseExecutor {}}- // Store: The Codex OAuth backend rejects store=true with- // "Store must be set to false". Default to false unless the provider- // explicitly opts in (e.g. API-key accounts that support persistence).+ // Store: regular Codex Responses rejects store=true with+ // "Store must be set to false", while /responses/compact rejects the+ // store field entirely. Default regular requests to false unless the+ // provider explicitly opts in (e.g. API-key accounts that support persistence).// Ref: sub2api openai_codex_transform.go line 75-80const explicitStoreSetting =credentials?.providerSpecificData &&@@ -1071,7 +1208,9 @@ export class CodexExecutor extends BaseExecutor {!Array.isArray(credentials.providerSpecificData)? credentials.providerSpecificData.openaiStoreEnabled: undefined;- if (explicitStoreSetting === true) {+ if (isCompactRequest) {+ delete body.store;+ } else if (explicitStoreSetting === true) {body.store = true;} else {// backend rejects store=true ("Store must be set to false"), so default to false.@@ -1123,16 +1262,19 @@ export class CodexExecutor extends BaseExecutor {}delete body.reasoning_effort;- // previous_response_id: always stripped by stripStoredItemReferences().- // The /codex/responses endpoint does not persist responses, so any reference- // to a previous response ID would cause a 404. This matches the behavior of- // both the official Codex CLI (sets None) and CLIProxyAPI (deletes the field).+ // previous_response_id is expanded into a self-contained local replay when+ // input is present because Codex rejects that parameter upstream.// Remove unsupported token limit parameters BEFORE the passthrough return.// Codex API rejects both max_tokens and max_output_tokens regardless of// whether the request came via native passthrough or translation.delete body.max_tokens;delete body.max_output_tokens;+ // VS Code Copilot BYOK Responses requests include `truncation` (for example+ // "auto" or "disabled"). The Codex /responses backend currently rejects this+ // field entirely with 400 Unsupported parameter: truncation, so strip it for+ // both native passthrough and translated requests.+ delete body.truncation;delete body.background; // Droid CLI sends this but Codex Responses API rejects it// Inject prompt_cache_key for Codex prompt caching.@@ -1146,16 +1288,13 @@ export class CodexExecutor extends BaseExecutor {body.prompt_cache_key = cacheSessionId;}}+ applyCodexClientMetadata(body, credentials?.providerSpecificData?.codexClientIdentity);// 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- // UNLESS the request lacks input entirely (where they are required to avoid a 400 Schema Error).+ // but the upstream Codex API strictly rejects them as unsupported parameters.delete body.session_id;- const hasInput = Array.isArray(body.input) && body.input.length > 0;- if (hasInput) {- delete body.conversation_id;- }+ delete body.conversation_id;if (nativeCodexPassthrough) {return body;diff --git a/open-sse/executors/default.ts b/open-sse/executors/default.tsindex 56696c1687..2f568f7630 100644--- a/open-sse/executors/default.ts+++ b/open-sse/executors/default.ts@@ -347,7 +347,8 @@ export class DefaultExecutor extends BaseExecutor {*/transformRequest(model, body, stream, credentials) {void model;- let withDefaults = applyProviderRequestDefaults(body, this.config.requestDefaults);+ const cleanedBody = super.transformRequest(model, body, stream, credentials);+ let withDefaults = applyProviderRequestDefaults(cleanedBody, this.config.requestDefaults);if (typeof withDefaults === "object" && withDefaults !== null && !Array.isArray(withDefaults)) {if (this.provider?.startsWith?.("anthropic-compatible-")) {diff --git a/open-sse/executors/grok-web.ts b/open-sse/executors/grok-web.tsindex 0ab6cbf04b..fc97f94799 100644--- a/open-sse/executors/grok-web.ts+++ b/open-sse/executors/grok-web.ts@@ -19,6 +19,7 @@ import {type ExecuteInput,} from "./base.ts";import { FETCH_TIMEOUT_MS } from "../config/constants.ts";+import { extractCookieValue } from "@/lib/providers/webCookieAuth";// ─── Constants ──────────────────────────────────────────────────────────────@@ -36,14 +37,13 @@ interface GrokModelInfo {}const MODEL_MAP: Record<string, GrokModelInfo> = {- auto: { modeId: "auto", isThinking: false },fast: { modeId: "fast", isThinking: false },expert: { modeId: "expert", isThinking: true },heavy: { modeId: "heavy", isThinking: true },"grok-420-computer-use-sa": { modeId: "grok-420-computer-use-sa", isThinking: true },// Legacy aliases retained for manually-entered model IDs.- "grok-4": { modeId: "auto", isThinking: false },+ "grok-4": { modeId: "fast", isThinking: false },"grok-4.1-fast": { modeId: "fast", isThinking: false },"grok-4.1-expert": { modeId: "expert", isThinking: true },"grok-4-heavy": { modeId: "heavy", isThinking: true },@@ -516,9 +516,9 @@ export class GrokWebExecutor extends BaseExecutor {// Resolve model → Grok Web modeconst modelInfo = MODEL_MAP[model];if (!modelInfo) {- log?.info?.("GROK-WEB", `Unmapped model ${model}, defaulting to auto mode`);+ log?.info?.("GROK-WEB", `Unmapped model ${model}, defaulting to fast mode`);}- const { modeId, isThinking } = modelInfo || MODEL_MAP.auto;+ const { modeId, isThinking } = modelInfo || MODEL_MAP.fast;// Parse OpenAI messages → single Grok message stringconst message = parseOpenAIMessages(messages);@@ -592,11 +592,11 @@ export class GrokWebExecutor extends BaseExecutor {traceparent: `00-${traceId}-${spanId}-00`,};- // Cookie auth — strip "sso=" prefix if user included it+ // Cookie auth — accepts a bare value, "sso=<value>", or a full+ // DevTools cookie blob; we extract the sso pair and ignore the rest.if (credentials.apiKey) {- let token = credentials.apiKey;- if (token.startsWith("sso=")) token = token.slice(4);- headers["Cookie"] = `sso=${token}`;+ const token = extractCookieValue(credentials.apiKey, "sso");+ if (token) headers["Cookie"] = `sso=${token}`;}// Apply upstream extra headersdiff --git a/open-sse/handlers/chatCore.ts b/open-sse/handlers/chatCore.tsindex 09740e64be..a131a7cbc6 100644--- a/open-sse/handlers/chatCore.ts+++ b/open-sse/handlers/chatCore.ts@@ -85,6 +85,7 @@ import {parseCodexQuotaHeaders,getCodexModelScope,getCodexDualWindowCooldownMs,+ isCompactResponsesEndpoint,} from "../executors/codex.ts";import { invalidateCodexQuotaCache } from "../services/codexQuotaFetcher.ts";import { translateNonStreamingResponse } from "./responseTranslator.ts";@@ -621,10 +622,11 @@ function wrapReadableStreamWithFinalize<T>(},async cancel(reason) {+ runFinalize();try {await reader.cancel(reason);- } finally {- runFinalize();+ } catch (error) {+ // Ignored}},});@@ -1339,7 +1341,12 @@ export async function handleChatCore({delete b.streaming;}- const stream = resolveStreamFlag(body?.stream, acceptHeader);+ // Codex /responses/compact is JSON-only: Codex CLI does not send stream=false,+ // so route shape must override the usual Accept/header fallback.+ const stream =+ nativeCodexPassthrough && isCompactResponsesEndpoint(endpointPath)+ ? false+ : resolveStreamFlag(body?.stream, acceptHeader);const settings = await getCachedSettings();setGeminiThoughtSignatureMode(settings.antigravitySignatureCacheMode);const semanticCacheEnabled = settings.semanticCacheEnabled !== false;@@ -2162,67 +2169,78 @@ export async function handleChatCore({accountSemaphoreKey && accountSemaphoreMaxConcurrency != null? await acquireAccountSemaphore(accountSemaphoreKey, {maxConcurrency: accountSemaphoreMaxConcurrency,+ signal: streamController.signal,}): () => {};try {- const rawResult = await withRateLimit(provider, connectionId, modelToCall, async () => {- let attempts = 0;- const maxAttempts = provider === "qwen" ? 3 : 1;-- while (attempts < maxAttempts) {- const res = await executor.execute({- model: modelToCall,- body: bodyToSend,- stream: upstreamStream,- credentials: executionCredentials,- signal: streamController.signal,- log,- extendedContext,- upstreamExtraHeaders: buildUpstreamHeadersForExecute(modelToCall),- clientHeaders: buildExecutorClientHeaders(clientRawRequest?.headers, userAgent),- onCredentialsRefreshed,- });-- // Qwen 429 strict quota backoff (wait 1.5s, 3s and retry)- if (provider === "qwen" && res.response.status === 429 && attempts < maxAttempts - 1) {- const bodyPeek = await res.response- .clone()- .text()- .catch(() => "");- if (bodyPeek.toLowerCase().includes("exceeded your current quota")) {- const delay = 1500 * (attempts + 1);- log?.warn?.("QWEN_RETRY", `Quota 429 hit. Retrying in ${delay}ms...`);- await new Promise((r) => setTimeout(r, delay));- attempts++;- continue;+ const rawResult = await withRateLimit(+ provider,+ connectionId,+ modelToCall,+ async () => {+ let attempts = 0;+ const maxAttempts = provider === "qwen" ? 3 : 1;++ while (attempts < maxAttempts) {+ const res = await executor.execute({+ model: modelToCall,+ body: bodyToSend,+ stream: upstreamStream,+ credentials: executionCredentials,+ signal: streamController.signal,+ log,+ extendedContext,+ upstreamExtraHeaders: buildUpstreamHeadersForExecute(modelToCall),+ clientHeaders: buildExecutorClientHeaders(clientRawRequest?.headers, userAgent),+ onCredentialsRefreshed,+ });++ // Qwen 429 strict quota backoff (wait 1.5s, 3s and retry)+ if (+ provider === "qwen" &&+ res.response.status === 429 &&+ attempts < maxAttempts - 1+ ) {+ const bodyPeek = await res.response+ .clone()+ .text()+ .catch(() => "");+ if (bodyPeek.toLowerCase().includes("exceeded your current quota")) {+ const delay = 1500 * (attempts + 1);+ log?.warn?.("QWEN_RETRY", `Quota 429 hit. Retrying in ${delay}ms...`);+ await new Promise((r) => setTimeout(r, delay));+ attempts++;+ continue;+ }}- }- // For streaming: release the semaphore when the client drains or cancels the stream.- if (stream) {- const originalBody = res.response.body;- if (!originalBody) {- acquireAccountSemaphoreRelease();- return res;+ // For streaming: release the semaphore when the client drains or cancels the stream.+ if (stream) {+ const originalBody = res.response.body;+ if (!originalBody) {+ acquireAccountSemaphoreRelease();+ return res;+ }++ return {+ ...res,+ response: new Response(+ wrapReadableStreamWithFinalize(originalBody, acquireAccountSemaphoreRelease),+ {+ status: res.response.status,+ statusText: res.response.statusText,+ headers: res.response.headers,+ }+ ),+ };}- return {- ...res,- response: new Response(- wrapReadableStreamWithFinalize(originalBody, acquireAccountSemaphoreRelease),- {- status: res.response.status,- statusText: res.response.statusText,- headers: res.response.headers,- }- ),- };+ return res;}-- return res;- }- });+ },+ streamController.signal+ );if (stream) {return rawResult;@@ -2877,17 +2895,18 @@ export async function handleChatCore({} else {try {responseBody = rawBody ? JSON.parse(rawBody) : {};- } catch {+ } catch (err) {appendRequestLog({model,provider,connectionId,status: `FAILED ${HTTP_STATUS.BAD_GATEWAY}`,}).catch(() => {});+ const detailedError = `Invalid JSON response from provider (error: ${err instanceof Error ? err.message : String(err)}): ${rawBody.substring(0, 1000)}`;const invalidJsonMessage = "Invalid JSON response from provider";persistAttemptLogs({status: HTTP_STATUS.BAD_GATEWAY,- error: invalidJsonMessage,+ error: detailedError,providerRequest: finalBody || translatedBody,providerResponse: normalizedProviderPayload,clientResponse: buildErrorBody(HTTP_STATUS.BAD_GATEWAY, invalidJsonMessage),@@ -3487,6 +3506,7 @@ export async function handleChatCore({clientResponseFormat === FORMATS.OPENAI &&!isResponsesEndpoint &&!isDroidCLI;+ const streamStateBody = finalBody || body;if (needsResponsesTranslation) {// Provider returns openai-responses, translate to openai (Chat Completions) that clients expect@@ -3499,7 +3519,7 @@ export async function handleChatCore({responseToolNameMap,model,connectionId,- body,+ streamStateBody,onStreamComplete,apiKeyInfo,handleStreamFailure@@ -3515,7 +3535,7 @@ export async function handleChatCore({responseToolNameMap,model,connectionId,- body,+ streamStateBody,onStreamComplete,apiKeyInfo,handleStreamFailure@@ -3528,10 +3548,11 @@ export async function handleChatCore({responseToolNameMap,model,connectionId,- body,+ streamStateBody,onStreamComplete,apiKeyInfo,- handleStreamFailure+ handleStreamFailure,+ clientResponseFormat);}diff --git a/open-sse/mcp-server/__tests__/dbHealthTool.test.ts b/open-sse/mcp-server/__tests__/dbHealthTool.test.tsindex 9aa7565ca4..850074a7c5 100644--- a/open-sse/mcp-server/__tests__/dbHealthTool.test.ts+++ b/open-sse/mcp-server/__tests__/dbHealthTool.test.ts@@ -7,15 +7,30 @@ import { MCP_TOOL_MAP, dbHealthCheckInput } from "../schemas/tools.ts";const mockFetch = vi.fn();vi.stubGlobal("fetch", mockFetch);+const mockRunManagedDbHealthCheck = vi.hoisted(() => vi.fn());+vi.mock("../audit.ts", () => ({logToolCall: vi.fn().mockResolvedValue(undefined),}));+vi.mock("../../../src/lib/db/core.ts", () => ({+ runManagedDbHealthCheck: mockRunManagedDbHealthCheck,+}));+describe("omniroute_db_health_check MCP tool", () => {let client: Client;beforeEach(async () => {mockFetch.mockReset();+ mockRunManagedDbHealthCheck.mockReset();+ mockRunManagedDbHealthCheck.mockReturnValue({+ isHealthy: false,+ issues: [{ type: "broken_reference", table: "combos", description: "broken", count: 1 }],+ repairedCount: 1,+ backupCreated: true,+ autoRepair: true,+ checkedAt: new Date().toISOString(),+ });const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();const server = createMcpServer();await server.connect(serverTransport);@@ -38,32 +53,19 @@ describe("omniroute_db_health_check MCP tool", () => {expect(dbHealthCheckInput.safeParse({ autoRepair: "yes" }).success).toBe(false);});- it("dispatches to /api/v1/db/health using POST when autoRepair=true", async () => {- mockFetch.mockResolvedValueOnce({- ok: true,- json: async () => ({- isHealthy: false,- issues: [{ type: "broken_reference", table: "combos", description: "broken", count: 1 }],- repairedCount: 1,- backupCreated: true,- autoRepair: true,- checkedAt: new Date().toISOString(),- }),- });-+ it("runs the database repair flow directly when autoRepair=true", async () => {const result = await client.callTool({name: "omniroute_db_health_check",arguments: { autoRepair: true },});expect(result.isError).toBeFalsy();- expect(mockFetch).toHaveBeenCalledWith(- expect.stringContaining("/api/v1/db/health"),- expect.objectContaining({ method: "POST" })- );+ expect(mockFetch).not.toHaveBeenCalled();+ expect(mockRunManagedDbHealthCheck).toHaveBeenCalledWith({ autoRepair: true });const content = result.content[0] as { type: string; text: string };const payload = JSON.parse(content.text);+ expect(payload.autoRepair).toBe(true);expect(payload.repairedCount).toBe(1);expect(payload.backupCreated).toBe(true);});diff --git a/open-sse/mcp-server/schemas/tools.ts b/open-sse/mcp-server/schemas/tools.tsindex 85492cde97..047d877f79 100644--- a/open-sse/mcp-server/schemas/tools.ts+++ b/open-sse/mcp-server/schemas/tools.ts@@ -882,7 +882,7 @@ export const dbHealthCheckTool: McpToolDefinition<scopes: ["read:health", "write:resilience"],auditLevel: "full",phase: 2,- sourceEndpoints: ["/api/v1/db/health"],+ sourceEndpoints: ["/api/db/health"],};// --- Tool 19: omniroute_sync_pricing ---diff --git a/open-sse/mcp-server/tools/advancedTools.ts b/open-sse/mcp-server/tools/advancedTools.tsindex e9918f491b..9769244f88 100644--- a/open-sse/mcp-server/tools/advancedTools.ts+++ b/open-sse/mcp-server/tools/advancedTools.ts@@ -893,11 +893,8 @@ export async function handleDbHealthCheck(args: { autoRepair?: boolean }) {const autoRepair = args.autoRepair === true;try {- const result = toRecord(- await apiFetch("/api/v1/db/health", {- method: autoRepair ? "POST" : "GET",- })- );+ const { runManagedDbHealthCheck } = await import("../../../src/lib/db/core.ts");+ const result = runManagedDbHealthCheck({ autoRepair });await logToolCall("omniroute_db_health_check",diff --git a/open-sse/package.json b/open-sse/package.jsonindex 4d7bf34fe6..b57e8dec92 100644--- a/open-sse/package.json+++ b/open-sse/package.json@@ -1,6 +1,6 @@{"name": "@omniroute/open-sse",- "version": "3.7.4",+ "version": "3.7.5","description": "Express SSE sidecar for OmniRoute — handles streaming, protocol translation, and provider orchestration","type": "module","main": "index.js",diff --git a/open-sse/services/accountFallback.ts b/open-sse/services/accountFallback.tsindex c1b02de5d9..eec3afcadb 100644--- a/open-sse/services/accountFallback.ts+++ b/open-sse/services/accountFallback.ts@@ -56,7 +56,7 @@ type ModelFailureState = {// Provider-level failure tracking for circuit breaker behavior// Error codes that count toward provider-level failure threshold-const PROVIDER_FAILURE_ERROR_CODES = new Set([408, 500, 502, 503, 504]);+const PROVIDER_FAILURE_ERROR_CODES = new Set([408, 429, 500, 502, 503, 504]);// T06 (sub2api PR #1037): Signals that indicate permanent account deactivation.// When a 401 body contains these strings, the account is permanently deaddiff --git a/open-sse/services/accountSemaphore.ts b/open-sse/services/accountSemaphore.tsindex 0f96dec799..d210dedf06 100644--- a/open-sse/services/accountSemaphore.ts+++ b/open-sse/services/accountSemaphore.ts@@ -28,6 +28,7 @@ interface AccountGate {export interface AcquireAccountSemaphoreOptions {maxConcurrency?: number | null;timeoutMs?: number;+ signal?: AbortSignal | null;}export interface AccountSemaphoreStatsEntry {@@ -168,18 +169,34 @@ function createSemaphoreTimeoutError(return error;}+function makeAbortError(signal: AbortSignal): Error {+ const reason = signal.reason;+ if (reason instanceof Error) return reason;+ const err = new Error(typeof reason === "string" ? reason : "The operation was aborted");+ err.name = "AbortError";+ return err;+}+/*** Acquire a slot for a provider/model/account tuple.* Returns an idempotent release function that is safe to call in finally blocks.*/export function acquire(semaphoreKey: string,- { maxConcurrency = null, timeoutMs = DEFAULT_TIMEOUT_MS }: AcquireAccountSemaphoreOptions = {}+ {+ maxConcurrency = null,+ timeoutMs = DEFAULT_TIMEOUT_MS,+ signal = null,+ }: AcquireAccountSemaphoreOptions = {}): Promise<() => void> {if (isBypassed(maxConcurrency)) {return Promise.resolve(createNoopReleaseFn());}+ if (signal?.aborted) {+ return Promise.reject(makeAbortError(signal));+ }+const gate = ensureGate(semaphoreKey, maxConcurrency);clearCleanupTimer(gate);@@ -189,7 +206,16 @@ export function acquire(}return new Promise((resolve, reject) => {+ let abortListener: (() => void) | null = null;++ const cleanup = () => {+ if (abortListener && signal) {+ signal.removeEventListener("abort", abortListener);+ }+ };+const timer = setTimeout(() => {+ cleanup();const nextGate = gates.get(semaphoreKey);if (!nextGate) {reject(createSemaphoreTimeoutError(semaphoreKey, timeoutMs));@@ -209,7 +235,49 @@ export function acquire(}, timeoutMs);timer.unref?.();- gate.queue.push({ resolve, reject, timer });++ const queueItem: QueuedAcquire = {+ resolve: (release) => {+ cleanup();+ resolve(release);+ },+ reject: (error) => {+ cleanup();+ reject(error);+ },+ timer,+ };++ gate.queue.push(queueItem);++ if (signal) {+ abortListener = () => {+ cleanup();+ clearTimeout(timer);++ const nextGate = gates.get(semaphoreKey);+ if (!nextGate) {+ reject(makeAbortError(signal));+ return;+ }++ const queueIndex = nextGate.queue.findIndex((item) => item.timer === timer);+ if (queueIndex !== -1) {+ nextGate.queue.splice(queueIndex, 1);+ }++ if (nextGate.running === 0 && nextGate.queue.length === 0) {+ scheduleCleanup(semaphoreKey);+ }++ reject(makeAbortError(signal));+ };+ if (signal.aborted) {+ abortListener();+ } else {+ signal.addEventListener("abort", abortListener);+ }+ }});}diff --git a/open-sse/services/antigravityHeaderScrub.ts b/open-sse/services/antigravityHeaderScrub.tsindex 5ecdd91627..200e324957 100644--- a/open-sse/services/antigravityHeaderScrub.ts+++ b/open-sse/services/antigravityHeaderScrub.ts@@ -52,7 +52,8 @@ export function scrubProxyAndFingerprintHeaders(): Record<string, string> {const cleaned: Record<string, string> = {};for (const [key, value] of Object.entries(headers)) {- if (!HEADERS_TO_REMOVE.includes(key.toLowerCase())) {+ const lowerKey = key.toLowerCase();+ if (!lowerKey.startsWith("x-omniroute-") && !HEADERS_TO_REMOVE.includes(lowerKey)) {cleaned[key] = value;}}diff --git a/open-sse/services/antigravityHeaders.ts b/open-sse/services/antigravityHeaders.tsindex 3e6b632337..4b38e90cf2 100644--- a/open-sse/services/antigravityHeaders.ts+++ b/open-sse/services/antigravityHeaders.ts@@ -20,7 +20,8 @@ export const GEMINI_CLI_VERSION = "0.39.1";export const GEMINI_SDK_VERSION = "1.30.0";export const NODE_VERSION = "v22.21.1";export const ANTIGRAVITY_LOAD_CODE_ASSIST_USER_AGENT = "google-api-nodejs-client/10.3.0";-export const ANTIGRAVITY_LOAD_CODE_ASSIST_API_CLIENT = "google-cloud-sdk vscode_cloudshelleditor/0.1";+export const ANTIGRAVITY_LOAD_CODE_ASSIST_API_CLIENT =+ "google-cloud-sdk vscode_cloudshelleditor/0.1";const LOAD_CODE_ASSIST_METADATA = Object.freeze({ideType: "IDE_UNSPECIFIED",platform: "PLATFORM_UNSPECIFIED",@@ -133,6 +134,4 @@ export function googApiClientHeader(): string {return `google-genai-sdk/${GEMINI_SDK_VERSION} gl-node/${NODE_VERSION}`;}-export {- ANTIGRAVITY_VERSION,-};+export { ANTIGRAVITY_VERSION };diff --git a/open-sse/services/combo.ts b/open-sse/services/combo.tsindex 127fcbb6ae..0988c224fe 100644--- a/open-sse/services/combo.ts+++ b/open-sse/services/combo.ts@@ -127,7 +127,7 @@ function toTrimmedString(value): string | null {* 1. Body is valid JSON* 2. Has at least one choice with non-empty content or tool_calls*/-async function validateResponseQuality(+export async function validateResponseQuality(response: Response,isStreaming: boolean,log: { warn?: (...args: unknown[]) => void }@@ -161,7 +161,7 @@ async function validateResponseQuality(try {json = JSON.parse(text);} catch {- if (text.startsWith("data:")) return { valid: true };+ if (text.startsWith("data:") || text.startsWith("event:")) return { valid: true };return { valid: false, reason: "response is not valid JSON" };}diff --git a/open-sse/services/rateLimitManager.ts b/open-sse/services/rateLimitManager.tsindex 4af4f86306..d0acd2410f 100644--- a/open-sse/services/rateLimitManager.ts+++ b/open-sse/services/rateLimitManager.ts@@ -274,18 +274,57 @@ function getLimiter(provider, connectionId, model = null) {* @param {string} connectionId - Connection ID* @param {string} model - Model name (optional, for per-model limits)* @param {Function} fn - The async function to execute (e.g., executor.execute)+ * @param {AbortSignal} signal - Optional abort signal to cancel waiting* @returns {Promise<unknown>} Result of fn()*/-export async function withRateLimit(provider, connectionId, model, fn) {+export async function withRateLimit(provider, connectionId, model, fn, signal = null) {if (!enabledConnections.has(connectionId)) {return fn();}+ if (signal?.aborted) {+ const reason = signal.reason;+ if (reason instanceof Error) throw reason;+ const err = new Error(typeof reason === "string" ? reason : "The operation was aborted");+ err.name = "AbortError";+ throw err;+ }+const limiter = getLimiter(provider, connectionId, model);const maxWaitMs = currentRequestQueueSettings.maxWaitMs;const scheduleOpts = maxWaitMs && maxWaitMs > 0 ? { expiration: maxWaitMs } : {};+try {- return await limiter.schedule(scheduleOpts, fn);+ if (signal) {+ let abortListener: (() => void) | undefined;+ const abortPromise = new Promise<never>((_, reject) => {+ const onAbort = () => {+ const reason = signal.reason;+ const err =+ reason instanceof Error+ ? reason+ : new Error(typeof reason === "string" ? reason : "The operation was aborted");+ err.name = "AbortError";+ reject(err);+ };+ if (signal.aborted) {+ onAbort();+ return;+ }+ abortListener = onAbort;+ signal.addEventListener("abort", abortListener, { once: true });+ });++ try {+ return await Promise.race([limiter.schedule(scheduleOpts, fn), abortPromise]);+ } finally {+ if (abortListener) {+ signal.removeEventListener("abort", abortListener);+ }+ }+ } else {+ return await limiter.schedule(scheduleOpts, fn);+ }} catch (err) {// Bottleneck throws when a job exceeds its expiration timeout.// Surface as a clear rate-limit timeout so callers can fallback.diff --git a/open-sse/services/responsesToolCallState.ts b/open-sse/services/responsesToolCallState.tsnew file mode 100644index 0000000000..9f1af5f5bb--- /dev/null+++ b/open-sse/services/responsesToolCallState.ts@@ -0,0 +1,219 @@+type JsonRecord = Record<string, unknown>;++type RememberedFunctionCall = {+ call_id: string;+ name: string;+ arguments: string;+};++type RememberedResponseToolState = {+ functionCalls: RememberedFunctionCall[];+ conversationItems: unknown[];+ expiresAt: number;+ updatedAt: number;+};++type RememberedFunctionCallByIdState = RememberedFunctionCall & {+ expiresAt: number;+ updatedAt: number;+};++const RESPONSE_TOOL_CALL_TTL_MS = 30 * 60 * 1000;+const RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES = 512;++const rememberedResponseToolCalls = new Map<string, RememberedResponseToolState>();+const rememberedFunctionCallsById = new Map<string, RememberedFunctionCallByIdState>();++function toRecord(value: unknown): JsonRecord | null {+ return value && typeof value === "object" && !Array.isArray(value) ? (value as JsonRecord) : null;+}++function cleanupRememberedResponseToolCalls(now: number = Date.now()) {+ for (const [responseId, entry] of rememberedResponseToolCalls.entries()) {+ if (entry.expiresAt <= now) {+ rememberedResponseToolCalls.delete(responseId);+ }+ }++ for (const [callId, entry] of rememberedFunctionCallsById.entries()) {+ if (entry.expiresAt <= now) {+ rememberedFunctionCallsById.delete(callId);+ }+ }++ if (rememberedResponseToolCalls.size <= RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES) {+ if (rememberedFunctionCallsById.size <= RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES) {+ return;+ }+ }++ if (rememberedResponseToolCalls.size > RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES) {+ const oldestEntries = [...rememberedResponseToolCalls.entries()].sort(+ (a, b) => a[1].updatedAt - b[1].updatedAt+ );++ while (rememberedResponseToolCalls.size > RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES) {+ const oldest = oldestEntries.shift();+ if (!oldest) break;+ rememberedResponseToolCalls.delete(oldest[0]);+ }+ }++ if (rememberedFunctionCallsById.size > RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES) {+ const oldestCallEntries = [...rememberedFunctionCallsById.entries()].sort(+ (a, b) => a[1].updatedAt - b[1].updatedAt+ );++ while (rememberedFunctionCallsById.size > RESPONSE_TOOL_CALL_CACHE_MAX_ENTRIES) {+ const oldest = oldestCallEntries.shift();+ if (!oldest) break;+ rememberedFunctionCallsById.delete(oldest[0]);+ }+ }+}++export function rememberResponseFunctionCalls(+ responseId: unknown,+ outputItems: readonly unknown[]+) {+ const normalizedResponseId = typeof responseId === "string" ? responseId.trim() : "";+ if (!normalizedResponseId || !Array.isArray(outputItems) || outputItems.length === 0) {+ return;+ }++ const existingEntry = rememberedResponseToolCalls.get(normalizedResponseId);++ const functionCalls: RememberedFunctionCall[] = [];++ for (const item of outputItems) {+ const record = toRecord(item);+ if (!record || record.type !== "function_call") continue;++ const callId = typeof record.call_id === "string" ? record.call_id.trim() : "";+ const name = typeof record.name === "string" ? record.name.trim() : "";+ const argumentsValue =+ typeof record.arguments === "string"+ ? record.arguments+ : JSON.stringify(record.arguments ?? {});++ if (!callId || !name) continue;++ functionCalls.push({+ call_id: callId,+ name,+ arguments: argumentsValue,+ });+ }++ if (functionCalls.length === 0) {+ return;+ }++ cleanupRememberedResponseToolCalls();++ const now = Date.now();+ for (const functionCall of functionCalls) {+ rememberedFunctionCallsById.set(functionCall.call_id, {+ ...functionCall,+ updatedAt: now,+ expiresAt: now + RESPONSE_TOOL_CALL_TTL_MS,+ });+ }++ rememberedResponseToolCalls.set(normalizedResponseId, {+ functionCalls,+ conversationItems: existingEntry?.conversationItems?.map((item) => structuredClone(item)) || [],+ updatedAt: now,+ expiresAt: now + RESPONSE_TOOL_CALL_TTL_MS,+ });+}++export function rememberResponseConversationState(+ responseId: unknown,+ requestInput: readonly unknown[],+ outputItems: readonly unknown[]+) {+ const normalizedResponseId = typeof responseId === "string" ? responseId.trim() : "";+ if (!normalizedResponseId) {+ return;+ }++ const normalizedRequestInput = Array.isArray(requestInput) ? requestInput : [];+ const normalizedOutputItems = Array.isArray(outputItems) ? outputItems : [];+ const conversationItems = [...normalizedRequestInput, ...normalizedOutputItems];+ if (conversationItems.length === 0) {+ return;+ }++ cleanupRememberedResponseToolCalls();++ const existingEntry = rememberedResponseToolCalls.get(normalizedResponseId);+ rememberedResponseToolCalls.set(normalizedResponseId, {+ functionCalls: existingEntry?.functionCalls?.map((functionCall) => ({ ...functionCall })) || [],+ conversationItems: conversationItems.map((item) => structuredClone(item)),+ updatedAt: Date.now(),+ expiresAt: Date.now() + RESPONSE_TOOL_CALL_TTL_MS,+ });+}++export function getRememberedResponseFunctionCalls(responseId: unknown): RememberedFunctionCall[] {+ cleanupRememberedResponseToolCalls();++ const normalizedResponseId = typeof responseId === "string" ? responseId.trim() : "";+ if (!normalizedResponseId) {+ return [];+ }++ const entry = rememberedResponseToolCalls.get(normalizedResponseId);+ if (!entry) {+ return [];+ }++ return entry.functionCalls.map((functionCall) => ({ ...functionCall }));+}++export function getRememberedResponseConversationItems(responseId: unknown): unknown[] {+ cleanupRememberedResponseToolCalls();++ const normalizedResponseId = typeof responseId === "string" ? responseId.trim() : "";+ if (!normalizedResponseId) {+ return [];+ }++ const entry = rememberedResponseToolCalls.get(normalizedResponseId);+ if (!entry) {+ return [];+ }++ return entry.conversationItems.map((item) => structuredClone(item));+}++export function getRememberedFunctionCallsByIds(+ callIds: readonly string[]+): RememberedFunctionCall[] {+ cleanupRememberedResponseToolCalls();++ if (!Array.isArray(callIds) || callIds.length === 0) {+ return [];+ }++ const remembered: RememberedFunctionCall[] = [];+ for (const rawCallId of callIds) {+ const callId = typeof rawCallId === "string" ? rawCallId.trim() : "";+ if (!callId) continue;+ const entry = rememberedFunctionCallsById.get(callId);+ if (!entry) continue;+ remembered.push({+ call_id: entry.call_id,+ name: entry.name,+ arguments: entry.arguments,+ });+ }++ return remembered;+}++export function clearRememberedResponseFunctionCallsForTesting() {+ rememberedResponseToolCalls.clear();+ rememberedFunctionCallsById.clear();+}diff --git a/open-sse/services/tokenRefresh.ts b/open-sse/services/tokenRefresh.tsindex 5147c036dc..e1324acced 100755--- a/open-sse/services/tokenRefresh.ts+++ b/open-sse/services/tokenRefresh.ts@@ -513,11 +513,7 @@ export async function refreshKiroToken(// AWS SSO OIDC (Builder ID or IDC)// If clientId and clientSecret exist, assume AWS SSO OIDC (default to builder-id if authMethod not specified)if (clientId && clientSecret) {- const isIDC = authMethod === "idc";- const endpoint =- isIDC && region- ? `https://oidc.${region}.amazonaws.com/token`- : "https://oidc.us-east-1.amazonaws.com/token";+ const endpoint = `https://oidc.${region || "us-east-1"}.amazonaws.com/token`;const response = await runWithProxyContext(proxyConfig, () =>fetch(endpoint, {diff --git a/open-sse/translator/helpers/geminiToolsSanitizer.ts b/open-sse/translator/helpers/geminiToolsSanitizer.tsindex e35a9df7b1..d76f23cf7c 100644--- a/open-sse/translator/helpers/geminiToolsSanitizer.ts+++ b/open-sse/translator/helpers/geminiToolsSanitizer.ts@@ -30,12 +30,17 @@ function normalizeGeminiToolName(options: GeminiToolSanitizationOptions = {}): string {const trimmed = name.trim();- if (!options.stripNamespace) {- return trimmed;- }-- const namespaceIndex = trimmed.indexOf(":");- return namespaceIndex >= 0 ? trimmed.slice(namespaceIndex + 1) : trimmed;+ const namespaceStripped = !options.stripNamespace+ ? trimmed+ : (() => {+ const namespaceIndex = trimmed.indexOf(":");+ return namespaceIndex >= 0 ? trimmed.slice(namespaceIndex + 1) : trimmed;+ })();++ return namespaceStripped+ .replace(/[^a-zA-Z0-9_]/g, "_")+ .replace(/_+/g, "_")+ .replace(/^_+|_+$/g, "");}function buildHashedGeminiToolName(diff --git a/open-sse/translator/helpers/schemaCoercion.ts b/open-sse/translator/helpers/schemaCoercion.tsindex ecce28a0a7..17030c1703 100644--- a/open-sse/translator/helpers/schemaCoercion.ts+++ b/open-sse/translator/helpers/schemaCoercion.ts@@ -52,6 +52,11 @@ export function coerceSchemaNumericFields(schema: unknown): unknown {const result: JsonRecord = { ...schema };+ // Fix #1782: Strip 'default' property to prevent upstream models from eagerly injecting optional fields+ if ("default" in result) {+ delete result.default;+ }+for (const field of NUMERIC_SCHEMA_FIELDS) {if (field in result) {result[field] = coerceNumericString(result[field]);diff --git a/open-sse/translator/request/claude-to-gemini.ts b/open-sse/translator/request/claude-to-gemini.tsindex ff5e2a2803..fb3665c790 100644--- a/open-sse/translator/request/claude-to-gemini.ts+++ b/open-sse/translator/request/claude-to-gemini.ts@@ -7,6 +7,7 @@ import {} from "../helpers/geminiHelper.ts";import { DEFAULT_THINKING_GEMINI_SIGNATURE } from "../../config/defaultThinkingSignature.ts";import { buildGeminiTools, sanitizeGeminiToolName } from "../helpers/geminiToolsSanitizer.ts";+import { capMaxOutputTokens } from "../../../src/lib/modelCapabilities.ts";/*** Direct Claude → Gemini request translator.@@ -49,7 +50,7 @@ export function claudeToGeminiRequest(model, body, stream) {result.generationConfig.topK = body.top_k;}if (body.max_tokens !== undefined) {- result.generationConfig.maxOutputTokens = body.max_tokens;+ result.generationConfig.maxOutputTokens = capMaxOutputTokens(model, body.max_tokens);}// ── System instruction ─────────────────────────────────────────@@ -62,7 +63,7 @@ export function claudeToGeminiRequest(model, body, stream) {}if (systemText) {result.systemInstruction = {- role: "user",+ role: "system",parts: [{ text: systemText }],};}@@ -177,7 +178,9 @@ export function claudeToGeminiRequest(model, body, stream) {// ── Thinking config ────────────────────────────────────────────// Priority: thinking.budget_tokens (Claude native) > output_config.effort (Claude Code).- if (body.thinking?.type === "enabled" && body.thinking.budget_tokens) {+ if (model.startsWith("gemma-4")) {+ // gemma-4 models returns - 400: Thinking budget is not supported for this model+ } else if (body.thinking?.type === "enabled" && body.thinking.budget_tokens) {result.generationConfig.thinkingConfig = {thinkingBudget: body.thinking.budget_tokens,includeThoughts: true,diff --git a/open-sse/translator/request/openai-to-gemini.ts b/open-sse/translator/request/openai-to-gemini.tsindex 73c20e5bc8..e5f1bed467 100644--- a/open-sse/translator/request/openai-to-gemini.ts+++ b/open-sse/translator/request/openai-to-gemini.ts@@ -27,6 +27,12 @@ import {} from "../helpers/geminiHelper.ts";import { buildGeminiTools, sanitizeGeminiToolName } from "../helpers/geminiToolsSanitizer.ts";+// Observed Antigravity wrapper output cap, not an underlying model capability.+// Keep this bridge-local: capMaxOutputTokens() falls back to OmniRoute's generic+// 8192 default for unknown Claude-family IDs, while Antigravity currently caps+// visible output around 16K. See: https://github.com/keisksw/antigravity-output-analysis+const ANTIGRAVITY_CLAUDE_MAX_OUTPUT_TOKENS = 16_384;+type GeminiPart = Record<string, unknown>;type GeminiContent = { role: string; parts: GeminiPart[] };@@ -186,7 +192,7 @@ function openaiToGeminiBase(model, body, stream, toolNameOptions: GeminiToolNameif (systemText) {if (!result.systemInstruction) {result.systemInstruction = {- role: "user",+ role: "system",parts: [{ text: systemText }],};} else {@@ -413,7 +419,7 @@ function wrapInCloudCodeEnvelope(model, geminiCLI, credentials = null, isAntigraif (envelope.request.systemInstruction?.parts) {envelope.request.systemInstruction.parts.unshift(defaultPart);} else {- envelope.request.systemInstruction = { role: "user", parts: [defaultPart] };+ envelope.request.systemInstruction = { role: "system", parts: [defaultPart] };}// Add toolConfig for Antigravity@@ -430,7 +436,20 @@ function wrapInCloudCodeEnvelope(model, geminiCLI, credentials = null, isAntigrareturn envelope;}-function wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials = null) {+function getAntigravityClaudeOutputTokens(body: Record<string, unknown>): number {+ const requested = body.max_tokens ?? body.max_completion_tokens;+ if (typeof requested === "number" && Number.isFinite(requested) && requested >= 1) {+ return Math.min(Math.floor(requested), ANTIGRAVITY_CLAUDE_MAX_OUTPUT_TOKENS);+ }+ return ANTIGRAVITY_CLAUDE_MAX_OUTPUT_TOKENS;+}++function wrapInCloudCodeEnvelopeForClaude(+ model,+ claudeRequest,+ credentials = null,+ sourceBody = {}+) {const toolNameMap = new Map<string, string>();const sanitizeToolName = (name: string) =>sanitizeGeminiToolName(name, {@@ -449,6 +468,11 @@ function wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials = nuconst cleanModel = model.includes("/") ? model.split("/").pop()! : model;+ const generationConfig: GeminiGenerationConfig = {+ temperature: claudeRequest.temperature || 1,+ maxOutputTokens: getAntigravityClaudeOutputTokens(sourceBody),+ };+const envelope: CloudCodeEnvelope = {project: projectId,model: cleanModel,@@ -458,10 +482,7 @@ function wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials = nurequest: {sessionId: generateSessionId(),contents: [],- generationConfig: {- temperature: claudeRequest.temperature || 1,- maxOutputTokens: claudeRequest.max_tokens || 4096,- },+ generationConfig,},};@@ -555,7 +576,7 @@ function wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials = nu}}- envelope.request.systemInstruction = { role: "user", parts: systemParts };+ envelope.request.systemInstruction = { role: "system", parts: systemParts };const changedToolNameMap = buildChangedToolNameMap(toolNameMap);if (changedToolNameMap) {@@ -571,7 +592,7 @@ export function openaiToAntigravityRequest(model, body, stream, credentials = nuif (isClaude) {const claudeRequest = openaiToClaudeRequestForAntigravity(model, body, stream);- return wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials);+ return wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials, body);}const geminiCLI = openaiToGeminiCLIRequest(model, body, stream);diff --git a/open-sse/utils/stream.ts b/open-sse/utils/stream.tsindex 7675ef04e3..cd2b16863e 100644--- a/open-sse/utils/stream.ts+++ b/open-sse/utils/stream.ts@@ -28,6 +28,10 @@ import {sanitizeStreamingChunk,extractThinkingFromContent,} from "../handlers/responseSanitizer.ts";+import {+ rememberResponseConversationState,+ rememberResponseFunctionCalls,+} from "../services/responsesToolCallState.ts";import { buildErrorBody } from "./error.ts";/**@@ -54,6 +58,48 @@ export { COLORS, formatSSE };type JsonRecord = Record<string, unknown>;+function buildResponsesOutputItemKey(item: unknown): string | null {+ if (!item || typeof item !== "object" || Array.isArray(item)) {+ return null;+ }++ const record = item as JsonRecord;+ const type = typeof record.type === "string" ? record.type : "";+ const id = typeof record.id === "string" ? record.id : "";+ const callId = typeof record.call_id === "string" ? record.call_id : "";+ const outputIndex = typeof record.output_index === "number" ? record.output_index : "";+ const name = typeof record.name === "string" ? record.name : "";++ if (!type && !id && !callId) {+ return null;+ }++ return `${type}:${id}:${callId}:${outputIndex}:${name}`;+}++function pushUniqueResponsesOutputItems(target: unknown[], items: readonly unknown[]) {+ const seen = new Set<string>();++ for (const existingItem of target) {+ const key = buildResponsesOutputItemKey(existingItem);+ if (key) {+ seen.add(key);+ }+ }++ for (const item of items) {+ const key = buildResponsesOutputItemKey(item);+ if (key && seen.has(key)) {+ continue;+ }++ target.push(item);+ if (key) {+ seen.add(key);+ }+ }+}+type StreamLogger = {appendProviderChunk?: (value: string) => void;appendConvertedChunk?: (value: string) => void;@@ -80,6 +126,7 @@ type StreamOptions = {mode?: string;targetFormat?: string;sourceFormat?: string;+ clientResponseFormat?: string | null;provider?: string | null;reqLogger?: StreamLogger | null;toolNameMap?: unknown;@@ -476,6 +523,7 @@ export function createSSEStream(options: StreamOptions = {}) {mode = STREAM_MODE.TRANSLATE,targetFormat,sourceFormat,+ clientResponseFormat = null,provider = null,reqLogger = null,toolNameMap = null,@@ -487,6 +535,11 @@ export function createSSEStream(options: StreamOptions = {}) {onFailure = null,} = options;+ const clientExpectsResponsesStream =+ (mode === STREAM_MODE.PASSTHROUGH+ ? clientResponseFormat === FORMATS.OPENAI_RESPONSES+ : sourceFormat === FORMATS.OPENAI_RESPONSES) === true;+let buffer = "";let usage: UsageTokenRecord | null = null;/** Passthrough (OpenAI CC shape): saw tool_calls in stream before finish_reason */@@ -516,6 +569,10 @@ export function createSSEStream(options: StreamOptions = {}) {// used to backfill `response.completed.response.output` when upstream returns it// empty (which happens when `store: false` — see backfillResponsesCompletedOutput).const passthroughResponsesOutputItems: unknown[] = [];+ const passthroughResponsesPendingFunctionCalls = new Map<string, JsonRecord>();+ let passthroughResponsesId: string | null = null;+ let passthroughResponsesCurrentFunctionCallKey: string | null = null;+ const passthroughResponsesReasoningSummarySeen = new Set<string>();const streamStartedAt = Date.now();// Guard against duplicate [DONE] events — ensures exactly one per stream@@ -683,6 +740,101 @@ export function createSSEStream(options: StreamOptions = {}) {controller.enqueue(encoder.encode(comment));};+ const getResponsesReasoningKey = (payload: Record<string, unknown>): string | null => {+ if (typeof payload.item_id === "string" && payload.item_id) {+ return payload.item_id;+ }++ const item =+ payload.item && typeof payload.item === "object" && !Array.isArray(payload.item)+ ? (payload.item as Record<string, unknown>)+ : null;+ if (item && typeof item.id === "string" && item.id) {+ return item.id;+ }++ const responseId =+ typeof payload.response_id === "string" && payload.response_id+ ? payload.response_id+ : passthroughResponsesId;+ const outputIndex =+ typeof payload.output_index === "number" && Number.isInteger(payload.output_index)+ ? payload.output_index+ : null;++ return responseId !== null && outputIndex !== null ? `${responseId}:${outputIndex}` : null;+ };++ const emitSyntheticResponsesReasoningSummary = (+ controller: TransformStreamDefaultController,+ payload: Record<string, unknown>+ ) => {+ const item =+ payload.item && typeof payload.item === "object" && !Array.isArray(payload.item)+ ? (payload.item as Record<string, unknown>)+ : null;+ if (!item || item.type !== "reasoning" || !Array.isArray(item.summary)) {+ return;+ }++ const summaryText = item.summary+ .map((part) => {+ if (!part || typeof part !== "object" || Array.isArray(part)) {+ return "";+ }+ return typeof (part as Record<string, unknown>).text === "string"+ ? ((part as Record<string, unknown>).text as string)+ : "";+ })+ .join("");++ if (!summaryText) {+ return;+ }++ const reasoningKey = getResponsesReasoningKey(payload);+ if (!reasoningKey || passthroughResponsesReasoningSummarySeen.has(reasoningKey)) {+ return;+ }+ passthroughResponsesReasoningSummarySeen.add(reasoningKey);++ const itemId = typeof item.id === "string" && item.id ? item.id : reasoningKey;+ const outputIndex =+ typeof payload.output_index === "number" && Number.isInteger(payload.output_index)+ ? payload.output_index+ : 0;++ const syntheticEvents = [+ {+ event: "response.reasoning_summary_text.delta",+ body: {+ type: "response.reasoning_summary_text.delta",+ item_id: itemId,+ output_index: outputIndex,+ summary_index: 0,+ delta: summaryText,+ },+ },+ {+ event: "response.reasoning_summary_part.done",+ body: {+ type: "response.reasoning_summary_part.done",+ item_id: itemId,+ output_index: outputIndex,+ summary_index: 0,+ part: { type: "summary_text", text: summaryText },+ },+ },+ ];++ for (const syntheticEvent of syntheticEvents) {+ clientPayloadCollector.push(syntheticEvent.body);+ const output = `event: ${syntheticEvent.event}\ndata: ${JSON.stringify(syntheticEvent.body)}\n\n`;+ reqLogger?.appendConvertedChunk?.(output);+ controller.enqueue(encoder.encode(output));+ }+ };+return new TransformStream({start(controller) {@@ -809,6 +961,15 @@ export function createSSEStream(options: StreamOptions = {}) {parsed.type === "error");if (isResponsesSSE) {+ const responseId =+ typeof parsed.response?.id === "string"+ ? parsed.response.id+ : typeof parsed.response_id === "string"+ ? parsed.response_id+ : null;+ if (responseId) {+ passthroughResponsesId = responseId;+ }// Responses SSE: only extract usage, forward payload as-isconst extracted = extractUsage(parsed);if (extracted) {@@ -825,11 +986,107 @@ export function createSSEStream(options: StreamOptions = {}) {if (parsed.type === "response.failed") {failurePayload = normalizeStreamFailurePayload(parsed);}+ if (+ parsed.type === "response.reasoning_summary_text.delta" ||+ parsed.type === "response.reasoning_summary_text.done" ||+ parsed.type === "response.reasoning_summary_part.done"+ ) {+ const reasoningKey = getResponsesReasoningKey(parsed);+ if (reasoningKey) {+ passthroughResponsesReasoningSummarySeen.add(reasoningKey);+ }+ }+ if (+ parsed.type === "response.output_item.added" &&+ parsed.item?.type === "function_call"+ ) {+ const item =+ parsed.item && typeof parsed.item === "object" && !Array.isArray(parsed.item)+ ? { ...(parsed.item as JsonRecord) }+ : null;+ const pendingKey =+ item && typeof item.id === "string"+ ? item.id+ : item && typeof item.call_id === "string"+ ? item.call_id+ : null;+ if (item && pendingKey) {+ if (typeof item.arguments !== "string") {+ item.arguments = "";+ }+ passthroughResponsesPendingFunctionCalls.set(pendingKey, item);+ passthroughResponsesCurrentFunctionCallKey = pendingKey;+ }+ }+ if (parsed.type === "response.function_call_arguments.delta") {+ const pendingKey =+ typeof parsed.item_id === "string"+ ? parsed.item_id+ : passthroughResponsesCurrentFunctionCallKey;+ const pending = pendingKey+ ? passthroughResponsesPendingFunctionCalls.get(pendingKey)+ : undefined;+ if (pending && typeof parsed.delta === "string") {+ const previousArgs =+ typeof pending.arguments === "string" ? pending.arguments : "";+ pending.arguments = previousArgs + parsed.delta;+ }+ }+ if (parsed.type === "response.function_call_arguments.done") {+ const pendingKey =+ typeof parsed.item_id === "string"+ ? parsed.item_id+ : passthroughResponsesCurrentFunctionCallKey;+ const pending = pendingKey+ ? passthroughResponsesPendingFunctionCalls.get(pendingKey)+ : undefined;+ if (pending) {+ if (typeof parsed.arguments === "string") {+ pending.arguments = parsed.arguments;+ }+ pushUniqueResponsesOutputItems(passthroughResponsesOutputItems, [pending]);+ }+ }// Capture each completed output item so the final// response.completed snapshot can be backfilled when upstream// returns an empty `output` (happens with store: false).if (parsed.type === "response.output_item.done" && parsed.item) {- passthroughResponsesOutputItems.push(parsed.item);+ emitSyntheticResponsesReasoningSummary(controller, parsed);+ pushUniqueResponsesOutputItems(passthroughResponsesOutputItems, [parsed.item]);+ if (parsed.item?.type === "function_call") {+ const pendingKey =+ typeof parsed.item.id === "string"+ ? parsed.item.id+ : typeof parsed.item.call_id === "string"+ ? parsed.item.call_id+ : null;+ if (pendingKey) {+ passthroughResponsesPendingFunctionCalls.delete(pendingKey);+ if (passthroughResponsesCurrentFunctionCallKey === pendingKey) {+ passthroughResponsesCurrentFunctionCallKey = null;+ }+ }+ }+ }+ if (+ parsed.type === "response.completed" &&+ Array.isArray(parsed.response?.output) &&+ parsed.response.output.length > 0+ ) {+ pushUniqueResponsesOutputItems(+ passthroughResponsesOutputItems,+ parsed.response.output+ );+ }+ if (+ parsed.type === "response.completed" &&+ passthroughResponsesPendingFunctionCalls.size > 0+ ) {+ pushUniqueResponsesOutputItems(passthroughResponsesOutputItems, [+ ...passthroughResponsesPendingFunctionCalls.values(),+ ]);+ passthroughResponsesPendingFunctionCalls.clear();+ passthroughResponsesCurrentFunctionCallKey = null;}// Two transport-level fixes for Responses passthrough:// 1) Strip echoed `instructions` + `tools` from lifecycle@@ -1077,6 +1334,7 @@ export function createSSEStream(options: StreamOptions = {}) {} catch {}}clearIdleTimer();+ trackPendingRequest(model, provider, connectionId, false);controller.error(new Error(failurePayload.message || "Upstream failure"));return;}@@ -1288,6 +1546,25 @@ export function createSSEStream(options: StreamOptions = {}) {}clearPendingPassthroughEvent();+ if (passthroughResponsesId) {+ const requestInput =+ body && typeof body === "object" && Array.isArray((body as JsonRecord).input)+ ? ((body as JsonRecord).input as unknown[])+ : [];+ rememberResponseConversationState(+ passthroughResponsesId,+ requestInput,+ passthroughResponsesOutputItems+ );+ }++ if (passthroughResponsesId && passthroughResponsesOutputItems.length > 0) {+ rememberResponseFunctionCalls(+ passthroughResponsesId,+ passthroughResponsesOutputItems+ );+ }+// Estimate usage if provider didn't return valid usageif (!hasValidUsage(usage) && totalContentLength > 0) {usage = estimateUsage(body, totalContentLength, sourceFormat || FORMATS.OPENAI);@@ -1307,10 +1584,12 @@ export function createSSEStream(options: StreamOptions = {}) {if (!doneSent) {await emitFinalSseMetadata(controller, usage);doneSent = true;- clientPayloadCollector.push({ done: true });- const doneOutput = "data: [DONE]\n\n";- reqLogger?.appendConvertedChunk?.(doneOutput);- controller.enqueue(encoder.encode(doneOutput));+ if (!clientExpectsResponsesStream) {+ clientPayloadCollector.push({ done: true });+ const doneOutput = "data: [DONE]\n\n";+ reqLogger?.appendConvertedChunk?.(doneOutput);+ controller.enqueue(encoder.encode(doneOutput));+ }}// Notify caller for call log persistence (include full response body with accumulated content)if (onComplete) {@@ -1499,10 +1778,12 @@ export function createSSEStream(options: StreamOptions = {}) {if (!doneSent) {await emitFinalSseMetadata(controller, state?.usage as Record<string, unknown> | null);doneSent = true;- clientPayloadCollector.push({ done: true });- const doneOutput = "data: [DONE]\n\n";- reqLogger?.appendConvertedChunk?.(doneOutput);- controller.enqueue(encoder.encode(doneOutput));+ if (!clientExpectsResponsesStream) {+ clientPayloadCollector.push({ done: true });+ const doneOutput = "data: [DONE]\n\n";+ reqLogger?.appendConvertedChunk?.(doneOutput);+ controller.enqueue(encoder.encode(doneOutput));+ }}// Estimate usage if provider didn't return valid usage (for translate mode)@@ -1632,7 +1913,8 @@ export function createPassthroughStreamWithLogger(body: unknown = null,onComplete: ((payload: StreamCompletePayload) => void) | null = null,apiKeyInfo: unknown = null,- onFailure: ((payload: StreamFailurePayload) => void | Promise<void>) | null = null+ onFailure: ((payload: StreamFailurePayload) => void | Promise<void>) | null = null,+ clientResponseFormat: string | null = null) {return createSSEStream({mode: STREAM_MODE.PASSTHROUGH,@@ -1645,5 +1927,6 @@ export function createPassthroughStreamWithLogger(body,onComplete,onFailure,+ clientResponseFormat,});}diff --git a/package-lock.json b/package-lock.jsonindex dee96e1e29..17ae67cb5c 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "omniroute",- "version": "3.7.4",+ "version": "3.7.5","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "omniroute",- "version": "3.7.4",+ "version": "3.7.5","hasInstallScript": true,"license": "MIT","workspaces": [@@ -16,6 +16,7 @@"@lobehub/icons": "^5.5.4","@modelcontextprotocol/sdk": "^1.27.1","@monaco-editor/react": "^4.7.0",+ "@ngrok/ngrok": "^1.7.0","@swc/helpers": "0.5.21","axios": "^1.15.0","bcryptjs": "^3.0.3",@@ -2322,6 +2323,235 @@"node": ">= 10"}},+ "node_modules/@ngrok/ngrok": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok/-/ngrok-1.7.0.tgz",+ "integrity": "sha512-P06o9TpxrJbiRbHQkiwy/rUrlXRupc+Z8KT4MiJfmcdWxvIdzjCaJOdnNkcOTs6DMyzIOefG5tvk/HLdtjqr0g==",+ "license": "(MIT OR Apache-2.0)",+ "engines": {+ "node": ">= 10"+ },+ "optionalDependencies": {+ "@ngrok/ngrok-android-arm64": "1.7.0",+ "@ngrok/ngrok-darwin-arm64": "1.7.0",+ "@ngrok/ngrok-darwin-universal": "1.7.0",+ "@ngrok/ngrok-darwin-x64": "1.7.0",+ "@ngrok/ngrok-freebsd-x64": "1.7.0",+ "@ngrok/ngrok-linux-arm-gnueabihf": "1.7.0",+ "@ngrok/ngrok-linux-arm64-gnu": "1.7.0",+ "@ngrok/ngrok-linux-arm64-musl": "1.7.0",+ "@ngrok/ngrok-linux-x64-gnu": "1.7.0",+ "@ngrok/ngrok-linux-x64-musl": "1.7.0",+ "@ngrok/ngrok-win32-arm64-msvc": "1.7.0",+ "@ngrok/ngrok-win32-ia32-msvc": "1.7.0",+ "@ngrok/ngrok-win32-x64-msvc": "1.7.0"+ }+ },+ "node_modules/@ngrok/ngrok-android-arm64": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-android-arm64/-/ngrok-android-arm64-1.7.0.tgz",+ "integrity": "sha512-8tco3ID6noSaNy+CMS7ewqPoIkIM6XO5COCzsUp3Wv3XEbMSyn65RN6cflX2JdqLfUCHcMyD0ahr9IEiHwqmbQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-darwin-arm64": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-darwin-arm64/-/ngrok-darwin-arm64-1.7.0.tgz",+ "integrity": "sha512-+dmJSOzSO+MNDVrPOca2yYDP1W3KfP4qOlAkarIeFRIfqonQwq3QCBmcR7HAlZocLsSqEwyG6KP4RRvAuT0WGQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-darwin-universal": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-darwin-universal/-/ngrok-darwin-universal-1.7.0.tgz",+ "integrity": "sha512-fDEfewyE2pWGFBhOSwQZObeHUkc65U1l+3HIgSOe094TMHsqmyJD0KTCgW9KSn0VP4OvDZbAISi1T3nvqgZYhQ==",+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-darwin-x64": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-darwin-x64/-/ngrok-darwin-x64-1.7.0.tgz",+ "integrity": "sha512-+fwMi5uHd9G8BS42MMa9ye6exI5lwTcjUO6Ut497Vu0qgLONdVRenRqnEePV+Q3KtQR7NjqkMnomVfkr9MBjtw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-freebsd-x64": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-freebsd-x64/-/ngrok-freebsd-x64-1.7.0.tgz",+ "integrity": "sha512-2OGgbrjy3yLRrqAz5N6hlUKIWIXSpR5RjQa2chtZMsSbszQ6c9dI+uVQfOKAeo05tHMUgrYAZ7FocC+ig0dzdQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-linux-arm-gnueabihf": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-linux-arm-gnueabihf/-/ngrok-linux-arm-gnueabihf-1.7.0.tgz",+ "integrity": "sha512-SN9YIfEQiR9xN90QVNvdgvAemqMLoFVSeTWZs779145hQMhvF9Qd9rnWi6J+2uNNK10OczdV1oc/nq1es7u/3g==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-linux-arm64-gnu": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-linux-arm64-gnu/-/ngrok-linux-arm64-gnu-1.7.0.tgz",+ "integrity": "sha512-KDMgzPKFU2kbpVSaA2RZBBia5IPdJEe063YlyVFnSMJmPYWCUnMwdybBsucXfV9u1Lw/ZjKTKotIlbTWGn3HGw==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-linux-arm64-musl": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-linux-arm64-musl/-/ngrok-linux-arm64-musl-1.7.0.tgz",+ "integrity": "sha512-e66vUdVrBlQ0lT9ZdamB4U604zt5Gualt8/WVcUGzbu8s5LajWd6g/mzZCUjK4UepjvMpfgmCp1/+rX7Rk8d5A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-linux-x64-gnu": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-linux-x64-gnu/-/ngrok-linux-x64-gnu-1.7.0.tgz",+ "integrity": "sha512-M6gF0DyOEFqXLfWxObfL3bxYZ4+PnKBHuyLVaqNfFN9Y5utY2mdPOn5422Ppbk4XoIK5/YkuhRqPJl/9FivKEw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-linux-x64-musl": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-linux-x64-musl/-/ngrok-linux-x64-musl-1.7.0.tgz",+ "integrity": "sha512-4Ijm0dKeoyzZTMaYxR2EiNjtlK81ebflg/WYIO1XtleFrVy4UJEGnxtxEidYoT4BfCqi4uvXiK2Mx216xXKvog==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-win32-arm64-msvc": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-win32-arm64-msvc/-/ngrok-win32-arm64-msvc-1.7.0.tgz",+ "integrity": "sha512-u7qyWIJI2/YG1HTBnHwUR1+Z2tyGfAsUAItJK/+N1G0FeWJhIWQvSIFJHlaPy4oW1Dc8mSDBX9qvVsiQgLaRFg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-win32-ia32-msvc": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-win32-ia32-msvc/-/ngrok-win32-ia32-msvc-1.7.0.tgz",+ "integrity": "sha512-/UdYUsLNv/Q8j9YJsyIfq/jLCoD8WP+NidouucTUzSoDtmOsXBBT3itLrmPiZTEdEgKiFYLuC1Zon8XQQvbVLA==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@ngrok/ngrok-win32-x64-msvc": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@ngrok/ngrok-win32-x64-msvc/-/ngrok-win32-x64-msvc-1.7.0.tgz",+ "integrity": "sha512-UFJg/duEWzZlLkEs61Gz6/5nYhGaKI62I8dvUGdBR3NCtIMagehnFaFxmnXZldyHmCM8U0aCIFNpWRaKcrQkoA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },"node_modules/@nodelib/fs.scandir": {"version": "2.1.5","resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",@@ -14972,7 +15202,7 @@},"open-sse": {"name": "@omniroute/open-sse",- "version": "3.7.4"+ "version": "3.7.5"}}}diff --git a/package.json b/package.jsonindex e17f1e9d4e..0a2a1d4300 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "omniroute",- "version": "3.7.4",+ "version": "3.7.5","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": {@@ -110,6 +110,7 @@"@lobehub/icons": "^5.5.4","@modelcontextprotocol/sdk": "^1.27.1","@monaco-editor/react": "^4.7.0",+ "@ngrok/ngrok": "^1.7.0","@swc/helpers": "0.5.21","axios": "^1.15.0","bcryptjs": "^3.0.3",diff --git a/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx b/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsxindex a71b38a258..fff2b31ec3 100644--- a/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx+++ b/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx@@ -6,7 +6,7 @@ import { useCopyToClipboard } from "@/shared/hooks/useCopyToClipboard";import { useTranslations } from "next-intl";// Constants for validation-const MAX_KEY_NAME_LENGTH = 100;+const MAX_KEY_NAME_LENGTH = 200;const MAX_SELECTED_MODELS = 500;// Debounce hook for search optimization@@ -232,14 +232,13 @@ export default function ApiManagerPageClient() {const clearError = useCallback(() => setError(null), []);const handleCreateKey = async () => {- // Validate and sanitize input- const sanitizedName = sanitizeInput(newKeyName);- const validation = validateKeyName(sanitizedName, t);-+ // Validate raw input first, then sanitize+ const validation = validateKeyName(newKeyName, t);if (!validation.valid) {setError(validation.error || t("invalidKeyName"));return;}+ const sanitizedName = sanitizeInput(newKeyName);setIsSubmitting(true);clearError();@@ -322,6 +321,7 @@ export default function ApiManagerPageClient() {};const handleUpdatePermissions = async (+ name: string,allowedModels: string[],noLog: boolean,allowedConnections: string[],@@ -332,6 +332,14 @@ export default function ApiManagerPageClient() {) => {if (!editingKey || !editingKey.id) return;+ // Validate raw input first, then sanitize+ const nameValidation = validateKeyName(name, t);+ if (!nameValidation.valid) {+ setError(nameValidation.error || t("invalidKeyName"));+ return;+ }+ const sanitizedName = sanitizeInput(name);+// Validate models arrayif (!Array.isArray(allowedModels)) {setError(t("invalidModelsSelection"));@@ -366,6 +374,7 @@ export default function ApiManagerPageClient() {method: "PATCH",headers: { "Content-Type": "application/json" },body: JSON.stringify({+ name: sanitizedName,allowedModels: validModels,allowedConnections: validConnections,noLog,@@ -764,6 +773,7 @@ export default function ApiManagerPageClient() {value={newKeyName}onChange={(e) => setNewKeyName(e.target.value)}placeholder={t("keyNamePlaceholder")}+ maxLength={MAX_KEY_NAME_LENGTH}autoFocus/><p className="text-xs text-text-muted mt-1.5">{t("keyNameDesc")}</p>@@ -862,6 +872,7 @@ const PermissionsModal = memo(function PermissionsModal({searchModel: string;onSearchChange: (v: string) => void;onSave: (+ name: string,models: string[],noLog: boolean,connections: string[],@@ -879,6 +890,7 @@ const PermissionsModal = memo(function PermissionsModal({const initialConnections = Array.isArray(apiKey?.allowedConnections)? apiKey.allowedConnections: [];+ const [keyName, setKeyName] = useState(apiKey?.name ?? "");const [selectedModels, setSelectedModels] = useState<string[]>(initialModels);const [allowAll, setAllowAll] = useState(initialModels.length === 0);const [noLogEnabled, setNoLogEnabled] = useState(apiKey?.noLog === true);@@ -993,6 +1005,7 @@ const PermissionsModal = memo(function PermissionsModal({}: null;onSave(+ keyName,allowAll ? [] : selectedModels,noLogEnabled,allowAllConnections ? [] : selectedConnections,@@ -1003,6 +1016,7 @@ const PermissionsModal = memo(function PermissionsModal({);}, [onSave,+ keyName,allowAll,selectedModels,noLogEnabled,@@ -1028,6 +1042,22 @@ const PermissionsModal = memo(function PermissionsModal({onClose={onClose}><div className="flex flex-col gap-4">+ {/* Key Name */}+ <div className="flex items-start justify-between gap-3 p-3 rounded-lg border border-border bg-surface/40">+ <div className="flex flex-col gap-1">+ <p className="text-sm font-medium text-text-main">{t("keyName")}</p>+ <p className="text-xs text-text-muted">{t("keyNameDesc")}</p>+ </div>+ <div className="w-48 shrink-0">+ <Input+ value={keyName}+ onChange={(e) => setKeyName(e.target.value)}+ placeholder={t("keyNamePlaceholder")}+ maxLength={MAX_KEY_NAME_LENGTH}+ />+ </div>+ </div>+{/* Access Mode Toggle */}<div className="flex gap-2 p-1 bg-surface rounded-lg"><buttondiff --git a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsxindex d07926b240..3d12cb818f 100644--- a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx+++ b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx@@ -63,11 +63,47 @@ type TailscaleTunnelStatus = {pid: number | null;};+type NgrokTunnelPhase =+ | "unsupported"+ | "not_installed"+ | "stopped"+ | "needs_auth"+ | "starting"+ | "running"+ | "error";++type NgrokTunnelStatus = {+ supported: boolean;+ installed: boolean;+ running: boolean;+ publicUrl: string | null;+ apiUrl: string | null;+ targetUrl: string;+ phase: NgrokTunnelPhase;+ lastError: string | null;+};+type TunnelNotice = {type: "success" | "error" | "info";message: string;};+type EndpointTunnelVisibility = {+ showCloudflaredTunnel: boolean;+ showTailscaleFunnel: boolean;+};++const DEFAULT_TUNNEL_VISIBILITY: EndpointTunnelVisibility = {+ showCloudflaredTunnel: true,+ showTailscaleFunnel: true,+};++function runEndpointBackgroundTask(taskName: string, task: () => Promise<unknown>) {+ void task().catch((error) => {+ console.log(`Error running endpoint background task (${taskName}):`, error);+ });+}+export default function APIPageClient({ machineId }) {const [resolvedMachineId, setResolvedMachineId] = useState(machineId || "");const t = useTranslations("endpoint");@@ -76,6 +112,7 @@ export default function APIPageClient({ machineId }) {// Endpoints / models stateconst [allModels, setAllModels] = useState([]);+ const [modelsLoading, setModelsLoading] = useState(true);const [expandedEndpoint, setExpandedEndpoint] = useState(null);// Cloud sync state@@ -105,6 +142,11 @@ export default function APIPageClient({ machineId }) {const [tailscalePassword, setTailscalePassword] = useState("");const [showCloudflaredTunnel, setShowCloudflaredTunnel] = useState(true);const [showTailscaleFunnel, setShowTailscaleFunnel] = useState(true);+ const [ngrokStatus, setNgrokStatus] = useState<NgrokTunnelStatus | null>(null);+ const [ngrokBusy, setNgrokBusy] = useState(false);+ const [ngrokNotice, setNgrokNotice] = useState<TunnelNotice | null>(null);+ const [ngrokToken, setNgrokToken] = useState("");+ const [showNgrokTunnel, setShowNgrokTunnel] = useState(true);const { copied, copy } = useCopyToClipboard();@@ -201,20 +243,66 @@ export default function APIPageClient({ machineId }) {[translateOrFallback]);+ const fetchNgrokStatus = useCallback(+ async (silent = false) => {+ try {+ const res = await fetch("/api/tunnels/ngrok", { cache: "no-store" });+ const data = await res.json().catch(() => null);+ if (!res.ok) {+ throw new Error(+ data?.error || translateOrFallback("ngrokRequestFailed", "Failed to load ngrok status")+ );+ }++ setNgrokStatus(data);+ return data as NgrokTunnelStatus;+ } catch (error) {+ if (!silent) {+ setNgrokNotice({+ type: "error",+ message:+ error instanceof Error+ ? error.message+ : translateOrFallback("ngrokRequestFailed", "Failed to load ngrok status"),+ });+ }+ return null;+ }+ },+ [translateOrFallback]+ );+useEffect(() => {- Promise.allSettled([- loadCloudSettings(),- fetchModels(),- fetchProtocolStatus(),- fetchSearchProviders(),- fetchCloudflaredStatus(true),- fetchTailscaleStatus(true),- ]).finally(() => {+ let mounted = true;++ const loadPage = async () => {+ const tunnelVisibility = await loadCloudSettings(() => mounted);++ if (!mounted) return;setLoading(false);- });- }, [fetchCloudflaredStatus, fetchTailscaleStatus]);++ runEndpointBackgroundTask("models", fetchModels);+ runEndpointBackgroundTask("protocol-status", fetchProtocolStatus);+ runEndpointBackgroundTask("search-providers", fetchSearchProviders);++ if (tunnelVisibility.showCloudflaredTunnel) {+ runEndpointBackgroundTask("cloudflared-status", () => fetchCloudflaredStatus(true));+ }+ if (tunnelVisibility.showTailscaleFunnel) {+ runEndpointBackgroundTask("tailscale-status", () => fetchTailscaleStatus(true));+ }+ runEndpointBackgroundTask("ngrok-status", () => fetchNgrokStatus(true));+ };++ void loadPage();++ return () => {+ mounted = false;+ };+ }, [fetchCloudflaredStatus, fetchTailscaleStatus, fetchNgrokStatus]);const fetchModels = async () => {+ setModelsLoading(true);try {const res = await fetch("/v1/models");if (res.ok) {@@ -223,6 +311,8 @@ export default function APIPageClient({ machineId }) {}} catch (e) {console.log("Error fetching models:", e);+ } finally {+ setModelsLoading(false);}};@@ -273,6 +363,16 @@ export default function APIPageClient({ machineId }) {};}, [allModels]);+ const totalEndpointModelCount = useMemo(+ () => Object.values(endpointData).reduce((acc, models) => acc + models.length, 0),+ [endpointData]+ );++ const availableEndpointCount = useMemo(+ () => Object.values(endpointData).filter((models) => models.length > 0).length + 2,+ [endpointData]+ );+const postCloudAction = async (action, timeoutMs = CLOUD_ACTION_TIMEOUT_MS) => {const controller = new AbortController();const timeoutId = setTimeout(() => controller.abort(), timeoutMs);@@ -295,11 +395,22 @@ export default function APIPageClient({ machineId }) {}};- const loadCloudSettings = async () => {+ const loadCloudSettings = async (+ shouldApplyState: () => boolean = () => true+ ): Promise<EndpointTunnelVisibility> => {try {const res = await fetch("/api/settings");if (res.ok) {const data = await res.json();+ const tunnelVisibility = {+ showCloudflaredTunnel: data.hideEndpointCloudflaredTunnel !== true,+ showTailscaleFunnel: data.hideEndpointTailscaleFunnel !== true,+ };++ if (!shouldApplyState()) {+ return tunnelVisibility;+ }+setCloudEnabled(data.cloudEnabled || false);if (typeof data.cloudConfigured === "boolean") {setCloudConfigured(data.cloudConfigured);@@ -310,12 +421,25 @@ export default function APIPageClient({ machineId }) {if (data.machineId) {setResolvedMachineId(data.machineId);}- setShowCloudflaredTunnel(data.hideEndpointCloudflaredTunnel !== true);- setShowTailscaleFunnel(data.hideEndpointTailscaleFunnel !== true);+ setShowCloudflaredTunnel(tunnelVisibility.showCloudflaredTunnel);+ setShowTailscaleFunnel(tunnelVisibility.showTailscaleFunnel);++ if (!tunnelVisibility.showCloudflaredTunnel) {+ setCloudflaredStatus(null);+ setCloudflaredNotice(null);+ }+ if (!tunnelVisibility.showTailscaleFunnel) {+ setTailscaleStatus(null);+ setTailscaleNotice(null);+ }++ return tunnelVisibility;}} catch (error) {console.log("Error loading cloud settings:", error);}++ return DEFAULT_TUNNEL_VISIBILITY;};const handleCloudToggle = (checked) => {@@ -358,11 +482,15 @@ export default function APIPageClient({ machineId }) {useEffect(() => {const interval = setInterval(() => {void fetchProtocolStatus();- void fetchCloudflaredStatus(true);- void fetchTailscaleStatus(true);+ if (showCloudflaredTunnel) {+ void fetchCloudflaredStatus(true);+ }+ if (showTailscaleFunnel) {+ void fetchTailscaleStatus(true);+ }}, 30000);return () => clearInterval(interval);- }, [fetchCloudflaredStatus, fetchTailscaleStatus]);+ }, [fetchCloudflaredStatus, fetchTailscaleStatus, showCloudflaredTunnel, showTailscaleFunnel]);const dispatchCloudChange = () => {globalThis.dispatchEvent(new Event("cloud-status-changed"));@@ -502,6 +630,52 @@ export default function APIPageClient({ machineId }) {}};+ const handleNgrokAction = async (action: "enable" | "disable") => {+ setNgrokBusy(true);+ setNgrokNotice(null);++ try {+ const res = await fetch("/api/tunnels/ngrok", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ action, authToken: action === "enable" ? ngrokToken : undefined }),+ });+ const data = await res.json().catch(() => ({}));++ if (!res.ok) {+ throw new Error(+ data?.error || translateOrFallback("ngrokRequestFailed", "Failed to update ngrok tunnel")+ );+ }++ if (data?.status) {+ setNgrokStatus(data.status);+ }++ setNgrokNotice({+ type: "success",+ message:+ action === "enable"+ ? translateOrFallback("ngrokStarted", "ngrok tunnel started")+ : translateOrFallback("ngrokStopped", "ngrok tunnel stopped"),+ });+ if (action === "enable") {+ setNgrokToken("");+ }+ } catch (error) {+ setNgrokNotice({+ type: "error",+ message:+ error instanceof Error+ ? error.message+ : translateOrFallback("ngrokRequestFailed", "Failed to update ngrok tunnel"),+ });+ } finally {+ setNgrokBusy(false);+ await fetchNgrokStatus(true);+ }+ };+const waitForTailscale = useCallback(async (predicate: (status: TailscaleTunnelStatus) => boolean,@@ -689,7 +863,7 @@ export default function APIPageClient({ machineId }) {setTailscaleBusy(false);await fetchTailscaleStatus(true);}- }, [fetchTailscaleStatus, translateOrFallback]);+ }, [fetchTailscaleStatus, tailscalePassword, translateOrFallback]);const handleTailscaleInstall = useCallback(async () => {setTailscaleInstallBusy(true);@@ -891,6 +1065,42 @@ export default function APIPageClient({ machineId }) {"Uses your Tailscale .ts.net address. Login and Funnel approval may be required on first use.");+ const ngrokPhase = ngrokStatus?.phase || "not_installed";+ const ngrokPhaseMeta: Record<NgrokTunnelPhase, { label: string; className: string }> = {+ running: {+ label: translateOrFallback("ngrokRunning", "Running"),+ className: "bg-green-500/10 border-green-500/30 text-green-400",+ },+ starting: {+ label: translateOrFallback("ngrokStarting", "Starting"),+ className: "bg-blue-500/10 border-blue-500/30 text-blue-400",+ },+ stopped: {+ label: translateOrFallback("ngrokStoppedState", "Stopped"),+ className: "bg-surface border-border/70 text-text-muted",+ },+ needs_auth: {+ label: translateOrFallback("ngrokNeedsAuth", "Needs Auth"),+ className: "bg-amber-500/10 border-amber-500/30 text-amber-400",+ },+ not_installed: {+ label: translateOrFallback("ngrokNotInstalled", "Not installed"),+ className: "bg-surface border-border/70 text-text-muted",+ },+ unsupported: {+ label: translateOrFallback("ngrokUnsupported", "Unsupported"),+ className: "bg-amber-500/10 border-amber-500/30 text-amber-400",+ },+ error: {+ label: translateOrFallback("ngrokError", "Error"),+ className: "bg-red-500/10 border-red-500/30 text-red-400",+ },+ };+ const ngrokActionLabel = ngrokStatus?.running+ ? translateOrFallback("ngrokDisable", "Stop Tunnel")+ : translateOrFallback("ngrokEnable", "Enable Tunnel");+ const ngrokUrlNotice = translateOrFallback("ngrokUrlNotice", "Creates a public ngrok tunnel.");+return (<div className="flex flex-col gap-8">{/* Endpoint Card */}@@ -1229,6 +1439,120 @@ export default function APIPageClient({ machineId }) {</div></div>)}++ {showNgrokTunnel && (+ <div+ className={`${showCloudflaredTunnel || showTailscaleFunnel ? "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("ngrokTitle", "ngrok Tunnel")}+ </h3>+ <span+ className={`inline-flex items-center rounded-full border px-2 py-1 text-xs font-medium ${ngrokPhaseMeta[ngrokPhase].className}`}+ >+ {ngrokPhaseMeta[ngrokPhase].label}+ </span>+ </div>+ </div>++ {ngrokStatus?.supported !== false && (+ <Button+ size="sm"+ variant={ngrokStatus?.running ? "secondary" : "primary"}+ icon={ngrokStatus?.running ? "public_off" : "public"}+ onClick={() => handleNgrokAction(ngrokStatus?.running ? "disable" : "enable")}+ loading={ngrokBusy}+ className={+ ngrokStatus?.running+ ? "border-border/70! text-text-muted! hover:text-text!"+ : "bg-linear-to-r from-blue-500 to-indigo-500 hover:from-blue-600 hover:to-indigo-600"+ }+ >+ {ngrokActionLabel}+ </Button>+ )}+ </div>++ {ngrokNotice && (+ <div+ className={`flex items-center gap-2 rounded-lg border px-3 py-2 text-sm ${+ ngrokNotice.type === "success"+ ? "border-green-500/30 bg-green-500/10 text-green-400"+ : ngrokNotice.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]">+ {ngrokNotice.type === "success"+ ? "check_circle"+ : ngrokNotice.type === "info"+ ? "info"+ : "error"}+ </span>+ <span className="flex-1">{ngrokNotice.message}</span>+ <button+ onClick={() => setNgrokNotice(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">{ngrokUrlNotice}</p>+ {ngrokStatus?.phase === "needs_auth" && (+ <div className="flex flex-col gap-1">+ <label className="text-xs text-text-muted">+ {translateOrFallback(+ "ngrokAuthTokenLabel",+ "Authtoken (Required if NGROK_AUTHTOKEN not set)"+ )}+ </label>+ <Input+ type="password"+ value={ngrokToken}+ onChange={(event) => setNgrokToken(event.target.value)}+ placeholder={translateOrFallback(+ "ngrokAuthTokenPlaceholder",+ "Enter your ngrok authtoken"+ )}+ disabled={ngrokBusy}+ className="font-mono text-sm"+ />+ </div>+ )}+ <div className="flex flex-col sm:flex-row gap-2">+ <Input+ value={ngrokStatus?.apiUrl || ""}+ readOnly+ placeholder="https://your-tunnel.ngrok-free.app/v1"+ className="flex-1 min-w-0 font-mono text-sm"+ />+ <Button+ variant="secondary"+ icon={copied === "ngrok_url" ? "check" : "content_copy"}+ onClick={() => ngrokStatus?.apiUrl && copy(ngrokStatus.apiUrl, "ngrok_url")}+ disabled={!ngrokStatus?.apiUrl}+ className="shrink-0 self-start sm:self-auto"+ >+ {copied === "ngrok_url" ? tc("copied") : tc("copy")}+ </Button>+ </div>+ {ngrokStatus?.lastError && (+ <p className="text-xs text-red-400">+ {translateOrFallback("ngrokLastError", "Last error: {error}", {+ error: ngrokStatus.lastError,+ })}+ </p>+ )}+ </div>+ </div>+ )}</Card><Card>@@ -1258,24 +1582,12 @@ export default function APIPageClient({ machineId }) {<div><h2 className="text-lg font-semibold">{t("available")}</h2><p className="text-sm text-text-muted">- {t("modelsAcrossEndpoints", {- models: Object.values(endpointData).reduce(- (acc, models) => acc + models.length,- 0- ),- endpoints:- [- endpointData.chat,- endpointData.embeddings,- endpointData.images,- endpointData.video,- endpointData.rerank,- endpointData.audioTranscription,- endpointData.audioSpeech,- endpointData.moderation,- endpointData.music,- ].filter((a) => a.length > 0).length + 2,- })}+ {modelsLoading+ ? translateOrFallback("loadingModels", "Loading available models...")+ : t("modelsAcrossEndpoints", {+ models: totalEndpointModelCount,+ endpoints: availableEndpointCount,+ })}</p></div></div>@@ -1304,6 +1616,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Responses API */}@@ -1325,6 +1638,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Legacy Completions */}@@ -1346,6 +1660,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/></div></div>@@ -1376,6 +1691,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Image Generation */}@@ -1394,6 +1710,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Audio Transcription */}@@ -1414,6 +1731,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Audio Speech (TTS) */}@@ -1432,6 +1750,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Music Generation */}@@ -1451,6 +1770,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Video Generation */}@@ -1470,6 +1790,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/></div></div>@@ -1541,6 +1862,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* Moderations */}@@ -1559,6 +1881,7 @@ export default function APIPageClient({ machineId }) {copy={copy}copied={copied}baseUrl={currentEndpoint}+ modelsLoading={modelsLoading}/>{/* List Models */}@@ -2078,6 +2401,7 @@ function EndpointSection({copy,copied,baseUrl,+ modelsLoading = false,}) {const t = useTranslations("endpoint");const grouped = useMemo(() => {@@ -2111,7 +2435,7 @@ function EndpointSection({<div className="flex items-center gap-2"><span className="font-semibold text-sm">{title}</span><span className="text-xs px-2 py-0.5 rounded-full bg-surface text-text-muted font-medium">- {t("modelsCount", { count: models.length })}+ {modelsLoading ? "..." : t("modelsCount", { count: models.length })}</span></div><p className="text-xs text-text-muted mt-0.5">{description}</p>@@ -2143,35 +2467,44 @@ function EndpointSection({</div>{/* Models grouped by provider */}- <div className="flex flex-col gap-2">- {grouped.map(([providerId, providerModels]) => (- <div key={providerId}>- <div className="flex items-center gap-2 mb-1">- <div- className="size-2.5 rounded-full shrink-0"- style={{ backgroundColor: providerColor(providerId) }}- />- <span className="text-xs font-semibold text-text-main">- {providerName(providerId)}- </span>- <span className="text-xs text-text-muted">- ({(providerModels as any).length})- </span>- </div>- <div className="ml-5 flex flex-wrap gap-1.5">- {(providerModels as any).map((m) => (- <span- key={m.id}- className="text-xs px-2 py-0.5 rounded-md bg-surface/80 text-text-muted font-mono"- title={m.id}- >- {m.root || m.id.split("/").pop()}+ {modelsLoading ? (+ <div className="flex items-center gap-2 rounded-lg border border-border/70 bg-surface/40 px-3 py-2 text-xs text-text-muted">+ <span className="material-symbols-outlined animate-spin text-sm">+ progress_activity+ </span>+ <span>{t("loadingModels")}</span>+ </div>+ ) : (+ <div className="flex flex-col gap-2">+ {grouped.map(([providerId, providerModels]) => (+ <div key={providerId}>+ <div className="flex items-center gap-2 mb-1">+ <div+ className="size-2.5 rounded-full shrink-0"+ style={{ backgroundColor: providerColor(providerId) }}+ />+ <span className="text-xs font-semibold text-text-main">+ {providerName(providerId)}+ </span>+ <span className="text-xs text-text-muted">+ ({(providerModels as any).length})</span>- ))}+ </div>+ <div className="ml-5 flex flex-wrap gap-1.5">+ {(providerModels as any).map((m) => (+ <span+ key={m.id}+ className="text-xs px-2 py-0.5 rounded-md bg-surface/80 text-text-muted font-mono"+ title={m.id}+ >+ {m.root || m.id.split("/").pop()}+ </span>+ ))}+ </div></div>- </div>- ))}- </div>+ ))}+ </div>+ )}</div>)}</div>@@ -2191,4 +2524,5 @@ EndpointSection.propTypes = {copy: PropTypes.func.isRequired,copied: PropTypes.string,baseUrl: PropTypes.string.isRequired,+ modelsLoading: PropTypes.bool,};diff --git a/src/app/(dashboard)/dashboard/endpoint/__tests__/EndpointPageClient.test.tsx b/src/app/(dashboard)/dashboard/endpoint/__tests__/EndpointPageClient.test.tsxnew file mode 100644index 0000000000..6b54fcf62f--- /dev/null+++ b/src/app/(dashboard)/dashboard/endpoint/__tests__/EndpointPageClient.test.tsx@@ -0,0 +1,250 @@+// @vitest-environment jsdom+import React, { act } from "react";+import { createRoot } from "react-dom/client";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import EndpointPageClient from "../EndpointPageClient";++type Deferred<T> = {+ promise: Promise<T>;+ resolve: (value: T) => void;+ reject: (error: unknown) => void;+};++function createDeferred<T>(): Deferred<T> {+ let resolve!: (value: T) => void;+ let reject!: (error: unknown) => void;+ const promise = new Promise<T>((res, rej) => {+ resolve = res;+ reject = rej;+ });+ return { promise, resolve, reject };+}++function jsonResponse(data: unknown) {+ return {+ ok: true,+ json: async () => data,+ } as Response;+}++function getRequestPath(input: RequestInfo | URL) {+ return typeof input === "string" ? input : input instanceof URL ? input.pathname : input.url;+}++const cleanupCallbacks: Array<() => void> = [];++async function waitForText(text: string) {+ const startedAt = Date.now();+ while (!document.body.textContent?.includes(text)) {+ if (Date.now() - startedAt > 1000) {+ throw new Error(`Timed out waiting for text: ${text}`);+ }+ await new Promise((resolve) => setTimeout(resolve, 10));+ }+}++function renderEndpointPage() {+ const container = document.createElement("div");+ document.body.appendChild(container);+ const root = createRoot(container);+ let mounted = true;++ act(() => {+ root.render(<EndpointPageClient machineId="" />);+ });++ const unmount = () => {+ if (!mounted) {+ return;+ }+ act(() => {+ root.unmount();+ });+ container.remove();+ mounted = false;+ };++ cleanupCallbacks.push(unmount);++ return {+ unmount,+ };+}++vi.mock("next/link", () => ({+ default: ({ href, children, ...props }: React.AnchorHTMLAttributes<HTMLAnchorElement>) => (+ <a href={String(href)} {...props}>+ {children}+ </a>+ ),+}));++vi.mock("next-intl", () => ({+ useTranslations: (namespace?: string) => {+ const messages: Record<string, string> = {+ "endpoint.title": "Endpoint",+ "endpoint.available": "Available endpoints",+ "endpoint.loadingModels": "Loading available models...",+ "endpoint.modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "endpoint.modelsCount": "{count} models",+ "endpoint.chatCompletions": "Chat Completions",+ "endpoint.chatDesc": "Chat endpoint",+ "endpoint.responses": "Responses API",+ "endpoint.responsesDesc": "Responses endpoint",+ "endpoint.completionsLegacy": "Completions",+ "endpoint.completionsLegacyDesc": "Completions endpoint",+ "endpoint.embeddings": "Embeddings",+ "endpoint.embeddingsDesc": "Embedding endpoint",+ "endpoint.imageGeneration": "Image Generation",+ "endpoint.imageDesc": "Image endpoint",+ "endpoint.audioTranscription": "Audio Transcription",+ "endpoint.audioTranscriptionDesc": "Audio transcription endpoint",+ "endpoint.textToSpeech": "Text to Speech",+ "endpoint.textToSpeechDesc": "Speech endpoint",+ "endpoint.musicGeneration": "Music Generation",+ "endpoint.musicDesc": "Music endpoint",+ "endpoint.videoGeneration": "Video Generation",+ "endpoint.videoDesc": "Video endpoint",+ "endpoint.rerank": "Rerank",+ "endpoint.rerankDesc": "Rerank endpoint",+ "endpoint.moderations": "Moderations",+ "endpoint.moderationsDesc": "Moderation endpoint",+ "endpoint.listModels": "List Models",+ "endpoint.listModelsDesc": "List model endpoint",+ "endpoint.overviewTitle": "Endpoint overview",+ "endpoint.overviewDescription": "Endpoint overview description",+ "endpoint.tabApis": "APIs",+ "endpoint.tabProtocols": "Protocols",+ "endpoint.categoryCore": "Core APIs",+ "endpoint.categoryMedia": "Media APIs",+ "endpoint.categoryUtility": "Utility APIs",+ "endpoint.machineId": "Machine {id}",+ "endpoint.usingLocalServer": "Using local server",+ "common.copy": "Copy",+ "common.cancel": "Cancel",+ };++ const translate = (key: string, values?: Record<string, unknown>) => {+ const fullKey = namespace ? `${namespace}.${key}` : key;+ let message = messages[fullKey] ?? key;+ if (values) {+ for (const [name, value] of Object.entries(values)) {+ message = message.replace(`{${name}}`, String(value));+ }+ }+ return message;+ };++ return translate;+ },+}));++describe("EndpointPageClient", () => {+ const fetchMock = vi.fn();++ beforeEach(() => {+ fetchMock.mockReset();+ (+ globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT?: boolean }+ ).IS_REACT_ACT_ENVIRONMENT = true;+ vi.stubGlobal("fetch", fetchMock);+ });++ afterEach(() => {+ while (cleanupCallbacks.length > 0) {+ cleanupCallbacks.pop()?.();+ }+ document.body.innerHTML = "";+ vi.unstubAllGlobals();+ });++ it("renders the endpoint shell before models finish and skips hidden tunnel probes", async () => {+ const modelsDeferred = createDeferred<Response>();++ fetchMock.mockImplementation((input: RequestInfo | URL) => {+ const path = getRequestPath(input);+ if (path === "/api/settings") {+ return Promise.resolve(+ jsonResponse({+ cloudEnabled: false,+ cloudConfigured: false,+ hideEndpointCloudflaredTunnel: true,+ hideEndpointTailscaleFunnel: true,+ machineId: "machine-12345678",+ })+ );+ }+ if (path === "/v1/models") {+ return modelsDeferred.promise;+ }+ if (path === "/api/mcp/status") {+ return Promise.resolve(jsonResponse({ online: false }));+ }+ if (path === "/api/a2a/status") {+ return Promise.resolve(jsonResponse({ status: "ok", tasks: { activeStreams: 0 } }));+ }+ if (path === "/api/search/providers") {+ return Promise.resolve(jsonResponse({ providers: [] }));+ }+ throw new Error(`Unexpected request: ${path}`);+ });++ renderEndpointPage();++ await waitForText("Endpoint");+ expect(document.body.textContent).toContain("Loading available models...");+ expect(fetchMock).toHaveBeenCalledWith("/v1/models");+ expect(fetchMock).not.toHaveBeenCalledWith("/api/tunnels/cloudflared", expect.anything());+ expect(fetchMock).not.toHaveBeenCalledWith("/api/tunnels/tailscale", expect.anything());++ modelsDeferred.resolve(+ jsonResponse({+ data: [+ {+ id: "openai/gpt-4o",+ owned_by: "openai",+ root: "gpt-4o",+ },+ {+ id: "openai/text-embedding-3-small",+ owned_by: "openai",+ root: "text-embedding-3-small",+ type: "embedding",+ },+ ],+ })+ );++ await waitForText("2 models across 4 endpoints");+ });++ it("does not start background endpoint requests after unmounting during settings load", async () => {+ const settingsDeferred = createDeferred<Response>();+ fetchMock.mockImplementation((input: RequestInfo | URL) => {+ const path = getRequestPath(input);+ if (path === "/api/settings") {+ return settingsDeferred.promise;+ }+ throw new Error(`Unexpected request after unmount: ${path}`);+ });++ const { unmount } = renderEndpointPage();+ unmount();++ await act(async () => {+ settingsDeferred.resolve(+ jsonResponse({+ cloudEnabled: false,+ cloudConfigured: false,+ hideEndpointCloudflaredTunnel: false,+ hideEndpointTailscaleFunnel: false,+ })+ );+ await settingsDeferred.promise;+ });++ const requestPaths = fetchMock.mock.calls.map(([input]) => getRequestPath(input));+ expect(requestPaths.length).toBeGreaterThan(0);+ expect(requestPaths.every((path) => path === "/api/settings")).toBe(true);+ });+});diff --git a/src/app/(dashboard)/dashboard/health/page.tsx b/src/app/(dashboard)/dashboard/health/page.tsxindex 5dad4cd35f..d4af48798e 100644--- a/src/app/(dashboard)/dashboard/health/page.tsx+++ b/src/app/(dashboard)/dashboard/health/page.tsx@@ -81,7 +81,7 @@ export default function HealthPage() {const fetchDbHealth = useCallback(async () => {try {- const res = await fetch("/api/v1/db/health");+ const res = await fetch("/api/db/health");if (!res.ok) throw new Error(`HTTP ${res.status}`);const json = await res.json();setDbHealth(json);@@ -138,7 +138,7 @@ export default function HealthPage() {const handleRepairDb = async () => {setRepairingDb(true);try {- const res = await fetch("/api/v1/db/health", { method: "POST" });+ const res = await fetch("/api/db/health", { method: "POST" });if (!res.ok) throw new Error(`HTTP ${res.status}`);const json = await res.json();setDbHealth(json);diff --git a/src/app/(dashboard)/dashboard/memory/page.tsx b/src/app/(dashboard)/dashboard/memory/page.tsxindex 526cc9debe..885727721a 100644--- a/src/app/(dashboard)/dashboard/memory/page.tsx+++ b/src/app/(dashboard)/dashboard/memory/page.tsx@@ -205,17 +205,21 @@ export default function MemoryPage() {{health !== null && (<spanclassName={`inline-block w-3 h-3 rounded-full ${health.working ? "bg-green-500" : "bg-red-500"}`}- title={health.working ? `Pipeline OK (${health.latencyMs}ms)` : "Pipeline error"}+ title={+ health.working+ ? t("pipelineOk", { latencyMs: health.latencyMs })+ : t("pipelineError")+ }/>)}{health === null && !checkingHealth && (<spanclassName="inline-block w-3 h-3 rounded-full bg-gray-400"- title="Health unknown"+ title={t("healthUnknown")}/>)}<Button variant="outline" size="sm" onClick={checkHealth} disabled={checkingHealth}>- {checkingHealth ? "Checking..." : "Check Health"}+ {checkingHealth ? t("checkingHealth") : t("checkHealth")}</Button></div></div>@@ -321,7 +325,7 @@ export default function MemoryPage() {<div className="flex items-center justify-between mt-4"><div className="text-sm text-gray-500">- Page {page} of {totalPages} ({total} total)+ {t("pageInfo", { page, totalPages, total })}</div><div className="flex gap-2"><Button@@ -330,7 +334,7 @@ export default function MemoryPage() {disabled={page === 1}onClick={() => setPage((p) => Math.max(1, p - 1))}>- Previous+ {t("previous")}</Button><Buttonvariant="outline"@@ -338,7 +342,7 @@ export default function MemoryPage() {disabled={page >= totalPages}onClick={() => setPage((p) => Math.min(totalPages, p + 1))}>- Next+ {t("next")}</Button></div></div>@@ -356,47 +360,47 @@ export default function MemoryPage() {onClick={() => setAddDialogOpen(false)}disabled={isSubmitting}>- Cancel+ {t("cancel")}</Button><ButtononClick={handleAddMemory}loading={isSubmitting}disabled={!newMemory.key || !newMemory.content}>- Save+ {t("save")}</Button></>}><div className="space-y-4"><div>- <label className="block text-sm font-medium mb-1">Type</label>+ <label className="block text-sm font-medium mb-1">{t("type")}</label><Selectvalue={newMemory.type}onChange={(e) => setNewMemory({ ...newMemory, type: e.target.value as any })}className="w-full">- <option value="factual">Factual</option>- <option value="episodic">Episodic</option>- <option value="procedural">Procedural</option>- <option value="semantic">Semantic</option>+ <option value="factual">{t("factual")}</option>+ <option value="episodic">{t("episodic")}</option>+ <option value="procedural">{t("procedural")}</option>+ <option value="semantic">{t("semantic")}</option></Select></div><div>- <label className="block text-sm font-medium mb-1">Key</label>+ <label className="block text-sm font-medium mb-1">{t("key")}</label><Inputvalue={newMemory.key}onChange={(e) => setNewMemory({ ...newMemory, key: e.target.value })}- placeholder="e.g., user_preference_theme"+ placeholder={t("keyPlaceholder")}className="w-full"/></div><div>- <label className="block text-sm font-medium mb-1">Content</label>+ <label className="block text-sm font-medium mb-1">{t("content")}</label><Inputvalue={newMemory.content}onChange={(e) => setNewMemory({ ...newMemory, content: e.target.value })}- placeholder="e.g., Prefers dark mode"+ placeholder={t("contentPlaceholder")}className="w-full"/></div>diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsxindex 25ad3c7f7b..5cefea5c4d 100644--- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx+++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx@@ -460,7 +460,7 @@ interface CooldownTimerProps {function getModelSourceBadgeClass(source?: string): string {switch (normalizeModelCatalogSource(source)) {- case "api-sync":+ case "imported":return "border-sky-500/30 bg-sky-500/10 text-sky-300";case "custom":return "border-emerald-500/30 bg-emerald-500/10 text-emerald-300";@@ -1041,12 +1041,12 @@ export default function ProviderDetailPage() {const isOAuth = providerSupportsOAuth && !providerSupportsPat;const registryModels = getModelsByProviderId(providerId);// Prefer synced API-discovered models when available, then merge built-ins- // and user-managed custom/imported models without duplicating IDs.+ // and user-managed custom models without duplicating IDs.const models = useMemo(() => {if (providerId === "gemini") {return syncedAvailableModels.map((model: any) => ({...model,- source: model?.source === "api-sync" ? "api-sync" : "api-sync",+ source: "imported",}));}@@ -1061,7 +1061,7 @@ export default function ProviderDetailPage() {.map((model: any) => ({id: model.id,name: model.name || model.id,- source: "api-sync",+ source: "imported",}));const knownIds = new Set([...registryIds, ...syncedExtras.map((model: any) => model.id)]);const customExtras = modelMeta.customModels@@ -1069,7 +1069,7 @@ export default function ProviderDetailPage() {.map((cm: any) => ({id: cm.id,name: cm.name || cm.id,- source: cm.source === "api-sync" ? "api-sync" : "custom",+ source: normalizeModelCatalogSource(cm.source) === "imported" ? "imported" : "custom",}));return [...builtInModels, ...syncedExtras, ...customExtras];}, [providerId, registryModels, syncedAvailableModels, modelMeta.customModels]);@@ -2097,6 +2097,9 @@ export default function ProviderDetailPage() {typeof data.importedChanges?.total === "number"? data.importedChanges.total: importedCount;+ const totalChangedCount =+ changedCount ++ (typeof data.customModelChanges?.total === "number" ? data.customModelChanges.total : 0);if (importedModels.length === 0) {setImportProgress((prev) => ({@@ -2113,7 +2116,7 @@ export default function ProviderDetailPage() {],importedCount,}));- if (changedCount > 0) {+ if (totalChangedCount > 0) {setTimeout(() => {window.location.reload();}, 2000);@@ -2142,7 +2145,7 @@ export default function ProviderDetailPage() {importedCount,}));- if (changedCount > 0) {+ if (totalChangedCount > 0) {setTimeout(() => {window.location.reload();}, 2000);diff --git a/src/app/api/v1/db/health/route.ts b/src/app/api/db/health/route.tssimilarity index 100%rename from src/app/api/v1/db/health/route.tsrename to src/app/api/db/health/route.tsdiff --git a/src/app/api/oauth/[provider]/[action]/route.ts b/src/app/api/oauth/[provider]/[action]/route.tsindex cf5dd090eb..0b31439e5c 100755--- a/src/app/api/oauth/[provider]/[action]/route.ts+++ b/src/app/api/oauth/[provider]/[action]/route.ts@@ -81,6 +81,8 @@ export async function GET(}const authData = generateAuthData(provider, null);+ const startUrl = searchParams.get("startUrl");+ const region = searchParams.get("region") || "us-east-1";// Resolve proxy for this provider (provider-level → global → direct)const proxy = await resolveProxyForProvider(provider);@@ -95,7 +97,24 @@ export async function GET(provider === "kilocode") {// GitHub, Kiro/Amazon Q, Kimi Coding, and KiloCode don't use PKCE for device code- deviceData = await runWithProxyContext(proxy, () => (requestDeviceCode as any)(provider));+ if ((provider === "kiro" || provider === "amazon-q") && startUrl) {+ const providerOverrideConfig = {+ ...providerData.config,+ startUrl,+ region,+ skipIssuerUrlForRegistration: true,+ registerClientUrl: `https://oidc.${region}.amazonaws.com/client/register`,+ deviceAuthUrl: `https://oidc.${region}.amazonaws.com/device_authorization`,+ tokenUrl: `https://oidc.${region}.amazonaws.com/token`,+ ssoOidcEndpoint: `https://oidc.${region}.amazonaws.com`,+ };++ deviceData = await runWithProxyContext(proxy, () =>+ (requestDeviceCode as any)(provider, null, providerOverrideConfig)+ );+ } else {+ deviceData = await runWithProxyContext(proxy, () => (requestDeviceCode as any)(provider));+ }} else {// Qwen and other providers use PKCEdeviceData = await runWithProxyContext(proxy, () =>diff --git a/src/app/api/pricing/models/route.ts b/src/app/api/pricing/models/route.tsindex 98882c4af1..e25ba2fcc1 100644--- a/src/app/api/pricing/models/route.ts+++ b/src/app/api/pricing/models/route.ts@@ -1,6 +1,6 @@import { NextResponse } from "next/server";import { REGISTRY } from "@omniroute/open-sse/config/providerRegistry.ts";-import { getAllCustomModels, getPricing } from "@/lib/localDb";+import { getAllCustomModels, getAllSyncedAvailableModels, getPricing } from "@/lib/localDb";function asRecord(value: unknown): Record<string, unknown> {return value && typeof value === "object" && !Array.isArray(value)@@ -20,8 +20,9 @@ function asModelArray(value: unknown): Array<{ id?: string; name?: string }> {* GET /api/pricing/models* Returns the full model catalog merged from three sources:* 1. providerRegistry (hardcoded)- * 2. customModels (DB — user-added or imported via /models)- * 3. pricing data (DB — models with pricing configured but not in sources 1/2)+ * 2. syncedAvailableModels (DB — discovered/imported from provider /models)+ * 3. customModels (DB — manually added models)+ * 4. pricing data (DB — models with pricing configured but not in sources 1/2/3)*/export async function GET() {try {@@ -46,25 +47,14 @@ export async function GET() {};}- // ── 2. Custom models (DB) ───────────────────────────────────────- let customModelsMap: Record<string, unknown> = {};- try {- customModelsMap = asRecord(await getAllCustomModels());- } catch {- /* DB may not be ready */- }-- for (const [providerId, rawModels] of Object.entries(customModelsMap)) {- const models = asModelArray(rawModels);- // Resolve alias — check if a registry entry maps this providerId- let alias = providerId;+ const resolveAlias = (providerId: string) => {for (const entry of Object.values(REGISTRY)) {- if (entry.id === providerId) {- alias = entry.alias || entry.id;- break;- }+ if (entry.id === providerId) return entry.alias || entry.id;}+ return providerId;+ };+ const ensureCatalogProvider = (providerId: string, alias: string) => {if (!catalog[alias]) {catalog[alias] = {id: providerId,@@ -75,25 +65,52 @@ export async function GET() {models: [],};}+ return catalog[alias];+ };++ const appendDbModels = (providerId: string, rawModels: unknown) => {+ const models = asModelArray(rawModels);+ const alias = resolveAlias(providerId);+ const providerCatalog = ensureCatalogProvider(providerId, alias);+ const existingIds = new Set(providerCatalog.models.map((m) => m.id));- const existingIds = new Set(catalog[alias].models.map((m) => m.id));for (const model of models) {const modelId = typeof model.id === "string" ? model.id : null;- if (!modelId || existingIds.has(modelId)) {- continue;- }- if (!existingIds.has(modelId)) {- catalog[alias].models.push({- id: modelId,- name: typeof model.name === "string" && model.name.trim() ? model.name : modelId,- custom: true,- });- existingIds.add(modelId);- }+ if (!modelId || existingIds.has(modelId)) continue;+ providerCatalog.models.push({+ id: modelId,+ name: typeof model.name === "string" && model.name.trim() ? model.name : modelId,+ custom: true,+ });+ existingIds.add(modelId);}+ };++ // ── 2. Synced available models (DB) ─────────────────────────────+ let syncedModelsMap: Record<string, unknown> = {};+ try {+ syncedModelsMap = asRecord(await getAllSyncedAvailableModels());+ } catch {+ /* DB may not be ready */+ }++ for (const [providerId, rawModels] of Object.entries(syncedModelsMap)) {+ appendDbModels(providerId, rawModels);+ }++ // ── 3. Custom models (DB) ───────────────────────────────────────+ let customModelsMap: Record<string, unknown> = {};+ try {+ customModelsMap = asRecord(await getAllCustomModels());+ } catch {+ /* DB may not be ready */+ }++ for (const [providerId, rawModels] of Object.entries(customModelsMap)) {+ appendDbModels(providerId, rawModels);}- // ── 3. Pricing-only models (DB) ─────────────────────────────────+ // ── 4. Pricing-only models (DB) ─────────────────────────────────let pricingData: Record<string, any> = {};try {pricingData = await getPricing();diff --git a/src/app/api/providers/[id]/sync-models/route.ts b/src/app/api/providers/[id]/sync-models/route.tsindex 9844deeb4d..a8b807985b 100644--- a/src/app/api/providers/[id]/sync-models/route.ts+++ b/src/app/api/providers/[id]/sync-models/route.ts@@ -1,5 +1,6 @@import { NextResponse } from "next/server";import { getProviderConnectionById } from "@/models";+import { getSyncedAvailableModelsForConnection } from "@/lib/db/models";import {importManagedModels,type ManagedModelImportMode,@@ -10,6 +11,7 @@ import {buildModelSyncInternalHeaders,isModelSyncInternalRequest,} from "@/shared/services/modelSyncScheduler";+import { GET as getProviderModels } from "../models/route";type JsonRecord = Record<string, unknown>;@@ -28,8 +30,8 @@ function normalizeModelForComparison(model: unknown) {const rawSource = toNonEmptyString(record.source)?.toLowerCase();const source =rawSource === "api-sync" || rawSource === "auto-sync" || rawSource === "imported"- ? "api-sync"- : rawSource || "auto-sync";+ ? "imported"+ : rawSource || "manual";const apiFormat = toNonEmptyString(record.apiFormat) || "chat-completions";const supportedEndpoints = Array.isArray(record.supportedEndpoints)? Array.from(@@ -56,6 +58,41 @@ function isManagedSyncedModel(model: unknown) {return source === "api-sync" || source === "auto-sync" || source === "imported";}+function getErrorMessageFromPayload(payload: JsonRecord): string | null {+ const error = payload.error;+ if (typeof error === "string" && error.trim().length > 0) {+ return error.trim();+ }++ const errorRecord = asRecord(error);+ return toNonEmptyString(errorRecord.message) || toNonEmptyString(payload.message);+}++async function readJsonResponse(response: Response): Promise<{+ data: JsonRecord;+ parseError: string | null;+}> {+ const body = await response.text();+ if (!body.trim()) {+ return {+ data: {},+ parseError: "Empty response body from /models",+ };+ }++ try {+ return {+ data: asRecord(JSON.parse(body)),+ parseError: null,+ };+ } catch {+ return {+ data: {},+ parseError: "Invalid JSON response from /models",+ };+ }+}+function summarizeModelChanges(previousModels: unknown, nextModels: unknown) {const previousList = Array.isArray(previousModels) ? previousModels : [];const nextList = Array.isArray(nextModels) ? nextModels : [];@@ -117,13 +154,54 @@ function getModelSyncChannelLabel(connection: unknown) {);}+async function fetchProviderModelsForSync(request: Request, connectionId: string) {+ // Construct a safe localhost URL from the incoming request's origin.+ // The route only accepts authenticated or internal-scheduler requests,+ // and the path is hardcoded — no user-controlled URL components reach fetch.+ const SAFE_HOSTS = new Set(["localhost", "127.0.0.1", "0.0.0.0", "::1"]);+ const incomingUrl = new URL(request.url);+ const safeOrigin = SAFE_HOSTS.has(incomingUrl.hostname)+ ? incomingUrl.origin+ : `http://127.0.0.1:${process.env.PORT || "20128"}`;+ const modelsPath = `/api/providers/${encodeURIComponent(connectionId)}/models?refresh=true`;+ const headers = {+ cookie: request.headers.get("cookie") || "",+ ...buildModelSyncInternalHeaders(),+ };++ try {+ return await fetch(new URL(modelsPath, safeOrigin).href, {+ method: "GET",+ cache: "no-store",+ headers,+ });+ } catch (error) {+ const message = error instanceof Error ? error.message : String(error);+ console.warn(+ `[ModelSync] Internal /models self-fetch failed for ${connectionId.slice(+ 0,+ 8+ )}; falling back to in-process route: ${message}`+ );++ return getProviderModels(+ new Request(new URL(modelsPath, "http://localhost").href, {+ method: "GET",+ headers,+ }),+ { params: { id: connectionId } }+ );+ }+}+/*** POST /api/providers/[id]/sync-models*- * Fetches the model list from a provider's /models endpoint and replaces the- * full custom models list for that provider while refreshing the per-connection- * discovery cache. Successful syncs only write a call log when the fetched- * channel actually changes the stored model list.+ * Fetches the model list from a provider's /models endpoint, stores discovered+ * models in the per-connection available-model cache, and removes matching+ * upstream-discovered rows from the provider's custom model list. Successful+ * syncs only write a call log when the fetched channel or custom model cleanup+ * changes stored model state.** Used by:* - modelSyncScheduler (auto-sync on interval)@@ -153,30 +231,21 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:logProvider = toNonEmptyString(connection.provider) || "unknown";channelLabel = getModelSyncChannelLabel(connection);+ const previousSyncedAvailableModelsForConnection = await getSyncedAvailableModelsForConnection(+ logProvider,+ id+ );- // Fetch models from the existing /api/providers/[id]/models endpoint.- // Construct a safe localhost URL from the incoming request's origin.- // The route only accepts authenticated or internal-scheduler requests,- // and the path is hardcoded — no user-controlled URL components reach fetch.- const SAFE_HOSTS = new Set(["localhost", "127.0.0.1", "0.0.0.0", "::1"]);- const incomingUrl = new URL(request.url);- const safeOrigin = SAFE_HOSTS.has(incomingUrl.hostname)- ? incomingUrl.origin- : `http://127.0.0.1:${process.env.PORT || "20128"}`;- const modelsPath = `/api/providers/${encodeURIComponent(id)}/models?refresh=true`;- const modelsRes = await fetch(new URL(modelsPath, safeOrigin).href, {- method: "GET",- cache: "no-store",- headers: {- cookie: request.headers.get("cookie") || "",- ...buildModelSyncInternalHeaders(),- },- });+ const modelsRes = await fetchProviderModelsForSync(request, id);const duration = Date.now() - start;- const modelsData = await modelsRes.json();+ const { data: modelsData, parseError } = await readJsonResponse(modelsRes);+ const payloadError = getErrorMessageFromPayload(modelsData);- if (!modelsRes.ok) {+ if (!modelsRes.ok || parseError) {+ const responseStatus = modelsRes.ok ? 502 : modelsRes.status;+ const logError = payloadError || parseError || `HTTP ${modelsRes.status}`;+ const responseError = payloadError || parseError || "Failed to fetch models";// Log the failed attemptawait saveCallLog({method: "GET",@@ -187,22 +256,35 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:sourceFormat: "-",connectionId: id,duration,- error: modelsData.error || `HTTP ${modelsRes.status}`,+ error: logError,requestType: "model-sync",+ ...(parseError+ ? {+ responseBody: {+ upstreamStatus: modelsRes.status,+ parseError,+ },+ }+ : {}),});return NextResponse.json(- { error: modelsData.error || "Failed to fetch models" },- { status: modelsRes.status }+ {+ error: responseError,+ ...(parseError ? { upstreamStatus: modelsRes.status } : {}),+ },+ { status: responseStatus });}const fetchedModels = modelsData.models || [];const {previousModels,+ previousSyncedAvailableModels,persistedModels,importedModels,discoveredModels,+ syncedAvailableModels,syncedAliases,importedChanges,} = await importManagedModels({@@ -210,22 +292,30 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:connectionId: id,fetchedModels,mode,+ previousSyncedAvailableModels: previousSyncedAvailableModelsForConnection,});- const modelChanges = summarizeModelChanges(previousModels, persistedModels);+ const effectiveAvailableModels =+ discoveredModels.length > 0 ? discoveredModels : syncedAvailableModels;+ const modelChanges = summarizeModelChanges(+ previousSyncedAvailableModels,+ effectiveAvailableModels+ );+ const customModelChanges = summarizeModelChanges(previousModels, persistedModels);const syncedModelsCount =- discoveredModels.length > 0- ? discoveredModels.length+ effectiveAvailableModels.length > 0+ ? effectiveAvailableModels.length: persistedModels.filter((model) => isManagedSyncedModel(model)).length;const availableModelsCount = new Set(- [...persistedModels, ...discoveredModels]+ [...persistedModels, ...effectiveAvailableModels].map((model) => toNonEmptyString(asRecord(model).id)).filter((modelId): modelId is string => Boolean(modelId))).size;const importedCount = importedChanges.added;const updatedCount = importedChanges.updated;+ const shouldLog = modelChanges.total > 0 || customModelChanges.total > 0;- if (modelChanges.total > 0) {+ if (shouldLog) {await saveCallLog({method: "GET",path: `/api/providers/${id}/models`,@@ -243,6 +333,7 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:provider: logProvider,channel: channelLabel,modelChanges,+ customModelChanges,importedCount,updatedCount,mode,@@ -258,10 +349,11 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:availableModelsCount,syncedAliases,modelChanges,+ customModelChanges,importedCount,updatedCount,importedChanges,- logged: modelChanges.total > 0,+ logged: shouldLog,models: persistedModels,importedModels,});diff --git a/src/app/api/tunnels/ngrok/route.ts b/src/app/api/tunnels/ngrok/route.tsnew file mode 100644index 0000000000..5fad841674--- /dev/null+++ b/src/app/api/tunnels/ngrok/route.ts@@ -0,0 +1,74 @@+import { NextRequest, NextResponse } from "next/server";+import { z } from "zod";+import { isAuthenticated } from "@/shared/utils/apiAuth";+import { isValidationFailure, validateBody } from "@/shared/validation/helpers";+import { getNgrokTunnelStatus, startNgrokTunnel, stopNgrokTunnel } from "@/lib/ngrokTunnel";++export const dynamic = "force-dynamic";++const actionSchema = z.object({+ action: z.enum(["enable", "disable"]),+ authToken: z.string().optional(),+});++function unauthorized() {+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 });+}++export async function GET(request: NextRequest) {+ if (!(await isAuthenticated(request))) {+ return unauthorized();+ }++ try {+ const status = await getNgrokTunnelStatus();+ return NextResponse.json(status);+ } catch (error) {+ return NextResponse.json(+ {+ error: error instanceof Error ? error.message : "Failed to load ngrok tunnel status",+ },+ { status: 500 }+ );+ }+}++export async function POST(request: NextRequest) {+ if (!(await isAuthenticated(request))) {+ return unauthorized();+ }++ let rawBody: unknown;+ try {+ rawBody = await request.json();+ } catch {+ return NextResponse.json({ error: "Invalid JSON body" }, { status: 400 });+ }++ const validation = validateBody(actionSchema, rawBody);+ if (isValidationFailure(validation)) {+ return validation.response;+ }++ const parsed = validation.data;++ try {+ const status =+ parsed.action === "enable"+ ? await startNgrokTunnel(parsed.authToken)+ : await stopNgrokTunnel();++ return NextResponse.json({+ success: true,+ action: parsed.action,+ status,+ });+ } catch (error) {+ return NextResponse.json(+ {+ error: error instanceof Error ? error.message : "Failed to update ngrok tunnel",+ },+ { status: 500 }+ );+ }+}diff --git a/src/app/api/v1/models/catalog.ts b/src/app/api/v1/models/catalog.tsindex e291961e60..962ca76e07 100644--- a/src/app/api/v1/models/catalog.ts+++ b/src/app/api/v1/models/catalog.ts@@ -478,6 +478,17 @@ export async function getUnifiedModelsResponse(const isProviderActive = (provider: string) => {if (activeAliases.size === 0) return false; // No active connections = show nothingconst alias = providerIdToAlias[provider] || provider;+ const canonicalProviderId = FALLBACK_ALIAS_TO_PROVIDER[alias] || provider;++ // FIX #1752: Ensure blocked providers are not returned for non-chat models+ if (+ blockedProviders.has(alias) ||+ blockedProviders.has(canonicalProviderId) ||+ blockedProviders.has(provider)+ ) {+ return false;+ }+return activeAliases.has(alias) || activeAliases.has(provider);};diff --git a/src/app/api/v1beta/models/route.ts b/src/app/api/v1beta/models/route.tsindex 37390e3f18..5d5aec0a8f 100644--- a/src/app/api/v1beta/models/route.ts+++ b/src/app/api/v1beta/models/route.ts@@ -1,5 +1,9 @@import { PROVIDER_MODELS } from "@/shared/constants/models";-import { getAllCustomModels, getSyncedAvailableModels } from "@/lib/db/models";+import {+ getAllCustomModels,+ getAllSyncedAvailableModels,+ getSyncedAvailableModels,+} from "@/lib/db/models";import { getResolvedModelCapabilities } from "@/lib/modelCapabilities";import { getSyncedCapabilities } from "@/lib/modelsDevSync";@@ -67,6 +71,46 @@ export async function GET() {console.error("[v1beta/models] Error fetching synced Gemini models:", err);}+ const existingNames = new Set(models.map((model) => (model as any).name));++ // Synced/imported models for non-Gemini providers+ try {+ const syncedModelsMap = await getAllSyncedAvailableModels();+ for (const [providerId, syncedModels] of Object.entries(syncedModelsMap)) {+ if (providerId === "gemini") continue;+ if (!Array.isArray(syncedModels)) continue;+ for (const m of syncedModels) {+ if (!m || typeof m.id !== "string") continue;+ const name = `models/${providerId}/${m.id}`;+ if (existingNames.has(name)) continue;+ const resolved = getResolvedModelCapabilities({+ provider: providerId,+ model: m.id,+ });+ models.push({+ name,+ displayName: m.name || m.id,+ ...(typeof m.description === "string" ? { description: m.description } : {}),+ supportedGenerationMethods: ["generateContent"],+ inputTokenLimit:+ typeof m.inputTokenLimit === "number"+ ? m.inputTokenLimit+ : resolved.maxInputTokens || resolved.contextWindow || 128000,+ outputTokenLimit:+ typeof m.outputTokenLimit === "number"+ ? m.outputTokenLimit+ : resolved.maxOutputTokens || 8192,+ ...(m.supportsThinking === true || resolved.supportsThinking === true+ ? { thinking: true }+ : {}),+ });+ existingNames.add(name);+ }+ }+ } catch {+ // Synced models are optional — skip on error+ }+// Custom models (use stored metadata from provider APIs)try {const customModelsMap = (await getAllCustomModels()) as Record<string, unknown>;@@ -83,8 +127,10 @@ export async function GET() {provider: providerId,model: String(m.id),});+ const name = `models/${providerId}/${m.id}`;+ if (existingNames.has(name)) continue;models.push({- name: `models/${providerId}/${m.id}`,+ name,displayName: m.name || m.id,...(typeof m.description === "string" ? { description: m.description } : {}),supportedGenerationMethods: ["generateContent"],@@ -100,6 +146,7 @@ export async function GET() {? { thinking: true }: {}),});+ existingNames.add(name);}}} catch {diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.jsonindex 24c73da4e6..60ea81b4be 100644--- a/src/i18n/messages/ar.json+++ b/src/i18n/messages/ar.json@@ -1728,6 +1728,7 @@"disableCloud": "تعطيل السحابة","enableCloud": "تمكين السحابة","modelsAcrossEndpoints": "نماذج {models} عبر نقاط النهاية {endpoints}",+ "loadingModels": "Loading available models...","chatDesc": "الدردشة المتدفقة وغير المتدفقة مع جميع مقدمي الخدمة","embeddings": "التضمين","embeddingsDesc": "تضمينات نصية للبحث وخطوط أنابيب RAG",diff --git a/src/i18n/messages/bg.json b/src/i18n/messages/bg.jsonindex 7df37dab8b..0d13117ca7 100644--- a/src/i18n/messages/bg.json+++ b/src/i18n/messages/bg.json@@ -1728,6 +1728,7 @@"disableCloud": "Деактивиране на облака","enableCloud": "Активиране на облака","modelsAcrossEndpoints": "{models} модели в {endpoints} крайни точки",+ "loadingModels": "Loading available models...","chatDesc": "Поточно и нестрийминг чат с всички доставчици","embeddings": "Вграждания","embeddingsDesc": "Текстови вграждания за търсене и RAG тръбопроводи",diff --git a/src/i18n/messages/bn.json b/src/i18n/messages/bn.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/bn.json+++ b/src/i18n/messages/bn.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/cs.json b/src/i18n/messages/cs.jsonindex 07cb1a4522..99e013bf8f 100644--- a/src/i18n/messages/cs.json+++ b/src/i18n/messages/cs.json@@ -1728,6 +1728,7 @@"disableCloud": "Zakázat cloud","enableCloud": "Povolit cloud","modelsAcrossEndpoints": "{models} modelů napříč koncovými body {endpoints}",+ "loadingModels": "Načítání dostupných modelů...","chatDesc": "Streamovací i nestreamovací chat se všemi poskytovateli","embeddings": "Vkládání","embeddingsDesc": "Vkládání textu pro vyhledávání a RAG kanály",diff --git a/src/i18n/messages/da.json b/src/i18n/messages/da.jsonindex 7d21e3ffa4..acd1846e33 100644--- a/src/i18n/messages/da.json+++ b/src/i18n/messages/da.json@@ -1728,6 +1728,7 @@"disableCloud": "Deaktiver Cloud","enableCloud": "Aktiver Cloud","modelsAcrossEndpoints": "{models} modeller på tværs af {endpoints} slutpunkter",+ "loadingModels": "Loading available models...","chatDesc": "Streaming og ikke-streaming chat med alle udbydere","embeddings": "Indlejringer","embeddingsDesc": "Tekstindlejringer til søge- og RAG-pipelines",diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.jsonindex b392bdb37d..e479fb070b 100644--- a/src/i18n/messages/de.json+++ b/src/i18n/messages/de.json@@ -1728,6 +1728,7 @@"disableCloud": "Cloud deaktivieren","enableCloud": "Cloud aktivieren","modelsAcrossEndpoints": "{models} Modelle über {endpoints} Endpunkte hinweg",+ "loadingModels": "Loading available models...","chatDesc": "Streaming- und Nicht-Streaming-Chat mit allen Anbietern","embeddings": "Einbettungen","embeddingsDesc": "Texteinbettungen für Such- und RAG-Pipelines",diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.jsonindex 0c36d058eb..8f7028f435 100644--- a/src/i18n/messages/en.json+++ b/src/i18n/messages/en.json@@ -1833,6 +1833,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",@@ -1980,7 +1981,24 @@"tailscaleInstallPasswordHint": "On macOS and Linux, sudo may be required for the package install and daemon start.","tailscaleSudoPlaceholder": "Optional sudo password","tailscaleInstalling": "Installing",- "tailscaleSudoLabel": "Sudo Password (required on macOS/Linux)"+ "tailscaleSudoLabel": "Sudo Password (required on macOS/Linux)",+ "ngrokTitle": "ngrok Tunnel",+ "ngrokRunning": "Running",+ "ngrokStarting": "Starting",+ "ngrokStoppedState": "Stopped",+ "ngrokNeedsAuth": "Needs Auth",+ "ngrokNotInstalled": "Not installed",+ "ngrokUnsupported": "Unsupported",+ "ngrokError": "Error",+ "ngrokEnable": "Enable Tunnel",+ "ngrokDisable": "Stop Tunnel",+ "ngrokUrlNotice": "Creates a public ngrok tunnel.",+ "ngrokAuthTokenLabel": "Authtoken (Required if NGROK_AUTHTOKEN not set)",+ "ngrokAuthTokenPlaceholder": "Enter your ngrok authtoken",+ "ngrokLastError": "Last error: {error}",+ "ngrokStarted": "ngrok tunnel started",+ "ngrokStopped": "ngrok tunnel stopped",+ "ngrokRequestFailed": "Failed to update ngrok tunnel"},"endpoints": {"tabProxy": "Endpoint Proxy",diff --git a/src/i18n/messages/es.json b/src/i18n/messages/es.jsonindex 30135c685c..3a013f897b 100644--- a/src/i18n/messages/es.json+++ b/src/i18n/messages/es.json@@ -1728,6 +1728,7 @@"disableCloud": "Deshabilitar la nube","enableCloud": "Habilitar la nube","modelsAcrossEndpoints": "{models} modelos en {endpoints} puntos finales",+ "loadingModels": "Loading available models...","chatDesc": "Chat streaming y no streaming con todos los proveedores","embeddings": "Incrustaciones","embeddingsDesc": "Inserciones de texto para búsqueda y canales RAG",diff --git a/src/i18n/messages/fa.json b/src/i18n/messages/fa.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/fa.json+++ b/src/i18n/messages/fa.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/fi.json b/src/i18n/messages/fi.jsonindex df906fff20..33f9f7fe45 100644--- a/src/i18n/messages/fi.json+++ b/src/i18n/messages/fi.json@@ -1728,6 +1728,7 @@"disableCloud": "Poista Cloud käytöstä","enableCloud": "Ota Cloud käyttöön","modelsAcrossEndpoints": "{models} mallit {endpoints} päätepisteen välillä",+ "loadingModels": "Loading available models...","chatDesc": "Suoratoisto ja ei-striimaus chat kaikkien palveluntarjoajien kanssa","embeddings": "Upotukset","embeddingsDesc": "Tekstin upotukset haku- ja RAG-putkistoja varten",diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.jsonindex c81017f2a9..d0bbf6c5ec 100644--- a/src/i18n/messages/fr.json+++ b/src/i18n/messages/fr.json@@ -1728,6 +1728,7 @@"disableCloud": "Désactiver le cloud","enableCloud": "Activer le cloud","modelsAcrossEndpoints": "Modèles {models} sur {endpoints} points de terminaison",+ "loadingModels": "Loading available models...","chatDesc": "Chat en streaming et sans streaming avec tous les fournisseurs","embeddings": "Intégrations","embeddingsDesc": "Intégrations de texte pour les pipelines de recherche et RAG",diff --git a/src/i18n/messages/gu.json b/src/i18n/messages/gu.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/gu.json+++ b/src/i18n/messages/gu.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.jsonindex cb44fc19b4..7fade3bdfa 100644--- a/src/i18n/messages/he.json+++ b/src/i18n/messages/he.json@@ -1728,6 +1728,7 @@"disableCloud": "השבת את הענן","enableCloud": "אפשר ענן","modelsAcrossEndpoints": "מודלים {models} על פני {endpoints} נקודות קצה",+ "loadingModels": "Loading available models...","chatDesc": "צ'אט בסטרימינג ושלא בסטרימינג עם כל הספקים","embeddings": "הטבעות","embeddingsDesc": "הטמעת טקסט עבור חיפוש וצינורות RAG",diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.jsonindex 3d6e2f5dca..98d8b21ade 100644--- a/src/i18n/messages/hi.json+++ b/src/i18n/messages/hi.json@@ -1728,6 +1728,7 @@"disableCloud": "बादल अक्षम करें","enableCloud": "क्लाउड सक्षम करें","modelsAcrossEndpoints": "{models} मॉडल {endpoints} समापन बिंदु पर",+ "loadingModels": "Loading available models...","chatDesc": "सभी प्रदाताओं के साथ स्ट्रीमिंग और गैर-स्ट्रीमिंग चैट","embeddings": "एंबेडिंग","embeddingsDesc": "खोज और RAG पाइपलाइनों के लिए टेक्स्ट एम्बेडिंग",diff --git a/src/i18n/messages/hu.json b/src/i18n/messages/hu.jsonindex 9e2acf95c4..733a345323 100644--- a/src/i18n/messages/hu.json+++ b/src/i18n/messages/hu.json@@ -1728,6 +1728,7 @@"disableCloud": "Felhő letiltása","enableCloud": "Felhő engedélyezése","modelsAcrossEndpoints": "{models} modellek {endpoints} végpontokon keresztül",+ "loadingModels": "Loading available models...","chatDesc": "Streaming és nem streaming csevegés minden szolgáltatóval","embeddings": "Beágyazások","embeddingsDesc": "Szövegbeágyazások keresési és RAG-folyamatokhoz",diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.jsonindex bbbe0f6280..9261de026b 100644--- a/src/i18n/messages/id.json+++ b/src/i18n/messages/id.json@@ -1728,6 +1728,7 @@"disableCloud": "Nonaktifkan Awan","enableCloud": "Aktifkan Awan","modelsAcrossEndpoints": "{models} model di seluruh titik akhir {endpoints}",+ "loadingModels": "Loading available models...","chatDesc": "Obrolan streaming & non-streaming dengan semua penyedia","embeddings": "Penyematan","embeddingsDesc": "Penyematan teks untuk saluran pencarian & RAG",diff --git a/src/i18n/messages/in.json b/src/i18n/messages/in.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/in.json+++ b/src/i18n/messages/in.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.jsonindex 71fcecbf68..f50718524d 100644--- a/src/i18n/messages/it.json+++ b/src/i18n/messages/it.json@@ -1728,6 +1728,7 @@"disableCloud": "Disabilita Nuvola","enableCloud": "Abilita nuvola","modelsAcrossEndpoints": "Modelli {models} sugli endpoint {endpoints}",+ "loadingModels": "Loading available models...","chatDesc": "Chat in streaming e non in streaming con tutti i provider","embeddings": "Incorporamenti","embeddingsDesc": "Incorporamenti di testo per pipeline di ricerca e RAG",diff --git a/src/i18n/messages/ja.json b/src/i18n/messages/ja.jsonindex 89252a3f6e..e6c9f1a78e 100644--- a/src/i18n/messages/ja.json+++ b/src/i18n/messages/ja.json@@ -1728,6 +1728,7 @@"disableCloud": "クラウドを無効にする","enableCloud": "クラウドを有効にする","modelsAcrossEndpoints": "{endpoints} エンドポイントにわたる {models} モデル",+ "loadingModels": "Loading available models...","chatDesc": "すべてのプロバイダーとのストリーミングおよび非ストリーミング チャット","embeddings": "埋め込み","embeddingsDesc": "検索および RAG パイプライン用のテキスト埋め込み",diff --git a/src/i18n/messages/ko.json b/src/i18n/messages/ko.jsonindex 9ae850aba4..c2fd694265 100644--- a/src/i18n/messages/ko.json+++ b/src/i18n/messages/ko.json@@ -1728,6 +1728,7 @@"disableCloud": "클라우드 비활성화","enableCloud": "클라우드 활성화","modelsAcrossEndpoints": "{endpoints} 엔드포인트 전반의 {models} 모델",+ "loadingModels": "Loading available models...","chatDesc": "모든 제공업체와의 스트리밍 및 비스트리밍 채팅","embeddings": "임베딩","embeddingsDesc": "검색 및 RAG 파이프라인을 위한 텍스트 임베딩",diff --git a/src/i18n/messages/mr.json b/src/i18n/messages/mr.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/mr.json+++ b/src/i18n/messages/mr.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/ms.json b/src/i18n/messages/ms.jsonindex a2755fb439..923c6fecff 100644--- a/src/i18n/messages/ms.json+++ b/src/i18n/messages/ms.json@@ -1728,6 +1728,7 @@"disableCloud": "Lumpuhkan Cloud","enableCloud": "Dayakan Cloud","modelsAcrossEndpoints": "{models} model merentas {endpoints} titik akhir",+ "loadingModels": "Loading available models...","chatDesc": "Sembang penstriman & bukan penstriman dengan semua pembekal","embeddings": "Embeddings","embeddingsDesc": "Pembenaman teks untuk carian & saluran paip RAG",diff --git a/src/i18n/messages/nl.json b/src/i18n/messages/nl.jsonindex 5cc649acc6..87f0bdc5a3 100644--- a/src/i18n/messages/nl.json+++ b/src/i18n/messages/nl.json@@ -1728,6 +1728,7 @@"disableCloud": "Schakel Cloud uit","enableCloud": "Schakel Cloud in","modelsAcrossEndpoints": "{models} modellen voor {endpoints} eindpunten",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat met alle providers","embeddings": "Inbedding","embeddingsDesc": "Tekstinsluitingen voor zoek- en RAG-pijplijnen",diff --git a/src/i18n/messages/no.json b/src/i18n/messages/no.jsonindex f324e86394..7f420cd60c 100644--- a/src/i18n/messages/no.json+++ b/src/i18n/messages/no.json@@ -1728,6 +1728,7 @@"disableCloud": "Deaktiver Cloud","enableCloud": "Aktiver Cloud","modelsAcrossEndpoints": "{models} modeller på tvers av {endpoints} endepunkter",+ "loadingModels": "Loading available models...","chatDesc": "Streaming og ikke-streaming chat med alle leverandører","embeddings": "Innstøpinger","embeddingsDesc": "Tekstinnbygging for søk og RAG-rørledninger",diff --git a/src/i18n/messages/phi.json b/src/i18n/messages/phi.jsonindex dc68fede35..47cb2b0ea0 100644--- a/src/i18n/messages/phi.json+++ b/src/i18n/messages/phi.json@@ -1728,6 +1728,7 @@"disableCloud": "Huwag paganahin ang Cloud","enableCloud": "Paganahin ang Cloud","modelsAcrossEndpoints": "{models} na mga modelo sa {endpoints} na mga endpoint",+ "loadingModels": "Loading available models...","chatDesc": "Streaming at non-streaming na chat sa lahat ng provider","embeddings": "Mga pag-embed","embeddingsDesc": "Mga text embed para sa paghahanap at RAG pipeline",diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.jsonindex 46fadd3785..fccc303a88 100644--- a/src/i18n/messages/pl.json+++ b/src/i18n/messages/pl.json@@ -1728,6 +1728,7 @@"disableCloud": "Wyłącz chmurę","enableCloud": "Włącz chmurę","modelsAcrossEndpoints": "{models} modele w {endpoints} punktach końcowych",+ "loadingModels": "Loading available models...","chatDesc": "Czat strumieniowy i niestreamingowy ze wszystkimi dostawcami","embeddings": "Osadzenia","embeddingsDesc": "Osadzanie tekstu dla potoków wyszukiwania i RAG",diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.jsonindex 7699421d57..f796253b88 100644--- a/src/i18n/messages/pt-BR.json+++ b/src/i18n/messages/pt-BR.json@@ -1755,6 +1755,7 @@"disableCloud": "Desativar Nuvem","enableCloud": "Ativar Nuvem","modelsAcrossEndpoints": "{models} modelos em {endpoints} endpoints",+ "loadingModels": "Carregando modelos disponíveis...","chatDesc": "Chat streaming e não-streaming com todos os provedores","embeddings": "Incorporações","embeddingsDesc": "Embeddings de texto para busca e pipelines RAG",@@ -1902,7 +1903,24 @@"tailscaleInstallPasswordHint": "On macOS and Linux, sudo may be required for the package install and daemon start.","tailscaleSudoPlaceholder": "Optional sudo password","tailscaleInstalling": "Installing",- "tailscaleSudoLabel": "Senha Sudo (obrigatória em macOS/Linux)"+ "tailscaleSudoLabel": "Senha Sudo (obrigatória em macOS/Linux)",+ "ngrokTitle": "Túnel ngrok",+ "ngrokRunning": "Rodando",+ "ngrokStarting": "Iniciando",+ "ngrokStoppedState": "Parado",+ "ngrokNeedsAuth": "Requer Autenticação",+ "ngrokNotInstalled": "Não instalado",+ "ngrokUnsupported": "Não suportado",+ "ngrokError": "Erro",+ "ngrokEnable": "Habilitar Túnel",+ "ngrokDisable": "Parar Túnel",+ "ngrokUrlNotice": "Cria um túnel público ngrok.",+ "ngrokAuthTokenLabel": "Authtoken (Necessário caso NGROK_AUTHTOKEN não esteja definido)",+ "ngrokAuthTokenPlaceholder": "Digite seu authtoken do ngrok",+ "ngrokLastError": "Último erro: {error}",+ "ngrokStarted": "Túnel ngrok iniciado",+ "ngrokStopped": "Túnel ngrok parado",+ "ngrokRequestFailed": "Falha ao atualizar túnel ngrok"},"endpoints": {"tabProxy": "Proxy de terminal",diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.jsonindex c7369919f5..e27f865647 100644--- a/src/i18n/messages/pt.json+++ b/src/i18n/messages/pt.json@@ -1728,6 +1728,7 @@"disableCloud": "Desativar nuvem","enableCloud": "Habilitar nuvem","modelsAcrossEndpoints": "Modelos {models} em endpoints {endpoints}",+ "loadingModels": "Loading available models...","chatDesc": "Bate-papo com e sem streaming com todos os provedores","embeddings": "Incorporações","embeddingsDesc": "Incorporações de texto para pipelines de pesquisa e RAG",@@ -1874,7 +1875,24 @@"tailscaleInstallIntro": "Installs Tailscale on this machine and prepares OmniRoute to enable Funnel.","tailscaleInstallPasswordHint": "On macOS and Linux, sudo may be required for the package install and daemon start.","tailscaleSudoPlaceholder": "Optional sudo password",- "tailscaleInstalling": "Installing"+ "tailscaleInstalling": "Installing",+ "ngrokTitle": "Túnel ngrok",+ "ngrokRunning": "Rodando",+ "ngrokStarting": "Iniciando",+ "ngrokStoppedState": "Parado",+ "ngrokNeedsAuth": "Requer Autenticação",+ "ngrokNotInstalled": "Não instalado",+ "ngrokUnsupported": "Não suportado",+ "ngrokError": "Erro",+ "ngrokEnable": "Habilitar Túnel",+ "ngrokDisable": "Parar Túnel",+ "ngrokUrlNotice": "Cria um túnel público ngrok.",+ "ngrokAuthTokenLabel": "Authtoken (Necessário caso NGROK_AUTHTOKEN não esteja definido)",+ "ngrokAuthTokenPlaceholder": "Digite seu authtoken do ngrok",+ "ngrokLastError": "Último erro: {error}",+ "ngrokStarted": "Túnel ngrok iniciado",+ "ngrokStopped": "Túnel ngrok parado",+ "ngrokRequestFailed": "Falha ao atualizar túnel ngrok"},"endpoints": {"tabProxy": "Endpoint Proxy",diff --git a/src/i18n/messages/ro.json b/src/i18n/messages/ro.jsonindex 382cef4020..09e5d7c7fc 100644--- a/src/i18n/messages/ro.json+++ b/src/i18n/messages/ro.json@@ -1728,6 +1728,7 @@"disableCloud": "Dezactivați Cloud","enableCloud": "Activați Cloud","modelsAcrossEndpoints": "{models} modele în {endpoints} puncte finale",+ "loadingModels": "Loading available models...","chatDesc": "Chat în flux și non-stream cu toți furnizorii","embeddings": "Înglobări","embeddingsDesc": "Încorporare de text pentru conductele de căutare și RAG",diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.jsonindex 8d1f489110..f93064b68d 100644--- a/src/i18n/messages/ru.json+++ b/src/i18n/messages/ru.json@@ -1752,6 +1752,7 @@"disableCloud": "Отключить облако","enableCloud": "Включить облако","modelsAcrossEndpoints": "{models} модели на {endpoints} конечных точках",+ "loadingModels": "Загрузка доступных моделей...","chatDesc": "Потоковое и непотоковое чат со всеми провайдерами","embeddings": "Вложения","embeddingsDesc": "Встраивание текста для конвейеров поиска и RAG",diff --git a/src/i18n/messages/sk.json b/src/i18n/messages/sk.jsonindex 90c90e3537..e6468d0fb2 100644--- a/src/i18n/messages/sk.json+++ b/src/i18n/messages/sk.json@@ -1728,6 +1728,7 @@"disableCloud": "Zakázať cloud","enableCloud": "Povoliť cloud","modelsAcrossEndpoints": "{models} modelov v {endpoints} koncových bodoch",+ "loadingModels": "Loading available models...","chatDesc": "Streaming a non-streaming chat so všetkými poskytovateľmi","embeddings": "Vloženie","embeddingsDesc": "Textové vloženie pre vyhľadávanie a RAG potrubia",diff --git a/src/i18n/messages/sv.json b/src/i18n/messages/sv.jsonindex f782de3c2c..a4423b2711 100644--- a/src/i18n/messages/sv.json+++ b/src/i18n/messages/sv.json@@ -1728,6 +1728,7 @@"disableCloud": "Inaktivera Cloud","enableCloud": "Aktivera Cloud","modelsAcrossEndpoints": "{models} modeller över {endpoints} slutpunkter",+ "loadingModels": "Loading available models...","chatDesc": "Strömmande och icke-strömmande chatt med alla leverantörer","embeddings": "Inbäddningar","embeddingsDesc": "Textinbäddningar för sök- och RAG-pipelines",diff --git a/src/i18n/messages/sw.json b/src/i18n/messages/sw.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/sw.json+++ b/src/i18n/messages/sw.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/ta.json b/src/i18n/messages/ta.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/ta.json+++ b/src/i18n/messages/ta.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/te.json b/src/i18n/messages/te.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/te.json+++ b/src/i18n/messages/te.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.jsonindex 7eed51c7d6..52f0bc361d 100644--- a/src/i18n/messages/th.json+++ b/src/i18n/messages/th.json@@ -1728,6 +1728,7 @@"disableCloud": "ปิดการใช้งานคลาวด์","enableCloud": "เปิดใช้งานคลาวด์","modelsAcrossEndpoints": "{models} โมเดลข้ามจุดสิ้นสุด {endpoints}",+ "loadingModels": "Loading available models...","chatDesc": "การแชทแบบสตรีมมิงและไม่สตรีมกับผู้ให้บริการทั้งหมด","embeddings": "การฝัง","embeddingsDesc": "การฝังข้อความสำหรับการค้นหาและไปป์ไลน์ RAG",diff --git a/src/i18n/messages/tr.json b/src/i18n/messages/tr.jsonindex 79c06bcd15..d282b0617c 100644--- a/src/i18n/messages/tr.json+++ b/src/i18n/messages/tr.json@@ -1728,6 +1728,7 @@"disableCloud": "Bulutu Devre Dışı Bırak","enableCloud": "Bulutu Etkinleştir","modelsAcrossEndpoints": "{endpoints} uç noktada {models} model",+ "loadingModels": "Kullanılabilir modeller yükleniyor...","chatDesc": "Tüm sağlayıcılarla akışlı ve akışsız sohbet","embeddings": "Embedding'ler","embeddingsDesc": "Arama ve RAG iş akışları için metin embedding'leri",diff --git a/src/i18n/messages/uk-UA.json b/src/i18n/messages/uk-UA.jsonindex 59f17551dd..1918225e9a 100644--- a/src/i18n/messages/uk-UA.json+++ b/src/i18n/messages/uk-UA.json@@ -1728,6 +1728,7 @@"disableCloud": "Вимкнути хмару","enableCloud": "Увімкнути хмару","modelsAcrossEndpoints": "{models} моделей через {endpoints} кінцевих точок",+ "loadingModels": "Loading available models...","chatDesc": "Потоковий і непотоковий чат з усіма провайдерами","embeddings": "Вбудовування","embeddingsDesc": "Вбудовування тексту для конвеєрів пошуку та RAG",diff --git a/src/i18n/messages/ur.json b/src/i18n/messages/ur.jsonindex 4adc83cae0..f0a6007d1e 100644--- a/src/i18n/messages/ur.json+++ b/src/i18n/messages/ur.json@@ -1832,6 +1832,7 @@"disableCloud": "Disable Cloud","enableCloud": "Enable Cloud","modelsAcrossEndpoints": "{models} models across {endpoints} endpoints",+ "loadingModels": "Loading available models...","chatDesc": "Streaming & non-streaming chat with all providers","embeddings": "Embeddings","embeddingsDesc": "Text embeddings for search & RAG pipelines",diff --git a/src/i18n/messages/vi.json b/src/i18n/messages/vi.jsonindex dbf4cb40f4..c02f68f5c2 100644--- a/src/i18n/messages/vi.json+++ b/src/i18n/messages/vi.json@@ -1728,6 +1728,7 @@"disableCloud": "Tắt đám mây","enableCloud": "Kích hoạt đám mây","modelsAcrossEndpoints": "{models} mô hình trên {endpoints} điểm cuối",+ "loadingModels": "Loading available models...","chatDesc": "Trò chuyện trực tuyến và không phát trực tuyến với tất cả các nhà cung cấp","embeddings": "Nhúng","embeddingsDesc": "Nhúng văn bản cho đường dẫn tìm kiếm & RAG",diff --git a/src/i18n/messages/zh-CN.json b/src/i18n/messages/zh-CN.jsonindex 3f7f512e60..429d83ecac 100644--- a/src/i18n/messages/zh-CN.json+++ b/src/i18n/messages/zh-CN.json@@ -1335,13 +1335,17 @@}}},- "autoConfiguredTab": "Auto Configured Tab",- "toolCategoriesDesc": "Tool Categories Desc",- "allToolsTab": "All Tools Tab",- "guidedClientsTab": "Guided Clients Tab",- "mitmClientsTab": "Mitm Clients Tab",- "toolCategories": "Tool Categories",- "visibleToolsCount": "Visible Tools Count"+ "autoConfiguredTab": "自动配置",+ "toolCategoriesDesc": "配置 AI 编程助手通过 OmniRoute 路由",+ "allToolsTab": "所有工具",+ "guidedClientsTab": "引导客户端",+ "mitmClientsTab": "MITM 客户端",+ "customCliTab": "自定义 CLI",+ "toolCategories": "工具分类",+ "visibleToolsCount": "{count} 个工具可用",+ "installationGuide": "安装指南",+ "whenToUseLabel": "何时使用",+ "openToolDocs": "打开工具文档"},"combos": {"title": "组合",@@ -1826,6 +1830,7 @@"disableCloud": "禁用云端","enableCloud": "启用云端","modelsAcrossEndpoints": "{endpoints} 个端点共提供 {models} 个模型",+ "loadingModels": "正在加载可用模型...","chatDesc": "支持所有提供商的流式与非流式聊天","embeddings": "Embeddings","embeddingsDesc": "用于搜索和 RAG 流程的文本向量",@@ -4324,7 +4329,9 @@"addMemory": "添加记忆","type": "类型","key": "键",+ "keyPlaceholder": "例如:user_preference_theme","content": "内容",+ "contentPlaceholder": "例如:偏好深色模式","created": "创建时间","actions": "操作","delete": "删除",@@ -4332,7 +4339,16 @@"episodic": "情景型","procedural": "程序型","semantic": "语义型",- "a": "A"+ "previous": "上一页",+ "next": "下一页",+ "pageInfo": "第 {page} 页,共 {totalPages} 页(共 {total} 条)",+ "checkingHealth": "检查中...",+ "checkHealth": "检查健康",+ "pipelineOk": "Pipeline 正常 ({latencyMs}ms)",+ "pipelineError": "Pipeline 错误",+ "healthUnknown": "健康状态未知",+ "cancel": "取消",+ "save": "保存"},"skills": {"title": "技能",diff --git a/src/lib/combos/builderOptions.ts b/src/lib/combos/builderOptions.tsindex 0aea042b83..6bb17a8a71 100644--- a/src/lib/combos/builderOptions.ts+++ b/src/lib/combos/builderOptions.ts@@ -21,7 +21,7 @@ import type { RegistryModel } from "@omniroute/open-sse/config/providerRegistry.type JsonRecord = Record<string, unknown>;-type BuilderModelSource = "api-sync" | "system" | "custom" | "fallback";+type BuilderModelSource = "imported" | "system" | "custom" | "fallback";type BuilderConnectionStatus = "active" | "inactive" | "rate-limited" | "error";type ProviderVisual = { icon: string; color: string; source: "system" | "provider-node" };@@ -159,7 +159,7 @@ function isChatCapable(supportedEndpoints: string[] | undefined): boolean {function getSourcePriority(source: BuilderModelSource): number {switch (source) {- case "api-sync":+ case "imported":return 0;case "system":return 1;@@ -412,7 +412,7 @@ export async function getComboBuilderOptions(): Promise<ComboBuilderOptionsPayloaddModelOption(modelMap, providerId, {id: toStringOrNull(model.id),name: toStringOrNull(model.name),- source: "api-sync",+ source: "imported",supportedEndpoints: toStringArray(model.supportedEndpoints),contextLength: toNumberOrNull(model.inputTokenLimit) ?? resolved.contextWindow,outputTokenLimit: toNumberOrNull(model.outputTokenLimit) ?? resolved.maxOutputTokens,@@ -440,8 +440,11 @@ export async function getComboBuilderOptions(): Promise<ComboBuilderOptionsPaylofor (const model of customModels) {if (model.isHidden === true) continue;- const source =- toStringOrNull(model.source) === "api-sync" ? "api-sync" : ("custom" as BuilderModelSource);+ const source = ["api-sync", "auto-sync", "imported"].includes(+ toStringOrNull(model.source)?.toLowerCase() || ""+ )+ ? "imported"+ : ("custom" as BuilderModelSource);const resolved = getResolvedModelCapabilities({provider: providerId,model: toStringOrNull(model.id),diff --git a/src/lib/db/core.ts b/src/lib/db/core.tsindex 4a0deee28d..bf2b55d879 100644--- a/src/lib/db/core.ts+++ b/src/lib/db/core.ts@@ -345,6 +345,22 @@ const SCHEMA_SQL = `);CREATE INDEX IF NOT EXISTS idx_sc_sig ON semantic_cache(signature);CREATE INDEX IF NOT EXISTS idx_sc_model ON semantic_cache(model);++ CREATE TABLE IF NOT EXISTS quota_snapshots (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ provider TEXT NOT NULL,+ connection_id TEXT NOT NULL,+ window_key TEXT NOT NULL,+ remaining_percentage REAL,+ is_exhausted INTEGER DEFAULT 0,+ next_reset_at TEXT,+ window_duration_ms INTEGER,+ raw_data TEXT,+ created_at TEXT NOT NULL DEFAULT (datetime('now'))+ );+ CREATE INDEX IF NOT EXISTS idx_quota_snapshots_provider_time ON quota_snapshots(provider, created_at);+ CREATE INDEX IF NOT EXISTS idx_quota_snapshots_connection_time ON quota_snapshots(connection_id, created_at);+ CREATE INDEX IF NOT EXISTS idx_quota_snapshots_created_at ON quota_snapshots(created_at);`;// ──────────────── Column Mapping ────────────────diff --git a/src/lib/db/models.ts b/src/lib/db/models.tsindex 4f7693c4d4..a3b2fc7f2f 100644--- a/src/lib/db/models.ts+++ b/src/lib/db/models.ts@@ -234,6 +234,10 @@ function asRecord(value: unknown): JsonRecord {return value && typeof value === "object" && !Array.isArray(value) ? (value as JsonRecord) : {};}+function toNonEmptyString(value: unknown): string | null {+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;+}+function getKeyValue(row: unknown): { key: string | null; value: string | null } {const record = asRecord(row);return {@@ -378,7 +382,7 @@ export async function addCustomModel(}/**- * Replace the entire custom models list for a provider (used by auto-sync).+ * Replace the entire custom models list for a provider.* Preserves per-model compatibility overrides for models that still exist.*/export async function replaceCustomModels(@@ -397,7 +401,7 @@ export async function replaceCustomModels({ allowEmpty = false }: { allowEmpty?: boolean } = {}) {// Guard: skip destructive clear when the caller hasn't explicitly opted in.- // This prevents auto-sync from wiping manually-imported models when the+ // This prevents callers from wiping manually added models when the// upstream /models endpoint fails, times out, or returns an empty list.if (models.length === 0 && !allowEmpty) {const existing = await getCustomModels(providerId);@@ -520,7 +524,7 @@ export async function removeCustomModel(providerId: string, modelId: string) {export interface SyncedAvailableModel {id: string;name: string;- source: "api-sync";+ source: "imported";supportedEndpoints?: string[];inputTokenLimit?: number;outputTokenLimit?: number;@@ -528,6 +532,57 @@ export interface SyncedAvailableModel {supportsThinking?: boolean;}+type SyncedAvailableModelInput = Omit<SyncedAvailableModel, "source"> & {+ source?: string;+};++function normalizeSyncedAvailableModel(model: unknown): SyncedAvailableModel | null {+ const record = asRecord(model);+ const id =+ toNonEmptyString(record.id) || toNonEmptyString(record.name) || toNonEmptyString(record.model);+ if (!id) return null;++ const name =+ toNonEmptyString(record.name) ||+ toNonEmptyString(record.displayName) ||+ toNonEmptyString(record.model) ||+ id;+ const supportedEndpoints = Array.isArray(record.supportedEndpoints)+ ? Array.from(+ new Set(+ record.supportedEndpoints+ .map((endpoint) => toNonEmptyString(endpoint))+ .filter((endpoint): endpoint is string => Boolean(endpoint))+ )+ ).sort()+ : undefined;++ return {+ id,+ name,+ source: "imported",+ ...(supportedEndpoints && supportedEndpoints.length > 0 ? { supportedEndpoints } : {}),+ ...(typeof record.inputTokenLimit === "number"+ ? { inputTokenLimit: record.inputTokenLimit }+ : {}),+ ...(typeof record.outputTokenLimit === "number"+ ? { outputTokenLimit: record.outputTokenLimit }+ : {}),+ ...(typeof record.description === "string" ? { description: record.description } : {}),+ ...(record.supportsThinking === true ? { supportsThinking: true } : {}),+ };+}++function normalizeSyncedAvailableModels(models: unknown): SyncedAvailableModel[] {+ if (!Array.isArray(models)) return [];+ const deduped = new Map<string, SyncedAvailableModel>();+ for (const model of models) {+ const normalized = normalizeSyncedAvailableModel(model);+ if (normalized) deduped.set(normalized.id, normalized);+ }+ return Array.from(deduped.values());+}+/*** Get synced available models for a specific provider connection.*/@@ -544,7 +599,7 @@ export async function getSyncedAvailableModelsForConnection(if (!value) return [];try {const models = JSON.parse(value);- return Array.isArray(models) ? models : [];+ return normalizeSyncedAvailableModels(models);} catch {return [];}@@ -566,7 +621,7 @@ export async function getSyncedAvailableModels(for (const row of rows) {const { key, value } = getKeyValue(row);if (!key || value === null) continue;- const models: SyncedAvailableModel[] = JSON.parse(value);+ const models = normalizeSyncedAvailableModels(JSON.parse(value));for (const m of models) {if (m.id) map.set(m.id, m);}@@ -591,7 +646,7 @@ export async function getAllSyncedAvailableModels(): Promise<if (!key || value === null) continue;const providerId = key.split(":")[0];if (!byProvider.has(providerId)) byProvider.set(providerId, new Map());- const models: SyncedAvailableModel[] = JSON.parse(value);+ const models = normalizeSyncedAvailableModels(JSON.parse(value));const map = byProvider.get(providerId)!;for (const m of models) {if (m.id) map.set(m.id, m);@@ -611,18 +666,19 @@ export async function getAllSyncedAvailableModels(): Promise<export async function replaceSyncedAvailableModelsForConnection(providerId: string,connectionId: string,- models: SyncedAvailableModel[]+ models: SyncedAvailableModelInput[]): Promise<SyncedAvailableModel[]> {const db = getDbInstance();const key = `${providerId}:${connectionId}`;- if (models.length === 0) {+ const normalizedModels = normalizeSyncedAvailableModels(models);+ if (normalizedModels.length === 0) {db.prepare("DELETE FROM key_value WHERE namespace = 'syncedAvailableModels' AND key = ?").run(key);} else {db.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('syncedAvailableModels', ?, ?)"- ).run(key, JSON.stringify(models));+ ).run(key, JSON.stringify(normalizedModels));}backupDbFile("pre-write");// Return the full unioned list for the providerdiff --git a/src/lib/db/quotaSnapshots.ts b/src/lib/db/quotaSnapshots.tsindex c1d9bb6721..7e40070b11 100644--- a/src/lib/db/quotaSnapshots.ts+++ b/src/lib/db/quotaSnapshots.ts@@ -19,22 +19,32 @@ export function saveQuotaSnapshot(snapshot: Omit<QuotaSnapshotRow, "id" | "creatconst db = getDbInstance() as unknown as DbLike;const now = new Date().toISOString();- db.prepare(- `INSERT INTO quota_snapshots- (provider, connection_id, window_key, remaining_percentage, is_exhausted,- next_reset_at, window_duration_ms, raw_data, created_at)- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`- ).run(- snapshot.provider,- snapshot.connection_id,- snapshot.window_key,- snapshot.remaining_percentage,- snapshot.is_exhausted,- snapshot.next_reset_at,- snapshot.window_duration_ms,- snapshot.raw_data,- now- );+ try {+ db.prepare(+ `INSERT INTO quota_snapshots+ (provider, connection_id, window_key, remaining_percentage, is_exhausted,+ next_reset_at, window_duration_ms, raw_data, created_at)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`+ ).run(+ snapshot.provider,+ snapshot.connection_id,+ snapshot.window_key,+ snapshot.remaining_percentage,+ snapshot.is_exhausted,+ snapshot.next_reset_at,+ snapshot.window_duration_ms,+ snapshot.raw_data,+ now+ );+ } catch (err: any) {+ if (err?.message?.includes("no such table")) {+ console.warn(+ "[QuotaSnapshots] Skipping save: quota_snapshots table not found. Awaiting migration."+ );+ return;+ }+ throw err;+ }}export function getQuotaSnapshots(opts: {@@ -62,9 +72,16 @@ export function getQuotaSnapshots(opts: {params.push(opts.until);}- const sql = `SELECT * FROM quota_snapshots WHERE ${conditions.join(" AND ")} ORDER BY created_at ASC`;- const rows = db.prepare(sql).all(...params);- return rows.map((r) => rowToCamel(r) as unknown as QuotaSnapshotRow);+ try {+ const sql = `SELECT * FROM quota_snapshots WHERE ${conditions.join(" AND ")} ORDER BY created_at ASC`;+ const rows = db.prepare(sql).all(...params);+ return rows.map((r) => rowToCamel(r) as unknown as QuotaSnapshotRow);+ } catch (err: any) {+ if (err?.message?.includes("no such table")) {+ return [];+ }+ throw err;+ }}export function getAggregatedSnapshots(opts: {@@ -100,34 +117,41 @@ export function getAggregatedSnapshots(opts: {const selectKey =opts.aggregateBy === "connection" ? "provider || ':' || connection_id as provider" : "provider";- const sql = `- SELECT- datetime((strftime('%s', created_at) / ${bucketSeconds}) * ${bucketSeconds}, 'unixepoch') as bucket,- ${selectKey},- AVG(remaining_percentage) as remainingPct,- MAX(is_exhausted) as isExhausted,- window_key- FROM quota_snapshots- WHERE ${conditions.join(" AND ")}- GROUP BY ${groupFields}- ORDER BY bucket ASC- `;-- const rows = db.prepare(sql).all(...params) as Array<{- bucket: string;- provider: string;- remainingPct: number | null;- isExhausted: number;- windowKey: string;- }>;-- return rows.map((r) => ({- timestamp: r.bucket,- provider: r.provider,- remainingPct: r.remainingPct ?? 0,- isExhausted: r.isExhausted === 1,- windowKey: r.windowKey,- }));+ try {+ const sql = `+ SELECT+ datetime((strftime('%s', created_at) / ${bucketSeconds}) * ${bucketSeconds}, 'unixepoch') as bucket,+ ${selectKey},+ AVG(remaining_percentage) as remainingPct,+ MAX(is_exhausted) as isExhausted,+ window_key+ FROM quota_snapshots+ WHERE ${conditions.join(" AND ")}+ GROUP BY ${groupFields}+ ORDER BY bucket ASC+ `;++ const rows = db.prepare(sql).all(...params) as Array<{+ bucket: string;+ provider: string;+ remainingPct: number | null;+ isExhausted: number;+ windowKey: string;+ }>;++ return rows.map((r) => ({+ timestamp: r.bucket,+ provider: r.provider,+ remainingPct: r.remainingPct ?? 0,+ isExhausted: r.isExhausted === 1,+ windowKey: r.windowKey,+ }));+ } catch (err: any) {+ if (err?.message?.includes("no such table")) {+ return [];+ }+ throw err;+ }}export function cleanupOldSnapshots(retentionDays = 90): number {@@ -141,8 +165,14 @@ export function cleanupOldSnapshots(retentionDays = 90): number {const db = getDbInstance() as unknown as DbLike;const cutoffDate = new Date(Date.now() - retentionDays * 24 * 60 * 60 * 1000).toISOString();- const result = db.prepare("DELETE FROM quota_snapshots WHERE created_at < ?").run(cutoffDate);- lastCleanupAt = now;-- return result.changes;+ try {+ const result = db.prepare("DELETE FROM quota_snapshots WHERE created_at < ?").run(cutoffDate);+ lastCleanupAt = now;+ return result.changes;+ } catch (err: any) {+ if (err?.message?.includes("no such table")) {+ return 0;+ }+ throw err;+ }}diff --git a/src/lib/memory/store.ts b/src/lib/memory/store.tsindex df9f554f55..e724a0f2cf 100644--- a/src/lib/memory/store.ts+++ b/src/lib/memory/store.ts@@ -77,15 +77,78 @@ function rowToMemory(row: MemoryRow): Memory {}/**- * Create a new memory entry+ * Find existing memory by apiKeyId and key (for UPSERT logic)+ */+function findExistingMemory(+ db: ReturnType<typeof getDbInstance>,+ apiKeyId: string,+ key: string+): MemoryRow | undefined {+ if (!key) return undefined;+ const stmt = db.prepare(+ "SELECT * FROM memories WHERE api_key_id = ? AND key = ? ORDER BY created_at DESC LIMIT 1"+ );+ return stmt.get(apiKeyId, key) as MemoryRow | undefined;+}++/**+ * Create a new memory entry (UPSERT: updates existing if same apiKeyId + key)*/export async function createMemory(memory: Omit<Memory, "id" | "createdAt" | "updatedAt">): Promise<Memory> {const db = getDbInstance();- const id = crypto.randomUUID();const now = new Date().toISOString();+ // Check for existing memory with same apiKeyId + key (UPSERT logic)+ const existing = memory.key ? findExistingMemory(db, memory.apiKeyId, memory.key) : undefined;++ if (existing) {+ // UPDATE existing record+ const updatedMetadata = { ...parseJSON(existing.metadata), ...memory.metadata };+ const stmt = db.prepare(+ "UPDATE memories SET content = ?, metadata = ?, updated_at = ?, session_id = ?, type = ?, expires_at = ? WHERE id = ?"+ );+ stmt.run(+ memory.content,+ JSON.stringify(updatedMetadata),+ now,+ memory.sessionId,+ memory.type,+ memory.expiresAt ?? null,+ existing.id+ );++ const updatedMemory: Memory = {+ id: String(existing.id),+ apiKeyId: memory.apiKeyId,+ sessionId: memory.sessionId,+ type: memory.type,+ key: memory.key,+ content: memory.content,+ metadata: updatedMetadata,+ createdAt: new Date(String(existing.created_at)),+ updatedAt: new Date(now),+ expiresAt: memory.expiresAt ?? null,+ };++ // Invalidate and update cache+ invalidateMemoryCache(existing.id);+ evictIfNeeded(_memoryCache);+ _memoryCache.set(existing.id, { value: updatedMemory, timestamp: Date.now() });++ log.info("memory.updated", {+ apiKeyId: memory.apiKeyId,+ type: memory.type,+ id: existing.id,+ key: memory.key,+ });++ return updatedMemory;+ }++ // INSERT new record if not exists+ const id = crypto.randomUUID();const stmt = db.prepare("INSERT INTO memories (id, api_key_id, session_id, type, key, content, metadata, created_at, updated_at, expires_at) " +"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"diff --git a/src/lib/ngrokTunnel.ts b/src/lib/ngrokTunnel.tsnew file mode 100644index 0000000000..369c3a8929--- /dev/null+++ b/src/lib/ngrokTunnel.ts@@ -0,0 +1,142 @@+import { getRuntimePorts } from "@/lib/runtime/ports";++export type TunnelPhase =+ | "unsupported"+ | "not_installed"+ | "stopped"+ | "needs_auth"+ | "starting"+ | "running"+ | "error";++export type NgrokTunnelStatus = {+ supported: boolean;+ installed: boolean;+ running: boolean;+ publicUrl: string | null;+ apiUrl: string | null;+ targetUrl: string;+ phase: TunnelPhase;+ lastError: string | null;+};++// Next.js hot-reloading safe global storage for the listener+const globalForNgrok = globalThis as unknown as {+ __ngrokListener: any;+};++let startPromise: Promise<NgrokTunnelStatus> | null = null;++function getLocalTargetUrl() {+ const { apiPort } = getRuntimePorts();+ return `http://127.0.0.1:${apiPort}`;+}++function getTunnelApiUrl(publicUrl: string | null) {+ return publicUrl ? `${publicUrl.replace(/\/$/, "")}/v1` : null;+}++export async function getNgrokTunnelStatus(): Promise<NgrokTunnelStatus> {+ const targetUrl = getLocalTargetUrl();+ const tokenAvailable = !!(+ process.env.NGROK_AUTHTOKEN && process.env.NGROK_AUTHTOKEN.trim() !== ""+ );+ const listener = globalForNgrok.__ngrokListener;+ let currentUrl = null;++ if (listener) {+ try {+ currentUrl = typeof listener.url === "function" ? listener.url() : listener.url;+ } catch {+ // Ignored+ }+ }++ return {+ supported: true,+ installed: true,+ running: currentUrl !== null,+ publicUrl: currentUrl || null,+ apiUrl: currentUrl ? getTunnelApiUrl(currentUrl) : null,+ targetUrl,+ phase: currentUrl === null ? (tokenAvailable ? "stopped" : "needs_auth") : "running",+ lastError: null,+ };+}++export async function startNgrokTunnel(inputAuthToken?: string): Promise<NgrokTunnelStatus> {+ const current = await getNgrokTunnelStatus();+ if (current.running) return current;+ if (startPromise) return startPromise;++ startPromise = (async () => {+ try {+ const authToken =+ inputAuthToken && inputAuthToken.trim() !== ""+ ? inputAuthToken.trim()+ : process.env.NGROK_AUTHTOKEN;++ if (!authToken) {+ return {+ ...(await getNgrokTunnelStatus()),+ phase: "needs_auth",+ lastError: "An ngrok authtoken is required.",+ };+ }++ // Dynamically import ngrok so it doesn't break environments where native build fails if not used+ const ngrok = await import("@ngrok/ngrok");++ const targetUrl = getLocalTargetUrl();+ const listenerOptions: any = { addr: targetUrl };++ if (!inputAuthToken && process.env.NGROK_AUTHTOKEN) {+ listenerOptions.authtoken_from_env = true;+ } else {+ listenerOptions.authtoken = authToken;+ }++ const listener = await ngrok.forward(listenerOptions);+ globalForNgrok.__ngrokListener = listener;++ let url = null;+ try {+ url = typeof listener.url === "function" ? listener.url() : listener.url;+ } catch {+ // Ignored+ }++ if (!url) {+ await stopNgrokTunnel();+ throw new Error("ngrok did not return a public URL.");+ }++ return await getNgrokTunnelStatus();+ } catch (error) {+ return {+ ...(await getNgrokTunnelStatus()),+ phase: "error",+ lastError: error instanceof Error ? error.message : String(error),+ };+ } finally {+ startPromise = null;+ }+ })();++ return startPromise;+}++export async function stopNgrokTunnel(): Promise<NgrokTunnelStatus> {+ const listener = globalForNgrok.__ngrokListener;+ if (listener) {+ try {+ if (typeof listener.close === "function") {+ await listener.close();+ }+ } catch (e) {+ // Ignore close errors+ }+ globalForNgrok.__ngrokListener = undefined;+ }+ return await getNgrokTunnelStatus();+}diff --git a/src/lib/oauth/providers.ts b/src/lib/oauth/providers.tsindex e00cd994ec..5709042630 100644--- a/src/lib/oauth/providers.ts+++ b/src/lib/oauth/providers.ts@@ -81,12 +81,12 @@ export async function exchangeTokens(providerName, code, redirectUri, codeVerifi/*** Request device code (for device_code flow)*/-export async function requestDeviceCode(providerName, codeChallenge) {+export async function requestDeviceCode(providerName, codeChallenge, configOverride = null) {const provider = getProvider(providerName);if (provider.flowType !== "device_code") {throw new Error(`Provider ${providerName} does not support device code flow`);}- return await provider.requestDeviceCode(provider.config, codeChallenge);+ return await provider.requestDeviceCode(configOverride || provider.config, codeChallenge);}/**diff --git a/src/lib/oauth/providers/kiro.ts b/src/lib/oauth/providers/kiro.tsindex 945c75cd74..80c03a7d81 100644--- a/src/lib/oauth/providers/kiro.ts+++ b/src/lib/oauth/providers/kiro.ts@@ -4,6 +4,27 @@ export const kiro = {config: KIRO_CONFIG,flowType: "device_code",requestDeviceCode: async (config) => {+ const regionMatch = String(config.tokenUrl || "").match(/oidc\.([a-z0-9-]+)\.amazonaws\.com/i);+ const resolvedRegion = regionMatch?.[1] || "us-east-1";+ const registerPayload: {+ clientName: string;+ clientType: string;+ scopes: string[];+ grantTypes: string[];+ issuerUrl?: string;+ } = {+ clientName: config.clientName,+ clientType: config.clientType,+ scopes: config.scopes,+ grantTypes: config.grantTypes,+ };++ // For enterprise IDC custom startUrl flows, issuerUrl can differ per tenant.+ // Sending a fixed issuerUrl often causes invalid_request during device auth.+ if (config.issuerUrl && !config.skipIssuerUrlForRegistration) {+ registerPayload.issuerUrl = config.issuerUrl;+ }+// Step 1: Register client with AWS SSO OIDCconst registerRes = await fetch(config.registerClientUrl, {method: "POST",@@ -11,13 +32,7 @@ export const kiro = {"Content-Type": "application/json",Accept: "application/json",},- body: JSON.stringify({- clientName: config.clientName,- clientType: config.clientType,- scopes: config.scopes,- grantTypes: config.grantTypes,- issuerUrl: config.issuerUrl,- }),+ body: JSON.stringify(registerPayload),});if (!registerRes.ok) {@@ -57,10 +72,14 @@ export const kiro = {interval: deviceData.interval || 5,_clientId: clientInfo.clientId,_clientSecret: clientInfo.clientSecret,+ _region: resolvedRegion,};},pollToken: async (config, deviceCode, codeVerifier, extraData) => {- const response = await fetch(config.tokenUrl, {+ const tokenRegion = extraData?._region || "us-east-1";+ const tokenUrl = `https://oidc.${tokenRegion}.amazonaws.com/token`;++ const response = await fetch(tokenUrl, {method: "POST",headers: {"Content-Type": "application/json",@@ -91,6 +110,7 @@ export const kiro = {expires_in: data.expiresIn,_clientId: extraData?._clientId,_clientSecret: extraData?._clientSecret,+ _region: tokenRegion,},};}@@ -110,6 +130,7 @@ export const kiro = {providerSpecificData: {clientId: tokens._clientId,clientSecret: tokens._clientSecret,+ region: tokens._region,},}),};diff --git a/src/lib/providerModels/managedModelImport.ts b/src/lib/providerModels/managedModelImport.tsindex 41a2555cec..227d96f9ae 100644--- a/src/lib/providerModels/managedModelImport.ts+++ b/src/lib/providerModels/managedModelImport.ts@@ -1,7 +1,10 @@import {getCustomModels,+ getSyncedAvailableModelsForConnection,+ mergeModelCompatOverride,replaceCustomModels,replaceSyncedAvailableModelsForConnection,+ type ModelCompatPatch,type SyncedAvailableModel,} from "@/lib/db/models";import {@@ -9,7 +12,6 @@ import {usesManagedAvailableModels,} from "@/lib/providerModels/managedAvailableModels";import { normalizeDiscoveredModels } from "@/lib/providerModels/modelDiscovery";-import { getModelsByProviderId } from "@/shared/constants/models";type JsonRecord = Record<string, unknown>;@@ -18,7 +20,7 @@ export type ManagedModelImportMode = "merge" | "sync";export type ManagedImportedModel = {id: string;name: string;- source: "api-sync";+ source: "imported";apiFormat: "chat-completions";supportedEndpoints?: string[];inputTokenLimit?: number;@@ -34,42 +36,39 @@ function toNonEmptyString(value: unknown): string | null {function normalizeManagedSource(source: unknown): string {const normalized = toNonEmptyString(source)?.toLowerCase();if (normalized === "api-sync" || normalized === "auto-sync" || normalized === "imported") {- return "api-sync";+ return "imported";}return normalized || "manual";}-function normalizeImportedModels(- providerId: string,- fetchedModels: unknown-): ManagedImportedModel[] {+function normalizeImportedModels(fetchedModels: unknown): ManagedImportedModel[] {const discovered = normalizeDiscoveredModels(fetchedModels);- const registryIds = new Set(getModelsByProviderId(providerId).map((model: any) => model.id));-- return discovered- .filter((model) => !registryIds.has(model.id))- .map((model) => ({- id: model.id,- name: model.name || model.id,- source: "api-sync",- apiFormat: "chat-completions",- ...(Array.isArray(model.supportedEndpoints) && model.supportedEndpoints.length > 0- ? { supportedEndpoints: model.supportedEndpoints }- : {}),- ...(typeof model.inputTokenLimit === "number"- ? { inputTokenLimit: model.inputTokenLimit }- : {}),- ...(typeof model.outputTokenLimit === "number"- ? { outputTokenLimit: model.outputTokenLimit }- : {}),- ...(typeof model.description === "string" ? { description: model.description } : {}),- ...(model.supportsThinking === true ? { supportsThinking: true } : {}),- }));++ return discovered.map((model) => ({+ id: model.id,+ name: model.name || model.id,+ source: "imported",+ apiFormat: "chat-completions",+ ...(Array.isArray(model.supportedEndpoints) && model.supportedEndpoints.length > 0+ ? { supportedEndpoints: model.supportedEndpoints }+ : {}),+ ...(typeof model.inputTokenLimit === "number"+ ? { inputTokenLimit: model.inputTokenLimit }+ : {}),+ ...(typeof model.outputTokenLimit === "number"+ ? { outputTokenLimit: model.outputTokenLimit }+ : {}),+ ...(typeof model.description === "string" ? { description: model.description } : {}),+ ...(model.supportsThinking === true ? { supportsThinking: true } : {}),+ }));}-function isManagedDiscoveredSource(source: unknown): boolean {- const normalized = toNonEmptyString(source)?.toLowerCase();- return normalized === "api-sync" || normalized === "auto-sync" || normalized === "imported";+function isImportedSource(source: unknown): boolean {+ return normalizeManagedSource(source) === "imported";+}++function getModelId(model: JsonRecord): string | null {+ return toNonEmptyString(model.id);}function summarizeImportedChanges(@@ -86,9 +85,30 @@ function summarizeImportedChanges(const toComparable = (model: JsonRecord | undefined) => {if (!model) return null;+ const id = toNonEmptyString(model.id) || "";+ const supportedEndpoints = Array.isArray(model.supportedEndpoints)+ ? Array.from(+ new Set(+ model.supportedEndpoints+ .map((endpoint) => toNonEmptyString(endpoint))+ .filter((endpoint): endpoint is string => Boolean(endpoint))+ )+ ).sort()+ : ["chat"];return {- ...model,+ id,+ name: toNonEmptyString(model.name) || id,source: normalizeManagedSource(model.source),+ apiFormat: toNonEmptyString(model.apiFormat) || "chat-completions",+ supportedEndpoints,+ ...(typeof model.inputTokenLimit === "number"+ ? { inputTokenLimit: model.inputTokenLimit }+ : {}),+ ...(typeof model.outputTokenLimit === "number"+ ? { outputTokenLimit: model.outputTokenLimit }+ : {}),+ ...(typeof model.description === "string" ? { description: model.description } : {}),+ ...(model.supportsThinking === true ? { supportsThinking: true } : {}),};};@@ -125,37 +145,71 @@ function collectAddedImportedModels(return importedModels.filter((model) => !previousIds.has(model.id));}+function getCompatPatchFromCustomModel(model: JsonRecord): ModelCompatPatch | null {+ const patch: ModelCompatPatch = {};++ if (typeof model.normalizeToolCallId === "boolean") {+ patch.normalizeToolCallId = model.normalizeToolCallId;+ }+ if (typeof model.preserveOpenAIDeveloperRole === "boolean") {+ patch.preserveOpenAIDeveloperRole = model.preserveOpenAIDeveloperRole;+ }+ if (typeof model.isHidden === "boolean") {+ patch.isHidden = model.isHidden;+ }+ if (model.compatByProtocol && typeof model.compatByProtocol === "object") {+ patch.compatByProtocol = model.compatByProtocol as ModelCompatPatch["compatByProtocol"];+ }+ if (model.upstreamHeaders && typeof model.upstreamHeaders === "object") {+ patch.upstreamHeaders = model.upstreamHeaders as Record<string, string>;+ }++ return Object.keys(patch).length > 0 ? patch : null;+}++function preserveRemovedCustomModelCompat(providerId: string, removedModels: JsonRecord[]) {+ for (const model of removedModels) {+ const modelId = getModelId(model);+ if (!modelId) continue;+ const patch = getCompatPatchFromCustomModel(model);+ if (!patch) continue;+ mergeModelCompatOverride(providerId, modelId, patch);+ }+}+export async function importManagedModels({providerId,connectionId,fetchedModels,mode,+ previousSyncedAvailableModels: previousSyncedAvailableModelsInput,}: {providerId: string;connectionId: string;fetchedModels: unknown;mode: ManagedModelImportMode;+ previousSyncedAvailableModels?: SyncedAvailableModel[];}) {const previousModels = (await getCustomModels(providerId)) as JsonRecord[];- const candidateImportedModels = normalizeImportedModels(providerId, fetchedModels);+ const previousSyncedAvailableModels =+ previousSyncedAvailableModelsInput ??+ (await getSyncedAvailableModelsForConnection(providerId, connectionId));+ const discoveredModels = normalizeDiscoveredModels(fetchedModels);+ const candidateImportedModels = normalizeImportedModels(fetchedModels);const importedIds = new Set(candidateImportedModels.map((model) => model.id));+ const discoveredIds = new Set(discoveredModels.map((model) => model.id));const nextModelsMap = new Map<string, JsonRecord>();+ const removedCustomModels: JsonRecord[] = [];- if (mode === "merge") {- for (const model of previousModels) {- if (model?.id) nextModelsMap.set(String(model.id), model);- }- } else {- for (const model of previousModels) {- if (!model?.id) continue;- if (isManagedDiscoveredSource(model.source)) continue;- nextModelsMap.set(String(model.id), model);+ for (const model of previousModels) {+ const modelId = getModelId(model);+ if (!modelId) continue;+ if (isImportedSource(model.source) || discoveredIds.has(modelId)) {+ removedCustomModels.push(model);+ continue;}- }-- for (const model of candidateImportedModels) {- nextModelsMap.set(model.id, model);+ nextModelsMap.set(modelId, model);}const persistedModels = (await replaceCustomModels(@@ -170,11 +224,12 @@ export async function importManagedModels({outputTokenLimit?: number;description?: string;supportsThinking?: boolean;- }>+ }>,+ { allowEmpty: true })) as JsonRecord[];+ preserveRemovedCustomModelCompat(providerId, removedCustomModels);- const discoveredModels = normalizeDiscoveredModels(fetchedModels);- let syncedAvailableModels: SyncedAvailableModel[] = [];+ let syncedAvailableModels: SyncedAvailableModel[] = previousSyncedAvailableModels;if (discoveredModels.length > 0) {syncedAvailableModels = await replaceSyncedAvailableModelsForConnection(providerId,@@ -184,24 +239,28 @@ export async function importManagedModels({}let syncedAliases = 0;- if (usesManagedAvailableModels(providerId)) {+ if (usesManagedAvailableModels(providerId) && (mode === "merge" || discoveredModels.length > 0)) {const aliasSync = await syncManagedAvailableModelAliases(providerId,- mode === "sync"- ? persistedModels- .map((model) => toNonEmptyString(model.id))- .filter((modelId): modelId is string => Boolean(modelId))- : candidateImportedModels.map((model) => model.id),+ discoveredModels.map((model) => model.id),{ pruneMissing: mode === "sync" });syncedAliases = aliasSync.assignedAliases.length;}- const importedChanges = summarizeImportedChanges(previousModels, persistedModels, importedIds);- const importedModels = collectAddedImportedModels(previousModels, candidateImportedModels);+ const importedChanges = summarizeImportedChanges(+ previousSyncedAvailableModels as JsonRecord[],+ discoveredModels as JsonRecord[],+ importedIds+ );+ const importedModels = collectAddedImportedModels(+ previousSyncedAvailableModels as JsonRecord[],+ candidateImportedModels+ );return {previousModels,+ previousSyncedAvailableModels,persistedModels,importedModels,discoveredModels,diff --git a/src/lib/providerModels/modelDiscovery.ts b/src/lib/providerModels/modelDiscovery.tsindex 0ed9dbcca5..89235b566a 100644--- a/src/lib/providerModels/modelDiscovery.ts+++ b/src/lib/providerModels/modelDiscovery.ts@@ -48,7 +48,7 @@ export function normalizeDiscoveredModels(models: unknown): SyncedAvailableModeldeduped.set(id, {id,name,- source: "api-sync",+ source: "imported",...(supportedEndpoints && supportedEndpoints.length > 0 ? { supportedEndpoints } : {}),...(typeof record.inputTokenLimit === "number"? { inputTokenLimit: record.inputTokenLimit }diff --git a/src/lib/providers/validation.ts b/src/lib/providers/validation.tsindex dcff7864ec..48e646069d 100644--- a/src/lib/providers/validation.ts+++ b/src/lib/providers/validation.ts@@ -24,7 +24,7 @@ import {safeOutboundFetch,} from "@/shared/network/safeOutboundFetch";import { getProviderOutboundGuard } from "@/shared/network/outboundUrlGuard";-import { normalizeSessionCookieHeader } from "@/lib/providers/webCookieAuth";+import { extractCookieValue, normalizeSessionCookieHeader } from "@/lib/providers/webCookieAuth";import { getGigachatAccessToken } from "@omniroute/open-sse/services/gigachatAuth.ts";import { validateQoderCliPat } from "@omniroute/open-sse/services/qoderCli.ts";import {@@ -2309,8 +2309,13 @@ function buildMetaAiValidationBody() {async function validateGrokWebProvider({ apiKey, providerSpecificData = {} }: any) {try {- let token = apiKey;- if (token.startsWith("sso=")) token = token.slice(4);+ const token = extractCookieValue(apiKey, "sso");+ if (!token) {+ return {+ valid: false,+ error: "Missing sso cookie — paste the value (or the full grok.com cookie line)",+ };+ }// Generate the same Cloudflare-bypass headers the GrokWebExecutor uses.const randomHex = (n: number) => {@@ -2353,7 +2358,7 @@ async function validateGrokWebProvider({ apiKey, providerSpecificData = {} }: an),body: JSON.stringify({temporary: true,- modeId: "auto",+ modeId: "fast",message: "test",fileAttachments: [],imageAttachments: [],@@ -2385,13 +2390,31 @@ async function validateGrokWebProvider({ apiKey, providerSpecificData = {} }: anerrorDetail = (await response.text()).slice(0, 240);} catch {}- if (response.status === 401 || response.status === 403) {+ if (response.status === 401) {return {valid: false,error: "Invalid SSO cookie — re-paste from grok.com DevTools → Cookies → sso",};}+ if (response.status === 403) {+ // Grok uses 403 for auth failures, entitlement issues, geo blocks, and+ // resource errors. Default-deny: only the auth-shaped 403 gets the+ // re-paste hint; anything else surfaces the upstream body so the user+ // (or maintainer, if upstream renames the probe model) sees the real+ // cause instead of a misleading "valid" verdict.+ if (/invalid-credentials|unauthenticated|unauthorized/i.test(errorDetail)) {+ return {+ valid: false,+ error: "Invalid SSO cookie — re-paste from grok.com DevTools → Cookies → sso",+ };+ }+ return {+ valid: false,+ error: `Grok rejected validation (403)${errorDetail ? `: ${errorDetail.slice(0, 160)}` : ""}`,+ };+ }+if (response.status === 429) {return { valid: false, error: "Grok rate limited during validation (429)" };}@@ -2409,6 +2432,114 @@ async function validateGrokWebProvider({ apiKey, providerSpecificData = {} }: an}}+async function validateChatGptWebProvider({ apiKey, providerSpecificData = {} }: any) {+ try {+ // Accept bare value, unchunked cookie, chunked (.0/.1) cookies, or full+ // "Cookie: ..." DevTools line. Pass through verbatim once recognised.+ let cookieHeader = String(apiKey || "").trim();+ if (/^cookie\s*:\s*/i.test(cookieHeader)) {+ cookieHeader = cookieHeader.replace(/^cookie\s*:\s*/i, "");+ }+ if (!/__Secure-next-auth\.session-token(?:\.\d+)?\s*=/.test(cookieHeader)) {+ cookieHeader = `__Secure-next-auth.session-token=${cookieHeader}`;+ }++ // Use the TLS-impersonating client — Cloudflare on chatgpt.com pins+ // cf_clearance to JA3/JA4 + HTTP/2 SETTINGS, so plain Node fetch always+ // gets cf-mitigated: challenge regardless of cookies.+ const { tlsFetchChatGpt, TlsClientUnavailableError } =+ await import("@omniroute/open-sse/services/chatgptTlsClient.ts");++ let response;+ try {+ response = await tlsFetchChatGpt("https://chatgpt.com/api/auth/session", {+ method: "GET",+ headers: applyCustomUserAgent(+ {+ Accept: "application/json",+ "Accept-Language": "en-US,en;q=0.9",+ "Cache-Control": "no-cache",+ Cookie: cookieHeader,+ Origin: "https://chatgpt.com",+ Pragma: "no-cache",+ Referer: "https://chatgpt.com/",+ "Sec-Fetch-Dest": "empty",+ "Sec-Fetch-Mode": "cors",+ "Sec-Fetch-Site": "same-origin",+ "User-Agent":+ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0",+ },+ providerSpecificData+ ),+ timeoutMs: 30_000,+ });+ } catch (err: any) {+ if (err instanceof TlsClientUnavailableError) {+ return {+ valid: false,+ error: `${err.message} (chatgpt-web requires this — without it, Cloudflare blocks every request)`,+ };+ }+ throw err;+ }++ const contentType = response.headers.get("content-type") || "";+ const cfRay = response.headers.get("cf-ray");+ const cfMitigated = response.headers.get("cf-mitigated");++ if (response.status === 401 || response.status === 403) {+ const bodyText = response.text || "";+ if (cfMitigated || /just a moment|cloudflare|cf-chl|attention required/i.test(bodyText)) {+ return {+ valid: false,+ error:+ "Cloudflare blocked the validator — open chatgpt.com in your browser, then copy the FULL Cookie line from DevTools (Network → request → Cookie) including cf_clearance, __cf_bm, _cfuvid, and the session-token chunks.",+ };+ }+ return {+ valid: false,+ error:+ "Invalid ChatGPT session cookie — re-paste __Secure-next-auth.session-token from chatgpt.com DevTools → Cookies",+ };+ }++ if (response.status >= 500) {+ return { valid: false, error: `ChatGPT unavailable (${response.status})` };+ }++ if (response.status >= 400) {+ return { valid: false, error: `Validation failed: ${response.status}` };+ }++ if (!contentType.includes("json")) {+ return {+ valid: false,+ error: `ChatGPT returned non-JSON (${contentType || "no content-type"}${cfRay ? `, cf-ray=${cfRay}` : ""}) — paste the FULL Cookie line including cf_clearance, __cf_bm, _cfuvid alongside the session-token chunks.`,+ };+ }++ let data: any = {};+ try {+ data = JSON.parse(response.text || "{}");+ } catch {+ return {+ valid: false,+ error:+ "ChatGPT session response was not JSON — paste the FULL Cookie line including cf_clearance and __cf_bm.",+ };+ }+ if (!data?.accessToken) {+ return {+ valid: false,+ error: "ChatGPT session expired — log into chatgpt.com and copy a fresh cookie",+ };+ }+ return { valid: true, error: null };+ } catch (error: any) {+ return toValidationErrorResult(error);+ }+}+async function validatePerplexityWebProvider({ apiKey, providerSpecificData = {} }: any) {try {let sessionToken = apiKey;@@ -2491,7 +2622,7 @@ async function validatePerplexityWebProvider({ apiKey, providerSpecificData = {}async function validateBlackboxWebProvider({ apiKey, providerSpecificData = {} }: any) {try {- const cookieHeader = normalizeSessionCookieHeader(apiKey, "__Secure-authjs.session-token");+ const cookieHeader = normalizeSessionCookieHeader(apiKey, "next-auth.session-token");const sessionHeaders = applyCustomUserAgent({Accept: "application/json",@@ -2747,6 +2878,7 @@ export async function validateProviderApiKey({ provider, apiKey, providerSpecifisnowflake: validateSnowflakeProvider,gigachat: validateGigachatProvider,"grok-web": validateGrokWebProvider,+ "chatgpt-web": validateChatGptWebProvider,"perplexity-web": validatePerplexityWebProvider,"blackbox-web": validateBlackboxWebProvider,"muse-spark-web": validateMuseSparkWebProvider,diff --git a/src/lib/providers/webCookieAuth.ts b/src/lib/providers/webCookieAuth.tsindex de95eda53c..35a837de26 100644--- a/src/lib/providers/webCookieAuth.ts+++ b/src/lib/providers/webCookieAuth.ts@@ -17,6 +17,29 @@ export function normalizeSessionCookieHeader(rawValue: string, defaultCookieNamereturn `${defaultCookieName}=${normalized}`;}+/**+ * Extract a single cookie's value from whatever the user pasted. Handles:+ * - bare value: "eyJ0eXAi..." → "eyJ0eXAi..."+ * - single pair: "sso=eyJ0eXAi..." → "eyJ0eXAi..."+ * - full DevTools cookie blob: "foo=1; sso=eyJ...; bar=2" → "eyJ..."+ * Returns "" if a blob is given that does not contain the named cookie.+ */+export function extractCookieValue(rawValue: string, cookieName: string): string {+ const trimmed = stripCookieInputPrefix(rawValue);+ if (!trimmed) return "";++ if (trimmed.includes(";")) {+ const escaped = cookieName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");+ const match = trimmed.match(new RegExp("(?:^|;\\s*)" + escaped + "=([^;\\s]+)"));+ return match ? match[1] : "";+ }++ const prefix = `${cookieName}=`;+ if (trimmed.startsWith(prefix)) return trimmed.slice(prefix.length);++ return trimmed;+}+export function normalizeSessionCookieHeaders(rawValues: Array<string | null | undefined>,defaultCookieName: stringdiff --git a/src/shared/components/ActiveRequestsPanel.tsx b/src/shared/components/ActiveRequestsPanel.tsxindex 7de34f721d..988a4ff3d3 100644--- a/src/shared/components/ActiveRequestsPanel.tsx+++ b/src/shared/components/ActiveRequestsPanel.tsx@@ -62,6 +62,19 @@ export default function ActiveRequestsPanel() {};}, []);+ const handleClearAll = async () => {+ if (!window.confirm(t("confirmClearActiveRequests") || "Clear all active requests?")) return;+ try {+ const res = await fetch("/api/logs/active", { method: "DELETE" });+ if (res.ok) {+ setRows([]);+ setSelectedRow(null);+ }+ } catch (error) {+ console.error("Failed to clear active requests:", error);+ }+ };+if (!loading && rows.length === 0) {return null;}@@ -75,9 +88,19 @@ export default function ActiveRequestsPanel() {</h3><p className="text-xs text-text-muted">{t("runningRequestsDesc")}</p></div>- <div className="inline-flex items-center gap-2 rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1 text-xs font-medium text-emerald-300">- <span className="h-2 w-2 rounded-full bg-emerald-400 animate-pulse" />- {loading ? t("loading") : t("activeCount", { count: rows.length })}+ <div className="flex items-center gap-3">+ <div className="inline-flex items-center gap-2 rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1 text-xs font-medium text-emerald-300">+ <span className="h-2 w-2 rounded-full bg-emerald-400 animate-pulse" />+ {loading ? t("loading") : t("activeCount", { count: rows.length })}+ </div>+ {rows.length > 0 && (+ <button+ onClick={handleClearAll}+ className="rounded-md border border-red-500/30 bg-red-500/10 px-3 py-1 text-xs font-medium text-red-400 transition-colors hover:bg-red-500/20 hover:text-red-300"+ >+ {t("clearAll") || "Clear All"}+ </button>+ )}</div></div>diff --git a/src/shared/components/KiroAuthModal.tsx b/src/shared/components/KiroAuthModal.tsxindex 5a49d0d5bf..588771f40f 100644--- a/src/shared/components/KiroAuthModal.tsx+++ b/src/shared/components/KiroAuthModal.tsx@@ -138,17 +138,19 @@ export default function KiroAuthModal({</div></button>- {/* AWS IAM Identity Center (IDC) - HIDDEN */}+ {/* AWS IAM Identity Center (IDC) */}<buttononClick={() => handleMethodSelect("idc")}- className="hidden w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors"+ className="w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors"><div className="flex items-start gap-3"><span className="material-symbols-outlined text-primary mt-0.5">business</span><div className="flex-1">- <h3 className="font-semibold mb-1">AWS IAM Identity Center</h3>+ <h3 className="font-semibold mb-1">+ Your Organization (AWS IAM Identity Center)+ </h3><p className="text-sm text-text-muted">- For enterprise users with custom AWS IAM Identity Center.+ Use your company SSO start URL (example: https://your-org.awsapps.com/start).</p></div></div>diff --git a/src/shared/components/ModelSelectModal.tsx b/src/shared/components/ModelSelectModal.tsxindex 6937a970ad..dd41eadffe 100644--- a/src/shared/components/ModelSelectModal.tsx+++ b/src/shared/components/ModelSelectModal.tsx@@ -9,6 +9,7 @@ import { getCompatibleFallbackModels } from "@/lib/providers/managedAvailableModimport {getModelCatalogSourceLabel,matchesModelCatalogQuery,+ normalizeModelCatalogSource,} from "@/shared/utils/modelCatalogSearch";import {OAUTH_PROVIDERS,@@ -144,7 +145,7 @@ export default function ModelSelectModal({name: cm.name || cm.id,value: `${alias}/${cm.id}`,isCustom: true,- source: cm.source === "api-sync" ? "api-sync" : "custom",+ source: normalizeModelCatalogSource(cm.source) === "imported" ? "imported" : "custom",}));const allModels = [...aliasModels, ...customEntries];@@ -198,7 +199,7 @@ export default function ModelSelectModal({name: cm.name || cm.id,value: `${nodePrefix}/${cm.id}`,isCustom: true,- source: cm.source === "api-sync" ? "api-sync" : "custom",+ source: normalizeModelCatalogSource(cm.source) === "imported" ? "imported" : "custom",}));const allModels = [...nodeModels, ...fallbackEntries, ...customEntries];@@ -231,7 +232,7 @@ export default function ModelSelectModal({name: cm.name || cm.id,value: `${alias}/${cm.id}`,isCustom: true,- source: cm.source === "api-sync" ? "api-sync" : "custom",+ source: normalizeModelCatalogSource(cm.source) === "imported" ? "imported" : "custom",}));const allModels = [...systemEntries, ...customEntries];diff --git a/src/shared/components/OAuthModal.tsx b/src/shared/components/OAuthModal.tsxindex 841147ccf7..65a68b4b79 100644--- a/src/shared/components/OAuthModal.tsx+++ b/src/shared/components/OAuthModal.tsx@@ -1,6 +1,6 @@"use client";-import { useState, useEffect, useRef, useCallback } from "react";+import { useState, useEffect, useRef, useCallback, useMemo } from "react";import PropTypes from "prop-types";import { useTranslations } from "next-intl";import Modal from "./Modal";@@ -47,33 +47,36 @@ export default function OAuthModal({const deviceVerificationUrl =deviceData?.verification_uri_complete || deviceData?.verification_uri || "";- // State for client-only values to avoid hydration mismatch- const [isLocalhost, setIsLocalhost] = useState(false);- const [placeholderUrl, setPlaceholderUrl] = useState("/callback?code=...");- const callbackProcessedRef = useRef(false);- const flowStartedRef = useRef(false);-- // Detect if running on true localhost vs LAN IP (client-side only)- // - True localhost (127.0.0.1/localhost): popup auto-callback works- // - LAN IPs (192.168.x, 10.x, 172.x): redirect URI uses localhost but callback- // won't resolve back to the VPS, so use manual paste mode- const [isTrueLocalhost, setIsTrueLocalhost] = useState(false);- useEffect(() => {- if (typeof window !== "undefined") {- const hostname = window.location.hostname;- const isLocal =- hostname === "localhost" ||- hostname === "127.0.0.1" ||- hostname.startsWith("192.168.") ||- hostname.startsWith("10.") ||- /^172\.(1[6-9]|2\d|3[01])\./.test(hostname);- const isTrulyLocal = hostname === "localhost" || hostname === "127.0.0.1";- setIsLocalhost(isLocal);- setIsTrueLocalhost(isTrulyLocal);- setPlaceholderUrl(`${window.location.origin}/callback?code=...`);+ // Client-only runtime values+ const runtimeLocation = useMemo(() => {+ if (typeof window === "undefined") {+ return {+ isLocalhost: false,+ isTrueLocalhost: false,+ placeholderUrl: "/callback?code=...",+ };}++ const hostname = window.location.hostname;+ const isLocal =+ hostname === "localhost" ||+ hostname === "127.0.0.1" ||+ hostname.startsWith("192.168.") ||+ hostname.startsWith("10.") ||+ /^172\.(1[6-9]|2\d|3[01])\./.test(hostname);+ const isTrulyLocal = hostname === "localhost" || hostname === "127.0.0.1";++ return {+ isLocalhost: isLocal,+ isTrueLocalhost: isTrulyLocal,+ placeholderUrl: `${window.location.origin}/callback?code=...`,+ };}, []);+ const { isLocalhost, isTrueLocalhost, placeholderUrl } = runtimeLocation;+ const callbackProcessedRef = useRef(false);+ const flowStartedRef = useRef(false);+// Define all useCallback hooks BEFORE the useEffects that reference them// Exchange tokens@@ -217,7 +220,22 @@ export default function OAuthModal({setIsDeviceCode(true);setStep("waiting");- const res = await fetch(`/api/oauth/${provider}/device-code`);+ const deviceCodeUrl = new URL(`/api/oauth/${provider}/device-code`, window.location.origin);+ if (+ (provider === "kiro" || provider === "amazon-q") &&+ idcConfig &&+ typeof idcConfig === "object"+ ) {+ const idc = idcConfig as { startUrl?: string; region?: string };+ if (typeof idc.startUrl === "string" && idc.startUrl.trim()) {+ deviceCodeUrl.searchParams.set("startUrl", idc.startUrl.trim());+ }+ if (typeof idc.region === "string" && idc.region.trim()) {+ deviceCodeUrl.searchParams.set("region", idc.region.trim());+ }+ }++ const res = await fetch(deviceCodeUrl.toString());const data = await res.json();if (!res.ok) {const errMsg =@@ -237,7 +255,11 @@ export default function OAuthModal({// Start polling - pass extraData for Kiro (contains _clientId, _clientSecret)const extraData =provider === "kiro" || provider === "amazon-q"- ? { _clientId: data._clientId, _clientSecret: data._clientSecret }+ ? {+ _clientId: data._clientId,+ _clientSecret: data._clientSecret,+ _region: data._region,+ }: null;startPolling(data.device_code, data.codeVerifier, data.interval || 5, extraData);return;@@ -379,7 +401,15 @@ export default function OAuthModal({setError(err.message);setStep("error");}- }, [provider, isLocalhost, isTrueLocalhost, startPolling, onSuccess, reauthConnection]);+ }, [+ provider,+ isLocalhost,+ isTrueLocalhost,+ startPolling,+ onSuccess,+ reauthConnection,+ idcConfig,+ ]);// Reset guard when modal closesuseEffect(() => {diff --git a/src/shared/components/RequestLoggerDetail.tsx b/src/shared/components/RequestLoggerDetail.tsxindex f599f1d87e..27da5d8b1b 100644--- a/src/shared/components/RequestLoggerDetail.tsx+++ b/src/shared/components/RequestLoggerDetail.tsx@@ -45,14 +45,23 @@ function PayloadSection({ title, json, onCopy }) {// ─── Detail Modal ───────────────────────────────────────────────────────────-export default function RequestLoggerDetail({ log, detail, loading, onClose, onCopy }) {+type StreamChunks = Record<string, string | string[]>;++export default function RequestLoggerDetail({+ log,+ detail,+ loading,+ debugEnabled,+ onClose,+ onCopy,+}) {// Close on Escape keyuseEffect(() => {const handler = (e) => {if (e.key === "Escape") onClose();};- window.addEventListener("keydown", handler);- return () => window.removeEventListener("keydown", handler);+ globalThis.addEventListener("keydown", handler);+ return () => globalThis.removeEventListener("keydown", handler);}, [onClose]);const statusStyle = getStatusStyle(log.status);@@ -64,6 +73,9 @@ export default function RequestLoggerDetail({ log, detail, loading, onClose, onClabel: (log.provider || "-").toUpperCase(),};+ const providerStatus = detail?.pipelinePayloads?.providerResponse?.status;+ const hasStatusDiscrepancy = providerStatus && providerStatus !== log.status;+const formatDate = (iso) => {try {const d = new Date(iso);@@ -104,6 +116,36 @@ export default function RequestLoggerDetail({ log, detail, loading, onClose, onC: [];const requestJson = detail?.requestBody ? toPrettyJson(detail.requestBody) : null;const responseJson = detail?.responseBody ? toPrettyJson(detail.responseBody) : null;+ const streamChunksText = (() => {+ if (!debugEnabled || !detail?.pipelinePayloads?.streamChunks) return null;+ let chunks: StreamChunks = detail.pipelinePayloads.streamChunks;++ // If stored as a JSON string, try to parse it so we can render joined raw chunks+ if (typeof chunks === "string") {+ try {+ const parsed = JSON.parse(chunks);+ chunks = parsed;+ } catch {+ // Keep as string and return raw text (don't JSON-stringify)+ return chunks;+ }+ }++ if (chunks && typeof chunks === "object") {+ try {+ return Object.entries(chunks)+ .map(([stage, arr]) => {+ const joined = Array.isArray(arr) ? arr.join("") : String(arr);+ return `--- ${stage} ---\n${joined}`;+ })+ .join("\n\n");+ } catch {+ return toPrettyJson(chunks);+ }+ }++ return null;+ })();const detailIssue =detail?.detailState === "missing"? "Detailed payload artifact is no longer available for this log entry."@@ -144,14 +186,28 @@ export default function RequestLoggerDetail({ log, detail, loading, onClose, onC{/* Modal Header */}<div className="sticky top-0 z-10 flex items-center justify-between px-6 py-4 border-b border-border bg-bg-primary/95 backdrop-blur-sm rounded-t-xl"><div className="flex items-center gap-3">- <span- className="inline-block px-2.5 py-1 rounded text-xs font-bold"- style={{ backgroundColor: statusStyle.bg, color: statusStyle.text }}- >- {log.status}- </span>- <span className="font-bold text-lg">{log.method}</span>- <span className="text-text-muted font-mono text-sm">{log.path}</span>+ <div className="flex flex-col">+ <div className="flex items-center gap-2">+ <span+ className="inline-block px-2.5 py-1 rounded text-xs font-bold"+ style={{ backgroundColor: statusStyle.bg, color: statusStyle.text }}+ >+ {log.status}+ </span>+ {hasStatusDiscrepancy && (+ <span className="text-[10px] font-bold px-2 py-0.5 rounded bg-bg-subtle border border-border text-text-muted">+ Upstream: {providerStatus}+ </span>+ )}+ <span className="font-bold text-lg">{log.method}</span>+ </div>+ {hasStatusDiscrepancy && (+ <span className="text-[10px] text-amber-600 dark:text-amber-400 font-medium mt-0.5">+ OmniRoute returned {log.status} even though provider returned {providerStatus}+ </span>+ )}+ </div>+ <span className="text-text-muted font-mono text-sm self-center ml-2">{log.path}</span></div><buttononClick={onClose}@@ -333,6 +389,14 @@ export default function RequestLoggerDetail({ log, detail, loading, onClose, onC/>))}+ {streamChunksText && (+ <PayloadSection+ title="Event Stream (Debug)"+ json={streamChunksText}+ onCopy={() => onCopy(streamChunksText)}+ />+ )}+{payloadSections.length === 0 && responseJson && (<PayloadSectiontitle="Response Payload (Legacy)"diff --git a/src/shared/components/RequestLoggerV2.tsx b/src/shared/components/RequestLoggerV2.tsxindex e072697553..a1f6a6d7e9 100644--- a/src/shared/components/RequestLoggerV2.tsx+++ b/src/shared/components/RequestLoggerV2.tsx@@ -885,6 +885,7 @@ export default function RequestLoggerV2() {log={selectedLog}detail={detailData}loading={detailLoading}+ debugEnabled={detailLoggingEnabled}onClose={closeDetail}onCopy={copyToClipboard}/>diff --git a/src/shared/constants/providers.ts b/src/shared/constants/providers.tsindex e8e26bfa9f..959733cfd7 100644--- a/src/shared/constants/providers.ts+++ b/src/shared/constants/providers.ts@@ -1033,7 +1033,7 @@ export const APIKEY_PROVIDERS = {icon: "devices",color: "#EA580C",textIcon: "MM",- website: "https://www.mi.com",+ website: "https://mimo.mi.com",},"inference-net": {id: "inference-net",@@ -1542,7 +1542,8 @@ export const SEARCH_PROVIDERS = {color: "#1A237E",textIcon: "SX",website: "https://docs.searxng.org",- authHint: "API key is optional. Set your SearXNG base URL. Some instances may require a bearer token for access.",+ authHint:+ "API key is optional. Set your SearXNG base URL. Some instances may require a bearer token for access.",},};diff --git a/src/shared/services/cliRuntime.ts b/src/shared/services/cliRuntime.tsindex cf021d9e8c..f5d9abcaae 100644--- a/src/shared/services/cliRuntime.ts+++ b/src/shared/services/cliRuntime.ts@@ -717,6 +717,19 @@ const locateCommandCandidate = async (reason: null,};}++ if (result.installed && result.reason === "not_executable") {+ return {+ command: commands[0],+ installed: true,+ commandPath: result.commandPath,+ reason: "not_executable",+ };+ }++ if (result.reason && result.reason !== "not_found") {+ return { command: commands[0], ...result };+ }}}diff --git a/src/shared/utils/modelCatalogSearch.ts b/src/shared/utils/modelCatalogSearch.tsindex c842ff6515..7ab5459da2 100644--- a/src/shared/utils/modelCatalogSearch.ts+++ b/src/shared/utils/modelCatalogSearch.ts@@ -1,4 +1,4 @@-export type ModelCatalogSource = "system" | "custom" | "api-sync" | "fallback" | "alias";+export type ModelCatalogSource = "system" | "custom" | "imported" | "fallback" | "alias";type ModelCatalogTarget = {modelId?: string | null;@@ -20,7 +20,7 @@ export function normalizeModelCatalogSource(source?: string | null): ModelCatalonormalized === "auto-sync" ||normalized === "imported") {- return "api-sync";+ return "imported";}if (normalized === "fallback") return "fallback";if (normalized === "alias") return "alias";@@ -33,8 +33,8 @@ export function normalizeModelCatalogSource(source?: string | null): ModelCataloexport function getModelCatalogSourceLabel(source?: string | null): string {switch (normalizeModelCatalogSource(source)) {- case "api-sync":- return "Synced";+ case "imported":+ return "Imported";case "custom":return "Custom";case "fallback":@@ -49,7 +49,7 @@ export function getModelCatalogSourceLabel(source?: string | null): string {function getModelCatalogSourceSearchText(source?: string | null): string {switch (normalizeModelCatalogSource(source)) {- case "api-sync":+ case "imported":return "synced api imported discovered";case "custom":return "custom manual imported";diff --git a/tests/e2e/api-keys-flow.spec.ts b/tests/e2e/api-keys-flow.spec.tsindex bdf5b5a8b4..11666f05af 100644--- a/tests/e2e/api-keys-flow.spec.ts+++ b/tests/e2e/api-keys-flow.spec.ts@@ -121,6 +121,21 @@ test.describe("API keys flow", () => {return;}+ if (route.request().method() === "PATCH") {+ const keyId = route.request().url().split("/").pop() || "";+ const payload = (await route.request().postDataJSON()) as { name?: string };+ const record = state.keys.find((key) => key.id === keyId);+ if (!record) {+ await fulfillJson(route, { error: "Key not found" }, 404);+ return;+ }+ if (payload.name) {+ record.name = payload.name;+ }+ await fulfillJson(route, { message: "API key settings updated successfully", ...payload });+ return;+ }+await fulfillJson(route, { error: "Method not allowed in api key detail stub" }, 405);});@@ -213,4 +228,157 @@ test.describe("API keys flow", () => {await expect(page.getByText("Team Key")).toHaveCount(0);await expect(createFirstKeyButton).toBeVisible();});++ test("renames a key through the permissions modal", async ({ page }) => {+ const state: {+ keys: ApiKeyRecord[];+ nextId: number;+ } = {+ keys: [],+ nextId: 1,+ };++ await page.route("**/v1/models", async (route) => {+ await fulfillJson(route, { data: [] });+ });++ await page.route("**/api/settings", async (route) => {+ await fulfillJson(route, {});+ });++ await page.route("**/api/providers", async (route) => {+ await fulfillJson(route, {+ connections: [+ { id: "conn-openai", name: "OpenAI Main", provider: "openai", isActive: true },+ ],+ });+ });++ await page.route(/\/api\/usage\/call-logs(?:\?.*)?$/, async (route) => {+ await fulfillJson(route, []);+ });++ await page.route("**/api/sessions", async (route) => {+ await fulfillJson(route, { byApiKey: {} });+ });++ await page.route(/\/api\/keys\/[^/]+$/, async (route) => {+ if (route.request().method() === "PATCH") {+ const keyId = route.request().url().split("/").pop() || "";+ const payload = (await route.request().postDataJSON()) as { name?: string };+ const record = state.keys.find((key) => key.id === keyId);+ if (!record) {+ await fulfillJson(route, { error: "Key not found" }, 404);+ return;+ }+ if (payload.name) {+ record.name = payload.name;+ }+ await fulfillJson(route, { message: "API key settings updated successfully", ...payload });+ return;+ }++ await fulfillJson(route, { error: "Method not allowed" }, 405);+ });++ await page.route("**/api/keys", async (route) => {+ const method = route.request().method();++ if (method === "GET") {+ await fulfillJson(route, {+ keys: state.keys.map(({ fullKey, ...record }) => record),+ allowKeyReveal: true,+ });+ return;+ }++ if (method === "POST") {+ const payload = (route.request().postDataJSON() as { name?: string }) || {};+ const id = `key-${state.nextId++}`;+ const suffix = String(1000 + state.nextId);+ const fullKey = `sk-live-${suffix}-demo-secret`;+ const maskedKey = `sk-live-****${suffix}`;+ state.keys.push({+ id,+ name: payload.name || "New Key",+ key: maskedKey,+ fullKey,+ allowedModels: null,+ allowedConnections: null,+ createdAt: new Date("2026-04-05T20:00:00.000Z").toISOString(),+ });++ await fulfillJson(route, { key: fullKey, id });+ return;+ }++ await fulfillJson(route, { error: "Method not allowed" }, 405);+ });++ await gotoDashboardRoute(page, "/dashboard/api-manager", {+ timeoutMs: NAVIGATION_TIMEOUT_MS,+ });+ await waitForPageToSettle(page);+ await waitForNextDevCompileToFinish(page);++ // --- Create a key ---+ const createFirstKeyButton = page.getByRole("button", {+ name: /create (your )?first key/i,+ });+ await expect(createFirstKeyButton).toBeVisible({ timeout: UI_STABILITY_TIMEOUT_MS });+ await waitForPageToSettle(page);+ await waitForNextDevCompileToFinish(page);+ await createFirstKeyButton.click();++ const createDialog = page.getByRole("dialog", { name: /create api key/i });+ await expect(createDialog).toBeVisible({ timeout: UI_STABILITY_TIMEOUT_MS });+ await createDialog.locator("input").first().fill("Original Name");+ const createKeyButton = createDialog.getByRole("button", { name: /create api key/i });+ await expect(createKeyButton).toBeEnabled({ timeout: UI_STABILITY_TIMEOUT_MS });+ await createKeyButton.click({ force: true });+ await expect.poll(() => state.keys.length).toBe(1);++ // Dismiss the "key created" dialog+ const createdDialog = page.getByRole("dialog", { name: /api key created/i });+ await createdDialog.getByRole("button", { name: /done/i }).click();++ // Wait for the key list to settle after re-fetch+ await waitForPageToSettle(page);+ await waitForNextDevCompileToFinish(page);++ // Verify the key appears in the list+ await expect(page.getByText("Original Name")).toBeVisible({+ timeout: UI_STABILITY_TIMEOUT_MS,+ });++ // --- Open the permissions modal ---+ // The edit-permissions button is opacity-0 until hover; use title attribute locator+ const keyRow = page+ .locator("div")+ .filter({ has: page.getByText("Original Name", { exact: true }) })+ .first();+ await keyRow.locator('button[title="Edit permissions"]').click({ force: true });++ // --- Rename the key ---+ const permissionsDialog = page.getByRole("dialog", { name: /permissions: original name/i });+ await expect(permissionsDialog).toBeVisible({ timeout: UI_STABILITY_TIMEOUT_MS });++ // The key name input is inside the permissions modal+ const nameInput = permissionsDialog.locator("input").first();+ await expect(nameInput).toHaveValue("Original Name");+ await nameInput.clear();+ await nameInput.fill("Renamed Key");++ // Save+ await permissionsDialog+ .getByRole("button", { name: /save permissions/i })+ .click({ force: true });++ // Verify the mock state was updated+ await expect.poll(() => state.keys[0]?.name).toBe("Renamed Key");++ // Verify the dialog closes and the list reflects the new name+ await expect(permissionsDialog).not.toBeVisible({ timeout: UI_STABILITY_TIMEOUT_MS });+ await expect(page.getByText("Renamed Key")).toBeVisible();+ });});diff --git a/tests/e2e/resilience-plan-alignment.spec.ts b/tests/e2e/resilience-plan-alignment.spec.tsindex 374830841b..18a0097c4f 100644--- a/tests/e2e/resilience-plan-alignment.spec.ts+++ b/tests/e2e/resilience-plan-alignment.spec.ts@@ -167,7 +167,7 @@ async function mockHealthPageApis(page: Page) {});});- await page.route("**/api/v1/db/health", async (route) => {+ await page.route("**/api/db/health", async (route) => {await route.fulfill({status: 200,contentType: "application/json",diff --git a/tests/integration/api-keys.test.ts b/tests/integration/api-keys.test.tsindex e86a03cd3b..cf6dd31698 100644--- a/tests/integration/api-keys.test.ts+++ b/tests/integration/api-keys.test.ts@@ -438,6 +438,47 @@ test("PATCH /api/keys/[id] updates permissions and rejects invalid payloads", asassert.equal(missingKeyBody.error, "Key not found");});+test("PATCH /api/keys/[id] renames a key and rejects invalid names", async () => {+ await enableManagementAuth();+ await createManagementKey();+ const created = await apiKeysDb.createApiKey("Original Name", MACHINE_ID);++ // Valid rename+ const renameResponse = await keyRoute.PATCH(+ await makeManagementSessionRequest(`http://localhost/api/keys/${created.id}`, {+ method: "PATCH",+ body: { name: "Renamed Key" },+ }),+ { params: Promise.resolve({ id: created.id }) }+ );+ const renameBody = (await renameResponse.json()) as any;+ const renamed = await apiKeysDb.getApiKeyById(created.id);++ assert.equal(renameResponse.status, 200);+ assert.equal(renameBody.name, "Renamed Key");+ assert.equal(renamed?.name, "Renamed Key");++ // Empty name should be rejected by Zod schema (min(1))+ const emptyNameResponse = await keyRoute.PATCH(+ await makeManagementSessionRequest(`http://localhost/api/keys/${created.id}`, {+ method: "PATCH",+ body: { name: " " },+ }),+ { params: Promise.resolve({ id: created.id }) }+ );+ assert.equal(emptyNameResponse.status, 400);++ // Name too long should be rejected (max 200)+ const longNameResponse = await keyRoute.PATCH(+ await makeManagementSessionRequest(`http://localhost/api/keys/${created.id}`, {+ method: "PATCH",+ body: { name: "x".repeat(201) },+ }),+ { params: Promise.resolve({ id: created.id }) }+ );+ assert.equal(longNameResponse.status, 400);+});+test("DELETE /api/keys/[id] removes keys and reports missing resources", async () => {await enableManagementAuth();await createManagementKey();diff --git a/tests/integration/chat-pipeline.test.ts b/tests/integration/chat-pipeline.test.tsindex bb4a7d155a..a381a65f7f 100644--- a/tests/integration/chat-pipeline.test.ts+++ b/tests/integration/chat-pipeline.test.ts@@ -295,6 +295,39 @@ function buildOpenAIResponsesSSE({);}+function buildOpenAIResponsesJson({+ text = "responses compacted from codex",+ model = "gpt-5.5",+ usage = null,+} = {}) {+ return new Response(+ JSON.stringify({+ id: "resp_compact",+ object: "response",+ status: "completed",+ model,+ output: [+ {+ id: "msg_compact",+ type: "message",+ role: "assistant",+ content: [{ type: "output_text", text, annotations: [] }],+ },+ ],+ output_text: text,+ usage: usage || {+ input_tokens: 90,+ output_tokens: 15,+ total_tokens: 105,+ },+ }),+ {+ status: 200,+ headers: { "Content-Type": "application/json" },+ }+ );+}+async function resetStorage() {globalThis.fetch = originalFetch;process.env.REQUIRE_API_KEY = "false";@@ -531,6 +564,48 @@ test("chat pipeline persists Codex responses cache and reasoning tokens to callassert.equal(callLog.tokens.reasoning, 13);});+test("chat pipeline treats Codex /responses/compact as non-streaming JSON", async () => {+ await seedConnection("codex", { apiKey: "sk-codex-compact" });+ const fetchCalls = [];++ globalThis.fetch = async (url, init = {}) => {+ fetchCalls.push({+ url: String(url),+ headers: toPlainHeaders(init.headers),+ body: init.body ? JSON.parse(String(init.body)) : null,+ });+ return buildOpenAIResponsesJson();+ };++ const response = await handleChat(+ buildRequest({+ url: "http://localhost/v1/responses/compact",+ headers: { Accept: "text/event-stream" },+ body: {+ model: "codex/gpt-5.5",+ input: "Compact this session",+ },+ })+ );++ const json = (await response.json()) as { object?: string; output_text?: string };+ const callLog = await waitFor(() => getLatestCallLog());++ assert.equal(response.status, 200);+ assert.equal(fetchCalls.length, 1);+ assert.match(fetchCalls[0].url, /\/responses\/compact$/);+ assert.equal(fetchCalls[0].headers.Accept, "application/json");+ assert.equal(fetchCalls[0].body.stream, undefined);+ assert.equal(fetchCalls[0].body.store, undefined);+ assert.equal(json.object, "response");+ assert.equal(json.output_text, "responses compacted from codex");++ assert.ok(callLog, "expected a compact call log row to be created");+ assert.equal(callLog.provider, "codex");+ assert.equal(callLog.path, "/v1/responses/compact");+ assert.equal(callLog.status, 200);+});+test("chat pipeline serves repeated /v1/responses requests as MISS then HIT and logs cache hits separately", async () => {await seedConnection("codex", { apiKey: "sk-codex-cache-seq" });const fetchCalls = [];diff --git a/tests/manual/claude.http b/tests/manual/claude.httpnew file mode 100644index 0000000000..b7e8aa3f87--- /dev/null+++ b/tests/manual/claude.http@@ -0,0 +1,130 @@+###+# @name Gemini - Anthropics Messages API-format - streaming response test - max_tokens test+POST {{omniroute-address}}/v1/messages+x-api-key: {{OMNIROUTE_API_KEY}}+anthropic-version: 2023-06-01+Content-Type: text/event-stream++{+ "model": "default",+ "max_tokens": 10,+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ]+}++###+# @name Gemini - Anthropics Messages API-format - non-streaming response test - max_tokens test+POST {{omniroute-address}}/v1/messages+x-api-key: {{OMNIROUTE_API_KEY}}+anthropic-version: 2023-06-01+Content-Type: application/json++{+ "model": "default",+ "stream": false,+ "max_tokens": 10,+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ]+}++###+# @name Gemini - Anthropics Messages API-format - streaming response test - thinking-budget not supported+POST {{omniroute-address}}/v1/messages+x-api-key: {{OMNIROUTE_API_KEY}}+anthropic-version: 2023-06-01+Content-Type: application/json++{+ "model": "gemini/gemma-4-31b-it",+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ],+ "output_config": {+ "effort": "high"+ },+ "stream": true+}++###+# @name Gemini - Anthropics Messages API-format - streaming response test+# @timeout 300+POST {{omniroute-address}}/v1/messages+x-api-key: {{OMNIROUTE_API_KEY}}+anthropic-version: 2023-06-01+Content-Type: text/event-stream++{+ "model": "default",+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ]+}++###+# @name Gemini - Anthropics Messages API-format - non-streaming response test+# @timeout 300+POST {{omniroute-address}}/v1/messages+x-api-key: {{OMNIROUTE_API_KEY}}+anthropic-version: 2023-06-01+Content-Type: application/json++{+ "model": "default",+ "stream": false,+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ]+}++###+# @name Gemini - OpenAI API-format - streaming response test - max_tokens test+POST {{omniroute-address}}/v1/chat/completions+Content-Type: text/event-stream+Authorization: Bearer {{OMNIROUTE_API_KEY}}++{+ "model": "default",+ "max_tokens": 10,+ "stream": true,+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ]+}++###+# @name Gemini - OpenAI API-format - non-streaming response test - max_tokens test+POST {{omniroute-address}}/v1/chat/completions+Content-Type: application/json+Authorization: Bearer {{OMNIROUTE_API_KEY}}++{+ "model": "default",+ "max_tokens": 10,+ "stream": false,+ "messages": [+ {+ "role": "user",+ "content": "hi"+ }+ ]+}\ No newline at end of filediff --git a/tests/unit/account-fallback-service.test.ts b/tests/unit/account-fallback-service.test.tsindex a72518e7ba..6e0253f697 100644--- a/tests/unit/account-fallback-service.test.ts+++ b/tests/unit/account-fallback-service.test.ts@@ -405,7 +405,7 @@ test("recordModelLockoutFailure uses provider profile cooldowns, backoff, and re// Provider-level failure circuit breaker teststest("isProviderFailureCode correctly identifies provider-wide transient error codes", () => {- assert.equal(isProviderFailureCode(429), false);+ assert.equal(isProviderFailureCode(429), true);assert.equal(isProviderFailureCode(408), true);assert.equal(isProviderFailureCode(500), true);assert.equal(isProviderFailureCode(502), true);diff --git a/tests/unit/antigravity-model-aliases.test.ts b/tests/unit/antigravity-model-aliases.test.tsindex 313fa4b620..070e42d2d4 100644--- a/tests/unit/antigravity-model-aliases.test.ts+++ b/tests/unit/antigravity-model-aliases.test.ts@@ -7,6 +7,7 @@ import {toClientAntigravityModelId,} from "../../open-sse/config/antigravityModelAliases.ts";import { AntigravityExecutor } from "../../open-sse/executors/antigravity.ts";+import { openaiToAntigravityRequest } from "../../open-sse/translator/request/openai-to-gemini.ts";test("resolveAntigravityModelId maps the documented Antigravity aliases to upstream IDs", () => {assert.equal(resolveAntigravityModelId("gemini-3-pro-preview"), "gemini-3.1-pro-high");@@ -57,3 +58,24 @@ test("AntigravityExecutor.transformRequest resolves alias models before dispatchassert.equal(result.model, "gemini-3.1-pro-high");});++test("AntigravityExecutor.transformRequest keeps Claude bridge output cap and strips unsupported thinking", async () => {+ const executor = new AntigravityExecutor();+ const bridged = openaiToAntigravityRequest(+ "claude-sonnet-4-6",+ {+ messages: [{ role: "user", content: "Hello" }],+ max_completion_tokens: 32_000,+ reasoning_effort: "high",+ },+ true,+ { projectId: "project-1" } as any+ );++ const result = await executor.transformRequest("antigravity/claude-sonnet-4-6", bridged, true, {+ projectId: "project-1",+ });++ assert.equal(result.request.generationConfig.maxOutputTokens, 16_384);+ assert.equal(result.request.generationConfig.thinkingConfig, undefined);+});diff --git a/tests/unit/antigravity-tool-cloaking.test.ts b/tests/unit/antigravity-tool-cloaking.test.tsindex ccdb0cca96..cf413718e4 100644--- a/tests/unit/antigravity-tool-cloaking.test.ts+++ b/tests/unit/antigravity-tool-cloaking.test.ts@@ -46,6 +46,10 @@ test("cloakAntigravityToolPayload cloaks custom tools, preserves native tools anassert.ok(names.includes(`workspace_read${AG_TOOL_SUFFIX}`));assert.ok(names.includes("run_command"));assert.ok(names.includes("browser_subagent"));+ assert.ok(names.includes("mcp_sequential_thinking_sequentialthinking"));+ for (const name of names) {+ assert.match(name, /^[a-zA-Z0-9_]+$/);+ }assert.equal(result.body.request.contents[0].parts[0].functionCall.name,`workspace_read${AG_TOOL_SUFFIX}`diff --git a/tests/unit/authz/classify.test.ts b/tests/unit/authz/classify.test.tsindex 3811697050..7f6021992e 100644--- a/tests/unit/authz/classify.test.ts+++ b/tests/unit/authz/classify.test.ts@@ -153,6 +153,7 @@ const cases: Case[] = [expectedClass: "MANAGEMENT",},{ name: "/api/keys MANAGEMENT", path: "/api/keys", expectedClass: "MANAGEMENT" },+ { name: "/api/db/health MANAGEMENT", path: "/api/db/health", expectedClass: "MANAGEMENT" },{ name: "/api/settings MANAGEMENT", path: "/api/settings", expectedClass: "MANAGEMENT" },{ name: "/api/audit MANAGEMENT", path: "/api/audit", expectedClass: "MANAGEMENT" },diff --git a/tests/unit/authz/pipeline.test.ts b/tests/unit/authz/pipeline.test.tsindex 2b6e81c8c3..a2ee225445 100644--- a/tests/unit/authz/pipeline.test.ts+++ b/tests/unit/authz/pipeline.test.ts@@ -174,6 +174,20 @@ test("runAuthzPipeline allows dashboard sessions to read model catalog aliases",assert.equal(response.headers.get("x-omniroute-route-class"), "CLIENT_API");});+test("runAuthzPipeline allows dashboard sessions to reach DB health management API", async () => {+ await forceAuthRequired();++ const response = await pipeline.runAuthzPipeline(+ request("http://localhost/api/db/health", {+ headers: { cookie: await dashboardCookie() },+ }),+ { enforce: true }+ );++ assert.equal(response.status, 200);+ assert.equal(response.headers.get("x-omniroute-route-class"), "MANAGEMENT");+});+test("runAuthzPipeline refreshes dashboard JWTs near expiry", async () => {await forceAuthRequired();const secret = new TextEncoder().encode(process.env.JWT_SECRET);diff --git a/tests/unit/blackbox-web.test.ts b/tests/unit/blackbox-web.test.tsindex 6d80bdb89d..ed305b0419 100644--- a/tests/unit/blackbox-web.test.ts+++ b/tests/unit/blackbox-web.test.ts@@ -148,7 +148,76 @@ test("Error: 401 returns auth error", async () => {assert.equal(result.response.status, 401);const json = (await result.response.json()) as any;assert.match(json.error.message, /auth failed/i);- assert.match(json.error.message, /session cookie/i);+ assert.match(json.error.message, /session/i);+ } finally {+ restore();+ }+});++test("In-band subscription error in response body returns 402", async () => {+ const upgradeMessage =+ "You have not upgraded your account. " ++ "[Please upgrade to a premium plan to continue](https://app.blackbox.ai/pricing?ref=upgrade-required).";+ const restore = mockFetch(200, upgradeMessage);+ try {+ const executor = new BlackboxWebExecutor();+ const result = await executor.execute({+ model: "anthropic/claude-sonnet-4",+ body: { messages: [{ role: "user", content: "hi" }], stream: false },+ stream: false,+ credentials: { apiKey: "bb-session-token" },+ signal: AbortSignal.timeout(10000),+ log: null,+ });++ assert.equal(result.response.status, 402);+ const json = (await result.response.json()) as any;+ assert.equal(json.error.code, "BLACKBOX_SUBSCRIPTION_REQUIRED");+ assert.match(json.error.message, /premium subscription/i);+ } finally {+ restore();+ }+});++test("In-band auth error in response body returns 401", async () => {+ const restore = mockFetch(200, "Please login to continue.");+ try {+ const executor = new BlackboxWebExecutor();+ const result = await executor.execute({+ model: "openai/gpt-5.4",+ body: { messages: [{ role: "user", content: "hi" }], stream: false },+ stream: false,+ credentials: { apiKey: "bb-session-token" },+ signal: AbortSignal.timeout(10000),+ log: null,+ });++ assert.equal(result.response.status, 401);+ const json = (await result.response.json()) as any;+ assert.equal(json.error.code, "BLACKBOX_AUTH_REQUIRED");+ assert.match(json.error.message, /session/i);+ } finally {+ restore();+ }+});++test("In-band rate limit error in response body returns 429", async () => {+ const restore = mockFetch(200, "Rate limit exceeded. Try again later.");+ try {+ const executor = new BlackboxWebExecutor();+ const result = await executor.execute({+ model: "openai/gpt-5.4",+ body: { messages: [{ role: "user", content: "hi" }], stream: false },+ stream: false,+ credentials: { apiKey: "bb-session-token" },+ signal: AbortSignal.timeout(10000),+ log: null,+ });++ assert.equal(result.response.status, 429);+ const json = (await result.response.json()) as any;+ assert.equal(json.error.code, "BLACKBOX_RATE_LIMIT");+ assert.match(json.error.message, /rate limited/i);} finally {restore();}@@ -192,11 +261,11 @@ test("Error: empty messages returns 400", async () => {test("Cookie normalization supports raw tokens, prefixed tokens and full headers", () => {assert.equal(normalizeBlackboxCookieHeader("raw-session-token"),- "__Secure-authjs.session-token=raw-session-token"+ "next-auth.session-token=raw-session-token");assert.equal(normalizeBlackboxCookieHeader("cookie:raw-session-token"),- "__Secure-authjs.session-token=raw-session-token"+ "next-auth.session-token=raw-session-token");assert.equal(normalizeBlackboxCookieHeader("__Secure-authjs.session-token=token; other=value"),@@ -218,7 +287,7 @@ test("Request: posts to correct Blackbox endpoint with normalized cookie", async});assert.equal(cap.url, "https://app.blackbox.ai/api/chat");- assert.equal(cap.headers.Cookie, "__Secure-authjs.session-token=raw-session-token");+ assert.equal(cap.headers.Cookie, "next-auth.session-token=raw-session-token");assert.equal(cap.headers.Origin, "https://app.blackbox.ai");assert.match(String(cap.headers.Referer), /^https:\/\/app\.blackbox\.ai\/chat\//);} finally {diff --git a/tests/unit/call-log-stream-debug.test.ts b/tests/unit/call-log-stream-debug.test.tsnew file mode 100644index 0000000000..33d3978f74--- /dev/null+++ b/tests/unit/call-log-stream-debug.test.ts@@ -0,0 +1,95 @@+import test from "node:test";+import assert from "node:assert/strict";+import fs from "node:fs";+import os from "node:os";+import path from "node:path";++const TEST_DATA_DIR = fs.mkdtempSync(path.join(os.tmpdir(), "omniroute-stream-debug-"));+process.env.DATA_DIR = TEST_DATA_DIR;++const core = await import("../../src/lib/db/core.ts");+const callLogs = await import("../../src/lib/usage/callLogs.ts");++async function resetStorage() {+ core.resetDbInstance();+ if (fs.existsSync(TEST_DATA_DIR)) {+ fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });+ }+ fs.mkdirSync(TEST_DATA_DIR, { recursive: true });+}++test.beforeEach(async () => {+ await resetStorage();+});++test.after(() => {+ core.resetDbInstance();+ fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });+});++test("saveCallLog preserves streamChunks in pipeline payloads", async () => {+ const logId = "req_stream_debug_1";++ const streamChunks = {+ provider: [+ 'data: {"content": "hello"}\n\n',+ 'data: {"content": " world"}\n\n',+ "data: [DONE]\n\n",+ ],+ openai: [+ 'data: {"choices":[{"delta":{"content":"hello"}}]}\n\n',+ 'data: {"choices":[{"delta":{"content":" world"}}]}\n\n',+ ],+ client: [+ 'data: {"choices":[{"delta":{"content":"hello"}}]}\n\n',+ 'data: {"choices":[{"delta":{"content":" world"}}]}\n\n',+ ],+ };++ await callLogs.saveCallLog({+ id: logId,+ timestamp: new Date().toISOString(),+ status: 200,+ model: "gemini/gemma-4-26b-a4b-it",+ provider: "gemini",+ pipelinePayloads: {+ clientRawRequest: { body: { stream: true } },+ streamChunks: streamChunks,+ },+ });++ const detail = await callLogs.getCallLogById(logId);++ assert.ok(detail, "Log detail should exist");+ assert.ok(detail.pipelinePayloads, "Pipeline payloads should exist");+ assert.ok(detail.pipelinePayloads.streamChunks, "streamChunks should exist in pipeline payloads");++ assert.deepEqual(detail.pipelinePayloads.streamChunks.provider, streamChunks.provider);+ assert.deepEqual(detail.pipelinePayloads.streamChunks.openai, streamChunks.openai);+ assert.deepEqual(detail.pipelinePayloads.streamChunks.client, streamChunks.client);+});++test("saveCallLog preserves partial streamChunks", async () => {+ const logId = "req_stream_debug_2";++ const streamChunks = {+ provider: ["raw chunk 1", "raw chunk 2"],+ // other stages missing+ };++ await callLogs.saveCallLog({+ id: logId,+ status: 200,+ model: "test-model",+ pipelinePayloads: {+ streamChunks: streamChunks,+ },+ });++ const detail = await callLogs.getCallLogById(logId);++ assert.ok(detail?.pipelinePayloads?.streamChunks, "streamChunks should exist");+ assert.deepEqual(detail.pipelinePayloads.streamChunks.provider, streamChunks.provider);+ assert.equal(detail.pipelinePayloads.streamChunks.openai, undefined);+ assert.equal(detail.pipelinePayloads.streamChunks.client, undefined);+});diff --git a/tests/unit/chatgpt-web.test.ts b/tests/unit/chatgpt-web.test.tsindex 76a18e74cd..585672f380 100644--- a/tests/unit/chatgpt-web.test.ts+++ b/tests/unit/chatgpt-web.test.ts@@ -199,8 +199,8 @@ function installMockFetch({};}const tinyPng = Buffer.from([- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,- 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44,+ 0x52,]);return {status: cfg.status,@@ -1040,7 +1040,7 @@ test("Request: payload has correct ChatGPT shape", async () => {const convIdx = m.calls.urls.findIndex((u) => u.endsWith("/backend-api/f/conversation"));const body = JSON.parse(m.calls.bodies[convIdx]);assert.equal(body.action, "next");- assert.equal(body.model, "gpt-5-3");+ assert.equal(body.model, "gpt-5-3-instant");// Plain text request → Temporary Chat stays ON. We disable it only for// image-gen prompts (see "Image gen: image-intent prompts" tests below).assert.equal(body.history_and_training_disabled, true);@@ -1057,14 +1057,67 @@ test("Request: payload has correct ChatGPT shape", async () => {// ─── Provider registry ──────────────────────────────────────────────────────-test("Provider registry: chatgpt-web is registered with gpt-5.3-instant model", async () => {+test("Provider registry: chatgpt-web exposes the full ChatGPT Plus model catalog", async () => {const { getRegistryEntry } = await import("../../open-sse/config/providerRegistry.ts");const entry = getRegistryEntry("chatgpt-web");assert.ok(entry, "chatgpt-web should be in the registry");assert.equal(entry.executor, "chatgpt-web");assert.equal(entry.format, "openai");assert.equal(entry.authHeader, "cookie");- assert.ok(entry.models.find((m) => m.id === "gpt-5.3-instant"));++ const ids = (entry.models || []).map((m) => m.id);+ // Mirrors /backend-api/models for a Plus account (no "research" or+ // "agent-mode" — those are specialty surfaces, not chat models).+ for (const id of [+ "gpt-5.3-instant",+ "gpt-5.3",+ "gpt-5.3-mini",+ "gpt-5.5-thinking",+ "gpt-5.4-thinking",+ "gpt-5.4-thinking-mini",+ "gpt-5.2-instant",+ "gpt-5.2",+ "gpt-5.2-thinking",+ "gpt-5.1",+ "gpt-5",+ "gpt-5-mini",+ "o3",+ ]) {+ assert.ok(ids.includes(id), `registry should list ${id}`);+ }+});++test("Executor MODEL_MAP: dot-form OmniRoute IDs translate to dash-form ChatGPT slugs", async () => {+ reset();+ const m = installMockFetch();+ try {+ const cases: Array<[string, string]> = [+ ["gpt-5.3-instant", "gpt-5-3-instant"],+ ["gpt-5.3", "gpt-5-3"],+ ["gpt-5.5-thinking", "gpt-5-5-thinking"],+ ["gpt-5.4-thinking-mini", "gpt-5-4-t-mini"],+ ["gpt-5.2-thinking", "gpt-5-2-thinking"],+ ["o3", "o3"],+ ];+ for (const [omniId, expectedSlug] of cases) {+ m.calls.urls.length = 0;+ m.calls.bodies.length = 0;+ const executor = new ChatGptWebExecutor();+ await executor.execute({+ model: omniId,+ body: { messages: [{ role: "user", content: "hi" }] },+ stream: false,+ credentials: { apiKey: "test" },+ signal: AbortSignal.timeout(10_000),+ log: null,+ });+ const convIdx = m.calls.urls.findIndex((u) => u.endsWith("/backend-api/f/conversation"));+ const body = JSON.parse(m.calls.bodies[convIdx]);+ assert.equal(body.model, expectedSlug, `${omniId} should map to ${expectedSlug}`);+ }+ } finally {+ m.restore();+ }});test("Image registry: cgpt-web/gpt-5.3-instant routes to ChatGPT Web image handler", async () => {@@ -1647,7 +1700,11 @@ test("Image gen: sediment:// pointer prefers /files/<id>/download over /attachme// round-trip); the /attachment endpoint is a fallback for when the// primary 404s. The mock /files/ response also doubles as the image// bytes that are cached behind the emitted OmniRoute image URL.- assert.match(content, /!\[image\]\([^)]*\/v1\/chatgpt-web\/image\/[a-f0-9]+\)/, "image rendered");+ assert.match(+ content,+ /!\[image\]\([^)]*\/v1\/chatgpt-web\/image\/[a-f0-9]+\)/,+ "image rendered"+ );assert.doesNotMatch(content, /files\.oaiusercontent\.com/);assert.equal(m.calls.fileDownload, 1, "tried /files/ endpoint first");assert.equal(m.calls.attachmentDownload, 0, "did not need /attachment fallback");@@ -2188,7 +2245,11 @@ test("Image gen: bytes-fetch failure drops markdown (no signed-URL fallback)", aconst json = await result.response.json();const content = json.choices[0].message.content;assert.doesNotMatch(content, /!\[image\]/, "no markdown for failed bytes fetch");- assert.doesNotMatch(content, /files\.oaiusercontent\.com/, "signed URL is never leaked to client");+ assert.doesNotMatch(+ content,+ /files\.oaiusercontent\.com/,+ "signed URL is never leaked to client"+ );assert.equal(m.calls.fileDownload, 1, "download URL was attempted");assert.equal(m.calls.signedDownload, 1, "signed-bytes fetch was attempted and failed");} finally {@@ -2257,9 +2318,17 @@ test("Image edit: file_0000XXXX (chatgpt-web edit result) falls back to /conversassert.equal(result.response.status, 200);const json = await result.response.json();const content = json.choices[0].message.content;- assert.match(content, /!\[image\]\([^)]*\/v1\/chatgpt-web\/image\/[a-f0-9]+\)/, "image rendered via fallback");+ assert.match(+ content,+ /!\[image\]\([^)]*\/v1\/chatgpt-web\/image\/[a-f0-9]+\)/,+ "image rendered via fallback"+ );assert.equal(m.calls.fileDownload, 1, "tried /files/ first");- assert.equal(m.calls.attachmentDownload, 1, "fell back to /conversation/.../attachment/.../download");+ assert.equal(+ m.calls.attachmentDownload,+ 1,+ "fell back to /conversation/.../attachment/.../download"+ );assert.equal(m.calls.signedDownload, 1, "fetched signed bytes once");} finally {m.restore();@@ -2342,12 +2411,13 @@ test("Image edit handler: bytes-hash match drives executor with cached conversatconst m = installMockFetch({// Conv response must include an image pointer so the handler sees// markdown in the assistant message and treats the edit as successful.- conv: { status: 200, events: imageGenEvents({ pointer: "file-service://file-edited-day", text: "Done:" }) },+ conv: {+ status: 200,+ events: imageGenEvents({ pointer: "file-service://file-edited-day", text: "Done:" }),+ },});try {- const { handleImageEdit } = await import(- "../../open-sse/handlers/imageGeneration.ts"- );+ const { handleImageEdit } = await import("../../open-sse/handlers/imageGeneration.ts");const result = await handleImageEdit({provider: "chatgpt-web",model: "gpt-5.3-instant",@@ -2363,10 +2433,7 @@ test("Image edit handler: bytes-hash match drives executor with cached conversatassert.equal(sentBody.conversation_id, "conv-edit-handler");assert.equal(sentBody.parent_message_id, "msg-edit-handler");assert.equal(sentBody.history_and_training_disabled, false);- assert.match(- sentBody.messages[sentBody.messages.length - 1].content.parts[0],- /day time/- );+ assert.match(sentBody.messages[sentBody.messages.length - 1].content.parts[0], /day time/);} finally {m.restore();}@@ -2383,9 +2450,7 @@ test("Image edit handler: no cached match returns 400 (does not silently generatconst m = installMockFetch();try {- const { handleImageEdit } = await import(- "../../open-sse/handlers/imageGeneration.ts"- );+ const { handleImageEdit } = await import("../../open-sse/handlers/imageGeneration.ts");const foreignBytes = Buffer.from([0xff, 0xd8, 0xff, 0xe0, 0xde, 0xad, 0xbe, 0xef]);const result = await handleImageEdit({provider: "chatgpt-web",@@ -2413,9 +2478,7 @@ test("Image gen handler: n>4 is rejected before any upstream call", async () =>reset();const m = installMockFetch();try {- const { handleImageGeneration } = await import(- "../../open-sse/handlers/imageGeneration.ts"- );+ const { handleImageGeneration } = await import("../../open-sse/handlers/imageGeneration.ts");const result = await handleImageGeneration({body: { prompt: "draw a kitten", n: 5, model: "cgpt-web/gpt-5.3-instant" },credentials: { apiKey: "test" },@@ -2443,5 +2506,9 @@ test("Image cache: deleting an entry decrements the byte counter", async () => {// Wait past the 10 ms TTL, then trigger eviction by reading.await new Promise((r) => setTimeout(r, 25));assert.equal(cacheMod.getChatGptImage(id), null, "entry expired");- assert.equal(cacheMod.__getChatGptImageCacheBytesForTesting(), 0, "bytes credited back on TTL evict");+ assert.equal(+ cacheMod.__getChatGptImageCacheBytesForTesting(),+ 0,+ "bytes credited back on TTL evict"+ );});diff --git a/tests/unit/cli-runtime-extended.test.ts b/tests/unit/cli-runtime-extended.test.tsindex c4aadfe3dc..b519e1c884 100644--- a/tests/unit/cli-runtime-extended.test.ts+++ b/tests/unit/cli-runtime-extended.test.ts@@ -226,7 +226,7 @@ test("getCliRuntimeStatus ignores suspicious known-path binaries and symlink escconst suspiciousStatus = await cliRuntime.getCliRuntimeStatus("qoder");assert.equal(suspiciousStatus.installed, false);- assert.equal(suspiciousStatus.reason, "not_found");+ assert.equal(suspiciousStatus.reason, "suspicious_size");if (process.platform !== "win32") {const escapePrefix = createTempDir("omniroute-cli-escape-");@@ -246,7 +246,7 @@ test("getCliRuntimeStatus ignores suspicious known-path binaries and symlink escconst escapedStatus = await escapedRuntime.getCliRuntimeStatus("qoder");assert.equal(escapedStatus.installed, false);- assert.equal(escapedStatus.reason, "not_found");+ assert.equal(escapedStatus.reason, "symlink_escape");}});diff --git a/tests/unit/codex-stream-false.test.ts b/tests/unit/codex-stream-false.test.tsindex 50d2988d1b..8cb8ed214a 100644--- a/tests/unit/codex-stream-false.test.ts+++ b/tests/unit/codex-stream-false.test.ts@@ -11,6 +11,11 @@ const core = await import("../../src/lib/db/core.ts");const { handleChatCore } = await import("../../open-sse/handlers/chatCore.ts");const { handleComboChat } = await import("../../open-sse/services/combo.ts");const { CodexExecutor } = await import("../../open-sse/executors/codex.ts");+const {+ clearRememberedResponseFunctionCallsForTesting,+ getRememberedResponseConversationItems,+ rememberResponseFunctionCalls,+} = await import("../../open-sse/services/responsesToolCallState.ts");const originalFetch = globalThis.fetch;@@ -187,15 +192,87 @@ async function invokeChatCore({test.beforeEach(async () => {globalThis.fetch = originalFetch;+ clearRememberedResponseFunctionCallsForTesting();await resetStorage();});test.after(async () => {globalThis.fetch = originalFetch;+ clearRememberedResponseFunctionCallsForTesting();await resetStorage();fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });});+test("chatCore remembers Codex Responses conversation state from transformed body, not raw client input", async () => {+ rememberResponseFunctionCalls("resp_prev_tool_123", [+ {+ type: "function_call",+ call_id: "call_tool_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ },+ ]);++ const { result } = await invokeChatCore({+ endpoint: "/v1/responses",+ accept: "text/event-stream",+ provider: "codex",+ model: "gpt-5.5-low",+ body: {+ model: "gpt-5.5-low",+ previous_response_id: "resp_prev_tool_123",+ input: [+ {+ type: "function_call_output",+ call_id: "call_tool_123",+ output: '{"ok":true}',+ },+ ],+ },+ responseFactory: () =>+ new Response(+ [+ "event: response.created",+ 'data: {"type":"response.created","response":{"id":"resp_current_456","model":"gpt-5.5-low","status":"in_progress","output":[]}}',+ "",+ "event: response.completed",+ 'data: {"type":"response.completed","response":{"id":"resp_current_456","object":"response","model":"gpt-5.5-low","status":"completed","output":[{"type":"message","role":"assistant","content":[{"type":"output_text","text":"done"}]}],"usage":{"input_tokens":6,"output_tokens":1}}}',+ "",+ "data: [DONE]",+ "",+ ].join("\n"),+ {+ status: 200,+ headers: { "Content-Type": "text/event-stream" },+ }+ ),+ });++ assert.equal(result.success, true);+ await result.response.text();+ await waitForAsyncSideEffects();++ const rememberedItems = getRememberedResponseConversationItems("resp_current_456");+ const rememberedFunctionCall = rememberedItems.find(+ (item) => item && typeof item === "object" && item.type === "function_call"+ );+ const rememberedFunctionCallOutput = rememberedItems.find(+ (item) => item && typeof item === "object" && item.type === "function_call_output"+ );++ assert.deepEqual(rememberedFunctionCall, {+ type: "function_call",+ call_id: "call_tool_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ });+ assert.deepEqual(rememberedFunctionCallOutput, {+ type: "function_call_output",+ call_id: "call_tool_123",+ output: '{"ok":true}',+ });+});+test("CodexExecutor.transformRequest clones the request body before forcing stream=true", () => {const executor = new CodexExecutor();const body = {diff --git a/tests/unit/console-log-levels.test.ts b/tests/unit/console-log-levels.test.tsindex 531a26c329..0ccc7abe45 100644--- a/tests/unit/console-log-levels.test.ts+++ b/tests/unit/console-log-levels.test.ts@@ -4,6 +4,8 @@ import fs from "node:fs";import os from "node:os";import path from "node:path";+import { updateSettings } from "../../src/lib/db/settings";+const TEST_LOG_DIR = fs.mkdtempSync(path.join(os.tmpdir(), "omniroute-console-log-levels-"));const TEST_LOG_PATH = path.join(TEST_LOG_DIR, "app.log");@@ -12,7 +14,12 @@ process.env.APP_LOG_FILE_PATH = TEST_LOG_PATH;const route = await import("../../src/app/api/logs/console/route.ts");-test.after(() => {+test.before(async () => {+ await updateSettings({ requireLogin: false });+});++test.after(async () => {+ await updateSettings({ requireLogin: true });if (originalLogFilePath === undefined) {delete process.env.APP_LOG_FILE_PATH;} else {diff --git a/tests/unit/db-health-route.test.ts b/tests/unit/db-health-route.test.tsindex fa8c136e20..8b36871b88 100644--- a/tests/unit/db-health-route.test.ts+++ b/tests/unit/db-health-route.test.ts@@ -3,29 +3,44 @@ import assert from "node:assert/strict";import fs from "node:fs";import os from "node:os";import path from "node:path";+import { SignJWT } from "jose";const TEST_DATA_DIR = fs.mkdtempSync(path.join(os.tmpdir(), "omniroute-db-health-route-"));process.env.DATA_DIR = TEST_DATA_DIR;process.env.API_KEY_SECRET = process.env.API_KEY_SECRET || "task-303-api-key-secret";const core = await import("../../src/lib/db/core.ts");-const apiKeysDb = await import("../../src/lib/db/apiKeys.ts");-const routeModule = await import("../../src/app/api/v1/db/health/route.ts");+const routeModule = await import("../../src/app/api/db/health/route.ts");++const ORIGINAL_JWT_SECRET = process.env.JWT_SECRET;+const ORIGINAL_INITIAL_PASSWORD = process.env.INITIAL_PASSWORD;+const TEST_JWT_SECRET = "db-health-route-jwt-secret";+const TEST_INITIAL_PASSWORD = "db-health-route-password";async function resetStorage() {core.resetDbInstance();- apiKeysDb.resetApiKeyState();fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });fs.mkdirSync(TEST_DATA_DIR, { recursive: true });+ process.env.JWT_SECRET = TEST_JWT_SECRET;+ process.env.INITIAL_PASSWORD = TEST_INITIAL_PASSWORD;}-function makeRequest(method, token) {- return new Request("http://localhost/api/v1/db/health", {+function makeRequest(method, cookie) {+ return new Request("http://localhost/api/db/health", {method,- headers: token ? { Authorization: `Bearer ${token}` } : {},+ headers: cookie ? { cookie } : {},});}+async function dashboardCookie() {+ const secret = new TextEncoder().encode(TEST_JWT_SECRET);+ const token = await new SignJWT({ authenticated: true })+ .setProtectedHeader({ alg: "HS256" })+ .setExpirationTime("1h")+ .sign(secret);+ return `auth_token=${token}`;+}+function insertBrokenRows(db) {db.prepare(`INSERT INTO quota_snapshots@@ -43,35 +58,27 @@ test.beforeEach(async () => {test.after(async () => {core.resetDbInstance();- apiKeysDb.resetApiKeyState();fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });+ if (ORIGINAL_JWT_SECRET === undefined) delete process.env.JWT_SECRET;+ else process.env.JWT_SECRET = ORIGINAL_JWT_SECRET;+ if (ORIGINAL_INITIAL_PASSWORD === undefined) delete process.env.INITIAL_PASSWORD;+ else process.env.INITIAL_PASSWORD = ORIGINAL_INITIAL_PASSWORD;});-test("GET /api/v1/db/health requires authentication", async () => {- const previousInitialPassword = process.env.INITIAL_PASSWORD;- process.env.INITIAL_PASSWORD = "route-health-auth";-- try {- const response = await routeModule.GET(makeRequest("GET"));- const body = (await response.json()) as any;-- assert.equal(response.status, 401);- assert.equal(body.error.message, "Authentication required");- } finally {- if (previousInitialPassword === undefined) {- delete process.env.INITIAL_PASSWORD;- } else {- process.env.INITIAL_PASSWORD = previousInitialPassword;- }- }+test("GET /api/db/health requires authentication", async () => {+ const response = await routeModule.GET(makeRequest("GET"));+ const body = (await response.json()) as any;++ assert.equal(response.status, 401);+ assert.equal(body.error.message, "Authentication required");});-test("GET /api/v1/db/health diagnoses without mutating database rows", async () => {- const authKey = await apiKeysDb.createApiKey("Health Route", "machine-route-health");+test("GET /api/db/health diagnoses without mutating database rows", async () => {+ const cookie = await dashboardCookie();const db = core.getDbInstance();insertBrokenRows(db);- const response = await routeModule.GET(makeRequest("GET", authKey.key));+ const response = await routeModule.GET(makeRequest("GET", cookie));const body = (await response.json()) as any;assert.equal(response.status, 200);@@ -81,12 +88,12 @@ test("GET /api/v1/db/health diagnoses without mutating database rows", async ()assert.equal((db.prepare("SELECT COUNT(*) AS count FROM domain_budgets").get() as any).count, 1);});-test("POST /api/v1/db/health repairs broken rows for authenticated callers", async () => {- const authKey = await apiKeysDb.createApiKey("Health Route", "machine-route-health");+test("POST /api/db/health repairs broken rows for authenticated callers", async () => {+ const cookie = await dashboardCookie();const db = core.getDbInstance();insertBrokenRows(db);- const response = await routeModule.POST(makeRequest("POST", authKey.key));+ const response = await routeModule.POST(makeRequest("POST", cookie));const body = (await response.json()) as any;assert.equal(response.status, 200);diff --git a/tests/unit/db-models-crud.test.ts b/tests/unit/db-models-crud.test.tsindex 7f8f63f76c..bd21ad6aca 100644--- a/tests/unit/db-models-crud.test.ts+++ b/tests/unit/db-models-crud.test.ts@@ -115,7 +115,7 @@ test("replaceCustomModels preserves compat fields and respects the empty-list gu{id: "gpt-4.1",name: "GPT-4.1 Refreshed",- source: "api-sync",+ source: "imported",supportsThinking: true,},]);@@ -147,12 +147,12 @@ test("removing a custom model also removes its compat override", async () => {test("synced available models are unioned across connections and cleaned per connection", async () => {await modelsDb.replaceSyncedAvailableModelsForConnection("openai", "conn-a", [- { id: "gpt-4.1", name: "GPT-4.1", source: "api-sync" },- { id: "gpt-4.1-mini", name: "GPT-4.1 Mini", source: "api-sync" },+ { id: "gpt-4.1", name: "GPT-4.1", source: "imported" },+ { id: "gpt-4.1-mini", name: "GPT-4.1 Mini", source: "imported" },]);const union = await modelsDb.replaceSyncedAvailableModelsForConnection("openai", "conn-b", [- { id: "gpt-4.1-mini", name: "GPT-4.1 Mini", source: "api-sync" },- { id: "o3-mini", name: "o3-mini", source: "api-sync" },+ { id: "gpt-4.1-mini", name: "GPT-4.1 Mini", source: "imported" },+ { id: "o3-mini", name: "o3-mini", source: "imported" },]);const remaining = await modelsDb.deleteSyncedAvailableModelsForConnection("openai", "conn-a");const allProviders = await modelsDb.getAllSyncedAvailableModels();diff --git a/tests/unit/executor-antigravity.test.ts b/tests/unit/executor-antigravity.test.tsindex 817a3d4d1a..01d3d8341c 100644--- a/tests/unit/executor-antigravity.test.ts+++ b/tests/unit/executor-antigravity.test.ts@@ -3,6 +3,7 @@ import assert from "node:assert/strict";import { AntigravityExecutor } from "../../open-sse/executors/antigravity.ts";import { setCliCompatProviders } from "../../open-sse/config/cliFingerprints.ts";+import { scrubProxyAndFingerprintHeaders } from "../../open-sse/services/antigravityHeaderScrub.ts";import {clearAntigravityVersionCache,seedAntigravityVersionCache,@@ -43,13 +44,28 @@ test("AntigravityExecutor.buildUrl always targets the streaming endpoint", () =>);});-test("AntigravityExecutor.buildHeaders includes auth and SSE accept", () => {+test("AntigravityExecutor.buildHeaders includes native headers without OmniRoute internals", () => {const executor = new AntigravityExecutor();const headers = executor.buildHeaders({ accessToken: "ag-token" }, false);assert.equal(headers.Authorization, "Bearer ag-token");assert.equal(headers.Accept, "text/event-stream");- assert.equal(headers["X-OmniRoute-Source"], "omniroute");+ assert.equal(headers["X-OmniRoute-Source"], undefined);+});++test("Antigravity header scrub removes OmniRoute internal headers", () => {+ const headers = scrubProxyAndFingerprintHeaders({+ Authorization: "Bearer ag-token",+ "X-OmniRoute-Source": "omniroute",+ "X-OmniRoute-No-Cache": "true",+ "X-Forwarded-For": "127.0.0.1",+ });++ assert.equal(headers.Authorization, "Bearer ag-token");+ assert.equal(headers["X-OmniRoute-Source"], undefined);+ assert.equal(headers["X-OmniRoute-No-Cache"], undefined);+ assert.equal(headers["X-Forwarded-For"], undefined);+ assert.equal(headers["Accept-Encoding"], "gzip, deflate, br");});test("AntigravityExecutor.transformRequest normalizes model, project and contents", async () => {@@ -453,10 +469,13 @@ test("AntigravityExecutor.execute applies CLI fingerprint when enabled", async ("request",]);- return new Response('data: {"response":{"candidates":[{"content":{"parts":[{"text":"OK"}]},"finishReason":"STOP"}]}}\n\n', {- status: 200,- headers: { "Content-Type": "text/event-stream" },- });+ return new Response(+ 'data: {"response":{"candidates":[{"content":{"parts":[{"text":"OK"}]},"finishReason":"STOP"}]}}\n\n',+ {+ status: 200,+ headers: { "Content-Type": "text/event-stream" },+ }+ );};try {diff --git a/tests/unit/executor-codex.test.ts b/tests/unit/executor-codex.test.tsindex 5475c78e72..aa4da93610 100644--- a/tests/unit/executor-codex.test.ts+++ b/tests/unit/executor-codex.test.ts@@ -12,6 +12,11 @@ import {isCodexResponsesWebSocketRequired,parseCodexQuotaHeaders,} from "../../open-sse/executors/codex.ts";+import {+ clearRememberedResponseFunctionCallsForTesting,+ rememberResponseConversationState,+ rememberResponseFunctionCalls,+} from "../../open-sse/services/responsesToolCallState.ts";import {DEFAULT_THINKING_CONFIG,setThinkingBudgetConfig,@@ -22,6 +27,7 @@ import { CODEX_CHAT_DEFAULT_INSTRUCTIONS } from "../../open-sse/config/codexInsttest.afterEach(() => {setThinkingBudgetConfig(DEFAULT_THINKING_CONFIG);__setCodexWebSocketTransportForTesting(undefined);+ clearRememberedResponseFunctionCallsForTesting();});async function withEnv(entries: Record<string, string | undefined>, fn: () => any) {@@ -138,7 +144,7 @@ test("CodexExecutor.buildHeaders binds workspace ids and disables SSE accept forassert.equal(standardHeaders.Version, "0.125.0");assert.equal(standardHeaders["Openai-Beta"], "responses=experimental");assert.equal(standardHeaders["X-Codex-Beta-Features"], "responses_websockets");- assert.equal(standardHeaders["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26100; x64)");+ assert.equal(standardHeaders["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26200; x64)");assert.equal(compactHeaders.Accept, "application/json");});@@ -147,13 +153,13 @@ test("CodexExecutor.buildHeaders honors safe env overrides for Version and User-await withEnv({- CODEX_CLIENT_VERSION: "0.120.0-alpha.3",+ CODEX_CLIENT_VERSION: "0.125.0",CODEX_USER_AGENT: undefined,},() => {const headers = executor.buildHeaders({ accessToken: "codex-token" }, true);- assert.equal(headers.Version, "0.120.0-alpha.3");- assert.equal(headers["User-Agent"], "codex-cli/0.120.0-alpha.3 (Windows 10.0.26100; x64)");+ assert.equal(headers.Version, "0.125.0");+ assert.equal(headers["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26200; x64)");});@@ -269,7 +275,7 @@ test("CodexExecutor.transformRequest preserves compact requests and native passtassert.equal(result.stream, undefined);assert.equal(result.service_tier, "priority");assert.equal(result.reasoning.effort, "medium");- assert.equal(result.store, false);+ assert.equal(result.store, undefined);assert.equal(result.instructions, "keep this");});@@ -284,7 +290,7 @@ test("CodexExecutor.transformRequest preserves store-enabled responses state whe};const result = executor.transformRequest("gpt-5.3-codex", body, false, {- requestEndpointPath: "/responses/compact",+ requestEndpointPath: "/responses",providerSpecificData: {openaiStoreEnabled: true,requestDefaults: { serviceTier: "priority" },@@ -293,9 +299,300 @@ test("CodexExecutor.transformRequest preserves store-enabled responses state wheassert.equal(result._omnirouteResponsesStore, undefined);assert.equal(result.store, true);- assert.equal(result.previous_response_id, "resp_prev_123");+ assert.equal(result.previous_response_id, undefined);+});+test("CodexExecutor.transformRequest strips store from compact requests even when store is enabled", () => {+ const executor = new CodexExecutor();+ const body = {+ _nativeCodexPassthrough: true,+ _omnirouteResponsesStore: true,+ instructions: "keep this",+ store: true,+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.3-codex", body, false, {+ requestEndpointPath: "/responses/compact",+ providerSpecificData: {+ openaiStoreEnabled: true,+ requestDefaults: { serviceTier: "priority" },+ },+ });++ assert.equal(result._omnirouteResponsesStore, undefined);+ assert.equal(result.store, undefined);+ assert.equal(result.stream, undefined);+ assert.equal(result.instructions, "keep this");+});++test("CodexExecutor.transformRequest expands remembered conversation state for stateful tool outputs", () => {+ const executor = new CodexExecutor();+ rememberResponseConversationState(+ "resp_prev_tool_123",+ [+ {+ type: "message",+ role: "user",+ content: [+ {+ type: "input_text",+ text: "Read README.md and summarize it.",+ },+ ],+ },+ ],+ [+ {+ type: "function_call",+ call_id: "call_tool_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ },+ ]+ );+ const body = {+ _nativeCodexPassthrough: true,+ previous_response_id: "resp_prev_tool_123",+ input: [+ {+ type: "function_call_output",+ call_id: "call_tool_123",+ output: '{"ok":true}',+ },+ ],+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.5-low", body, false, {+ requestEndpointPath: "/responses",+ });++ assert.equal(result.previous_response_id, undefined);+ assert.equal(result.store, false);+ assert.equal(result.input.length, 3);+ assert.deepEqual(result.input[0], {+ type: "message",+ role: "user",+ content: [+ {+ type: "input_text",+ text: "Read README.md and summarize it.",+ },+ ],+ });+ assert.deepEqual(result.input[1], {+ type: "function_call",+ call_id: "call_tool_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ });+ assert.deepEqual(result.input[2], {+ type: "function_call_output",+ call_id: "call_tool_123",+ output: '{"ok":true}',+ });+});++test("CodexExecutor.transformRequest rehydrates missing function_call items for stateful tool outputs", () => {+ const executor = new CodexExecutor();+ rememberResponseFunctionCalls("resp_prev_tool_123", [+ {+ type: "function_call",+ call_id: "call_tool_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ },+ ]);+ const body = {+ _nativeCodexPassthrough: true,+ previous_response_id: "resp_prev_tool_123",+ input: [+ {+ type: "function_call_output",+ call_id: "call_tool_123",+ output: '{"ok":true}',+ },+ ],+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.5-low", body, false, {+ requestEndpointPath: "/responses",+ });++ assert.equal(result.previous_response_id, undefined);+ assert.equal(result.store, false);+ assert.deepEqual(result.input[0], {+ type: "function_call",+ call_id: "call_tool_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ });+ assert.deepEqual(result.input[1], {+ type: "function_call_output",+ call_id: "call_tool_123",+ output: '{"ok":true}',+ });+});++test("CodexExecutor.transformRequest filters orphaned function_call_output items after replay repair", () => {+ const executor = new CodexExecutor();+ const body = {+ _nativeCodexPassthrough: true,+ previous_response_id: "resp_prev_orphan_123",+ input: [+ {+ type: "function_call",+ call_id: "call_valid_123",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ },+ {+ type: "function_call_output",+ call_id: "call_valid_123",+ output: '{"ok":true}',+ },+ {+ type: "function_call_output",+ call_id: "call_orphan_123",+ output: '{"stale":true}',+ },+ ],+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.5-low", body, false, {+ requestEndpointPath: "/responses",+ });++ assert.equal(result.previous_response_id, undefined);+ assert.equal(result.input.filter((item) => item.type === "function_call_output").length, 1);+ assert.equal(+ result.input.find((item) => item.type === "function_call_output")?.call_id,+ "call_valid_123"+ );+});++test("CodexExecutor.transformRequest filters orphaned function_call items after replay repair", () => {+ const executor = new CodexExecutor();+ const body = {+ _nativeCodexPassthrough: true,+ previous_response_id: "resp_prev_orphan_call_123",+ input: [+ {+ type: "function_call",+ call_id: "call_valid_456",+ name: "workspace_read_file",+ arguments: '{"path":"README.md"}',+ },+ {+ type: "function_call_output",+ call_id: "call_valid_456",+ output: '{"ok":true}',+ },+ {+ type: "function_call",+ call_id: "call_orphan_456",+ name: "workspace_search",+ arguments: '{"query":"Authorization"}',+ },+ ],+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.5-low", body, false, {+ requestEndpointPath: "/responses",+ });++ assert.equal(result.previous_response_id, undefined);+ assert.equal(result.input.filter((item) => item.type === "function_call").length, 1);+ assert.equal(+ result.input.find((item) => item.type === "function_call")?.call_id,+ "call_valid_456"+ );});+test("CodexExecutor.transformRequest synthesizes a recovery message when orphan cleanup empties input", () => {+ const executor = new CodexExecutor();+ const body = {+ _nativeCodexPassthrough: true,+ conversation_id: "conv_empty_after_cleanup",+ session_id: "sess_empty_after_cleanup",+ previous_response_id: "resp_prev_empty_after_cleanup",+ input: [+ {+ type: "function_call",+ call_id: "call_orphan_only_1",+ name: "workspace_search",+ arguments: '{"query":"auth"}',+ },+ {+ type: "function_call_output",+ call_id: "call_orphan_only_2",+ output: '{"matches":1}',+ },+ ],+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.5-low", body, false, {+ requestEndpointPath: "/responses",+ });++ assert.equal(result.previous_response_id, undefined);+ assert.equal(result.conversation_id, undefined);+ assert.equal(result.session_id, undefined);+ assert.equal(result.prompt_cache_key, "sess_empty_after_cleanup");+ assert.equal(Array.isArray(result.input), true);+ assert.equal(result.input.length, 1);+ assert.deepEqual(result.input[0].type, "message");+ assert.deepEqual(result.input[0].role, "user");+ assert.match(result.input[0].content[0].text, /Recovered tool context from the previous turn/);+ assert.match(result.input[0].content[0].text, /call_orphan_only_1/);+ assert.match(result.input[0].content[0].text, /call_orphan_only_2/);+});++test("CodexExecutor.transformRequest repairs orphan function_call_output from global remembered call_id cache", () => {+ const executor = new CodexExecutor();+ rememberResponseFunctionCalls("resp_older_tool_123", [+ {+ type: "function_call",+ call_id: "call_old_123",+ name: "workspace_search",+ arguments: '{"query":"Authorization"}',+ },+ ]);++ const body = {+ _nativeCodexPassthrough: true,+ previous_response_id: "resp_prev_without_that_call",+ input: [+ {+ type: "function_call_output",+ call_id: "call_old_123",+ output: '{"matches":1}',+ },+ ],+ stream: false,+ };++ const result = executor.transformRequest("gpt-5.5-low", body, false, {+ requestEndpointPath: "/responses",+ });++ assert.equal(result.previous_response_id, undefined);+ assert.deepEqual(result.input[0], {+ type: "function_call",+ call_id: "call_old_123",+ name: "workspace_search",+ arguments: '{"query":"Authorization"}',+ });+ assert.deepEqual(result.input[1], {+ type: "function_call_output",+ call_id: "call_old_123",+ output: '{"matches":1}',+ });+});test("CodexExecutor.transformRequest applies per-connection reasoning and service tier defaults", () => {const executor = new CodexExecutor();const result = executor.transformRequest(@@ -373,6 +670,34 @@ test("CodexExecutor.transformRequest keeps gpt-5.5 as the model and applies xhigassert.equal(result.reasoning.effort, "xhigh");});+test("CodexExecutor.transformRequest merges Codex installation metadata", () => {+ const executor = new CodexExecutor();+ const result = executor.transformRequest(+ "gpt-5.5",+ {+ model: "gpt-5.5",+ input: [],+ client_metadata: { existing: "keep" },+ },+ true,+ {+ providerSpecificData: {+ codexClientIdentity: {+ sessionId: "session-1",+ turnId: "turn-1",+ windowId: "session-1:0",+ installationId: "11111111-1111-4111-a111-111111111111",+ },+ },+ }+ );++ assert.deepEqual(result.client_metadata, {+ existing: "keep",+ "x-codex-installation-id": "11111111-1111-4111-a111-111111111111",+ });+});+test("CodexExecutor.execute falls back to HTTP when websocket transport is unavailable", async () => {__setCodexWebSocketTransportForTesting(null);const executor = new CodexExecutor();@@ -404,6 +729,88 @@ test("CodexExecutor.execute falls back to HTTP when websocket transport is unava}});+test("CodexExecutor.execute adds CLI-like session identity headers without changing response flow", async () => {+ const executor = new CodexExecutor();+ const originalFetch = globalThis.fetch;+ let capturedBody: Record<string, unknown> | null = null;+ let capturedHeaders: Headers | null = null;++ globalThis.fetch = async (_url, init) => {+ capturedHeaders = new Headers(init?.headers as HeadersInit);+ capturedBody = JSON.parse(String(init?.body || "{}"));+ return new Response(JSON.stringify({ id: "resp_identity", object: "response" }), {+ status: 200,+ headers: { "Content-Type": "application/json" },+ });+ };++ try {+ const result = await executor.execute({+ model: "gpt-5.5",+ body: {+ model: "gpt-5.5",+ session_id: "conversation-1",+ input: [{ role: "user", content: "hello" }],+ },+ stream: true,+ credentials: {+ accessToken: "codex-token",+ providerSpecificData: { workspaceId: "workspace-1" },+ },+ });++ assert.equal(result.response.status, 200);+ assert.equal(capturedHeaders?.get("session_id"), "conversation-1");+ assert.equal(capturedHeaders?.get("x-client-request-id"), "conversation-1");+ assert.equal(capturedHeaders?.get("x-codex-window-id"), "conversation-1:0");+ const turnMetadata = JSON.parse(capturedHeaders?.get("x-codex-turn-metadata") || "{}");+ assert.equal(turnMetadata.session_id, "conversation-1");+ assert.equal(turnMetadata.thread_source, "user");+ assert.equal(turnMetadata.sandbox, "none");+ assert.equal(typeof turnMetadata.turn_id, "string");+ assert.equal(capturedBody?.prompt_cache_key, "conversation-1");+ assert.equal(+ (capturedBody?.client_metadata as Record<string, unknown>)?.["x-codex-installation-id"],+ "7f06a8ee-2981-4c81-a4ca-e443b5400a63"+ );+ } finally {+ globalThis.fetch = originalFetch;+ }+});++test("CodexExecutor.execute skips identity headers for unsafe session ids", async () => {+ const executor = new CodexExecutor();+ const originalFetch = globalThis.fetch;+ let capturedHeaders: Headers | null = null;++ globalThis.fetch = async (_url, init) => {+ capturedHeaders = new Headers(init?.headers as HeadersInit);+ return new Response(JSON.stringify({ id: "resp_identity", object: "response" }), {+ status: 200,+ headers: { "Content-Type": "application/json" },+ });+ };++ try {+ await executor.execute({+ model: "gpt-5.5",+ body: {+ model: "gpt-5.5",+ session_id: "bad\r\nheader",+ input: [{ role: "user", content: "hello" }],+ },+ stream: true,+ credentials: { accessToken: "codex-token" },+ });++ assert.equal(capturedHeaders?.get("x-client-request-id"), null);+ assert.equal(capturedHeaders?.get("x-codex-window-id"), null);+ assert.equal(capturedHeaders?.get("x-codex-turn-metadata"), null);+ } finally {+ globalThis.fetch = originalFetch;+ }+});+test("CodexExecutor.transformRequest preserves namespace MCP tools and hosted tool types", () => {// Regression: PR #1581 đã vô tình xoá nhánh `namespace` + whitelist hosted tools// trong normalizeCodexTools, khiến MCP tool group (vd. mcp__atlassian__) bị stripdiff --git a/tests/unit/grok-web.test.ts b/tests/unit/grok-web.test.tsindex a9e3e68068..d674df960b 100644--- a/tests/unit/grok-web.test.ts+++ b/tests/unit/grok-web.test.ts@@ -355,9 +355,9 @@ test("Provider registry: grok-web has correct models", async () => {const { getRegistryEntry } = await import("../../open-sse/config/providerRegistry.ts");const models = PROVIDER_MODELS["gw"];assert.ok(models, "gw should be in PROVIDER_MODELS");- assert.equal(models.length, 5, `Expected 5 models, got ${models.length}`);+ assert.equal(models.length, 4, `Expected 4 models, got ${models.length}`);const ids = models.map((m: any) => m.id);- assert.ok(ids.includes("auto"));+ assert.ok(!ids.includes("auto"), "auto modeId no longer accepted by grok.com");assert.ok(ids.includes("fast"));assert.ok(ids.includes("expert"));assert.ok(ids.includes("heavy"));diff --git a/tests/unit/memory-route.test.ts b/tests/unit/memory-route.test.tsindex f7dccce349..7ee3621394 100644--- a/tests/unit/memory-route.test.ts+++ b/tests/unit/memory-route.test.ts@@ -67,10 +67,10 @@ test("GET /api/memory filters by q and returns matching stats", async () => {assert.equal(response.status, 200);const body = (await response.json()) as any;- assert.deepEqual(- body.data.map((memory) => memory.key),- ["typescript:tooling", "typescript:guide"]- );+ assert.deepEqual(body.data.map((memory) => memory.key).sort(), [+ "typescript:guide",+ "typescript:tooling",+ ]);assert.equal(body.total, 2);assert.equal(body.stats.total, 2);assert.deepEqual(body.stats.byType, { factual: 1, semantic: 1 });diff --git a/tests/unit/memory-store.test.ts b/tests/unit/memory-store.test.tsindex de7009b5be..c86de71d37 100644--- a/tests/unit/memory-store.test.ts+++ b/tests/unit/memory-store.test.ts@@ -177,18 +177,21 @@ test("listMemories filters by api key, type and session while preserving newest-test("listMemories supports limit and offset pagination even when only offset is provided", async () => {insertMemoryRow({id: "page-1",+ key: "pagination:1",content: "oldest",createdAt: "2026-04-01T00:00:00.000Z",updatedAt: "2026-04-01T00:00:00.000Z",});insertMemoryRow({id: "page-2",+ key: "pagination:2",content: "middle",createdAt: "2026-04-02T00:00:00.000Z",updatedAt: "2026-04-02T00:00:00.000Z",});insertMemoryRow({id: "page-3",+ key: "pagination:3",content: "newest",createdAt: "2026-04-03T00:00:00.000Z",updatedAt: "2026-04-03T00:00:00.000Z",@@ -251,18 +254,21 @@ test("listMemories applies query filtering before pagination and type stats", astest("listMemories supports page-based pagination (page 1)", async () => {insertMemoryRow({id: "pg-1",+ key: "page:test:1",content: "first",createdAt: "2026-04-01T00:00:00.000Z",updatedAt: "2026-04-01T00:00:00.000Z",});insertMemoryRow({id: "pg-2",+ key: "page:test:2",content: "second",createdAt: "2026-04-02T00:00:00.000Z",updatedAt: "2026-04-02T00:00:00.000Z",});insertMemoryRow({id: "pg-3",+ key: "page:test:3",content: "third",createdAt: "2026-04-03T00:00:00.000Z",updatedAt: "2026-04-03T00:00:00.000Z",@@ -279,18 +285,21 @@ test("listMemories supports page-based pagination (page 1)", async () => {test("listMemories supports page-based pagination (page 2 returns remainder)", async () => {insertMemoryRow({id: "pg-1",+ key: "page:test:1",content: "first",createdAt: "2026-04-01T00:00:00.000Z",updatedAt: "2026-04-01T00:00:00.000Z",});insertMemoryRow({id: "pg-2",+ key: "page:test:2",content: "second",createdAt: "2026-04-02T00:00:00.000Z",updatedAt: "2026-04-02T00:00:00.000Z",});insertMemoryRow({id: "pg-3",+ key: "page:test:3",content: "third",createdAt: "2026-04-03T00:00:00.000Z",updatedAt: "2026-04-03T00:00:00.000Z",@@ -307,6 +316,7 @@ test("listMemories supports page-based pagination (page 2 returns remainder)", atest("listMemories returns empty data for a page beyond the result set", async () => {insertMemoryRow({id: "pg-1",+ key: "page:test:1",content: "only entry",createdAt: "2026-04-01T00:00:00.000Z",updatedAt: "2026-04-01T00:00:00.000Z",@@ -320,12 +330,14 @@ test("listMemories returns empty data for a page beyond the result set", async (test("listMemories page parameter defaults to page 1 when omitted with limit", async () => {insertMemoryRow({id: "pg-1",+ key: "page:test:1",content: "first",createdAt: "2026-04-01T00:00:00.000Z",updatedAt: "2026-04-01T00:00:00.000Z",});insertMemoryRow({id: "pg-2",+ key: "page:test:2",content: "second",createdAt: "2026-04-02T00:00:00.000Z",updatedAt: "2026-04-02T00:00:00.000Z",diff --git a/tests/unit/model-catalog-search.test.ts b/tests/unit/model-catalog-search.test.tsindex 00c6d45c79..cd1606ea50 100644--- a/tests/unit/model-catalog-search.test.ts+++ b/tests/unit/model-catalog-search.test.ts@@ -9,8 +9,8 @@ import {test("model catalog source normalization groups manual and synced rows separately", () => {assert.equal(normalizeModelCatalogSource("manual"), "custom");- assert.equal(normalizeModelCatalogSource("imported"), "api-sync");- assert.equal(normalizeModelCatalogSource("api-sync"), "api-sync");+ assert.equal(normalizeModelCatalogSource("imported"), "imported");+ assert.equal(normalizeModelCatalogSource("api-sync"), "imported");assert.equal(normalizeModelCatalogSource("fallback"), "fallback");assert.equal(normalizeModelCatalogSource("alias"), "alias");assert.equal(normalizeModelCatalogSource(undefined), "system");@@ -19,7 +19,7 @@ test("model catalog source normalization groups manual and synced rows separateltest("model catalog source labels stay user-facing", () => {assert.equal(getModelCatalogSourceLabel("system"), "Built-in");assert.equal(getModelCatalogSourceLabel("custom"), "Custom");- assert.equal(getModelCatalogSourceLabel("api-sync"), "Synced");+ assert.equal(getModelCatalogSourceLabel("imported"), "Imported");assert.equal(getModelCatalogSourceLabel("fallback"), "Fallback");assert.equal(getModelCatalogSourceLabel("alias"), "Alias");});@@ -29,7 +29,7 @@ test("model catalog query matches id, display name, alias and source label", ()modelId: "qwen/qwen3-coder-480b-a35b-instruct",modelName: "Qwen3 Coder 480B",alias: "best-qwen",- source: "api-sync",+ source: "imported",};assert.equal(matchesModelCatalogQuery("", target), true);diff --git a/tests/unit/model-catalog-source.test.ts b/tests/unit/model-catalog-source.test.tsindex a56ce76a7d..50e0461c69 100644--- a/tests/unit/model-catalog-source.test.ts+++ b/tests/unit/model-catalog-source.test.ts@@ -5,9 +5,9 @@ const { getModelCatalogSourceLabel, normalizeModelCatalogSource } =await import("../../src/shared/utils/modelCatalogSearch.ts");test("model catalog source normalizes synced import variants consistently", () => {- assert.equal(normalizeModelCatalogSource("api-sync"), "api-sync");- assert.equal(normalizeModelCatalogSource("auto-sync"), "api-sync");- assert.equal(normalizeModelCatalogSource("imported"), "api-sync");- assert.equal(getModelCatalogSourceLabel("auto-sync"), "Synced");- assert.equal(getModelCatalogSourceLabel("imported"), "Synced");+ assert.equal(normalizeModelCatalogSource("api-sync"), "imported");+ assert.equal(normalizeModelCatalogSource("imported"), "imported");+ assert.equal(normalizeModelCatalogSource("auto-sync"), "imported");+ assert.equal(getModelCatalogSourceLabel("auto-sync"), "Imported");+ assert.equal(getModelCatalogSourceLabel("imported"), "Imported");});diff --git a/tests/unit/model-sync-route.test.ts b/tests/unit/model-sync-route.test.tsindex 1a2b4b085b..6d5f8aff1d 100644--- a/tests/unit/model-sync-route.test.ts+++ b/tests/unit/model-sync-route.test.ts@@ -53,11 +53,11 @@ test("model sync route skips success log when fetched models do not change storeapiKey: "test-key",});- await modelsDb.replaceCustomModels("openrouter", [+ await modelsDb.replaceSyncedAvailableModelsForConnection("openrouter", connection.id, [{id: "custom-model-1",name: "Custom Model 1",- source: "auto-sync",+ source: "imported",},]);@@ -85,6 +85,7 @@ test("model sync route skips success log when fetched models do not change storeconst body = (await response.json()) as any;assert.equal(body.logged, false);assert.deepEqual(body.modelChanges, { added: 0, removed: 0, updated: 0, total: 0 });+ assert.deepEqual(body.models, []);const logs = await callLogs.getCallLogs({ model: "model-sync", limit: 10 });assert.equal(logs.length, 0);@@ -250,6 +251,45 @@ test("model sync route falls back to the upstream HTTP status when the models paassert.equal(logs[0].error, "HTTP 429");});+test("model sync route reports invalid JSON /models responses without losing upstream status", async () => {+ await resetStorage();++ const connection = await providersDb.createProviderConnection({+ provider: "openrouter",+ authType: "apikey",+ name: "Invalid JSON Sync",+ apiKey: "test-key",+ });++ globalThis.fetch = async (url) => {+ assert.equal(+ String(url),+ `http://localhost/api/providers/${connection.id}/models?refresh=true`+ );+ return new Response("<html>bad gateway</html>", {+ status: 200,+ headers: { "content-type": "text/html" },+ });+ };++ const response = await modelSyncRoute.POST(+ new Request(`http://localhost/api/providers/${connection.id}/sync-models`, {+ method: "POST",+ headers: scheduler.buildModelSyncInternalHeaders(),+ }),+ { params: { id: connection.id } }+ );+ const body = (await response.json()) as any;+ const logs = await callLogs.getCallLogs({ model: "model-sync", limit: 10 });++ assert.equal(response.status, 502);+ assert.equal(body.error, "Invalid JSON response from /models");+ assert.equal(body.upstreamStatus, 200);+ assert.equal(logs.length, 1);+ assert.equal(logs[0].status, 200);+ assert.equal(logs[0].error, "Invalid JSON response from /models");+});+test("model sync route preserves previously synced models when the upstream omits the models list", async () => {await resetStorage();@@ -260,11 +300,11 @@ test("model sync route preserves previously synced models when the upstream omitapiKey: "test-key",});- await modelsDb.replaceCustomModels("openrouter", [+ await modelsDb.replaceSyncedAvailableModelsForConnection("openrouter", connection.id, [{id: "persisted-model",name: "Persisted Model",- source: "auto-sync",+ source: "imported",},]);@@ -290,13 +330,12 @@ test("model sync route preserves previously synced models when the upstream omitassert.equal(body.syncedModels, 1);assert.equal(body.logged, false);assert.deepEqual(body.modelChanges, { added: 0, removed: 0, updated: 0, total: 0 });- assert.deepEqual(body.models, [+ assert.deepEqual(body.models, []);+ assert.deepEqual(await modelsDb.getSyncedAvailableModels("openrouter"), [{id: "persisted-model",name: "Persisted Model",- source: "auto-sync",- apiFormat: "chat-completions",- supportedEndpoints: ["chat"],+ source: "imported",},]);assert.equal(logs.length, 0);@@ -348,24 +387,12 @@ test("model sync route writes synced available models for Gemini connections", aassert.equal(body.syncedModels, 1);assert.equal(body.logged, true);assert.deepEqual(body.modelChanges, { added: 1, removed: 0, updated: 0, total: 1 });- assert.deepEqual(body.models, [- {- id: "gemini-custom-preview",- name: "Gemini Custom Preview",- source: "api-sync",- apiFormat: "chat-completions",- supportedEndpoints: ["chat", "embeddings"],- inputTokenLimit: 32768,- outputTokenLimit: 8192,- description: "Custom Gemini preview model",- supportsThinking: true,- },- ]);+ assert.deepEqual(body.models, []);assert.deepEqual(synced, [{id: "gemini-custom-preview",name: "Gemini Custom Preview",- source: "api-sync",+ source: "imported",supportedEndpoints: ["chat", "embeddings"],inputTokenLimit: 32768,outputTokenLimit: 8192,@@ -421,7 +448,7 @@ test("model sync route writes synced available models for non-Gemini providers t{id: "glm-5.1",name: "GLM 5.1",- source: "api-sync",+ source: "imported",supportedEndpoints: ["chat"],inputTokenLimit: 262144,},@@ -439,6 +466,7 @@ test("model sync route import mode merges discovered models without deleting man});await modelsDb.addCustomModel("openrouter", "manual-only", "Manual Only", "manual");+ await modelsDb.addCustomModel("openrouter", "router-v4", "Manual Router V4", "manual");await localDb.setModelAlias("manual-only", "openrouter/manual-only");globalThis.fetch = async (url) => {@@ -467,16 +495,21 @@ test("model sync route import mode merges discovered models without deleting manassert.equal(body.updatedCount, 0);assert.equal(body.syncedAliases, 1);assert.deepEqual(body.modelChanges, { added: 1, removed: 0, updated: 0, total: 1 });+ assert.deepEqual(body.customModelChanges, { added: 0, removed: 1, updated: 0, total: 1 });assert.deepEqual(body.models.map((model) => ({ id: model.id, source: model.source })),- [- { id: "manual-only", source: "manual" },- { id: "router-v4", source: "api-sync" },- ]+ [{ id: "manual-only", source: "manual" }]);assert.deepEqual(body.importedModels.map((model) => ({ id: model.id, source: model.source })),- [{ id: "router-v4", source: "api-sync" }]+ [{ id: "router-v4", source: "imported" }]+ );+ assert.deepEqual(+ (await modelsDb.getSyncedAvailableModels("openrouter")).map((model) => ({+ id: model.id,+ source: model.source,+ })),+ [{ id: "router-v4", source: "imported" }]);assert.equal(aliases["manual-only"], "openrouter/manual-only");assert.equal(aliases["router-v4"], "openrouter/router-v4");@@ -492,12 +525,11 @@ test("model sync route import mode ignores supported endpoint ordering changes",apiKey: "test-key",});- await modelsDb.replaceCustomModels("openrouter", [+ await modelsDb.replaceSyncedAvailableModelsForConnection("openrouter", connection.id, [{id: "router-v4",name: "Router V4",- source: "api-sync",- apiFormat: "chat-completions",+ source: "imported",supportedEndpoints: ["chat", "embeddings"],},]);@@ -536,12 +568,13 @@ test("model sync route import mode ignores supported endpoint ordering changes",assert.equal(body.logged, false);assert.deepEqual(body.importedModels, []);assert.deepEqual(- body.models.map((model) => ({+ (await modelsDb.getSyncedAvailableModels("openrouter")).map((model) => ({id: model.id,supportedEndpoints: model.supportedEndpoints,})),[{ id: "router-v4", supportedEndpoints: ["chat", "embeddings"] }]);+ assert.deepEqual(body.models, []);assert.equal(logs.length, 0);});@@ -555,12 +588,11 @@ test("model sync route import mode reports updates without counting them as newapiKey: "test-key",});- await modelsDb.replaceCustomModels("openrouter", [+ await modelsDb.replaceSyncedAvailableModelsForConnection("openrouter", connection.id, [{id: "router-v4",name: "Router V4",- source: "api-sync",- apiFormat: "chat-completions",+ source: "imported",supportedEndpoints: ["chat"],},]);@@ -597,7 +629,7 @@ test("model sync route import mode reports updates without counting them as newassert.deepEqual(body.importedChanges, { added: 0, updated: 1, unchanged: 0, total: 1 });assert.deepEqual(body.importedModels, []);assert.deepEqual(- body.models.map((model) => ({+ (await modelsDb.getSyncedAvailableModels("openrouter")).map((model) => ({id: model.id,name: model.name,supportedEndpoints: model.supportedEndpoints,@@ -610,6 +642,7 @@ test("model sync route import mode reports updates without counting them as new},]);+ assert.deepEqual(body.models, []);assert.equal(body.logged, true);assert.equal(logs.length, 1);});@@ -624,16 +657,16 @@ test("model sync route records added, removed, and updated model diffs with fallaccessToken: "sync-token",});- await modelsDb.replaceCustomModels("openrouter", [+ await modelsDb.replaceSyncedAvailableModelsForConnection("openrouter", connection.id, [{id: "persisted-model",name: "Persisted Model",- source: "auto-sync",+ source: "imported",},{id: "removed-model",name: "Removed Model",- source: "auto-sync",+ source: "imported",},]);@@ -673,7 +706,7 @@ test("model sync route records added, removed, and updated model diffs with fallassert.equal(body.logged, true);assert.deepEqual(body.modelChanges, { added: 1, removed: 1, updated: 1, total: 3 });assert.deepEqual(- body.models.map((model) => ({+ (await modelsDb.getSyncedAvailableModels("openrouter")).map((model) => ({id: model.id,name: model.name,supportedEndpoints: model.supportedEndpoints,@@ -689,7 +722,7 @@ test("model sync route records added, removed, and updated model diffs with fall{id: "fallback-model",name: "Fallback Model",- supportedEndpoints: ["chat"],+ supportedEndpoints: undefined,description: "Fallback from model field",},]@@ -753,17 +786,12 @@ test("model sync route forwards cookies, filters built-ins, and syncs aliases foassert.equal(body.provider, "openrouter");assert.equal(body.syncedModels, 3);assert.equal(body.availableModelsCount, 3);- assert.equal(body.syncedAliases, 2);+ assert.equal(body.syncedAliases, 3);assert.equal(body.logged, true);- assert.deepEqual(body.modelChanges, { added: 2, removed: 0, updated: 0, total: 2 });- assert.deepEqual(- body.models.map((model) => ({ id: model.id, name: model.name })),- [- { id: "router-v2", name: "Router V2" },- { id: "router-v3", name: "Router V3" },- ]- );+ assert.deepEqual(body.modelChanges, { added: 3, removed: 0, updated: 0, total: 3 });+ assert.deepEqual(body.models, []);assert.equal(aliases["stale-model"], undefined);+ assert.equal(aliases["auto"], "openrouter/auto");assert.equal(aliases["openrouter-router-v2"], "openrouter/router-v2");assert.equal(aliases["router-v3"], "openrouter/router-v3");assert.equal(logs.length, 1);@@ -782,6 +810,7 @@ test("model sync route reports synced managed models separately from preserved m});await modelsDb.addCustomModel("openrouter", "manual-only", "Manual Only", "manual");+ await modelsDb.addCustomModel("openrouter", "router-v4", "Manual Router V4", "manual");globalThis.fetch = async (url) => {assert.equal(@@ -807,12 +836,17 @@ test("model sync route reports synced managed models separately from preserved massert.equal(body.availableModelsCount, 2);assert.equal(body.importedCount, 1);assert.equal(body.updatedCount, 0);+ assert.deepEqual(body.customModelChanges, { added: 0, removed: 1, updated: 0, total: 1 });assert.deepEqual(body.models.map((model) => ({ id: model.id, source: model.source })),- [- { id: "manual-only", source: "manual" },- { id: "router-v4", source: "api-sync" },- ]+ [{ id: "manual-only", source: "manual" }]+ );+ assert.deepEqual(+ (await modelsDb.getSyncedAvailableModels("openrouter")).map((model) => ({+ id: model.id,+ source: model.source,+ })),+ [{ id: "router-v4", source: "imported" }]);});@@ -868,33 +902,71 @@ test("model sync route uses provider-node prefixes when syncing compatible-proviassert.equal(aliases["cm-sonnet-4-6"], "anthropic-compatible-demo/sonnet-4-6");});-test("model sync route returns 500 and records a failure when the internal models fetch throws", async () => {+test("model sync route falls back to in-process discovery when internal self-fetch throws", async () => {await resetStorage();const connection = await providersDb.createProviderConnection({- provider: "openrouter",+ provider: "openai-compatible-aio",authType: "apikey",- name: "Exploding Sync",+ name: "AIO Import",apiKey: "test-key",+ providerSpecificData: {+ prefix: "aio",+ apiType: "chat",+ baseUrl: "https://api.bltcy.ai/v1",+ nodeName: "aio",+ autoSync: true,+ },});- globalThis.fetch = async () => {- throw new Error("network exploded");+ const fetchCalls: string[] = [];+ globalThis.fetch = async (url) => {+ const urlString = String(url);+ fetchCalls.push(urlString);++ if (urlString === `http://localhost/api/providers/${connection.id}/models?refresh=true`) {+ throw new Error("fetch failed");+ }++ assert.equal(urlString, "https://api.bltcy.ai/v1/models");+ return Response.json({+ data: [{ id: "aio-model", name: "AIO Model" }],+ });};const response = await modelSyncRoute.POST(- new Request(`http://localhost/api/providers/${connection.id}/sync-models`, {+ new Request(`http://localhost/api/providers/${connection.id}/sync-models?mode=import`, {method: "POST",headers: scheduler.buildModelSyncInternalHeaders(),}),{ params: { id: connection.id } });- const body = (await response.json()) as any;- const logs = await callLogs.getCallLogs({ model: "model-sync", limit: 10 });+ const body = (await response.json()) as {+ importedCount: number;+ importedModels: Array<{ id: string; source: string }>;+ };+ const customModels = (await modelsDb.getCustomModels("openai-compatible-aio")) as Array<{+ id: string;+ source: string;+ }>;+ const availableModels = await modelsDb.getSyncedAvailableModels("openai-compatible-aio");- assert.equal(response.status, 500);- assert.equal(body.error, "network exploded");- assert.equal(logs.length, 1);- assert.equal(logs[0].status, 500);- assert.equal(logs[0].provider, "openrouter");+ assert.equal(response.status, 200);+ assert.equal(body.importedCount, 1);+ assert.deepEqual(+ body.importedModels.map((model) => ({ id: model.id, source: model.source })),+ [{ id: "aio-model", source: "imported" }]+ );+ assert.deepEqual(+ customModels.map((model) => ({ id: model.id, source: model.source })),+ []+ );+ assert.deepEqual(+ availableModels.map((model) => ({ id: model.id, source: model.source })),+ [{ id: "aio-model", source: "imported" }]+ );+ assert.deepEqual(fetchCalls, [+ `http://localhost/api/providers/${connection.id}/models?refresh=true`,+ "https://api.bltcy.ai/v1/models",+ ]);});diff --git a/tests/unit/models-catalog-route.test.ts b/tests/unit/models-catalog-route.test.tsindex 8d883df60f..234b7e2d33 100644--- a/tests/unit/models-catalog-route.test.ts+++ b/tests/unit/models-catalog-route.test.ts@@ -354,21 +354,21 @@ test("v1 models catalog includes synced Gemini models and duplicates audio model{id: "gemini-audio-live",name: "Gemini Audio Live",- source: "api-sync",+ source: "imported",supportedEndpoints: ["audio"],inputTokenLimit: 4096,},{id: "text-embedding-004",name: "Text Embedding 004",- source: "api-sync",+ source: "imported",supportedEndpoints: ["embeddings"],inputTokenLimit: 2048,},{id: "gemini-hidden",name: "Gemini Hidden",- source: "api-sync",+ source: "imported",supportedEndpoints: ["chat"],},]@@ -402,7 +402,7 @@ test("v1 models catalog keeps Gemini chat models untyped when synced endpoints a{id: "gemini-2.5-pro-live",name: "Gemini 2.5 Pro Live",- source: "api-sync",+ source: "imported",inputTokenLimit: 8192,},]);@@ -430,7 +430,7 @@ test("v1 models catalog includes synced non-Gemini provider models from discover{id: "glm-5.1",name: "GLM 5.1",- source: "api-sync",+ source: "imported",supportedEndpoints: ["chat"],inputTokenLimit: 262144,},diff --git a/tests/unit/oauth-kiro-idc.test.ts b/tests/unit/oauth-kiro-idc.test.tsnew file mode 100644index 0000000000..015ffe259c--- /dev/null+++ b/tests/unit/oauth-kiro-idc.test.ts@@ -0,0 +1,123 @@+import test from "node:test";+import assert from "node:assert/strict";++import { kiro } from "@/lib/oauth/providers/kiro";++test("kiro.requestDeviceCode returns resolved region for IDC token endpoint", async () => {+ const originalFetch = global.fetch;++ const fetchCalls: Array<{ url: string; body?: string }> = [];++ global.fetch = (async (input: RequestInfo | URL, init?: RequestInit) => {+ const url = String(input);+ fetchCalls.push({ url, body: typeof init?.body === "string" ? init.body : undefined });++ if (url.endsWith("/client/register")) {+ return new Response(JSON.stringify({ clientId: "client-ap", clientSecret: "secret-ap" }), {+ status: 200,+ });+ }++ if (url.endsWith("/device_authorization")) {+ return new Response(+ JSON.stringify({+ deviceCode: "dev-code",+ userCode: "user-code",+ verificationUri: "https://d-tenant.awsapps.com/start/#/device",+ verificationUriComplete: "https://d-tenant.awsapps.com/start/#/device?user_code=ABCD",+ expiresIn: 600,+ interval: 1,+ }),+ { status: 200 }+ );+ }++ return new Response("not-found", { status: 404 });+ }) as typeof fetch;++ try {+ const result = await kiro.requestDeviceCode({+ registerClientUrl: "https://oidc.ap-southeast-1.amazonaws.com/client/register",+ deviceAuthUrl: "https://oidc.ap-southeast-1.amazonaws.com/device_authorization",+ tokenUrl: "https://oidc.ap-southeast-1.amazonaws.com/token",+ startUrl: "https://d-tenant.awsapps.com/start",+ clientName: "kiro-oauth-client",+ clientType: "public",+ scopes: ["codewhisperer:completions"],+ grantTypes: ["urn:ietf:params:oauth:grant-type:device_code", "refresh_token"],+ skipIssuerUrlForRegistration: true,+ });++ assert.equal(result._region, "ap-southeast-1");+ assert.equal(result._clientId, "client-ap");+ assert.equal(result._clientSecret, "secret-ap");++ const registerBody = JSON.parse(fetchCalls[0]?.body || "{}");+ assert.equal(registerBody.issuerUrl, undefined);+ } finally {+ global.fetch = originalFetch;+ }+});++test("kiro.pollToken uses region provided by extraData", async () => {+ const originalFetch = global.fetch;+ let requestedUrl = "";++ global.fetch = (async (input: RequestInfo | URL) => {+ requestedUrl = String(input);+ return new Response(+ JSON.stringify({+ accessToken: "access",+ refreshToken: "refresh",+ expiresIn: 3600,+ }),+ { status: 200 }+ );+ }) as typeof fetch;++ try {+ const result = await kiro.pollToken(+ { tokenUrl: "https://oidc.us-east-1.amazonaws.com/token" },+ "device-code",+ null,+ { _clientId: "cid", _clientSecret: "csecret", _region: "ap-southeast-1" }+ );++ assert.equal(requestedUrl, "https://oidc.ap-southeast-1.amazonaws.com/token");+ assert.equal(result.ok, true);+ assert.equal(result.data.access_token, "access");+ assert.equal(result.data._region, "ap-southeast-1");+ } finally {+ global.fetch = originalFetch;+ }+});++test("kiro.mapTokens persists region into providerSpecificData", () => {+ const mapped = kiro.mapTokens({+ access_token: "at",+ refresh_token: "rt",+ expires_in: 3600,+ _clientId: "cid",+ _clientSecret: "csec",+ _region: "ap-southeast-1",+ });++ assert.equal(mapped.accessToken, "at");+ assert.equal(mapped.refreshToken, "rt");+ assert.equal(mapped.expiresIn, 3600);+ assert.equal(mapped.providerSpecificData.clientId, "cid");+ assert.equal(mapped.providerSpecificData.clientSecret, "csec");+ assert.equal(mapped.providerSpecificData.region, "ap-southeast-1");+});++test("kiro.mapTokens defaults region to undefined when not provided", () => {+ const mapped = kiro.mapTokens({+ access_token: "at",+ refresh_token: "rt",+ expires_in: 3600,+ _clientId: "cid",+ _clientSecret: "csec",+ });++ assert.equal(mapped.providerSpecificData.region, undefined);+});diff --git a/tests/unit/provider-models-route.test.ts b/tests/unit/provider-models-route.test.tsindex 996f98af89..09ea2a6cc9 100644--- a/tests/unit/provider-models-route.test.ts+++ b/tests/unit/provider-models-route.test.ts@@ -461,7 +461,7 @@ test("provider models route caches discovered opencode-go models per connection"assert.equal(firstResponse.status, 200);assert.equal(firstBody.source, "api");assert.deepEqual(firstBody.models, [{ id: "glm-5.1", name: "GLM 5.1" }]);- assert.deepEqual(cachedModels, [{ id: "glm-5.1", name: "GLM 5.1", source: "api-sync" }]);+ assert.deepEqual(cachedModels, [{ id: "glm-5.1", name: "GLM 5.1", source: "imported" }]);globalThis.fetch = async () => {throw new Error("cached route should not hit upstream");@@ -472,7 +472,7 @@ test("provider models route caches discovered opencode-go models per connection"assert.equal(cachedResponse.status, 200);assert.equal(cachedBody.source, "cache");- assert.deepEqual(cachedBody.models, [{ id: "glm-5.1", name: "GLM 5.1", source: "api-sync" }]);+ assert.deepEqual(cachedBody.models, [{ id: "glm-5.1", name: "GLM 5.1", source: "imported" }]);assert.equal(fetchCalls, 1);});@@ -481,7 +481,7 @@ test("provider models route falls back to cached models when a refresh fails", aapiKey: "opencode-go-key",});await modelsDb.replaceSyncedAvailableModelsForConnection("opencode-go", connection.id, [- { id: "cached-go", name: "Cached Go", source: "api-sync" },+ { id: "cached-go", name: "Cached Go", source: "imported" },]);let fetchCalls = 0;@@ -496,7 +496,7 @@ test("provider models route falls back to cached models when a refresh fails", aassert.equal(response.status, 200);assert.equal(body.source, "cache");assert.match(body.warning, /cached catalog/i);- assert.deepEqual(body.models, [{ id: "cached-go", name: "Cached Go", source: "api-sync" }]);+ assert.deepEqual(body.models, [{ id: "cached-go", name: "Cached Go", source: "imported" }]);assert.equal(fetchCalls, 1);});@@ -505,7 +505,7 @@ test("provider models route clears cached discovery when a refresh returns no reapiKey: "opencode-go-key",});await modelsDb.replaceSyncedAvailableModelsForConnection("opencode-go", connection.id, [- { id: "cached-go", name: "Cached Go", source: "api-sync" },+ { id: "cached-go", name: "Cached Go", source: "imported" },]);globalThis.fetch = async () => {diff --git a/tests/unit/provider-validation-specialty.test.ts b/tests/unit/provider-validation-specialty.test.tsindex 6d9223e8fb..2d7efc9828 100644--- a/tests/unit/provider-validation-specialty.test.ts+++ b/tests/unit/provider-validation-specialty.test.ts@@ -289,7 +289,7 @@ test("web-cookie provider validators accept valid Grok, Perplexity, Blackbox andassert.equal(grokCall?.init.headers.Cookie, "sso=grok-cookie");const grokBody = JSON.parse(String(grokCall?.init.body || "{}"));- assert.equal(grokBody.modeId, "auto");+ assert.equal(grokBody.modeId, "fast");assert.equal("modelName" in grokBody, false);assert.equal("modelMode" in grokBody, false);assert.equal(perplexityCall?.init.headers.Cookie, "__Secure-next-auth.session-token=pplx-cookie");@@ -369,6 +369,249 @@ test("web-cookie provider validators surface auth and subscription failures", asassert.match(museSpark.error || "", /Invalid Meta AI session cookie/i);});+test("grok-web validator: full DevTools cookie blob is parsed for the sso value", async () => {+ let capturedCookie = "";+ globalThis.fetch = async (url, init = {}) => {+ const target = String(url);+ if (target.includes("grok.com/rest/app-chat/conversations/new")) {+ capturedCookie = ((init.headers as Record<string, string>) || {}).Cookie || "";+ return new Response(JSON.stringify({ result: { conversation: {} } }), { status: 200 });+ }+ throw new Error(`unexpected fetch: ${target}`);+ };++ const blob = "i18nextLng=en; stblid=foo; __cf_bm=bar; sso=eyJTARGET.abc.def; cf_clearance=baz;";+ const result = await validateProviderApiKey({ provider: "grok-web", apiKey: blob });++ assert.equal(result.valid, true);+ assert.equal(capturedCookie, "sso=eyJTARGET.abc.def");+});++test("grok-web validator: empty/missing sso in input returns 'Missing sso cookie'", async () => {+ globalThis.fetch = async () => {+ throw new Error("validator should short-circuit before fetching");+ };+ const result = await validateProviderApiKey({+ provider: "grok-web",+ apiKey: "foo=1; bar=2;",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /Missing sso cookie/i);+});++test("grok-web validator: non-auth 403 is reported as failure with upstream body, not silently passed", async () => {+ globalThis.fetch = async (url) => {+ const target = String(url);+ if (target.includes("grok.com/rest/app-chat/conversations/new")) {+ return new Response(+ JSON.stringify({ error: { code: 7, message: "Model is not found", details: [] } }),+ { status: 403 }+ );+ }+ throw new Error(`unexpected fetch: ${target}`);+ };++ const result = await validateProviderApiKey({ provider: "grok-web", apiKey: "good-cookie" });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /Grok rejected validation \(403\)/);+ assert.match(result.error || "", /Model is not found/);+});++test("grok-web validator: generic 403 forbidden is rejected, not silently passed", async () => {+ globalThis.fetch = async (url) => {+ const target = String(url);+ if (target.includes("grok.com/rest/app-chat/conversations/new")) {+ return new Response("Forbidden", { status: 403 });+ }+ throw new Error(`unexpected fetch: ${target}`);+ };++ const result = await validateProviderApiKey({ provider: "grok-web", apiKey: "any-cookie" });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /Grok rejected validation \(403\)/);+});++test("grok-web validator: 403 with credential-rejection body is treated as auth-failed", async () => {+ globalThis.fetch = async (url) => {+ const target = String(url);+ if (target.includes("grok.com/rest/app-chat/conversations/new")) {+ return new Response(+ JSON.stringify({+ error: {+ code: 16,+ message: "Failed to look up session ID. [WKE=unauthenticated:invalid-credentials]",+ details: [],+ },+ }),+ { status: 403 }+ );+ }+ throw new Error(`unexpected fetch: ${target}`);+ };++ const result = await validateProviderApiKey({ provider: "grok-web", apiKey: "bad-cookie" });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /Invalid SSO cookie/i);+});++// ─── chatgpt-web validator ──────────────────────────────────────────────────+// Mocks the TLS-impersonating fetch so unit tests don't need the native binding.++const { __setTlsFetchOverrideForTesting } =+ await import("../../open-sse/services/chatgptTlsClient.ts");++function makeTlsResponse(status: number, body: string, headers: Record<string, string> = {}): any {+ const h = new Headers();+ for (const [k, v] of Object.entries(headers)) h.set(k, v);+ return { status, headers: h, text: body, body: null };+}++test.afterEach(() => {+ __setTlsFetchOverrideForTesting(null);+});++test("chatgpt-web validator: accepts a valid session response with accessToken", async () => {+ let captured: { url: string; opts: any } | null = null;+ __setTlsFetchOverrideForTesting(async (url, opts) => {+ captured = { url, opts };+ return makeTlsResponse(+ 200,+ JSON.stringify({ accessToken: "tok-abc", expires: "2030-01-01T00:00:00Z" }),+ { "content-type": "application/json" }+ );+ });++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "__Secure-next-auth.session-token=eyJSESSION",+ });++ assert.equal(result.valid, true);+ assert.equal(captured?.url, "https://chatgpt.com/api/auth/session");+ assert.equal(+ (captured?.opts.headers as Record<string, string>).Cookie,+ "__Secure-next-auth.session-token=eyJSESSION"+ );+});++test("chatgpt-web validator: prepends session-token name to bare values", async () => {+ let capturedCookie = "";+ __setTlsFetchOverrideForTesting(async (_url, opts) => {+ capturedCookie = (opts.headers as Record<string, string>).Cookie || "";+ return makeTlsResponse(200, JSON.stringify({ accessToken: "tok" }), {+ "content-type": "application/json",+ });+ });++ await validateProviderApiKey({ provider: "chatgpt-web", apiKey: "eyJBARE" });+ assert.equal(capturedCookie, "__Secure-next-auth.session-token=eyJBARE");+});++test("chatgpt-web validator: passes full DevTools cookie blob through verbatim", async () => {+ let capturedCookie = "";+ __setTlsFetchOverrideForTesting(async (_url, opts) => {+ capturedCookie = (opts.headers as Record<string, string>).Cookie || "";+ return makeTlsResponse(200, JSON.stringify({ accessToken: "tok" }), {+ "content-type": "application/json",+ });+ });++ const blob =+ "Cookie: oai-did=foo; __Secure-next-auth.session-token.0=eyJchunk0; __Secure-next-auth.session-token.1=eyJchunk1; cf_clearance=cf123;";+ await validateProviderApiKey({ provider: "chatgpt-web", apiKey: blob });+ assert.equal(+ capturedCookie,+ "oai-did=foo; __Secure-next-auth.session-token.0=eyJchunk0; __Secure-next-auth.session-token.1=eyJchunk1; cf_clearance=cf123;"+ );+});++test("chatgpt-web validator: 401 without cf-mitigated → invalid session cookie", async () => {+ __setTlsFetchOverrideForTesting(async () =>+ makeTlsResponse(401, JSON.stringify({ error: "unauthorized" }), {+ "content-type": "application/json",+ })+ );++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "stale-token",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /Invalid ChatGPT session cookie/i);+});++test("chatgpt-web validator: 403 with cf-mitigated header → Cloudflare hint", async () => {+ __setTlsFetchOverrideForTesting(async () =>+ makeTlsResponse(403, "<html>Just a moment...</html>", {+ "content-type": "text/html",+ "cf-mitigated": "challenge",+ })+ );++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "good-but-no-cf-cookies",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /Cloudflare blocked the validator/i);+});++test("chatgpt-web validator: 200 without accessToken → session expired", async () => {+ __setTlsFetchOverrideForTesting(async () =>+ makeTlsResponse(200, JSON.stringify({}), { "content-type": "application/json" })+ );++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "expired-token",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /session expired/i);+});++test("chatgpt-web validator: 5xx → ChatGPT unavailable", async () => {+ __setTlsFetchOverrideForTesting(async () =>+ makeTlsResponse(503, "service unavailable", { "content-type": "text/plain" })+ );++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "any-token",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /ChatGPT unavailable \(503\)/);+});++test("chatgpt-web validator: 200 non-JSON content-type surfaces a cookie hint", async () => {+ __setTlsFetchOverrideForTesting(async () =>+ makeTlsResponse(200, "<html>blocked</html>", {+ "content-type": "text/html",+ "cf-ray": "ray-123",+ })+ );++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "any-token",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /non-JSON.*text\/html.*cf-ray=ray-123/i);+});++test("chatgpt-web validator: TlsClientUnavailableError surfaces a clear message", async () => {+ const { TlsClientUnavailableError } = await import("../../open-sse/services/chatgptTlsClient.ts");+ __setTlsFetchOverrideForTesting(async () => {+ throw new TlsClientUnavailableError("native binding failed to load");+ });++ const result = await validateProviderApiKey({+ provider: "chatgpt-web",+ apiKey: "any-token",+ });+ assert.equal(result.valid, false);+ assert.match(result.error || "", /chatgpt-web requires this/i);+});+test("search provider validators cover success, client errors, server errors and custom user agent injection", async () => {const calls = [];globalThis.fetch = async (url, init = {}) => {diff --git a/tests/unit/reasoning-cache.test.ts b/tests/unit/reasoning-cache.test.tsindex c72291bc1d..b2dcf6d496 100644--- a/tests/unit/reasoning-cache.test.ts+++ b/tests/unit/reasoning-cache.test.ts@@ -8,6 +8,12 @@import { describe, it, before, after } from "node:test";import assert from "node:assert/strict";+import { mkdtempSync } from "node:fs";+import { join } from "node:path";+import { tmpdir } from "node:os";++process.env.DATA_DIR = mkdtempSync(join(tmpdir(), "omniroute-reasoning-"));+// ──────────── Direct service import ────────────import {@@ -28,6 +34,15 @@ import { FORMATS } from "../../open-sse/translator/formats.ts";import { getDbInstance } from "../../src/lib/db/core.ts";import { getReasoningCache, setReasoningCache } from "../../src/lib/db/reasoningCache.ts";import { DELETE, GET } from "../../src/app/api/cache/reasoning/route.ts";+import { updateSettings } from "../../src/lib/db/settings";++before(async () => {+ await updateSettings({ requireLogin: false });+});++after(async () => {+ await updateSettings({ requireLogin: true });+});describe("Reasoning Replay Cache — Service Layer", () => {before(() => {diff --git a/tests/unit/request-log-detail-stream.test.ts b/tests/unit/request-log-detail-stream.test.tsnew file mode 100644index 0000000000..1070af7c64--- /dev/null+++ b/tests/unit/request-log-detail-stream.test.ts@@ -0,0 +1,181 @@+import test from "node:test";+import assert from "node:assert/strict";+import React from "react";+import { renderToStaticMarkup } from "react-dom/server";++const { default: RequestLoggerDetail } =+ await import("../../src/shared/components/RequestLoggerDetail.tsx");++test("event stream shows only when debugEnabled and appears above legacy response", () => {+ const html = renderToStaticMarkup(+ React.createElement(RequestLoggerDetail, {+ log: {+ status: 504,+ method: "POST",+ path: "/v1/chat/completions",+ timestamp: "2026-04-09T21:27:08.000Z",+ duration: 2500,+ provider: "gemini",+ sourceFormat: "openai-chat",+ model: "test-model",+ tokens: { in: 1, out: 1 },+ },+ detail: {+ pipelinePayloads: {+ streamChunks: {+ provider: ['data: {"content": "hello"}\n\n'],+ openai: ['data: {"choices":[{"delta":{"content":"hi"}}]}\n\n'],+ },+ // No providerResponse here so payloadSections will be empty and the legacy+ // response payload should still be rendered; Event Stream must appear above it.+ },+ responseBody: "{}",+ },++ loading: false,+ debugEnabled: true,+ onClose: () => {},+ onCopy: async () => true,+ })+ );++ assert.notEqual(+ html.indexOf(">Event Stream (Debug)<"),+ -1,+ "Event Stream should be present when debugEnabled"+ );+ // Ensure the legacy response payload is present and that the Event Stream appears above it+ assert.notEqual(+ html.indexOf(">Response Payload (Legacy)<"),+ -1,+ "Legacy response payload should be present"+ );+ assert(+ html.indexOf(">Event Stream (Debug)<") < html.indexOf(">Response Payload (Legacy)<"),+ "Event Stream should appear before Response Payload (Legacy)"+ );+});++test("event stream hidden when debugEnabled is false", () => {+ const html = renderToStaticMarkup(+ React.createElement(RequestLoggerDetail, {+ log: {+ status: 504,+ method: "POST",+ path: "/v1/chat/completions",+ timestamp: "2026-04-09T21:27:08.000Z",+ duration: 2500,+ provider: "gemini",+ sourceFormat: "openai-chat",+ model: "test-model",+ tokens: { in: 1, out: 1 },+ },+ detail: {+ pipelinePayloads: {+ streamChunks: { provider: ["data: chunk"] },+ providerResponse: { status: 200 },+ },+ responseBody: "{}",+ },+ loading: false,+ debugEnabled: false,+ onClose: () => {},+ onCopy: async () => true,+ })+ );++ assert.equal(+ html.indexOf(">Event Stream (Debug)<"),+ -1,+ "Event Stream should be hidden when debugEnabled is false"+ );+});++test("status discrepancy shows both OmniRoute and provider statuses", () => {+ const html = renderToStaticMarkup(+ React.createElement(RequestLoggerDetail, {+ log: {+ status: 504,+ method: "POST",+ path: "/v1/chat/completions",+ timestamp: "2026-04-09T21:27:08.000Z",+ duration: 2500,+ provider: "gemini",+ sourceFormat: "openai-chat",+ model: "test-model",+ tokens: { in: 1, out: 1 },+ },+ detail: {+ pipelinePayloads: {+ providerResponse: { status: 200 },+ },+ },+ loading: false,+ debugEnabled: false,+ onClose: () => {},+ onCopy: async () => true,+ })+ );++ assert.notEqual(html.indexOf("Upstream: 200"), -1, "Should display upstream/provider status");+ assert.notEqual(+ html.indexOf("OmniRoute returned 504"),+ -1,+ "Should indicate OmniRoute returned its own status"+ );+});++test("request logger detail renders stream chunks correctly", () => {+ const log = {+ status: 200,+ method: "POST",+ path: "/v1/chat/completions",+ provider: "gemini",+ model: "gemma-4-31b-it",+ timestamp: new Date().toISOString(),+ duration: 100,+ };++ const detail = {+ pipelinePayloads: {+ streamChunks: {+ provider: [+ 'data: {"type": "message_start"}\n\n',+ 'data: {"type": "content_block_start"}\n\n',+ ": x-omniroute-latency-ms=1\n",+ "data: [DONE]\n\n",+ ],+ },+ },+ responseBody: "{}",+ };++ const html = renderToStaticMarkup(+ React.createElement(RequestLoggerDetail, {+ log,+ detail,+ loading: false,+ debugEnabled: true,+ onClose: () => {},+ onCopy: async () => true,+ })+ );++ const expectedFragment = "message_start";+ assert.notEqual(+ html.indexOf(">Event Stream (Debug)<"),+ -1,+ "Event Stream header should be present"+ );+ // The payload is HTML-escaped; check for the provider key token and the message content+ assert.notEqual(+ html.indexOf("provider"),+ -1,+ "Stream chunks output should reference provider key"+ );+ assert.notEqual(+ html.indexOf(expectedFragment),+ -1,+ "Stream content (message_start) should be present in rendered HTML"+ );+});diff --git a/tests/unit/responses-handler.test.ts b/tests/unit/responses-handler.test.tsindex af10c7f0d6..f71d223af5 100644--- a/tests/unit/responses-handler.test.ts+++ b/tests/unit/responses-handler.test.ts@@ -201,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, "resp_prev_store");+ assert.equal(call.body.previous_response_id, undefined);assert.equal(call.body.store, true);assert.equal(call.body.stream, true);});diff --git a/tests/unit/stream-utilities.test.ts b/tests/unit/stream-utilities.test.tsindex f273e5a464..68e9d95dda 100644--- a/tests/unit/stream-utilities.test.ts+++ b/tests/unit/stream-utilities.test.ts@@ -6,6 +6,7 @@ import {createStreamController,createDisconnectAwareStream,} from "../../open-sse/utils/streamHandler.ts";+import { createPassthroughStreamWithLogger } from "../../open-sse/utils/stream.ts";import { wantsProgress, createProgressTransform } from "../../open-sse/utils/progressTracker.ts";@@ -50,6 +51,135 @@ test("createProgressTransform maps SSE text output to valid byte stream with proassert.match(result, /done":true/);});+test("createPassthroughStreamWithLogger omits [DONE] for Responses clients", async () => {+ const transform = createPassthroughStreamWithLogger(+ "codex",+ null,+ null,+ "gpt-5.5-low",+ null,+ null,+ null,+ null,+ null,+ "openai-responses"+ );++ const writer = transform.writable.getWriter();+ await writer.write(+ new TextEncoder().encode(+ [+ "event: response.completed",+ 'data: {"type":"response.completed","response":{"id":"resp_1","model":"gpt-5.5-low","status":"completed","output":[],"usage":{"input_tokens":1,"output_tokens":1,"total_tokens":2}}}',+ "",+ ].join("\n")+ )+ );+ await writer.close();++ const reader = transform.readable.getReader();+ const decoder = new TextDecoder();+ let result = "";++ while (true) {+ const { done, value } = await reader.read();+ if (done) break;+ result += decoder.decode(value);+ }++ assert.match(result, /event: response\.completed/);+ assert.doesNotMatch(result, /data: \[DONE\]/);+});++test("createPassthroughStreamWithLogger synthesizes reasoning summary events from reasoning output items", async () => {+ const transform = createPassthroughStreamWithLogger(+ "codex",+ null,+ null,+ "gpt-5.5-low",+ null,+ null,+ null,+ null,+ null,+ "openai-responses"+ );++ const writer = transform.writable.getWriter();+ await writer.write(+ new TextEncoder().encode(+ [+ "event: response.output_item.done",+ 'data: {"type":"response.output_item.done","response_id":"resp_reasoning_1","output_index":0,"item":{"id":"rs_resp_reasoning_1_0","type":"reasoning","summary":[{"type":"summary_text","text":"Reasoning summary text"}]}}',+ "",+ ].join("\n")+ )+ );+ await writer.close();++ const reader = transform.readable.getReader();+ const decoder = new TextDecoder();+ let result = "";++ while (true) {+ const { done, value } = await reader.read();+ if (done) break;+ result += decoder.decode(value);+ }++ assert.match(result, /event: response\.reasoning_summary_text\.delta/);+ assert.match(result, /"delta":"Reasoning summary text"/);+ assert.match(result, /event: response\.reasoning_summary_part\.done/);+ assert.match(result, /event: response\.output_item\.done/);+});++test("createPassthroughStreamWithLogger backfills completed output from function_call arguments events", async () => {+ const transform = createPassthroughStreamWithLogger(+ "codex",+ null,+ null,+ "gpt-5.5-low",+ null,+ null,+ null,+ null,+ null,+ "openai-responses"+ );++ const writer = transform.writable.getWriter();+ await writer.write(+ new TextEncoder().encode(+ [+ 'data: {"type":"response.created","response":{"id":"resp_fc_1"}}',+ "event: response.output_item.added",+ 'data: {"type":"response.output_item.added","response_id":"resp_fc_1","output_index":0,"item":{"id":"fc_call_1","type":"function_call","call_id":"call_1","name":"workspace_read_file","arguments":""}}',+ "event: response.function_call_arguments.done",+ 'data: {"type":"response.function_call_arguments.done","response_id":"resp_fc_1","output_index":0,"item_id":"fc_call_1","arguments":"{\\"path\\":\\"README.md\\"}"}',+ "event: response.completed",+ 'data: {"type":"response.completed","response":{"id":"resp_fc_1","status":"completed","output":[],"usage":{"input_tokens":1,"output_tokens":1,"total_tokens":2}}}',+ "",+ ].join("\n")+ )+ );+ await writer.close();++ const reader = transform.readable.getReader();+ const decoder = new TextDecoder();+ let result = "";++ while (true) {+ const { done, value } = await reader.read();+ if (done) break;+ result += decoder.decode(value);+ }++ assert.match(result, /event: response\.completed/);+ assert.match(result, /"type":"function_call"/);+ assert.match(result, /"call_id":"call_1"/);+ assert.ok(result.includes('"arguments":"{\\"path\\":\\"README.md\\"}"'));+});+test("createStreamController returns valid controller", () => {let completeLogged = false;let disconnectLogged = false;@@ -61,8 +191,8 @@ test("createStreamController returns valid controller", () => {};const sc = createStreamController({- connectionId: "conn_1",- onStreamComplete: () => {},+ provider: "test",+ model: "conn_1",});assert.equal(typeof sc.signal, "object");diff --git a/tests/unit/stream-utils.test.ts b/tests/unit/stream-utils.test.tsindex e48bb1d79c..e552551ebe 100644--- a/tests/unit/stream-utils.test.ts+++ b/tests/unit/stream-utils.test.ts@@ -797,7 +797,7 @@ test("createSSETransformStreamWithLogger flushes Responses API terminal events oassert.match(text, /response\.created/);assert.match(text, /response\.completed/);- assert.match(text, /\[DONE\]/);+ assert.doesNotMatch(text, /\[DONE\]/);});test("createPassthroughStreamWithLogger reuses passthrough mode helpers", async () => {@@ -972,3 +972,63 @@ test("createRequestLogger caps retained stream chunk item count", async () => {"[stream chunk log truncated after 2 chunks]",]);});++// T-VERIFY: passthrough mode failure decrements pending requests+// Regression test for missing trackPendingRequest(false) on passthrough failure+import { getPendingRequests, clearPendingRequests } from "../../src/lib/usage/usageHistory.ts";++test("createSSEStream passthrough mode decrements pending requests on failure", async () => {+ // Clear any existing pending requests first+ clearPendingRequests();+ const initial = getPendingRequests();+ assert.equal(Object.keys(initial.byModel).length, 0, "should start with no pending requests");++ let failurePayload = null;+ const testProvider = "openai-compatible-test-failure";+ const testModel = "gpt-test";+ const testConnectionId = "test-conn-123";++ await assert.rejects(+ readTransformed(+ [+ `data: ${JSON.stringify({+ type: "response.failed",+ response: {+ id: "resp_failed_test",+ object: "response",+ model: testModel,+ status: "failed",+ error: {+ code: "test_failure",+ message: "Test failure for pending request tracking",+ },+ },+ })}\n\n`,+ ],+ {+ mode: "passthrough",+ sourceFormat: FORMATS.OPENAI_RESPONSES,+ provider: testProvider,+ model: testModel,+ connectionId: testConnectionId,+ body: { input: "hello" },+ onFailure(payload) {+ failurePayload = payload;+ },+ }+ ),+ /Test failure|Upstream failure/+ );++ assert.ok(failurePayload, "should report the stream failure");++ // Verify pending requests are properly decremented after failure+ const pending = getPendingRequests();+ const modelKey = `${testModel} (${testProvider})`;+ const count = pending.byModel[modelKey] || 0;+ assert.equal(+ count,+ 0,+ `pending request count for ${modelKey} should be 0 after failure, got ${count}`+ );+});diff --git a/tests/unit/t20-t22-provider-headers.test.ts b/tests/unit/t20-t22-provider-headers.test.tsindex 26b34d90e2..e9f6c7aeb9 100644--- a/tests/unit/t20-t22-provider-headers.test.ts+++ b/tests/unit/t20-t22-provider-headers.test.ts@@ -60,6 +60,6 @@ test("T20: codex config advertises current client headers and auto-review model"assert.equal(codex.headers.Version, "0.125.0");assert.equal(codex.headers["Openai-Beta"], "responses=experimental");assert.equal(codex.headers["X-Codex-Beta-Features"], "responses_websockets");- assert.equal(codex.headers["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26100; x64)");+ assert.equal(codex.headers["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26200; x64)");assert.ok(codex.models.some((model) => model.id === "codex-auto-review"));});diff --git a/tests/unit/token-refresh-service.test.ts b/tests/unit/token-refresh-service.test.tsindex c44a3d9bc0..59562e58b6 100644--- a/tests/unit/token-refresh-service.test.ts+++ b/tests/unit/token-refresh-service.test.ts@@ -464,6 +464,47 @@ test("refreshKiroToken uses the AWS OIDC flow when client credentials are presen});});+test("refreshKiroToken uses stored region for AWS OIDC refresh without authMethod", async () => {+ const log = createLog();+ const calls: any[] = [];++ await withMockedFetch(+ async (url, options = {}) => {+ calls.push({ url, options });+ return jsonResponse({+ accessToken: "kiro-aws-access",+ refreshToken: "kiro-aws-refresh-next",+ expiresIn: 900,+ });+ },+ async () => {+ const result = await refreshKiroToken(+ "kiro-refresh",+ {+ clientId: "aws-client",+ clientSecret: "aws-secret",+ region: "ap-southeast-1",+ },+ log+ );++ assert.deepEqual(result, {+ accessToken: "kiro-aws-access",+ refreshToken: "kiro-aws-refresh-next",+ expiresIn: 900,+ });+ }+ );++ assert.equal(calls[0].url, "https://oidc.ap-southeast-1.amazonaws.com/token");+ assert.deepEqual(JSON.parse(calls[0].options.body), {+ clientId: "aws-client",+ clientSecret: "aws-secret",+ refreshToken: "kiro-refresh",+ grantType: "refresh_token",+ });+});+test("refreshKiroToken falls back to the social-auth refresh endpoint", async () => {const log = createLog();const calls: any[] = [];diff --git a/tests/unit/translator-claude-to-gemini.test.ts b/tests/unit/translator-claude-to-gemini.test.tsindex e1e7058604..b178a72b6b 100644--- a/tests/unit/translator-claude-to-gemini.test.ts+++ b/tests/unit/translator-claude-to-gemini.test.ts@@ -76,7 +76,7 @@ test("Claude -> Gemini maps system, thinking, tool use, tool result and tools",);assert.deepEqual(result.systemInstruction, {- role: "user",+ role: "system",parts: [{ text: "Rules" }],});assert.equal(result.contents[0].role, "model");@@ -92,6 +92,7 @@ test("Claude -> Gemini maps system, thinking, tool use, tool result and tools",},});assert.equal(result.generationConfig.maxOutputTokens, 256);+ assert.match((result as any).tools[0].functionDeclarations[0].name, /^[a-zA-Z0-9_]+$/);assert.equal(result.generationConfig.temperature, 0.4);assert.equal(result.generationConfig.topP, 0.8);assert.deepEqual(result.generationConfig.thinkingConfig, {@@ -105,6 +106,19 @@ test("Claude -> Gemini maps system, thinking, tool use, tool result and tools",});});+test("Claude -> Gemini clamps maxOutputTokens to the model cap", () => {+ const result = claudeToGeminiRequest(+ "gemini-2.5-flash",+ {+ messages: [{ role: "user", content: [{ type: "text", text: "Hello" }] }],+ max_tokens: 999999,+ },+ false+ );++ assert.equal(result.generationConfig.maxOutputTokens, 8192);+});+test("Claude -> Gemini converts text and base64 images to Gemini parts", () => {const result = claudeToGeminiRequest("gemini-2.5-flash",diff --git a/tests/unit/translator-openai-to-gemini.test.ts b/tests/unit/translator-openai-to-gemini.test.tsindex f9c3eababb..1ac3376c0a 100644--- a/tests/unit/translator-openai-to-gemini.test.ts+++ b/tests/unit/translator-openai-to-gemini.test.ts@@ -224,7 +224,7 @@ test("OpenAI -> Gemini request maps messages, merged system instructions, toolsfalse);- assert.equal((result as any).systemInstruction.role, "user");+ assert.equal((result as any).systemInstruction.role, "system");assert.deepEqual((result as any).systemInstruction.parts, [{ text: "Rule A" },{ text: "Rule B" },@@ -558,11 +558,15 @@ test("OpenAI -> Antigravity uses the Claude bridge for Claude-family models", ()assert.equal(result.project, "proj-claude");assert.equal(result.userAgent, "antigravity");+ assert.equal((result as any).request?.systemInstruction.role, "system");assert.equal((result as any).request?.systemInstruction.parts[0].text,ANTIGRAVITY_DEFAULT_SYSTEM);assert.equal((result as any).request?.systemInstruction.parts[1].text, "Project rules");+ assert.equal((result as any).request?.generationConfig.maxOutputTokens, 16384);+ assert.equal((result as any).request?.generationConfig.temperature, 1);+ assert.equal((result as any).request?.generationConfig.thinkingConfig, undefined);const modelTurn = result.request.contents.find((content) => content.role === "model" && content.parts.some((part) => part.functionCall)@@ -624,6 +628,7 @@ test("OpenAI -> Antigravity Claude bridge sanitizes long names and preserves resconst sanitizedToolName = (result as any).request?.tools[0].functionDeclarations[0].name;assert.equal(sanitizedToolName.length, 64);+ assert.match(sanitizedToolName, /^[a-zA-Z0-9_]+$/);assert.equal((result as any)._toolNameMap.get(sanitizedToolName), longToolName);const modelTurn = result.request.contents.find(@@ -638,3 +643,35 @@ test("OpenAI -> Antigravity Claude bridge sanitizes long names and preserves resassert.ok(toolTurn, "expected a tool response turn");assert.equal(getFunctionResponse(toolTurn.parts[0]).name, sanitizedToolName);});++test("OpenAI -> Antigravity Claude bridge applies Antigravity output cap without forwarding thinking", () => {+ const result = openaiToAntigravityRequest(+ "claude-3-7-sonnet",+ {+ messages: [{ role: "user", content: "Summarize this" }],+ max_completion_tokens: 32000,+ reasoning_effort: "high",+ },+ false,+ { projectId: "proj-claude-thinking" } as any+ );++ assert.equal((result as any).request?.generationConfig.maxOutputTokens, 16384);+ assert.equal((result as any).request?.generationConfig.thinkingConfig, undefined);+});++test("OpenAI -> Antigravity Claude bridge preserves lower requested output despite reasoning effort", () => {+ const result = openaiToAntigravityRequest(+ "claude-3-7-sonnet",+ {+ messages: [{ role: "user", content: "Short answer" }],+ max_completion_tokens: 1000,+ reasoning_effort: "high",+ },+ false,+ { projectId: "proj-claude-short" } as any+ );++ assert.equal((result as any).request?.generationConfig.maxOutputTokens, 1000);+ assert.equal((result as any).request?.generationConfig.thinkingConfig, undefined);+});diff --git a/tests/unit/v1beta-models-route.test.ts b/tests/unit/v1beta-models-route.test.tsnew file mode 100644index 0000000000..21f6b210b4--- /dev/null+++ b/tests/unit/v1beta-models-route.test.ts@@ -0,0 +1,55 @@+import test from "node:test";+import assert from "node:assert/strict";+import fs from "node:fs";+import os from "node:os";+import path from "node:path";++const TEST_DATA_DIR = fs.mkdtempSync(path.join(os.tmpdir(), "omniroute-v1beta-models-"));+process.env.DATA_DIR = TEST_DATA_DIR;+process.env.API_KEY_SECRET = process.env.API_KEY_SECRET || "v1beta-models-test-secret";++const core = await import("../../src/lib/db/core.ts");+const modelsDb = await import("../../src/lib/db/models.ts");+const v1betaModelsRoute = await import("../../src/app/api/v1beta/models/route.ts");++async function resetStorage() {+ core.resetDbInstance();+ fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });+ fs.mkdirSync(TEST_DATA_DIR, { recursive: true });+}++test.beforeEach(async () => {+ await resetStorage();+});++test.after(async () => {+ core.resetDbInstance();+ fs.rmSync(TEST_DATA_DIR, { recursive: true, force: true });+});++test("v1beta models route deduplicates custom models against built-in and synced entries", async () => {+ await modelsDb.replaceSyncedAvailableModelsForConnection("openai", "conn-main", [+ {+ id: "gpt-4o",+ name: "GPT-4o From Sync",+ source: "imported",+ },+ {+ id: "review-sync-only",+ name: "Review Sync Only",+ source: "imported",+ },+ ]);+ await modelsDb.addCustomModel("openai", "gpt-4o", "GPT-4o Manual Duplicate");+ await modelsDb.addCustomModel("openai", "review-sync-only", "Review Manual Duplicate");+ await modelsDb.addCustomModel("openai", "review-manual-only", "Review Manual Only");++ const response = await v1betaModelsRoute.GET();+ const body = (await response.json()) as { models: Array<{ name: string }> };+ const names = body.models.map((model) => model.name);++ assert.equal(response.status, 200);+ assert.equal(names.filter((name) => name === "models/openai/gpt-4o").length, 1);+ assert.equal(names.filter((name) => name === "models/openai/review-sync-only").length, 1);+ assert.equal(names.filter((name) => name === "models/openai/review-manual-only").length, 1);+});diff --git a/tests/unit/validate-response-quality.test.ts b/tests/unit/validate-response-quality.test.tsnew file mode 100644index 0000000000..5b80ff1d1d--- /dev/null+++ b/tests/unit/validate-response-quality.test.ts@@ -0,0 +1,27 @@+import test from "node:test";+import assert from "assert";+import { validateResponseQuality } from "../../open-sse/services/combo";++function makeResponse(body: string, contentType = "text/plain") {+ return {+ headers: {+ get: (name: string) => (name.toLowerCase() === "content-type" ? contentType : null),+ },+ clone: () => ({ text: async () => body }),+ } as unknown as Response;+}++test("returns valid=true for SSE with 'event:' lines", async () => {+ const res = await validateResponseQuality(makeResponse("event: message\n\n"), false, {});+ assert.strictEqual(res.valid, true);+});++test("returns valid=true for SSE with 'data:' lines", async () => {+ const res = await validateResponseQuality(makeResponse('data: {"foo":"bar"}\n\n'), false, {});+ assert.strictEqual(res.valid, true);+});++test("returns valid=false for non-JSON non-SSE text", async () => {+ const res = await validateResponseQuality(makeResponse("Hello world"), false, {});+ assert.strictEqual(res.valid, false);+});diff --git a/tests/unit/web-cookie-auth.test.ts b/tests/unit/web-cookie-auth.test.tsnew file mode 100644index 0000000000..4cb51c28cc--- /dev/null+++ b/tests/unit/web-cookie-auth.test.ts@@ -0,0 +1,57 @@+import test from "node:test";+import assert from "node:assert/strict";++const { extractCookieValue, normalizeSessionCookieHeader, stripCookieInputPrefix } =+ await import("../../src/lib/providers/webCookieAuth.ts");++test("stripCookieInputPrefix removes 'cookie:' and 'bearer ' prefixes", () => {+ assert.equal(stripCookieInputPrefix("Cookie: sso=abc"), "sso=abc");+ assert.equal(stripCookieInputPrefix("bearer xyz"), "xyz");+ assert.equal(stripCookieInputPrefix(" plain "), "plain");+ assert.equal(stripCookieInputPrefix(""), "");+});++test("normalizeSessionCookieHeader returns input as-is when it already has '='", () => {+ assert.equal(+ normalizeSessionCookieHeader(+ "__Secure-authjs.session-token=abc",+ "__Secure-authjs.session-token"+ ),+ "__Secure-authjs.session-token=abc"+ );+ assert.equal(+ normalizeSessionCookieHeader("bare-value", "__Secure-authjs.session-token"),+ "__Secure-authjs.session-token=bare-value"+ );+});++test("extractCookieValue: bare value returns unchanged", () => {+ assert.equal(extractCookieValue("eyJ0eXAi.abc.def", "sso"), "eyJ0eXAi.abc.def");+});++test("extractCookieValue: single name=value pair returns the value", () => {+ assert.equal(extractCookieValue("sso=eyJ0eXAi.abc.def", "sso"), "eyJ0eXAi.abc.def");+ assert.equal(extractCookieValue("Cookie: sso=eyJ0eXAi.abc.def", "sso"), "eyJ0eXAi.abc.def");+});++test("extractCookieValue: full DevTools cookie blob picks the named cookie", () => {+ const blob =+ "i18nextLng=en; stblid=aaaaaaaa; __cf_bm=foo; sso-rw=eyJOTHER; sso=eyJTARGET.abc.def; cf_clearance=baz;";+ assert.equal(extractCookieValue(blob, "sso"), "eyJTARGET.abc.def");+ assert.equal(extractCookieValue(blob, "sso-rw"), "eyJOTHER");+ assert.equal(extractCookieValue(blob, "cf_clearance"), "baz");+});++test("extractCookieValue: blob without target cookie returns empty string", () => {+ assert.equal(extractCookieValue("foo=1; bar=2;", "sso"), "");+});++test("extractCookieValue: empty input returns empty string", () => {+ assert.equal(extractCookieValue("", "sso"), "");+ assert.equal(extractCookieValue(" ", "sso"), "");+});++test("extractCookieValue: cookie name with regex metacharacters is escaped", () => {+ const blob = "foo=1; my.cookie+name=hello; bar=2;";+ assert.equal(extractCookieValue(blob, "my.cookie+name"), "hello");+});diff --git a/tests/unit/xiaomi-mimo-provider.test.ts b/tests/unit/xiaomi-mimo-provider.test.tsindex e214bb3197..bcba6ac0d5 100644--- a/tests/unit/xiaomi-mimo-provider.test.ts+++ b/tests/unit/xiaomi-mimo-provider.test.ts@@ -16,7 +16,7 @@ test("xiaomi-mimo registry uses the current default base URL and MiMo V2 models"assert.equal(entry.baseUrl, "https://api.xiaomimimo.com/v1");assert.deepEqual(entry.models.map((model) => model.id),- ["mimo-v2-pro", "mimo-v2-omni", "mimo-v2-tts"]+ ["mimo-v2.5-pro", "mimo-v2.5", "mimo-v2-omni", "mimo-v2-flash"]);});@@ -24,7 +24,7 @@ test("xiaomi-mimo executor appends /chat/completions for regional base URLs", ()const executor = new DefaultExecutor("xiaomi-mimo");assert.equal(- executor.buildUrl("mimo-v2-pro", true, 0, {+ executor.buildUrl("mimo-v2.5", true, 0, {providerSpecificData: {baseUrl: "https://token-plan-ams.xiaomimimo.com/v1",},@@ -33,7 +33,7 @@ test("xiaomi-mimo executor appends /chat/completions for regional base URLs", ());assert.equal(- executor.buildUrl("mimo-v2-pro", true, 0, {+ executor.buildUrl("mimo-v2.5", true, 0, {providerSpecificData: {baseUrl: "https://token-plan-cn.xiaomimimo.com/v1/chat/completions",},diff --git a/tsconfig.json b/tsconfig.jsonindex 63a91d7204..2a04942a4d 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -45,6 +45,10 @@"antigravity-manager-analysis","app.__qa_backup","vscode-extension",+ "vs_ideia",+ "_tasks",+ "_mono_repo",+ "_references","omnirouteCloud","omnirouteSite"]diff --git a/vitest.config.ts b/vitest.config.tsindex 2f00344908..097ca504ba 100644--- a/vitest.config.ts+++ b/vitest.config.ts@@ -7,7 +7,8 @@ export default defineConfig({environment: "jsdom",globals: true,include: [- "src/app/(dashboard)/dashboard/cache/__tests__/**/*.test.tsx",+ "src/app/**/dashboard/cache/__tests__/**/*.test.tsx",+ "src/app/**/dashboard/endpoint/__tests__/**/*.test.tsx","src/lib/memory/__tests__/**/*.test.ts","src/lib/skills/__tests__/**/*.test.ts","open-sse/**/__tests__/**/*.test.ts",