Compare commits

..

3 Commits

Author SHA1 Message Date
diegosouzapw
6441b5b6f3 Merge remote-tracking branch 'origin/release/v3.8.55' into fix/codeql-redos-model-ids
# Conflicts:
#	open-sse/executors/context7-fetch.ts
#	src/shared/utils/modelDisplayName.ts
#	src/sse/services/githubResponsesFallback.ts
2026-11-21 00:23:19 -03:00
diegosouzapw
b03f265540 chore(changelog): number the fragment for #20823 2026-11-20 18:30:47 -03:00
diegosouzapw
909af20270 fix(security): linear model id regexes (CodeQL #1325, #1324, #1296)
Rewrite three regexes that backtracked in O(n^2) on crafted ids with no length cap:
- githubResponsesFallback: /^(?:.*codex.*|gpt-(?:[6-9]|5\.[5-9]).*)$/i becomes a codex
  substring check, an anchored gpt prefix check and an explicit line-terminator reject.
- modelDisplayName VERSION_MARKER: /^v\d+([.\d]*)$/i becomes /^v\d[.\d]*$/i.
- isValidContext7LibraryId: /^\/(.+)\/(.+)$/ becomes /^\/([^/]+)\/([^/]+)$/.

A truth table generated from the base versions is pinned in the new test and passes
unchanged; 50k-char pathological ids now return in milliseconds.
2026-11-20 18:22:39 -03:00
859 changed files with 2536 additions and 44814 deletions

View File

@@ -891,19 +891,6 @@ ALLOW_API_KEY_REVEAL=false
# Default: https://api.getnadir.com
# OMNIROUTE_NADIR_BASE_URL=https://api.getnadir.com
# Opt-in for the `decision` auto-combo router strategy (feature flag; a dashboard DB
# override wins). While off, decision combos read no credential, make no call and route
# with the rules strategy.
# Used by: open-sse/services/autoCombo/decisionStrategy.ts
# Default: false
# COMBO_DECISION_ROUTER_ENABLED=false
# Key for the `decision` router's network deciders (systemone, http), used when the
# combo's config.decision.connectionId is unset (and, for systemone, no typesafe
# connection is in scope). A combo never stores a key. Sensitive.
# Used by: open-sse/services/decision/credentials.ts
# OMNIROUTE_DECISION_API_KEY=
# Weekly window for per-API-key USD usage limits.
# Used by: src/lib/usage/apiKeyUsageLimits.ts (request enforcement, key usage-limit
# status, @@om-usage). Values: provider | calendar | Default: provider
@@ -991,14 +978,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.
@@ -2634,13 +2613,6 @@ APP_LOG_TO_FILE=true
# Used by: src/lib/healthzLag.ts (event-loop stall sampler). Disabled by default;
# logs sizes and inflight count only, never bodies or heap snapshots.
# OMNIROUTE_EVENT_LOOP_STALL_THRESHOLD_MS=0 stops that sampler, and this diagnostic with it.
# Optional response header for troubleshooting Codex OAuth plan eligibility.
# OFF by default: when enabled, API callers can see the recognized subscription tier
# of the selected Codex connection in X-OmniRoute-Selected-Connection-Plan.
# Do not enable on public/multi-tenant gateways if this account metadata is private.
# Arbitrary/unrecognized plan values and non-Codex requests never get this header.
# OMNIROUTE_CODEX_PLAN_RESPONSE_HEADER=0
# OMNIROUTE_HEAP_DIAGNOSTICS_ENABLED=0
# Heap-use threshold in MiB for the opt-in diagnostic (default: 900).
# A high-heap log is rate-limited to once per 60 seconds.

View File

@@ -22,11 +22,7 @@ name: omni-queue
# • Both jobs run in the `omni-queue` environment, which holds the App's credentials and the
# owner's OMNI_QUEUE_LAND_TOKEN and admits the default branch only, by its exact name: a
# workflow on a candidate branch cannot read them. The App writes omni-queue/land, the status release rulesets
# require, so its private key is the root of trust. The land token reaches the tick only
# (the landing with landing.actor "owner"; the comments, label removals and issues with
# config voice "owner"). The owner's merge-commit signing key (OMNI_QUEUE_SIGNING_KEY,
# config landing.signing "ssh") reaches one step of the tick, which writes it to a 0600 file
# under RUNNER_TEMP; the job's last step removes it, whatever happened.
# require, so its private key is the root of trust. The land token reaches the tick only.
# • action=bless (the explicit emergency exit): the tick writes omni-queue/land on ONE commit
# for a hotfix, sync-back or base repair, after checking that both the dispatcher
# (github.actor) and whoever triggered the run (github.triggering_actor, the re-runner of a
@@ -239,35 +235,10 @@ jobs:
echo "name=${login}"
echo "email=${id}+${login}@users.noreply.github.com"
} >> "$GITHUB_OUTPUT"
# config.landing.signing "ssh": the owner's SSH signing key, for the queue's merge commits
# (scripts/merge-queue/compose.mjs reads it at compose.signingKeyPath(RUNNER_TEMP) and hands
# git the path as per-command configuration, never as an argument). The key exists only in
# this step's environment and in a file only the runner user can read; it is never
# printed. Without the secret nothing is written and a tick that is asked to sign composes
# unsigned, with one `error` event per batch. This step never fails the job: a key it
# cannot write is the same case (signing never blocks the queue).
- name: Write the merge-commit signing key
env:
OMNI_QUEUE_SIGNING_KEY: ${{ secrets.OMNI_QUEUE_SIGNING_KEY }}
run: |
set -uo pipefail
if [ -z "${OMNI_QUEUE_SIGNING_KEY:-}" ]; then
echo "no merge-commit signing key in the environment: nothing written"
exit 0
fi
umask 077
if ! { mkdir -p "$RUNNER_TEMP/omni-queue-signing" \
&& chmod 700 "$RUNNER_TEMP/omni-queue-signing" \
&& printf '%s\n' "$OMNI_QUEUE_SIGNING_KEY" > "$RUNNER_TEMP/omni-queue-signing/signing-key" \
&& chmod 600 "$RUNNER_TEMP/omni-queue-signing/signing-key"; }; then
rm -rf "$RUNNER_TEMP/omni-queue-signing"
echo "::warning::the merge-commit signing key could not be written: merge commits stay unsigned"
fi
# Inputs travel through env and are assembled into an argv array: no expression is ever
# expanded inside the script body. Scheduled, workflow_run and pull_request_target ticks
# pass no base (the tick discovers the bases with work). The owner's land token is used
# by the landing itself when config.landing.actor is "owner", and by the queue's comments,
# label removals and issues when config.voice is "owner" (never printed).
# only by the landing itself when config.landing.actor is "owner" (never printed).
# GITHUB_ACTOR and GITHUB_TRIGGERING_ACTOR are the runner's own default variables, named
# here because a bless is checked against both: the original dispatcher, whose inputs a
# re-run keeps, and whoever triggered this run (the re-runner of a re-run).
@@ -294,8 +265,3 @@ jobs:
if [ -n "${INPUT_SHA:-}" ]; then args+=(--sha "$INPUT_SHA"); fi
fi
node scripts/merge-queue/tick.mjs "${args[@]}"
# Last step, whatever happened before it (failure, cancellation): the signing key leaves
# the runner. Needs no secret; nothing to remove is not an error.
- name: Remove the merge-commit signing key
if: always()
run: rm -rf "$RUNNER_TEMP/omni-queue-signing"

View File

@@ -20,7 +20,6 @@ jobs:
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
with:
ref: ${{ github.sha }}
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
@@ -29,13 +28,17 @@ jobs:
- uses: ./.github/actions/npm-ci-retry
with:
cache: "false"
- name: Validate and retain the live gate inventory
run: node scripts/quality/release-acceptance/run-shadow.mjs "$RUNNER_TEMP/release-acceptance-shadow"
- name: Emit shadow acceptance report
run: |
node scripts/quality/validate-release-acceptance.mjs \
--plan tests/fixtures/release-acceptance/plan-lint.json \
--manifests tests/fixtures/release-acceptance/shadow-manifests \
--out release-acceptance-report.json
continue-on-error: true
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: release-acceptance-report
path: ${{ runner.temp }}/release-acceptance-shadow/
if-no-files-found: error
path: release-acceptance-report.json
if-no-files-found: ignore
retention-days: 30

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(images):** `/v1/images/edits` supports Leonardo: the reference image is uploaded through Leonardo's init-image flow and the generation is guided by it (`init_image_id`, `init_strength` 0.3), instead of the edit being rejected as unsupported. Leonardo takes one reference image; more than one returns 400, and a combo moves on to its next provider rather than editing with the first image only ([#18674](https://github.com/cheaper-inference/OmniRoute/pull/18674), closes [#18671](https://github.com/cheaper-inference/OmniRoute/issues/18671))

View File

@@ -1 +0,0 @@
- **feat(providers):** `expiry-first` treats a lapsed weekly/monthly reset (stale quota read) as refilled instead of "expires now", and gains an opt-in `expiryFirstOrder: "deadline"` (per provider) that spends the account whose quota is lost first while it has quota ([#19583](https://github.com/diegosouzapw/OmniRoute/pull/19583)) — thanks @feci

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(plugins):** Opt-in `PLUGIN_PERMISSION_MODEL_ENABLED` feature flag (off by default) runs each plugin process under the Node.js permission model built from its manifest: reads confined to the plugin directory, writes only to its data directory with `file-write`, child processes only with `exec`; `network` stays declarative

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 @@
- **feat(ci):** omni-queue can speak as the owner and sign its merge commits, both off by default. With `voice: "owner"` in `config/merge-queue/config.json`, the queue's comments and label removals on pull requests, the dashboard issue and its comments, base-red comments and the tree-divergence issue go out with `OMNI_QUEUE_LAND_TOKEN`; statuses, refs, the state branch, re-runs and reads stay the App's, and a missing or refused token falls back to the App with one `error` event. With `landing.signing: "ssh"` (owner actor only), every merge commit the queue composes is signed with the owner's key from the `OMNI_QUEUE_SIGNING_KEY` environment secret, and a missing key composes unsigned with one `error` event per batch ([#20792](https://github.com/cheaper-inference/OmniRoute/pull/20792))

View File

@@ -1 +0,0 @@
- **feat(combo):** new `decision` router strategy for Auto combos: a decider picks the model for each request and `rules` picks the account. The decider can be TypeSafe System One, your own decision URL (System One or OpenAI chat format), or one of the combo's own models called in process. Only the last user message (up to 8000 characters) and the model menu are sent; the key comes from a stored connection inside the API key's allowed connections or from `OMNIROUTE_DECISION_API_KEY`, never from the combo. Calls go through the outbound guard with no redirects, a 64 KB answer cap and a 2 s default timeout (5 s max), and any failure routes with `rules`. Off by default behind `COMBO_DECISION_ROUTER_ENABLED`; combos without a decision block do not change. The combo builder gets the settings and a Test decision button, and the TypeSafe client now uses the same guarded transport — thanks @BelphegorPrime, @alvinveroy, @rafacpti23 and @miguelenes

View File

@@ -1 +0,0 @@
- Add an opt-in `X-OmniRoute-Selected-Connection-Plan` response header for Codex account-routing troubleshooting (`OMNIROUTE_CODEX_PLAN_RESPONSE_HEADER=1`), off by default with an explicit plan allowlist.

View File

@@ -1 +0,0 @@
- **feat(models):** add GPT-6.1 Terra to OpenAI API and Codex model catalogs, including Responses-only tool routing, supported reasoning tiers, verified token pricing, long-context rates, and Codex aliases.

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(security):** the prompt-injection guard now decodes base64, hex and percent-encoded text in a request and scans the result, so an instruction hidden in an encoded string is scored like the same instruction in plain text. ([#19724](https://github.com/cheaper-inference/OmniRoute/pull/19724))

View File

@@ -1 +0,0 @@
- **fix(resilience):** a circuit breaker with `halfOpenRequests` above 1 now needs that many probe successes in a row before it closes, so one lucky probe no longer restores a flapping provider. ([#19724](https://github.com/cheaper-inference/OmniRoute/pull/19724))

View File

@@ -1 +0,0 @@
- **fix(pii):** a custom PII regex that backtracks for exponential time on a long run of one character, such as an overlapping alternation, is now refused when you save or test it, instead of freezing the gateway. ([#19724](https://github.com/cheaper-inference/OmniRoute/pull/19724))

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(antigravity):** parallel conversations on one account no longer share a single Cloud Code session and evict each other's prompt cache — the upstream `sessionId` is now derived from account + conversation ([#19876](https://github.com/cheaper-inference/OmniRoute/pull/19876)) — thanks @adevwithpurpose

View File

@@ -1 +0,0 @@
- **fix(dashboard):** move the custom banned-keyword editor back to the Resilience settings tab (next to Auto Disable) instead of Security, and harden its save/load path: keywords appear only after the server accepts the PATCH, a failed settings load surfaces an error instead of a misleading empty list, the 200-character limit is enforced in the UI, and removals match by keyword value rather than index. The editor now also stays available when `/api/resilience` fails to load ([#20078](https://github.com/cheaper-inference/OmniRoute/pull/20078)) — thanks @sdfsdfw2

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

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