Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
5cb7621
chore(release): open v3.8.34 development cycle
Jun 22, 2026
e2522e2
chore(quality): release-green pre-flight validator + nightly signal (…
diegosouzapw Jun 22, 2026
1087d5a
fix(providers): show revealed connection API keys (#4583)
rdself Jun 22, 2026
def39ea
fix(resilience): respect upstream retry hint toggle (#4585)
rdself Jun 22, 2026
bd1fd79
feat(settings): expose stream recovery feature flags (#4586)
rdself Jun 22, 2026
b04eac3
fix(logs): make active request stale sweep configurable (#4599)
rdself Jun 22, 2026
5887bc3
fix(plugin): auto-prefix providerId with 'opencode-' for OC 1.17.8+ n…
herjarsa Jun 22, 2026
67c8a04
fix(models): treat unknown output caps as unset (#4584)
rdself Jun 22, 2026
e6af1ed
fix(executors): strip temperature for GitHub Copilot gpt-5.4 family (…
diegosouzapw Jun 22, 2026
2bdf377
fix(oauth): update Qwen OAuth URLs from chat.qwen.ai to qwen.ai (#4561)
diegosouzapw Jun 22, 2026
fc3b417
fix(api/settings): prevent cached /api/settings responses (port from …
diegosouzapw Jun 22, 2026
d6caf6e
feat(audio): MiniMax T2A v2 TTS dispatch in audioSpeech (port #1043) …
diegosouzapw Jun 22, 2026
be2a388
fix(dashboard): surface manual config CTA when Open Claw CLI auto-det…
diegosouzapw Jun 22, 2026
b67318f
feat(providers): optional model ID for custom API-key validation (#4555)
diegosouzapw Jun 22, 2026
88bb78c
fix(cli): align data dir and env loading with runtime (#4607)
KooshaPari Jun 22, 2026
57ef0ca
fix(quota): expose Bailian quota windows (#4610)
KooshaPari Jun 22, 2026
e9be562
fix: retain provider cooldowns for configured max window (#4588)
KooshaPari Jun 22, 2026
ce1a53e
fix: reject invalid provider cooldown bounds (#4589)
KooshaPari Jun 22, 2026
9a42590
fix: preserve production combo metrics on shadow eviction (#4590)
KooshaPari Jun 22, 2026
a2d2712
fix(stream): estimate input tokens when upstream reports prompt_token…
adivekar-utexas Jun 22, 2026
8ef5f0e
fix(catalog): shorten no-thinking gateway prefix to no-think/ (#4525)
Rahulsharma0810 Jun 22, 2026
c177999
fix(relay): apply IP rate limit to bifrost sidecar (#4593)
KooshaPari Jun 22, 2026
a61b5e0
fix(bifrost): finalize SSE relay usage after stream (#4612)
KooshaPari Jun 22, 2026
5e9c110
feat(compression): per-request `x-omniroute-compression` header (Phas…
diegosouzapw Jun 22, 2026
312d2f5
fix: exclude exhausted connections from auto scoring (#4592)
KooshaPari Jun 22, 2026
ecfb054
fix(dashboard): memoize compatible provider groups (#4613)
KooshaPari Jun 22, 2026
3622532
fix(dashboard): isolate quota widget refresh clock (#4611)
KooshaPari Jun 22, 2026
0324984
fix(dashboard): gate topology side effects behind widget visibility (…
KooshaPari Jun 22, 2026
a601aaf
fix(dashboard): keep play_arrow spinning on provider Test All buttons…
diegosouzapw Jun 22, 2026
8752c25
fix(db): schedule retention cleanup + fix cleanup table/column names …
diegosouzapw Jun 22, 2026
d3b176d
fix(telemetry): back off live-WS event forwarding when the sidecar is…
diegosouzapw Jun 22, 2026
5ff2cbd
fix(api): serve GET /v1/models/{model} as JSON, not the HTML dashboar…
diegosouzapw Jun 22, 2026
d7b7a14
feat(opencode): add go deepseek reasoning variants (#4647)
DevEstacion Jun 22, 2026
2659f14
fix(executors): robust deepseek-web tool-call parsing and agentic con…
BugsBag Jun 22, 2026
32bc6a9
fix(cli): authenticate `omniroute logs` and honor active context (#4638)
Rahulsharma0810 Jun 22, 2026
b2b17a9
fix(proxy): apply pipelining:0 + connections cap to the direct dispat…
diegosouzapw Jun 22, 2026
520293f
fix(executors): Firecrawl web_fetch 500 with include_metadata=true (#…
ponkcore Jun 22, 2026
6287750
fix(routing): include all noAuth models in auto-combos + add reka-fla…
oyi77 Jun 22, 2026
14a3bb4
fix(dashboard): gate home topology live-WS networking (#4596) (#4618)
KooshaPari Jun 22, 2026
25bb180
fix(cli): align `omniroute` env loading with the runtime data dir (#4…
KooshaPari Jun 22, 2026
56eb7f0
chore(quality): reconcile file-size baseline for #4644 (deepseek-web.…
diegosouzapw Jun 22, 2026
4e9d4f4
Support quota scraping for OpenCode Go and Ollama Cloud (#4642)
JxnLexn Jun 22, 2026
02482b3
feat(executors): land M365 Copilot pure framing + connection helpers …
diegosouzapw Jun 22, 2026
20f4c18
deps: bump production + development groups; migrate js-yaml to v5 ESM…
diegosouzapw Jun 22, 2026
313ce07
fix: noAuth provider validation + kimi executor routing (#4699)
oyi77 Jun 22, 2026
b609313
refactor(imageGeneration): extract 8 provider families to co-located …
KooshaPari Jun 22, 2026
8fea5ea
chore(release): v3.8.34 — finalize changelog, rebaseline drift, fix r…
Jun 23, 2026
c98e7ff
fix(release-green): resolve release-PR full-CI reds for v3.8.34
Jun 23, 2026
748790a
fix(release-green): complete CodeQL sanitization + rebaseline complex…
Jun 23, 2026
c1de1b4
feat(observability): Prometheus alert rules + SLO definitions (PR-008)
KooshaPari Jun 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,22 @@ NEXT_PUBLIC_CLOUD_URL=
#OMNIROUTE_CODEWHISPERER_BASE_URL=https://codewhisperer.us-east-1.amazonaws.com
#OMNIROUTE_OPENCODE_QUOTA_URL=https://opencode.ai/zen/go/v1/quota
#OMNIROUTE_OPENCODE_GO_QUOTA_URL=https://api.z.ai/api/monitor/usage/quota/limit
#OMNIROUTE_OPENCODE_GO_DASHBOARD_URL=https://opencode.ai/workspace
#OMNIROUTE_OLLAMA_CLOUD_USAGE_URL=https://ollama.com/settings

# OpenCode Go dashboard quota scraping. Prefer configuring these per connection
# in Dashboard → Providers → OpenCode Go. Env vars are useful for headless
# deployments or shared server defaults. The cookie is sensitive.
#OPENCODE_GO_WORKSPACE_ID=wrk_...
#OMNIROUTE_OPENCODE_GO_WORKSPACE_ID=wrk_...
#OPENCODE_GO_AUTH_COOKIE=auth=...
#OMNIROUTE_OPENCODE_GO_AUTH_COOKIE=auth=...

# Ollama Cloud quota scraping. Prefer configuring this per connection in
# Dashboard → Providers → Ollama Cloud. The cookie is sensitive.
#OLLAMA_USAGE_COOKIE=__Secure-session=...
#OLLAMA_CLOUD_USAGE_COOKIE=__Secure-session=...
#OMNIROUTE_OLLAMA_USAGE_COOKIE=__Secure-session=...

# ═══════════════════════════════════════════════════════════════════════════════
# 8. OUTBOUND PROXY (Upstream Provider Calls)
Expand Down Expand Up @@ -795,6 +811,11 @@ KIRO_USER_AGENT="AWS-SDK-JS/3.0.0 kiro-ide/1.0.0"
# rather than a secret. Only override if AWS ever starts enforcing this field.
# Used by: src/lib/oauth/constants/oauth.ts (KIRO_CONFIG.socialClientId).
# KIRO_OAUTH_CLIENT_ID=kiro-cli
# Enable full per-frame message CRC validation for Kiro streams. Off by default
# because it is O(frame bytes) on the main thread; use only for debugging
# suspected corrupted-stream issues.
# Used by: open-sse/executors/kiro.ts
# KIRO_VERIFY_FULL_CRC=false
QODER_USER_AGENT="Qoder-Cli"
QWEN_USER_AGENT="QwenCode/0.15.11 (linux; x64)"
CURSOR_USER_AGENT="Cursor/3.4"
Expand Down Expand Up @@ -1001,6 +1022,11 @@ APP_LOG_TO_FILE=true
# Default: 100000
# CALL_LOGS_TABLE_MAX_ROWS=100000

# Maximum age for orphaned active request log entries before the in-memory
# pending-request reaper removes them. Accepts milliseconds.
# Default: 3600000 (1 hour)
# MAX_PENDING_REQUEST_AGE_MS=3600000

# Whether call log pipeline capture stores stream chunks when enabled in settings.
# Only applies when call_log_pipeline_enabled=true.
# Default: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ jobs:
cache: npm
- uses: ./.github/actions/npm-ci-retry
- run: npm run check:node-runtime
- run: node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 --test-shard=${{ matrix.shard }}/8 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,runtime,security,services,settings,shared,ui}/**/*.test.ts"
- run: node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 --test-shard=${{ matrix.shard }}/8 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,observability,runtime,security,services,settings,shared,ui}/**/*.test.ts"

test-vitest:
name: Vitest (MCP / autoCombo / UI components)
Expand Down Expand Up @@ -661,7 +661,7 @@ jobs:
cache: npm
- uses: ./.github/actions/npm-ci-retry
- run: npm run check:node-runtime
- run: node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 --test-shard=${{ matrix.shard }}/4 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,runtime,security,services,settings,shared,ui}/**/*.test.ts"
- run: node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 --test-shard=${{ matrix.shard }}/4 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,observability,runtime,security,services,settings,shared,ui}/**/*.test.ts"

node-26-compat-build:
name: Node 26 Compatibility Build
Expand Down Expand Up @@ -714,7 +714,7 @@ jobs:
cache: npm
- uses: ./.github/actions/npm-ci-retry
- run: npm run check:node-runtime
- run: node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 --test-shard=${{ matrix.shard }}/4 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,runtime,security,services,settings,shared,ui}/**/*.test.ts"
- run: node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 --test-shard=${{ matrix.shard }}/4 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,observability,runtime,security,services,settings,shared,ui}/**/*.test.ts"

test-coverage-shard:
name: Coverage Shard (${{ matrix.shard }}/8)
Expand Down Expand Up @@ -755,7 +755,7 @@ jobs:
--exclude=tests/** \
--exclude=**/*.test.* \
node --max-old-space-size=4096 --import tsx --import ./tests/_setup/isolateDataDir.ts --test --test-force-exit --test-concurrency=4 \
--test-shard=${{ matrix.shard }}/8 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,runtime,security,services,settings,shared,ui}/**/*.test.ts"
--test-shard=${{ matrix.shard }}/8 tests/unit/*.test.ts "tests/unit/{api,auth,authz,build,cli,cli-helper,combo,compression,correctness,cors,dashboard,db,db-adapters,docs,gamification,guardrails,lib,mcp,observability,runtime,security,services,settings,shared,ui}/**/*.test.ts"
- name: Upload raw shard coverage
if: always()
uses: actions/upload-artifact@v7
Expand Down
137 changes: 137 additions & 0 deletions .github/workflows/nightly-release-green.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Nightly Release-Green

# Solution D — continuous, NON-BLOCKING drift signal for the active release branch.
#
# WHY: the full gate (ci.yml) only runs on the release PR (PR → main), so reds
# accrue silently on release/** and explode — in layers — at release time. This
# nightly reproduces the release-equivalent validation on the active release branch
# HEAD and, when there are HARD failures, opens/updates a single tracking issue.
#
# It is NOT a required status check and never touches a contributor PR — it only
# reports. Ratchet drift (eslint warnings / cognitive-complexity / file-size) is
# expected mid-cycle and is reported but never raises the alarm on its own; only
# real defects (typecheck / lint errors / unit / vitest / db-rules / public-creds /
# package-artifact) flip the issue open.

on:
schedule:
- cron: "23 5 * * *" # 05:23 UTC daily — off-peak, distinct from other nightlies
workflow_dispatch:
inputs:
branch:
description: "Release branch to validate (default: highest release/vX.Y.Z)"
required: false
type: string

permissions:
contents: read
issues: write

concurrency:
group: nightly-release-green
cancel-in-progress: true

jobs:
release-green:
name: Validate active release branch
runs-on: ubuntu-latest
env:
JWT_SECRET: ci-nightly-secret-with-sufficient-length-for-validation
API_KEY_SECRET: ci-nightly-api-key-secret-long
DISABLE_SQLITE_AUTO_BACKUP: "true"
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false

- name: Resolve active release branch
id: branch
env:
INPUT_BRANCH: ${{ github.event.inputs.branch }}
run: |
set -euo pipefail
if [ -n "${INPUT_BRANCH:-}" ]; then
TARGET="$INPUT_BRANCH"
else
# highest release/vX.Y.Z by semver among remote branches
TARGET=$(git for-each-ref --format='%(refname:short)' 'refs/remotes/origin/release/v*' \
| sed 's#origin/##' \
| sort -t/ -k2 -V \
| tail -1)
fi
if [ -z "$TARGET" ]; then echo "No release/v* branch found"; exit 1; fi
# Strict format guard — reject anything that isn't release/vX.Y.Z (blocks
# ref/command injection via the workflow_dispatch input).
if ! printf '%s' "$TARGET" | grep -qE '^release/v[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "Refusing non-canonical branch name: $TARGET"; exit 1
fi
echo "target=$TARGET" >> "$GITHUB_OUTPUT"
echo "Active release branch: $TARGET"

- name: Checkout the release branch
env:
TARGET: ${{ steps.branch.outputs.target }}
run: |
set -euo pipefail
git checkout "$TARGET"
git log -1 --oneline

- uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm

- uses: ./.github/actions/npm-ci-retry

- name: Release-green validation (full)
id: validate
run: |
set +e
node scripts/quality/validate-release-green.mjs --json --with-build \
1> release-green.json 2> release-green.log
echo "exit=$?" >> "$GITHUB_OUTPUT"
echo "------- report -------"
cat release-green.log

- name: Open / update tracking issue on HARD failure
if: steps.validate.outputs.exit != '0'
env:
GH_TOKEN: ${{ github.token }}
TARGET: ${{ steps.branch.outputs.target }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
set -euo pipefail
TITLE="🔴 Release branch not green: ${TARGET}"
{
echo "The nightly **release-green** validation found HARD failures on \`${TARGET}\`."
echo "These are real defects that would block the release PR — fix them in the"
echo "originating PR branch (via co-authorship), not by demanding it from contributors."
echo ""
echo "**Run:** ${RUN_URL}"
echo ""
echo '```'
sed -n '/──────── verdict ────────/,$p' release-green.log || tail -40 release-green.log
echo '```'
echo ""
echo "_Ratchet drift (eslint warnings / cognitive-complexity / file-size) listed above is expected mid-cycle and is rebaselined at release — it is NOT a contributor concern and did not, on its own, open this issue._"
} > issue-body.md

EXISTING=$(gh issue list --repo "$GITHUB_REPOSITORY" --state open \
--search "in:title $TITLE" --json number --jq '.[0].number' 2>/dev/null || echo "")
if [ -n "$EXISTING" ]; then
gh issue comment "$EXISTING" --repo "$GITHUB_REPOSITORY" --body-file issue-body.md
echo "Updated existing issue #$EXISTING"
else
gh issue create --repo "$GITHUB_REPOSITORY" --title "$TITLE" --body-file issue-body.md
fi

- name: Upload report artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: release-green-report
path: |
release-green.json
release-green.log
if-no-files-found: ignore
12 changes: 10 additions & 2 deletions @omniroute/opencode-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,18 @@ export function resolveOmniRoutePluginOptions(
opts?: OmniRoutePluginOptions
): Required<Pick<OmniRoutePluginOptions, "providerId" | "displayName" | "modelCacheTtl">> &
Pick<OmniRoutePluginOptions, "baseURL" | "features"> {
const providerId = opts?.providerId ?? OMNIROUTE_PROVIDER_KEY;
const rawProviderId = opts?.providerId ?? OMNIROUTE_PROVIDER_KEY;
// OC 1.17.8+ native-adapter gate rejects providerID not in
// {openai, anthropic, opencode*}. Silently prefix so existing
// configs (providerId: "omniroute") keep working.
const providerId = rawProviderId.startsWith("opencode-")
? rawProviderId
: `opencode-${rawProviderId}`;
const displayName =
opts?.displayName ??
(providerId === OMNIROUTE_PROVIDER_KEY ? "OmniRoute" : `OmniRoute (${providerId})`);
(providerId === `opencode-${OMNIROUTE_PROVIDER_KEY}`
? "OmniRoute"
: `OmniRoute (${providerId})`);
const modelCacheTtl =
typeof opts?.modelCacheTtl === "number" && opts.modelCacheTtl > 0
? opts.modelCacheTtl
Expand Down
6 changes: 3 additions & 3 deletions @omniroute/opencode-plugin/tests/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import { createOmniRouteAuthHook } from "../src/index.js";

test("createOmniRouteAuthHook: default providerId is 'omniroute'", () => {
const hook = createOmniRouteAuthHook();
assert.equal(hook.provider, "omniroute");
assert.equal(hook.provider, "opencode-omniroute");
});

test("createOmniRouteAuthHook: custom providerId binds to hook.provider (multi-instance)", () => {
const hook = createOmniRouteAuthHook({ providerId: "omniroute-preprod" });
assert.equal(hook.provider, "omniroute-preprod");
assert.equal(hook.provider, "opencode-omniroute-preprod");
});

test("createOmniRouteAuthHook: methods[0] is type 'api' with label including displayName", () => {
Expand All @@ -30,7 +30,7 @@ test("createOmniRouteAuthHook: methods[0] is type 'api' with label including dis
assert.equal(m.label, "OmniRoute API Key");

const custom = createOmniRouteAuthHook({ providerId: "omniroute-preprod" });
assert.equal(custom.methods[0].label, "OmniRoute (omniroute-preprod) API Key");
assert.equal(custom.methods[0].label, "OmniRoute (opencode-omniroute-preprod) API Key");
});

test("createOmniRouteAuthHook: prompts[0] uses key='apiKey' per @opencode-ai/plugin contract", () => {
Expand Down
40 changes: 20 additions & 20 deletions @omniroute/opencode-plugin/tests/combos.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,14 @@ test("models() returns combo entries merged into the map", async () => {

// 3 raw models + 1 combo = 4 entries
assert.equal(Object.keys(out).length, 4);
assert.ok(out["omniroute/claude-primary"]);
assert.ok(out["omniroute/claude-secondary"]);
assert.ok(out["omniroute/gemini-3-flash"]);
assert.ok(out["omniroute/claude-tier"]);
assert.ok(out["opencode-omniroute/claude-primary"]);
assert.ok(out["opencode-omniroute/claude-secondary"]);
assert.ok(out["opencode-omniroute/gemini-3-flash"]);
assert.ok(out["opencode-omniroute/claude-tier"]);

const combo = out["omniroute/claude-tier"];
const combo = out["opencode-omniroute/claude-tier"];
assert.equal(combo.name, "Claude Tier");
assert.equal(combo.providerID, "omniroute");
assert.equal(combo.providerID, "opencode-omniroute");
// LCD over claude-primary (200k, reasoning) + claude-secondary (100k, no reasoning)
assert.equal(combo.limit.context, 100_000);
assert.equal(combo.capabilities.reasoning, false);
Expand All @@ -478,11 +478,11 @@ test("models(): combo with unknown member ids degrades to all-false LCD posture"
{ fetcher: modelsFetcher, combosFetcher }
);
const out = await hook.models!({} as never, { auth: apiAuth("sk-z") as never });
assert.ok(out["omniroute/phantom-combo"]);
assert.ok(out["opencode-omniroute/phantom-combo"]);
// With zero resolvable members, LCD = all-false (defensive posture).
assert.equal(out["omniroute/phantom-combo"].capabilities.toolcall, false);
assert.equal(out["omniroute/phantom-combo"].capabilities.reasoning, false);
assert.equal(out["omniroute/phantom-combo"].limit.context, 0);
assert.equal(out["opencode-omniroute/phantom-combo"].capabilities.toolcall, false);
assert.equal(out["opencode-omniroute/phantom-combo"].capabilities.reasoning, false);
assert.equal(out["opencode-omniroute/phantom-combo"].limit.context, 0);
});

test("models(): hidden combos are excluded from the map", async () => {
Expand All @@ -505,8 +505,8 @@ test("models(): hidden combos are excluded from the map", async () => {
{ fetcher: modelsFetcher, combosFetcher }
);
const out = await hook.models!({} as never, { auth: apiAuth("sk-z") as never });
assert.ok(out["omniroute/visible"]);
assert.ok(!out["omniroute/hidden"], "hidden combo must be omitted");
assert.ok(out["opencode-omniroute/visible"]);
assert.ok(!out["opencode-omniroute/hidden"], "hidden combo must be omitted");
});

test("models(): combo name exactly matches raw model id → raw deleted, raw deleted, no warn", async () => {
Expand All @@ -530,8 +530,8 @@ test("models(): combo name exactly matches raw model id → raw deleted, raw del
});

// Raw model replaced by combo of the same key; combo now lives at the bare slug.
assert.ok(out["omniroute/claude-primary"], "combo surfaces under prefixed key");
assert.equal(out["omniroute/claude-primary"].name, "claude-primary");
assert.ok(out["opencode-omniroute/claude-primary"], "combo surfaces under prefixed key");
assert.equal(out["opencode-omniroute/claude-primary"].name, "claude-primary");

// No collision warning fires — dedup makes keys disjoint.
const collisionWarns = warnings.filter((w) => {
Expand Down Expand Up @@ -565,8 +565,8 @@ test("models(): two combos with same slug → second gets disambiguator suffix",

const out = await hook.models!({} as never, { auth: apiAuth("sk-z") as never });
// First combo gets the bare slug; second gets disambiguated.
assert.ok(out["omniroute/claude"], "first combo at prefixed slug");
assert.ok(out["omniroute/claude-uuid"], "second combo disambiguated by id prefix");
assert.ok(out["opencode-omniroute/claude"], "first combo at prefixed slug");
assert.ok(out["opencode-omniroute/claude-uuid"], "second combo disambiguated by id prefix");
});

test("models(): combos fetch fails → falls back to models-only, warn emitted, no throw", async () => {
Expand All @@ -583,8 +583,8 @@ test("models(): combos fetch fails → falls back to models-only, warn emitted,

// Catalog includes the models but NOT any combo entries.
assert.equal(Object.keys(out).length, 2);
assert.ok(out["omniroute/claude-primary"]);
assert.ok(out["omniroute/claude-secondary"]);
assert.ok(out["opencode-omniroute/claude-primary"]);
assert.ok(out["opencode-omniroute/claude-secondary"]);

// Soft-fail warning surfaced.
const softFail = warnings.find((w) => {
Expand All @@ -609,7 +609,7 @@ test("models(): combos cached + reused within TTL (one combo fetch per TTL windo
const second = await hook.models!({} as never, { auth: apiAuth("sk-z") as never });
assert.equal(combosFetcher.callCount(), 1, "combos fetched only once within TTL");
assert.equal(modelsFetcher.callCount(), 1, "models fetched only once within TTL");
assert.ok(second["omniroute/claude-tier"]);
assert.ok(second["opencode-omniroute/claude-tier"]);
});

test("models(): combos refetched after TTL expiry (same key as models)", async () => {
Expand Down Expand Up @@ -701,7 +701,7 @@ test("models(): nested combo-ref context is the min of nested + raw members", as
{ fetcher: modelsFetcher, combosFetcher }
);
const out = await hook.models!({} as never, { auth: apiAuth("sk-z") as never });
const masterLight = out["omniroute/master-light"];
const masterLight = out["opencode-omniroute/master-light"];
assert.ok(masterLight, "MASTER-LIGHT entry must exist");
assert.equal(
masterLight.limit.context,
Expand Down
Loading
Loading