Compare commits

..

2 Commits

Author SHA1 Message Date
diegosouzapw
d7fb19ffa8 docs(changelog): add fragment for #20938 2026-11-21 10:46:17 -03:00
diegosouzapw
354f4b9461 fix(db): run the migration-numbering gate in the pre-commit hook when a migration is staged
The gate only ran in CI, so a hand-numbered or badly named migration was caught
minutes after the push. The hook now lists the staged paths under
src/lib/db/migrations/ and, only when there is one, runs
scripts/check/check-migration-numbering.mjs (names, duplicates and the frozen
001-241 series; the comparison with the base stays in CI). It runs before
lint-staged, aborts the commit if git cannot list the staged files, and blanks
GITHUB_EVENT_NAME / MIGRATION_BASE_REF so a CI-like environment never turns the
local run into a base comparison.

Tests: the hook test now mocks git, pins the step's placement and gating, and
runs the real hook text with real git and the real gate in a throwaway
repository (bad name fails with the gate's message, good name passes, no
migration staged never runs the gate).

Closes #20578
2026-11-21 10:40:27 -03:00
602 changed files with 1654 additions and 30001 deletions

View File

@@ -991,14 +991,6 @@ NEXT_PUBLIC_BASE_URL=http://localhost:20128
# Do not include /v1; if included accidentally it will be normalized away.
# OMNIROUTE_PUBLIC_BASE_URL=http://192.168.0.15:20128
# Origin of the inference API as key holders reach it, reported by
# GET /v1/me/quota/{provider}. Set it when the API is served from a different
# origin than the dashboard, for example behind API_PORT. Falls back to
# OMNIROUTE_PUBLIC_BASE_URL; with neither set the API reports no base URL.
# An invalid value yields no base URL and does not fall back to
# OMNIROUTE_PUBLIC_BASE_URL.
# OMNIROUTE_PUBLIC_API_BASE_URL=https://api.example.com
# Absolute provider plugin manifest URL advertised to sidecar clients.
# Used by: open-sse/config/providerPluginManifestUrl.ts. When unset, OmniRoute
# derives the URL from request origin or HOST/PORT using OMNIROUTE_PUBLIC_PROTOCOL.

View File

@@ -9,6 +9,12 @@ fi
# Cheap, deterministic local gates (re-enabled). Slower checks (i18n drift,
# openapi coverage/security-tiers, env-doc sync) run in CI to keep commits fast.
sh scripts/check/check-git-identity.sh
# Migration names (#20578): only when the commit touches src/lib/db/migrations/. The
# assignment aborts the hook if git fails. Names only; the comparison with the base stays in CI.
staged_migrations=$(git diff --cached --name-only --diff-filter=ACMRD -- src/lib/db/migrations/)
if [ -n "$staged_migrations" ]; then
GITHUB_EVENT_NAME= MIGRATION_BASE_REF= node scripts/check/check-migration-numbering.mjs
fi
# The stash is shared by every worktree. Never let a local hook stash another
# session's changes, and never download a missing tool during a commit.
npx --no-install lint-staged --no-stash

View File

@@ -11,7 +11,7 @@ import {
writeFileSync,
} from "node:fs";
import { createCipheriv, createDecipheriv, randomBytes, scryptSync } from "node:crypto";
import { dirname, join, extname, basename, resolve } from "node:path";
import { dirname, join, extname, basename } from "node:path";
import { Readable } from "node:stream";
import { pipeline } from "node:stream/promises";
import { resolveDataDir } from "../data-dir.mjs";
@@ -56,7 +56,6 @@ export function registerBackup(program) {
.option("--cron <expr>", t("backup.auto.cronOpt"), "0 3 * * *")
.option("--cloud", t("backup.cloudOpt"))
.option("--encrypt", t("backup.encryptOpt"))
.option("--key-file <path>", t("backup.keyFileOpt"))
.option("--retention <n>", t("backup.retentionOpt"), parseInt)
.action(async (opts) => {
const exitCode = await runBackupAutoEnableCommand(opts);
@@ -193,16 +192,7 @@ export async function runBackupCommand(opts = {}) {
let passphrase = null;
if (opts.encrypt) {
if (opts.keyFile) {
try {
passphrase = readFileSync(opts.keyFile, "utf8").trim();
} catch (err) {
console.error(`Cannot read key file ${opts.keyFile}: ${err?.code || "read error"}`);
return 1;
}
if (!passphrase) {
console.error(t("backup.noPassphrase"));
return 1;
}
passphrase = readFileSync(opts.keyFile, "utf8").trim();
} else {
passphrase = await promptPassphrase();
if (!passphrase) {
@@ -346,29 +336,11 @@ function getSchedulePath() {
export async function runBackupAutoEnableCommand(opts = {}) {
const schedulePath = getSchedulePath();
let keyFile;
if (opts.encrypt) {
// A scheduled run has no TTY, so an encrypted schedule needs a key file.
// Persist the absolute PATH only (never the passphrase): the server cwd
// differs from the CLI cwd.
if (!opts.keyFile) {
console.error("Encrypted automatic backups need --key-file <path> (no TTY on a schedule).");
return 1;
}
keyFile = resolve(String(opts.keyFile));
try {
if (!readFileSync(keyFile, "utf8").trim()) throw new Error("empty");
} catch {
console.error(`Key file ${keyFile} is missing, unreadable or empty.`);
return 1;
}
}
const schedule = {
enabled: true,
cron: opts.cron || "0 3 * * *",
cloud: !!opts.cloud,
encrypt: !!opts.encrypt,
...(keyFile ? { keyFile } : {}),
retention: opts.retention || null,
updatedAt: new Date().toISOString(),
};
@@ -403,10 +375,7 @@ export async function runBackupAutoStatusCommand() {
console.log(` cron: ${schedule.cron}`);
console.log(` cloud: ${schedule.cloud ? "yes" : "no"}`);
console.log(` encrypt: ${schedule.encrypt ? "yes" : "no"}`);
if (schedule.keyFile) console.log(` key-file: ${schedule.keyFile}`);
console.log(` retention: ${schedule.retention ?? "unlimited"}`);
if (schedule.lastRunAt) console.log(` last run: ${schedule.lastRunAt}`);
if (schedule.lastError) console.log(` last error: ${schedule.lastError}`);
return 0;
}

View File

@@ -187,17 +187,8 @@ export function registerResilience(program) {
.option("--threshold <n>", t("resilience.config.threshold"), parseInt)
.option("--reset-timeout <ms>", t("resilience.config.resetTimeout"), parseInt)
.option("--base-cooldown <ms>", t("resilience.config.baseCooldown"), parseInt)
.option("--p2c-latency-weight <0-20>", t("resilience.config.p2cLatencyWeight"), parseInt)
.action(async (opts, cmd) => {
const body = {};
if (opts.p2cLatencyWeight != null) {
const w = opts.p2cLatencyWeight;
if (!Number.isInteger(w) || w < 0 || w > 20) {
process.stderr.write("Error: --p2c-latency-weight must be an integer from 0 to 20\n");
process.exit(1);
}
body.p2cLatency = { weight: w };
}
if (opts.threshold != null) body.threshold = opts.threshold;
if (opts.resetTimeout != null) body.resetTimeoutMs = opts.resetTimeout;
if (opts.baseCooldown != null) body.baseCooldownMs = opts.baseCooldown;

View File

@@ -22,41 +22,29 @@ export function getLegacyDotDataDir(homeDir = safeHomeDir()) {
return path.join(homeDir, `.${APP_NAME}`);
}
function hasDatabase(dir) {
try {
return fs.statSync(path.join(dir, "storage.sqlite")).isFile();
} catch {
return false;
}
}
export function getDefaultDataDir() {
const homeDir = safeHomeDir();
const legacyDir = getLegacyDotDataDir(homeDir);
let legacyIsDir = false;
try {
legacyIsDir = fs.statSync(legacyDir).isDirectory();
} catch {
// Ignore stat errors and continue to the platform default.
if (fs.existsSync(legacyDir)) {
try {
if (fs.statSync(legacyDir).isDirectory()) {
return legacyDir;
}
} catch {
// Ignore stat errors and continue to the platform default.
}
}
let platformDir = null;
if (process.platform === "win32") {
const appData = process.env.APPDATA || path.join(homeDir, "AppData", "Roaming");
platformDir = path.join(appData, APP_NAME);
} else {
const xdgConfigHome = normalizeConfiguredPath(process.env.XDG_CONFIG_HOME);
if (xdgConfigHome) platformDir = path.join(xdgConfigHome, APP_NAME);
return path.join(appData, APP_NAME);
}
// An existing legacy dir wins, unless the platform dir holds the database and the legacy dir
// does not: other code creates ~/.omniroute/<sub> directly, and that alone must not move an
// XDG/APPDATA install to an empty database.
if (legacyIsDir && !(platformDir && !hasDatabase(legacyDir) && hasDatabase(platformDir))) {
return legacyDir;
}
return platformDir ?? legacyDir;
const xdgConfigHome = normalizeConfiguredPath(process.env.XDG_CONFIG_HOME);
if (xdgConfigHome) return path.join(xdgConfigHome, APP_NAME);
return legacyDir;
}
export function resolveDataDir() {

View File

@@ -973,8 +973,7 @@
"description": "Manage resilience config",
"threshold": "Failure threshold",
"resetTimeout": "Reset timeout in ms",
"baseCooldown": "Base cooldown in ms",
"p2cLatencyWeight": "p2c latency weight, 0 (off) to 20"
"baseCooldown": "Base cooldown in ms"
}
},
"nodes": {

View File

@@ -1 +0,0 @@
- **feat(api):** add the per-request `x-omniroute-no-log` header to omit request/response payloads from call logs while keeping timestamp, model, status, duration and token counts ([#20096](https://github.com/cheaper-inference/OmniRoute/pull/20096))

View File

@@ -1 +0,0 @@
- **feat(sse):** Mistral now counts as an automatic-prefix-caching provider (cache-aware compression guard, cache stats) and gets a stable `prompt_cache_key` on both Chat Completions and Responses bodies ([#20111](https://github.com/cheaper-inference/OmniRoute/pull/20111)) — thanks @RayJW

View File

@@ -1 +0,0 @@
- Command Code short plan ids (go, goat, pro, ultra, teams-pro) now resolve to their plan names, and known plans show their fixed credit cap as the quota total. ([#20347](https://github.com/cheaper-inference/OmniRoute/pull/20347))

View File

@@ -1 +0,0 @@
- Qoder's Sonus (smodel) and Cantus (cmodel) are now in the static model fallback, so the ids stay routable when the live catalog is unavailable. ([#20351](https://github.com/cheaper-inference/OmniRoute/pull/20351))

View File

@@ -1 +0,0 @@
- **feat(api):** self-service quota API for API key holders, off by default behind the new `QUOTA_SELF_PANEL` feature flag. `GET /v1/me/quota/{provider}` returns the quota-share pools the key is allocated in for that provider, with the key's fair share and consumption per window, the schedule windows and per-model caps it is under, and its expiry. Account bars and per-model windows need the `self:account-quota` scope and a provider the key's settings share, and only cover connections the key may use. A number that cannot be read is reported as unavailable or `null`, never as zero. Pool display names and schedule labels are shown to key holders as the administrator wrote them. The key needs the `self:usage` scope and is read from headers only. New optional `OMNIROUTE_PUBLIC_API_BASE_URL` sets the API origin reported to key holders ([#20767](https://github.com/cheaper-inference/OmniRoute/pull/20767)).

View File

@@ -1 +0,0 @@
- **feat(api):** `GET /v1/me/usage?range=1d|7d|30d|90d` returns the usage and cost series of an API key's own requests: totals, one entry per UTC day, per day and model, per provider-and-model pair (the 50 with the most requests) and per provider. Each entry carries the billed cost, where flat-rate subscriptions count $0, next to the list price. The range defaults to `30d`, and `coverage` reports the window and the operator's raw usage-history retention setting. Rows are selected by the calling key's id only, and a built series is reused for 60 seconds per key and range, with at most 64 kept in memory. The route shares the `QUOTA_SELF_PANEL` feature flag, the `self:usage` scope and the header-only authentication of `GET /v1/me/quota/{provider}` ([#20787](https://github.com/cheaper-inference/OmniRoute/pull/20787))

View File

@@ -1 +0,0 @@
- fix(providers): a Codex discovery with a failed client-version refresh no longer shrinks the stored synced catalog (#16714)

View File

@@ -1 +0,0 @@
- fix(providers): Cloudflare Playground (cfp) no longer emits duplicated content deltas when upstream replays chunks (`replay: true` or repeated `seq`) (#18732)

View File

@@ -1 +0,0 @@
- **perf(db):** chat requests no longer re-run the compression-combo table bootstrap and default seed on every call, so a request no longer stalls for up to 2 s with "database is locked" while another process holds the SQLite write lock ([#19630](https://github.com/cheaper-inference/OmniRoute/pull/19630))

View File

@@ -1 +0,0 @@
- **fix(db):** Deleting a compatible provider node now also deletes its custom model list, so no orphaned model rows are left behind. ([#19630](https://github.com/cheaper-inference/OmniRoute/pull/19630))

View File

@@ -1 +0,0 @@
- **fix(skills):** the server tool replay table no longer grows without limit; rows older than 30 days and rows beyond the newest 10,000 (never the last day, never a live claim) are removed. ([#19630](https://github.com/cheaper-inference/OmniRoute/pull/19630))

View File

@@ -1 +0,0 @@
- **fix(cli):** an XDG or %APPDATA% install keeps using its own database when an empty `~/.omniroute` folder appears, instead of silently switching to a new empty database on the next start. ([#19634](https://github.com/cheaper-inference/OmniRoute/pull/19634))

View File

@@ -1 +0,0 @@
- **fix(admission):** with per-tenant virtual lanes on, a freed slot now rotates across tenants instead of always serving the first lane, and a newer request no longer jumps an older request queued in its own lane. ([#19684](https://github.com/cheaper-inference/OmniRoute/pull/19684))

View File

@@ -1 +0,0 @@
- **fix(resilience):** a DashScope key with no balance (400 `Arrearage`) or without the model service (403 `AccessDenied.Unpurchased`) now parks as credits exhausted instead of being retried every few seconds; a ban phrase quoted inside a 408, 429 or 5xx body no longer gives the account a one-year permanent cooldown ([#19684](https://github.com/cheaper-inference/OmniRoute/pull/19684))

View File

@@ -1 +0,0 @@
- **fix(db):** automatic and manual backup pruning now skips a migration restore point that a running upgrade still holds, once the upgrade takes its lease; a lease left by a dead process is ignored. ([#19690](https://github.com/cheaper-inference/OmniRoute/pull/19690))

View File

@@ -1 +0,0 @@
- **fix(db):** a migration that was left out of the ledger now repairs every missing column and index it adds, no longer adds cache tokens to usage history a second time, and no longer gets recorded as applied when a column it adds is still missing. ([#19690](https://github.com/cheaper-inference/OmniRoute/pull/19690))

View File

@@ -1 +0,0 @@
- **fix(db):** restoring a database backup made under a different `STORAGE_ENCRYPTION_KEY` is refused with a message that names both key fingerprints, instead of loading credentials that cannot be read. Pass `allowKeyMismatch` for a key rotation. ([#19690](https://github.com/cheaper-inference/OmniRoute/pull/19690))

View File

@@ -1 +0,0 @@
- **fix(db):** Retention cleanup no longer deletes spend that an active daily, weekly or monthly API-key budget window still counts, so a 31-day month cannot reopen its used allowance. ([#19701](https://github.com/cheaper-inference/OmniRoute/pull/19701))

View File

@@ -1 +0,0 @@
- **fix(db):** Scheduled cleanup now prunes ended exclusive-connection lease rows and past provider quota-reset events, so these two history tables stop growing forever. ([#19701](https://github.com/cheaper-inference/OmniRoute/pull/19701))

View File

@@ -1 +0,0 @@
- **fix(db):** the scheduled call-log retention pass now also deletes the request/response body files of the rows it removes, so an idle gateway no longer keeps expired bodies on disk. ([#19701](https://github.com/cheaper-inference/OmniRoute/pull/19701))

View File

@@ -1 +0,0 @@
- **fix(a2a):** cancelling an A2A task now aborts the task's signal and a task that finishes after a cancel is refused with a clear "cancelled" error, instead of failing with "Invalid transition: cancelled → completed". ([#19727](https://github.com/cheaper-inference/OmniRoute/pull/19727))

View File

@@ -1 +0,0 @@
- **fix(cli-tools):** the CLI tools overview no longer shows Claude, Droid, OpenClaw, Cline and Kilo as configured when their config only mentions OmniRoute in unrelated text, or points at another host or port. The badge now follows the same fields the tool's own settings page reads. ([#19727](https://github.com/cheaper-inference/OmniRoute/pull/19727))

View File

@@ -1 +0,0 @@
- **fix(guardrails):** opt-in credential redaction no longer rewrites signed thinking blocks, encrypted reasoning or long base64 blobs because random bytes look like a short-prefix key, so replayed signatures stay valid. Full-format keys inside them are still redacted. ([#19727](https://github.com/cheaper-inference/OmniRoute/pull/19727))

View File

@@ -1 +0,0 @@
- **fix(quota):** the Redis quota store now charges a usage counter and sets its expiry in one atomic call, so a crash between the two steps can no longer leave a counter that never expires. ([#19727](https://github.com/cheaper-inference/OmniRoute/pull/19727))

View File

@@ -1 +0,0 @@
- **fix(codex):** The Codex ChatGPT Web and app-server adapters now cap the buffered event backlog by retained text size and merge adjacent small text deltas, so a fast producer behind a slow client can no longer grow memory without bound. ([#19733](https://github.com/cheaper-inference/OmniRoute/pull/19733))

View File

@@ -1 +0,0 @@
- **fix(gemini):** a non-streaming Gemini or Antigravity reply whose `[Tool call: ...]` text arrives in several stream parts now returns one tool call, and a tool-only stream cut before its finish reason is now marked as cut so a combo can try the next target. ([#19733](https://github.com/cheaper-inference/OmniRoute/pull/19733))

View File

@@ -1 +0,0 @@
- **fix(translator):** Gemini requests now map content roles `function` and `tool` to user messages, and infer a missing role from the parts, so single-turn Gemini requests without a role no longer reach the upstream as assistant messages. ([#19733](https://github.com/cheaper-inference/OmniRoute/pull/19733))

View File

@@ -1 +0,0 @@
- **fix(cache):** The semantic cache no longer stores a reply that ended in a content filter block (`content_filter`, or Claude `refusal`), so a false-positive block can clear on retry instead of being served from cache for the whole TTL. ([#19749](https://github.com/cheaper-inference/OmniRoute/pull/19749))

View File

@@ -1 +0,0 @@
- **fix(sse):** Claude Code CCH signing now uses the seed and the body view of the real client (verified on Claude Code 2.1.252 and 2.1.322), so the `cch=` token in the billing header equals the token the real client sends for the same body. ([#19761](https://github.com/cheaper-inference/OmniRoute/pull/19761))

View File

@@ -1 +0,0 @@
- **fix(providers):** Gemini 4 Carbon is registered like Argon — `gemini-4-carbon-{low,medium,high}` on Antigravity/AGY and `gemini-4-carbon` on the Gemini API key are priced at the published $2/$10 introductory rate, the bare id aliases to `-medium`, and the tiers get the declared 65535 output cap instead of the 16384 fallback ([#19797](https://github.com/cheaper-inference/OmniRoute/pull/19797), closes [#19796](https://github.com/cheaper-inference/OmniRoute/issues/19796)) — thanks @xiaoyaner0201

View File

@@ -1 +0,0 @@
- **fix(db-backups):** a chunked import upload is refused at the configured size while it streams, instead of being buffered in full and rejected afterwards ([#19831](https://github.com/cheaper-inference/OmniRoute/pull/19831)) — thanks @AndreAlmeidaDC

View File

@@ -1 +0,0 @@
- **fix(security):** strip `'unsafe-eval'` from the Content-Security-Policy `script-src` directive in production builds while retaining it strictly in development mode for React Fast Refresh and HMR ([#19836](https://github.com/cheaper-inference/OmniRoute/issues/19836)).

View File

@@ -1 +0,0 @@
- **fix(translator):** streamed chat completions from Claude models now return `"{}"` as the arguments of a tool call that takes no parameters, matching the non-streamed response. Before, the arguments were an empty string, which is not valid JSON. ([#20152](https://github.com/cheaper-inference/OmniRoute/issues/20152))

View File

@@ -1 +0,0 @@
- Guard `POST /api/providers/[id]/sync-models` with `requireManagementAuth()` when not called with an internal model-sync token so validated management subjects (local CLI token, scoped `oma_` access tokens, manage-scoped API keys, internal service token) are accepted consistently and inference-only keys get 403 ([#20187](https://github.com/cheaper-inference/OmniRoute/issues/20187)) — thanks @wsk0715

View File

@@ -1 +0,0 @@
- **fix(sse):** in a combo, the Codex effort-suffix guard no longer removes the client's `output_config.effort` from the request body that the next combo target reads. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(sse):** let a deduplicated request run its own upstream call when the first caller disconnects. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(sse):** requests to DeepSeek models (`deepseek-*`, on any provider) keep only the first definition of a repeated tool name, because DeepSeek answers a repeated name with HTTP 400 "Tool names must be unique". Other models are not changed. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(sse):** a failed memory-settings read is logged at debug level; the request still runs with memory off, as before, but the cause is now visible. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(memory):** memory injection no longer puts the per-query memory text at the head of an OpenAI, Codex or Azure prompt (it broke automatic prefix caching on every turn), and one corrupt skill row no longer makes every non-streaming request of an API key fail. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(sse):** stop probe key-health writes on non-streaming calls and cap ModelScope retry waits. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(skills):** registering the same skill again (same API key, name and version) now updates the existing row and keeps its id and run history, instead of adding a duplicate. A migration removes old duplicates once (keeps the newest) and adds a unique index. ([#20194](https://github.com/cheaper-inference/OmniRoute/pull/20194))

View File

@@ -1 +0,0 @@
- **fix(sse):** A Claude passthrough request whose tool is named with a leading `proxy_` (for example `proxy_search`) gets the same tool name back in the reply; the executor strips that prefix upstream and the reply used to show the stripped name. ([#20199](https://github.com/cheaper-inference/OmniRoute/pull/20199))

View File

@@ -1 +0,0 @@
- **fix(sse):** an Android user agent (Dalvik, mobile browsers) is no longer taken for the Droid CLI, so a Responses-shaped body sent to a non-`/responses` endpoint by such a client is converted back to Chat Completions as before. ([#20199](https://github.com/cheaper-inference/OmniRoute/pull/20199))

View File

@@ -1 +0,0 @@
- **fix(sse):** the empty-turn retry on another connection now replaces the request credentials instead of merging into them, so keys that only the first connection defines (lease routing, a Copilot session token) are not sent to the second. ([#20199](https://github.com/cheaper-inference/OmniRoute/pull/20199))

View File

@@ -1 +0,0 @@
- **fix(sse):** when the upstream-proxy fallback drops a failed native response and retries through CLIProxyAPI or Dario, the dropped response body is cancelled at once instead of holding its socket until garbage collection. ([#20199](https://github.com/cheaper-inference/OmniRoute/pull/20199))

View File

@@ -1 +0,0 @@
- **fix(sse):** a failed connection-cooldown write (geo-blocked or project-required connection) and a failed Codex scope-cooldown persist are logged as warnings instead of being dropped, so a connection that is selected again can be traced to the failed write. ([#20199](https://github.com/cheaper-inference/OmniRoute/pull/20199))

View File

@@ -1 +0,0 @@
- **fix(sse):** `isTokenExpiringSoon` now reads a token expiry given in epoch seconds or as a numeric string, so a valid token is no longer reported as expiring (seconds) or as never expiring (numeric string). ([#20199](https://github.com/cheaper-inference/OmniRoute/pull/20199))

View File

@@ -1 +0,0 @@
- **fix(sse):** keep the combo target pin on safety-net redirects and release the OAuth slot when a connection reasoning rule fails. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(sse):** the retry that follows a rejected field or a clamped limit on a CLI-fingerprinted upstream (Claude Code) keeps the CLI body-field order of the first send instead of the client order. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(sse):** when a client sends the Claude Code sentinel and its own instructions in one system block, only the sentinel is replaced; the client's instructions are kept instead of being deleted with the block. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(sse):** a client abort during a request on a pooled-session provider (for example llm7) no longer puts the healthy session into cooldown; only real upstream failures do. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(executors):** merged abort signals no longer leave listeners on the long-lived request signal when nothing aborts. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(qoder):** A Qoder PAT connection runs the local `qodercli`, which gets text only, so an image in the request was replaced by the text `[Image omitted]` and the model answered blind. Image requests now skip PAT connections (a combo goes on to its next target), and a PAT call that still gets an image answers 400 `image_input_unsupported` before it starts the CLI. HTTP connections still forward images. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(routing):** After a Codex 429 moves a request to a sibling account, the selected-connection header, the quota-healthy mark and the error-state reset name the account that served the request, not the account that was rate limited. ([#20201](https://github.com/cheaper-inference/OmniRoute/pull/20201))

View File

@@ -1 +0,0 @@
- **fix(antigravity):** client system text is no longer placed into a `model` turn when the conversation history starts with an assistant message; it goes into its own leading `user` turn. ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(translator):** A message whose `content` is one bare block object (not an array) no longer loses its text when OpenAI-format requests are sent to Claude. ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(sse):** disable Claude thinking when an OpenAI request forces a tool call. ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(sse):** keep tool-result media as Gemini media parts and omit sampling parameters removed by Gemini 4. ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(translator):** Claude Code's rotating `x-anthropic-billing-header:` line is now dropped from the system prompt of OpenAI-format requests sent to Gemini and Antigravity, so it no longer breaks prompt-cache prefixes. ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(sse):** an OpenAI image or file part given as a base64 data URL that contains line breaks (MIME-wrapped base64) is now sent to Claude as a base64 block with the breaks removed, instead of an invalid URL source (images) or a silent drop (files). ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(translator):** OpenAI to Claude requests no longer send `thinking: {type: "enabled"}` without a budget or an empty system text block, and keep `temperature` for API-key and compatible Claude providers and when thinking is disabled. ([#20204](https://github.com/cheaper-inference/OmniRoute/pull/20204))

View File

@@ -1 +0,0 @@
- **fix(gemini):** a Claude request with `thinking: {type: "disabled"}` or `output_config.effort: "none"` now switches thinking off for Gemini 2.5 Flash models, as the OpenAI path does, instead of letting the model think and spend the output budget. Gemini 2.5 Pro cannot switch thinking off and keeps its default, and an enabled `budget_tokens` still wins over `effort: "none"`. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(gemini):** a failed Claude `tool_result` in a history without Gemini thought signatures keeps a `[tool_error: true]` marker in the context text, so the model can tell a failed call from a successful one. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(sse):** keep Gemini image parts that carry a thought signature. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(gemini):** a trailing `<` or partial `<think` prefix at the end of a Gemini stream is now delivered as text instead of being dropped. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(kiro):** the Kiro `conversationId` of a single-message request no longer depends on the clock (the timestamp line was part of its seed), so turn 1 and turn 2 of a conversation share one id and the upstream session cache can hit. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(kiro):** a Kiro request now says in the text when an image was left out (remote image URL, or a model that takes no images), so the model does not answer as if none was sent. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(kiro):** A Claude request whose `tool_result` has `is_error: true` now reaches Kiro with `status: "error"` and the original tool text, not `status: "success"` plus a `[tool_error: true]` line. ([#20206](https://github.com/cheaper-inference/OmniRoute/pull/20206))

View File

@@ -1 +0,0 @@
- **fix(translator):** `translateRequest` no longer edits the message objects the caller gives it. A combo shares message objects between its targets, so an earlier target's edits (stripping `reasoning_content` for a non-reasoning model, filling tool call ids and arguments, moving a late tool result) changed what a later target received; a reasoning model that needed the client `reasoning_content` then lost it. The messages and their tool calls are now copied once at entry (about 0.4 ms for a 12 MiB body). ([#20245](https://github.com/cheaper-inference/OmniRoute/pull/20245))

View File

@@ -1 +0,0 @@
- The Command Code /alpha/generate fallback and key probe now mimic the official CLI 1.88.0 (production environment, cli surface) instead of the stale 1.15.1 external profile. ([#20346](https://github.com/cheaper-inference/OmniRoute/pull/20346))

View File

@@ -1 +0,0 @@
- fix(providers): clamp Cohere reasoning_effort to `high` and learn its "Use 'high' instead" 422 so auto routing no longer burns fallbacks (#20363)

View File

@@ -1 +0,0 @@
- **fix(plugins):** a plugin `onRequest` hook that lets a request through unchanged is no longer called again when that request fails over to another account of the same provider and model, so request-counting plugins no longer count a failover twice. A block, a body rewrite (in place or a new body), a new provider or model, or a caller without a headers snapshot still calls the hook again. ([#20372](https://github.com/cheaper-inference/OmniRoute/pull/20372))

View File

@@ -1 +0,0 @@
- fix(catalog): `/v1/models` no longer advertises a passthrough provider's default context window as `context_length` for uncataloged models (#20415)

View File

@@ -1 +0,0 @@
- **fix(providers):** accept keyless connections for providers marked optional or none in the registry ([#20458](https://github.com/cheaper-inference/OmniRoute/pull/20458)) — thanks @maxmad64bis

View File

@@ -1 +0,0 @@
- fix(backup): `backup auto enable --encrypt` now requires `--key-file` and scheduled encrypted backups use it instead of silently skipping every run (#20494)

View File

@@ -1 +0,0 @@
- fix(pwa): restore English name and description in the PWA manifest, which declares lang en (#20504)

View File

@@ -1 +0,0 @@
- **fix(combo):** when every unit of a nested combo fails, the error message now lists each failed unit's reason (an empty reply rejected by quality validation, an HTTP 500, a pre-dispatch skip) instead of only the last unit's, which was often just "Model X is unavailable". Each reason is collapsed to one line, sanitized, has connection identifiers redacted and is then capped at 300 characters; at most 5 units are listed, the rest as `(+N more)`. Status code, headers, quota classification and diagnostics are unchanged ([#20507](https://github.com/cheaper-inference/OmniRoute/pull/20507))

View File

@@ -1 +0,0 @@
- fix(guardrails): log blocked prompt-injection requests and name the matched rule ids (not the content) in the SECURITY_001 chat error body (#20526)

View File

@@ -1 +0,0 @@
- fix(memory): skip a failing rerank model for a backoff window (60 s up to 10 min) instead of retrying it on every retrieval (#20535)

View File

@@ -1 +0,0 @@
- Preserve the required `max_tokens` field for Anthropic Messages targets even when model capability metadata is missing, and normalize `max_completion_tokens` back to it.

View File

@@ -1 +0,0 @@
- **fix(syntx):** undecodable or rejected image and video references now return 400 or 502 instead of generating without them ([#20560](https://github.com/cheaper-inference/OmniRoute/pull/20560)) — thanks @maxmad64bis

View File

@@ -1 +0,0 @@
- fix(dashboard): the Zed provider page no longer opens a dead-end browser-OAuth modal from "Add"; it scrolls to the keychain Import card instead (#20573)

View File

@@ -1 +0,0 @@
- **fix(sse):** combo failover no longer adds a fifth `cache_control` breakpoint — hoisting a marked system or developer message wrote the moved marker into the caller's request body, so the next combo target received 5 breakpoints and returned 400 "A maximum of 4 blocks with cache_control may be provided" (#20581).

View File

@@ -1 +0,0 @@
- **fix(providers):** A connection added through an OAuth sign-in now syncs its model catalog right away instead of waiting for the next six-hour auto-sync cycle, so the new account's models appear without pressing sync by hand. The trigger keeps the API-key create path's import semantics and runs at most once per connection per five minutes.

View File

@@ -1 +0,0 @@
- **fix(copilot):** translate the copilot system prompt, help response, knowledge examples, and create-combo guidance from Spanish to English while keeping the multilingual input-matching regexes intact ([#20753](https://github.com/cheaper-inference/OmniRoute/pull/20753)).

View File

@@ -1 +0,0 @@
- **fix(dashboard):** Usage > Analytics no longer heads its first four cards "Infrastructure" — they count the accounts, providers, API keys and models that handled at least one request in the selected period, so a workspace with connections but no traffic read `0 / 0 / 0 / 0` as if nothing were configured; the block is now titled "Used in this period" and says what it counts ([#20821](https://github.com/cheaper-inference/OmniRoute/pull/20821))

View File

@@ -1 +0,0 @@
- **fix(api):** Routes > Resilience and Skills > Executions now load on a dashboard reached remotely (managed instance, tunnel, reverse proxy) — `/api/resilience/connections` stays loopback-only and joins the default manage-scope bypass list, so an authenticated dashboard session or a `manage` key can read it while an anonymous remote caller still gets `403 LOCAL_ONLY`; `GET /api/skills/executions` is exempted by exact path and safe method, and `POST`, which runs a skill, stays loopback-only ([#20826](https://github.com/cheaper-inference/OmniRoute/pull/20826))

View File

@@ -1 +0,0 @@
- **fix(dashboard):** the access-token, webhook and eval-suite forms say which field is wrong, where it is wrong — the submit button stays enabled and a refused click marks each invalid field inline and focuses the first one; the eval case model is optional as labelled; `not-a-url` in the webhook wizard is no longer reported as "a blocked private address" (`POST /api/webhooks/validate-url` answers `invalid_url`), and the form limits are the constants the route schemas use ([#20834](https://github.com/cheaper-inference/OmniRoute/pull/20834))

View File

@@ -1 +0,0 @@
- **fix(dashboard):** a dashboard reached remotely (tunnel, reverse proxy, hosted) shows one plain "only available on the local machine" notice for loopback-only features instead of a raw `LOCAL_ONLY` code, a false "Attention needed", an empty list or silent 403s — Resilience, Database health, Skills executions, the Traffic inspector, Plugins and embedded service status know before their first request that the session is remote and send none; the route guard is unchanged ([#20835](https://github.com/cheaper-inference/OmniRoute/pull/20835))

View File

@@ -1 +0,0 @@
- **fix(dashboard):** the Playground shows an error the engine reports inside a `200` stream instead of ending the turn on an empty bubble, and reports a stream that closes with no content; Media opens each tab on a connected provider, labels the ones that are not connected and disables Generate for them with a link to connect, instead of sending a request that can only come back `400` ([#20836](https://github.com/cheaper-inference/OmniRoute/pull/20836))

View File

@@ -1 +0,0 @@
- **fix(dashboard):** the Providers page no longer holds its skeleton for the OpenRouter usage-rank stats — with a cold cache that request waits on openrouter.ai for up to 15 s, and it only feeds a chip on the cards, which now appears when it resolves; a route's runtime config rows show labels ("Router strategy", "Exploration rate") instead of raw keys ([#20837](https://github.com/cheaper-inference/OmniRoute/pull/20837))

View File

@@ -1,6 +0,0 @@
- **fix(call-logs):** A call log whose detail artifact was published successfully no longer runs a second `UPDATE` that matches zero rows; the "mark missing" `UPDATE` now runs only for a skipped, failed or expired artifact write, so each detail-bearing request takes one less SQLite write. (salvaged from [#20225](https://github.com/cheaper-inference/OmniRoute/pull/20225), thanks @serenity-X)
- **fix(providers):** The reset time in a CodeBuddy CN rate-limit message (`请于 <time> 后重试`, China Standard Time) is now read as a retry hint, so a connection with upstream retry hints on cools down until that time instead of the base cooldown. (salvaged from [#20225](https://github.com/cheaper-inference/OmniRoute/pull/20225), thanks @serenity-X)
- **fix(db):** Loading the database settings page no longer counts the rows and reads the page usage of every table (about 300 queries) just to show the database size; it reads the page size and page count instead. The explicit refresh-stats action still returns the full per-table statistics. (salvaged from [#20225](https://github.com/cheaper-inference/OmniRoute/pull/20225), thanks @serenity-X)
- **fix(db):** The model call statistics query filters wire observations on the row it already reads instead of looking the same row up again by primary key, so the provider statistics page reads each call log once (about half the query time on 300,000 rows in a local test). (salvaged from [#20225](https://github.com/cheaper-inference/OmniRoute/pull/20225), thanks @serenity-X)
- **fix(usage):** The requests-by-provider-date report now sums archived `total_requests` instead of counting one request per summary row, and it floors raw history at `retention.usageHistory` like the main analytics route, so rows between day 7 and the rollup boundary no longer vanish from the report. (salvaged from [#20225](https://github.com/cheaper-inference/OmniRoute/pull/20225), thanks @serenity-X)
- **fix(db):** The daily and hourly usage summary tables no longer keep two redundant copies of their provider/model/date index; boot drops them and keeps the UNIQUE index that the rollup upsert needs, so each new summary bucket writes two fewer index entries per table. (salvaged from [#20225](https://github.com/cheaper-inference/OmniRoute/pull/20225), thanks @serenity-X)

View File

@@ -1,5 +0,0 @@
- **fix(models):** `GET /v1/models` no longer lists chat capabilities for image models. Codex image ids such as `cx/gpt-6.1-sol-image` carried vision, tool calling, reasoning, effort tiers and chat token limits, because their id starts with the chat model's id. An image row now reports tool calling and reasoning as off and keeps its own image modalities. Salvaged from [#20231](https://github.com/cheaper-inference/OmniRoute/pull/20231) by @serenity-X.
- **fix(guardrails):** The opt-in credential masker now also masks a value behind a label (`DB_PASSWORD=…`, `AWS_SECRET_ACCESS_KEY=…`, `client_secret: …`, `?api_key=…`) in requests, responses and streams, so a pasted `.env` file or config dump no longer leaks its unprefixed secrets. Values shorter than 12 characters and `${VAR}` references are left alone. Salvaged from [#20231](https://github.com/cheaper-inference/OmniRoute/pull/20231) by @serenity-X.
- **fix(network):** The direct egress dispatcher now sends a request to the connection that holds the fewest running and queued requests, instead of rotating blindly, so a new request no longer waits behind an unrelated long streaming response while other connections are idle. Salvaged from [#20231](https://github.com/cheaper-inference/OmniRoute/pull/20231) by @serenity-X.
- **fix(usage):** Cline free-bucket models (`cline-free/*`) now have a zero price row, so a USD-limited API key no longer fails closed after one request to them. Salvaged from [#20231](https://github.com/cheaper-inference/OmniRoute/pull/20231) by @serenity-X.
- **perf(usage):** the plausibility check for a provider-reported input token count no longer serializes the whole request body when the count is at most 8192 tokens, which is plausible for any body (two serializations per non-streaming success before). Salvaged from [#20231](https://github.com/cheaper-inference/OmniRoute/pull/20231) by @serenity-X.

View File

@@ -1 +0,0 @@
- fix(cli): `omniroute resilience config set` gains `--p2c-latency-weight <0-20>`, which sends `{ p2cLatency: { weight } }` to `PATCH /api/resilience` (#20445; salvaged from #20604)

Some files were not shown because too many files have changed in this diff Show More