Repository navigation
v1.5.66
Added
-
Simplified Chinese (
zh) joins the dashboard locale set.web/src/locales/zh.json
carries all 1,456 keys the existing catalogue defines, so every string that
already renders throught()switches over — nothing is left falling back to
English on a locale that claims to be complete.The catalogue is keyed by the English source text, which is what made this a
one-file addition: no component had to change, and a key that is missing from
another language still falls back safely.Two supporting edits in
web/src/lib/i18n.svelte.ts:Localegains'zh',
SUPPORTED_LOCALESgains the简体中文 / 🇨🇳entry, and the two hand-written
saved === 'en' || saved === 'id'checks became anisLocaleguard over a
LOCALESlist. Without that guard, adding a third locale meant remembering to
widen three separate comparisons, and a storedzhwould have been silently
discarded on the next load. -
The settings hint read
(id / en / zh / ja)while only two locales existed.
It now reads(en / id / zh):jahas no catalogue, and the order matches
SUPPORTED_LOCALESrather than the order they were written in.
Not in this change
ja remains untranslated. Roughly 1,300 rendered strings still have no t()
wrapper at all — the catalogue is complete, but only 71 call sites are wired
today, so switching to Chinese translates those 71 and leaves the rest in
English. Extending the wrappers is the next batch.
Verification
bun run build— success; 2,630 KB pre-compressed to 618 KB brotli.
简体中文and the translated button labels are present in
dist/assets/index-*.js.bun run ratchet:svelte— 0 unresolved identifiers, 71 errors (baseline 71).
Neitheri18n.svelte.tsnorzh.jsoncontributes a new diagnostic.- Key parity checked mechanically against
id.json: 1,456 expected, 1,456
present, 0 missing, 0 extra, 0 duplicate. Every{placeholder}in a key also
appears in its translation (0 mismatches). - 39 values are deliberately identical to their key — brand and protocol names
(Claude,GitHub,OAuth,MITM,SSE URL,npx 9router, the
kiro://…callback example). They are not mistranslations and are expected to
read the same in both languages.
Fixed
-
Xiaomi Token Plan connections created with a non-default region were routed to the wrong host and answered
401 Invalid API Keyfor a valid key. The registry names one origin (token-plan-sgp), and the dashboard's connection probe already resolved the full region map — but the chat lane read only the registry, so a connection stored withregion: cnwas probed againsttoken-plan-cnby Test connection and then chat-routed to Singapore. The visible symptom was a connection that passed its own test and failed every real request.The region table moved to
internal/providers/xiaomi_tokenplan.goand is now the single source for both lanes:getProviderConfigresolves the chat origin from the connection'sproviderSpecificData.region, andvalidate.goreferences the same map instead of keeping a second copy. An operator-suppliedbaseUrlstill wins.Unknown or empty regions fall back to
sgp, which is what the registry already named, so an unconfigured connection keeps the behaviour it had.Also normalised on the way:
CN,cnandcnresolve identically; a non-stringregionis ignored rather than crashing the type assertion.
Verification
go build ./...,go vet ./internal/providers/ ./internal/handlers/chat/.go test ./internal/providers/ -run XiaomiTokenplan— 10 cases: each region, case and whitespace normalisation, unknown and empty fallback, the chat route carrying exactly one/v1, the registry entry matching the default region, andXiaomiTokenplanRegionOfover a nil map, an absent key, a string and a non-string.go test ./internal/handlers/dashboard/and./internal/handlers/chat/— both pass.- Live check against a real deployment: the connection's log line changed from
forward to https://token-plan-sgp.xiaomimimo.com/v1/chat/completions(401) to
forward to https://token-plan-cn.xiaomimimo.com/v1/chat/completions, and the same request then completed.
Not in this change
The xiaomi-tokenplan / xmtp model lists in registry_models.go still name mimo-v2.5-pro, mimo-v2.5, mimo-v2-pro and mimo-v2-omni, which the upstream now rejects with 400 Unsupported model. mimo-v2.6-pro works. That is a separate data fix — bundled here it would make the diff look like a model-catalog update and hide the routing bug being repaired.
Fixed
- Daily usage windows (7d/30d/60d/all) are aggregated from raw history through the window cache instead of re-reading and JSON-unmarshalling every usageDaily row on each poll; the aggregate is built once, advanced by delta, and rebuilt when the rollup changes. A rollup-only change can no longer stack on top of the history fold, and daily breakdowns now carry LastUsed timestamps.
- The daily chart, burn rate, cache-hit totals, Details-tab page count, prompt-cache analytics and compression summary are served from cached aggregates advanced by watermarks, so repeated dashboard reads stop rescanning the ledger. The lifetime token-quota spend was deliberately NOT cached: a short TTL broke issue #365's contract that an exhausted key is refused on the very next request (integration test observed 200 where 403 was required). The EXPLAIN QUERY PLAN test pinning the index-served OR-of-three query is kept; the caching attempt was reverted. Unknown periods fall back to 24h on both resolvers, and response labels report the window actually served.
- The Overview slows its polls to 15s/60s on periods of a week or more and caps the breakdown table at 200 rendered rows with a Show more control, keeping the existing merge semantics.
Validation
tools/p1_gate.sh FULL_SERIAL_GATE_USAGE: go build, vet,go test ./... -count=1,bun test src scripts(933 pass),bun run build, svelte-check ratchet (63 = baseline).- Uncapped
golangci-lint --new-from-rev=origin/main --max-same-issues=0 --max-issues-per-linter=0: 0 issues. - Regression tests cover daily cache hit/advance/rewind and rollup invalidation, the one-scan-per-entry chart, resolver parity, LastUsed, the error-count delta, analytics parity and advance, the burn-rate delta, the EXPLAIN plan for the quota spend, the Details count watermark, frontend pacing and the render cap. The quota TTL cache was reverted after the integration suite caught the stale-spend refusal bug.
- On a 50k-row ledger, cached polls measured ~10ms (30d), ~12ms (60d), ~20ms (all) in isolation; loaded full-suite runs reached 33-49ms for
alland missed the absolute 20ms target there. The handover reports the miss with numbers; the aggregate fold itself fell from 100-480ms to under a millisecond.
Unifically aggregator provider
Add the isolated unifically provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI passthrough aggregator over api.unifically.com/v1/chat/completions with no pinned static models — the live /v1/models?category=llm catalog feeds the list. Verified live 2026-11-27: the catalog answers with a structured "API key is required" error before a key, so the notice says the catalog requires the key. The pin ships no artwork asset, so web/public/providers/unifically.png is a 128x128 glyph from the pinned textIcon UNI and #10B981. Verification: offline wiring fixtures pin metadata, config, the passthrough-only catalog and executor registration, plus frontend metadata/glyph assertions. No live authenticated inference was performed.
UncloseAI free anonymous provider
Add the isolated uncloseai provider, alias unc, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a free OpenAI-compatible lane over hermes.ai.unturf.com/v1/chat/completions where the API accepts any non-empty key for identification, so auth stays optional and a saved key is sent while an anonymous request is still attempted. Live probe 2026-11-27 found the public beta closed (401 public_beta_closed, key registration shut), so the notice states that status instead of advertising keyless access; existing keys keep working. The rotating roster keeps the pinned snapshot turboderp/Qwen3.8-27B-exl3 with the live /v1/models fetcher feeding refreshes, the 65536 window rides the model basename so rotated ids keep the vLLM max_model_len budget until discovery overrides, and emulated tool calling is documented rather than advertised as native. The pin ships no artwork asset, so web/public/providers/uncloseai.png is a 128x128 "U" glyph on #43A047 sampled from the live site. Verification: offline wiring fixtures pin metadata, optional-auth config, catalog and alias round-trip, plus frontend metadata/model/glyph assertions. No live inference or login validation was performed.
Udio music generation native lane
Add the isolated udio provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a session-cookie music lane on the pinned https://www.udio.com/api/generate-proxy POST with {prompt, samplerOptions:{seed:-1}}, followed by bounded /api/songs polling for finished song_path values and a guarded audio download. The Basic API-key path is not used; the cookie comes from the connection API key or providerSpecificData.cookie. Polling stops after 300 seconds, audio downloads cap at 50 MiB with at most three redirects, and every hop passes the router's SSRF guard with loopback only under the existing operator switches. The reply is folded into the router's OpenAI music shape {created, data:[{b64_json, format:"mp3"}]}. Artwork is rasterized from the genuine pinned udio.svg. Verification: offline helper tests pin default/status/audio URL derivation, cookie resolution, guarded download and metadata-block refusal, plus frontend registry/model/artwork assertions. No live provider, login or quota validation was performed.
TokenReply aggregator provider
Add the isolated tokenreply provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI passthrough aggregator over api.tokenreply.com/v1/chat/completions with no pinned static models — the live /v1/models catalog feeds the list. Verified live 2026-11-27: the catalog answers with a structured "Token not provided" error before a key, so the notice says the catalog requires the key and carries the pinned free-tier note (free-tagged models have model- and campaign-specific daily limits; no fixed global free quota is published). The pin ships no artwork asset, so web/public/providers/tokenreply.png is a 128x128 glyph from the pinned textIcon TR and #3B82F6. Verification: offline wiring fixtures pin metadata, config, the passthrough-only catalog and executor registration, plus frontend metadata/glyph assertions. No live authenticated inference was performed.
Token Market aggregator provider
Add the isolated tokenmarket provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI passthrough aggregator over api.tokensmarket.ai/v1/chat/completions with no pinned static models — the live /v1/models catalog feeds the list. Verified live 2026-11-27: the pinned modelsUrl host (www.tokensmarket.ai) answers 404 while the pinned chat host (api.tokensmarket.ai) answers the catalog with a structured 401 before a key, so the fetcher points at the chat host and the notice says the catalog requires the key. The pin ships no artwork asset, so web/public/providers/tokenmarket.png is a 128x128 glyph from the pinned textIcon TM and #2563EB. Verification: offline wiring fixtures pin metadata, config, the passthrough-only catalog and executor registration, plus frontend metadata/glyph assertions. No live authenticated inference was performed.
Token Kiosk gateway provider
Add the isolated token-kiosk provider, alias tk, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a fully OpenAI-compatible Bearer gateway over agent-router.gaib.ai/v1/chat/completions. The pinned snapshot lists five models (claude-3-5-sonnet, deepseek-v3, deepseek-r1, kimi-k1.5, minimax-m6); the live /v1/models catalog is wired as the models fetcher and was verified answering on 2026-11-27. The pin ships no artwork asset, so web/public/providers/token-kiosk.png is a 128x128 glyph from the pinned textIcon TKI and #6366F1. Verification: offline wiring fixtures pin metadata, config, catalog and alias round-trip, plus frontend metadata/model/glyph assertions. No live authenticated inference was performed.
Tencent AI Studio web-chat native provider
Add the isolated tencent-aistudio-web provider, alias tasw, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the free web-session chat lane on a Tencent AI Studio Cookie. The executor maps hy3-g and hunyuan-default to HunyuanDefault, hunyuan-3d to Hunyuan3D, strips any Cookie: input prefix and posts {model,messages} to /api/chat/<mapped> with Cookie, Origin, Referer and a browser User-Agent. No API key or OAuth is used, and OpenAI/Responses/Claude request shapes are translated before the hop. Artwork is rasterized from the genuine pinned tencent.svg. Verification: offline fixtures pin the model map, exact chat path and header set, plus frontend three-model metadata and artwork assertions. No live provider, login or quota validation was performed.
SYNTX.ai native provider
Add the isolated syntx provider, alias stx, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the unofficial Bearer-JWT chat lane using create-chat, generate and stream URLs. OpenAI messages are flattened into labeled text; the pinned fallback catalog provides 34 models and their ai_name/thinking flags. The executor creates a text chat, posts the generate body with chat_uuid, model, thinking and native tools disabled, validates the returned stream host against the pinned SSE origin or the configured host, then folds content and usage_final events into OpenAI SSE/completion frames. Image upload, session rollover and native tool execution are deliberately not fabricated. Pin ships no artwork asset, so web/public/providers/syntx.png is a 128x128 glyph generated from pinned textIcon "SX" and #FF4D00. Verification: offline create/generate/stream fixtures and frontend metadata/catalog/glyph assertions. No live provider, login or quota validation was performed.
Snowflake Cortex provider
Add the isolated snowflake provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI lane routed to the Cortex inference endpoint. The URL normalization is ported verbatim from the pinned executor (<account>/api/v2/cortex/inference:complete, stripping pasted /api/v2 or inference:complete suffixes), and the credential classification matches the pinned header test: a pat/ prefixed PROGRAMMATIC ACCESS TOKEN has its prefix stripped and advertises X-Snowflake-Authorization-Token-Type: PROGRAMMATIC_ACCESS_TOKEN, while any other token is sent as a KEYPAIR_JWT. The pinned provider baseUrl is an {account} placeholder, so the executor resolves the connection Base URL and refuses the placeholder or a missing credential with actionable 400/401 responses before any payload is built. The pinned catalog lists four Cortex models (llama3.1-70b, llama3.3-70b, deepseek-r1, claude-3-5-sonnet); availability follows the account. Artwork renders the pin-shipped public/providers/snowflake.svg mark to 128px. Verification: offline fixtures pin the missing-URL/placeholder 400s, missing-credential 401, the exact inference:complete path, both token classifications, body passthrough and reply, plus frontend metadata/model/artwork assertions. No live account inference was performed.
Replicate native API
Add the isolated replicate API-key provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a, with two curated models (meta/meta-llama-3-70b-instruct, mistralai/mistral-7b-instruct-v0.2) and a native prediction executor. Rebuild Chat Completions messages into Replicate's labelled prompt, post official models to /models/{owner}/{name}/predictions and pinned versions to /predictions with a version field, and preserve upstream status and Retry-After on API failures. Relay Replicate's native output/error/done events into OpenAI SSE chunks without sending credentials to the stream host, or poll same-origin urls.get at 1s up to 120s with best-effort cancel on timeout. Artwork is a genuine 128x128 PNG rasterized from the pinned public/providers/replicate.svg (523 bytes, SHA-256 e4d632d92e7ca776e8cc6b895d25393a43bd28053913d62b00b3a3714e275d62). Video stays unimplemented: the upstream videoRegistry marks it unsupported even though the display lists llm+video. Verification: offline httptest fixtures cover POST path/body/headers, versioned models, non-stream output/usage, native stream relay, synthesized streams, model/no-user 400s, upstream 401/429 status preservation, polling terminal states, foreign polling/stream URLs, and timeout cancel; targeted Go and web tests pass. No live provider, login or quota validation was performed.
Poe API-key native provider
Add the isolated poe provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the documented API-key gateway on https://api.poe.com/v1, distinct from the unported web-cookie poe-web GraphQL lane. One Bearer key serves the pinned Chat Completions, Responses and Claude-only Messages surfaces; the lane follows the caller's format and the model's pinned target, so claude-opus-4.8 alone goes to /messages, Responses clients go to /responses, and gpt-5.2/gemini-3.0-pro stay on /chat/completions. Operator base URLs are normalized onto the /v1 root before the lane suffix is appended, and Responses callers on the chat lane are converted through the router bridge. The Messages lane adds anthropic-version: 2023-06-01 and reuses the existing Claude Messages shaper/translator. Artwork is rasterized from the genuine pinned poe.svg at 128x128/2927B. Verification: offline httptest fixtures pin chat and Messages paths, Bearer auth, lane selection, base normalization and Claude response translation, plus frontend registry/model/artwork assertions. No live provider, login or quota validation was performed.
OpenCode CLI Server native provider
Add the isolated opencode-server provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a, with alias ocs, display name "OpenCode CLI Server", terminal icon, amber #F59E0B, and the six pinned bare model ids (big-pickle, space-bunny-free, muse-spark-1.3-contributor-free, nemotron-3-ultra-free, mimo-v2.6-flash-free, deepseek-v4.1-flash-free). The registry's apikey/bearer hint conflicts with PROVIDER_REFERENCE.md and the executor, so this lane is keyless and never sends Authorization, x-api-key or gateway static headers. Its endpoint precedence is OPENCODE_SERVER_URL, dashboard opencode_server_url, then http://127.0.0.1:4096; the connection override stays a bare service root instead of acquiring /chat/completions. The executor owns health gating (/global/health, v2 rejection with 501, /api/provider probe), a 60s /config/providers catalog with bare ids, first-provider-wins resolution, free cost zero and unknown-model 404, plus the /session, /session/{id}/message, /prompt_async, /abort and DELETE lifecycle. Streaming uses one shared /event bus with server.connected readiness, no replay, sessionID and assistant messageID filtering, text/reasoning deltas, one-shot tool buffers, usage, session.error, session.idle and [DONE]; Responses clients receive response.created, output_text.delta, reasoning_summary_text.delta, output_item.done and response.completed. Requests flatten turns into [system]/[user]/[assistant]/[tool] text with tools:{}, parse the tool envelope back into tool_calls, and attach file parts only for inline data or public HTTPS URLs. The pin ships no artwork: web/public/providers/opencode-server.png is a 128x128 glyph generated only from pinned textIcon "OC" and color #F59E0B, not an unverified historical asset or another provider's mark. Verification: offline httptest fixtures cover health v1/v2 probe, catalog TTL and free cost, endpoint precedence, session creation, blocking message body and cleanup, streaming readiness/deltas/tool/idle/[DONE], Response frames, session errors, credential isolation, file-part SSRF guard, abort/delete and unknown-model 404. No live opencode serve, liveness check, login or quota validation was performed.
1min.ai native provider
Add the isolated oneminai provider, alias 1min, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a proprietary UNIFY_CHAT_WITH_AI POST with an API-KEY header and one promptObject.prompt string instead of OpenAI messages. OpenAI, Responses and Claude inputs are flattened into labeled System/User/Assistant lines; unsupported pinned parameters (tools, tool_choice, functions, function_call, response_format) are not forwarded. Streaming requests use ?isStreaming=true and map upstream event: content|done|error frames into OpenAI SSE chunks; non-streaming replies join aiRecord.aiRecordDetail.resultObject strings and report zero usage because the upstream publishes none. Pin ships no artwork asset, so web/public/providers/oneminai.png is a 128x128 glyph generated from pinned textIcon "1M" and #6366F1. Verification: offline prompt/error and request fixtures pin the payload, header, path and parameter filtering, plus frontend metadata/model/glyph assertions. No live provider, login or quota validation was performed.
NoTrack Web native provider
Add the isolated notrack-web provider, alias ntw, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the free session-cookie chat lane on https://notrack.ai/api/dispatch. The executor normalizes the pasted Cookie header to uid/si_usr_id/si_ses_id plus optional nt_session, flattens OpenAI messages into the pinned role-tagged input with a bounded 3800-character cap and tool protocol, adds the browser Origin/Referer/User-Agent headers, and folds upstream JSONL thinking/delta/message events into OpenAI SSE chunks or one completion. <tool_call> envelopes become OpenAI tool calls, and CJK-aware token estimates are reported as usage. Artwork is rasterized from the genuine pinned notrack-web.svg. Verification: offline fixtures pin cookie normalization, dispatch payload/headers, JSONL delta folding and frontend metadata/model/artwork assertions. No live provider, login or quota validation was performed.
NLP Cloud native provider
Add the isolated nlpcloud provider, alias nlpc, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the proprietary chatbot API on https://api.nlpcloud.io/v1/gpu/<model>/chatbot with Authorization: Token <key>, not a generic OpenAI chat lane. OpenAI messages are converted into last-user input, joined system/developer context and prior user/assistant history pairs, with temperature and top_p preserved; temperature/top_p keys not supplied are omitted. Responses and Claude clients are translated to the chat shape before conversion. Upstream JSON response is folded into an OpenAI completion with bounded, estimated usage; upstream SSE deltas and JSON-only streaming replies are folded into OpenAI SSE chunks before the router's Responses/Claude bridges run. Connection base URLs normalize away an already-included model/chatbot suffix. Pin ships no artwork asset, so web/public/providers/nlpcloud.png is a 128x128/2867B glyph generated only from pinned textIcon "NLPC" and #2196F3. Verification: offline httptest fixtures pin Token auth, endpoint path, input/context/history payload, SSE delta translation, base normalization and frontend metadata/catalog/artwork assertions. No live provider, login or quota validation was performed.
Moonshot native API
Add the isolated moonshot API-key provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a, with six curated Kimi models and the native Chat Completions endpoint. Preserve strict K3.1 effort rejection semantics, family-specific thinking and token limits, tool schemas and result names, authentic reasoning, video input, and partial assistant prefixes. Reuse the existing Claude and Responses client bridges and flat cached-token usage mapping. The Kimi Code providers and their credentials remain separate; artwork shares only the existing Kimi brand mark. No live provider or quota validation was performed.
Leonardo native image API
Add the isolated leonardo API-key image provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a, with alias leo and the two curated image models phoenix and sdxl. The catalog carries API root https://cloud.leonardo.ai/api/rest/v1 and native ImageURL https://cloud.leonardo.ai/api/rest/v1/generations; the media lane POSTs to ImageURL with Content-Type: application/json and Authorization: Bearer <key> and sends only modelId, prompt, width, height and num_images: 1. Catalog ids map to the pinned platform UUIDs, raw UUIDs pass through, empty model defaults to phoenix, and size resolves as explicit width/height > size > 1024. Non-2xx POST status and raw text are preserved; a missing sdGenerationJob.generationId answers 502. The lane polls <generationsURL>/<generationId> with bearer auth only at 5s intervals until the pinned 300s deadline, maps generations_by_pk || status COMPLETE/FAILED to download/502 and timeout to 504, and downloads the first result URL with no headers, a 25MiB/60s cap, three guarded redirect hops and public-HTTPS/SSRF checks. Output is the flat OpenAI image shape {created, data:[{b64_json}]} with exactly one image; no n, seed, negative prompt, style, image input, usage or SSE fields are forwarded or fabricated. Cloudflare @cf/leonardo/* model IDs stay on their native Cloudflare lane. The pin ships no artwork: web/public/providers/leonardo.png is a 128x128 glyph generated only from pinned textIcon "LE" and color #8B5CF6, not an unverified historical asset or another provider's mark. Verification: offline httptest fixtures cover POST path/body/headers, UUID mapping, size precedence, single flat b64_json, missing id, raw 401/429, poll COMPLETE/FAILED/timeout, same-origin polling with no credential leak to the download host, redirect re-guard, byte cap and alias/model/artwork metadata; targeted Go and web gates passed. No live provider, login or quota validation was performed.
Keenable web search/fetch provider
Add the isolated keenable provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: public and optional-keyed web search/fetch routes on https://api.keenable.ai. The registry declares no chat model; it carries the API-key and public fetch/search URLs, GET/POST methods and the mandatory X-Keenable-Title header. Go helpers pin the public/keyed route split and URL encoding for fetch targets and search queries; the key only lifts per-IP rate limits and is never sent to the public routes. Pin ships no artwork asset, so web/public/providers/keenable.png is a 128x128 glyph from the provider's KE mark and #06B6D4. Verification: offline route-split fixtures and frontend metadata/artwork assertions. No live provider, login or quota validation was performed.
Ideogram native image API
Add the isolated ideogram API-key image provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a, with alias ideo and the two curated models V_3 and V_2A. The native media lane POSTs to the pinned image endpoint https://api.ideogram.ai/generate (stored as ImageURL; the catalog BaseURL is the bare API root) with Content-Type: application/json, an Api-Key header and only prompt, aspect_ratio: ASPECT_16_9 and model (default V_3); non-2xx upstream status and raw text are preserved, empty results answer 502, and the first returned URL is downloaded under a 25MiB/60s cap before being emitted as an OpenAI image with b64_json. Result downloads re-run the dispatch URL guard on every hop and carry no credentials. No size, seed, style, n, polling, SSE or usage fields are forwarded or fabricated. The pin ships no artwork: web/public/providers/ideogram.png is a 128x128 glyph generated solely from the pinned textIcon "ID" and color #EC4899, not from an unverified historical asset. Verification: offline httptest fixtures cover request path/body/headers, model default and alias, raw upstream errors, empty data, download failure, byte cap, credential isolation and the URL guard; targeted Go and web tests pass. No live provider, login or quota validation was performed.
HuggingChat session-cookie native provider
Add the isolated huggingchat provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the free Hugging Face chat lane on a session cookie. The executor normalizes the cookie, creates a /chat/conversation with the selected model and optional system preprompt, reads rootMessageId from /chat/api/v2/conversations/{id}, merges refreshed Set-Cookie values, then posts a multipart data envelope (inputs, is_retry, is_continue, generationId, MCP lists, timezone, id). The JSONL reply's stream, reasoning, finalAnswer and terminal status events are folded into OpenAI SSE chunks and a single non-streaming completion; finalAnswer is suppressed when tokens already streamed to prevent duplication. Tool-call events are not fabricated. Pin ships a genuine SVG, rasterized to the task's 128px PNG. Verification: offline fixtures pin cookie normalization, conversation creation/lookup, multipart fields, JSONL-to-OpenAI folding and duplicate suppression, plus frontend 24-model metadata and artwork assertions. No live provider, login or quota validation was performed.
Haiper image and video native provider
Add the isolated haiper provider, alias hp, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: HAIPER_KEY job submission on /v1/jobs/gen2/text2image and /v1/jobs/gen2/text2video with bounded /v1/jobs/{job_id} polling. Image requests send the prompt and an aspect ratio (default 16:9); video requests pin duration 4 and 16:9. Terminal completed/succeeded jobs download creation_url or the nested image/video URL through the router's guarded, bounded media downloader and return OpenAI-shaped {created,data:[{b64_json,format}]} with png or mp4. A 300-second deadline, 5-second poll and explicit failed-job status prevent an unbounded wait. Pin ships no artwork asset, so web/public/providers/haiper.png is a 128x128 glyph generated from pinned textIcon "HP" and #6366F1. Verification: offline endpoint, status-header and SSRF-guard fixtures, plus frontend registry/model/glyph assertions. No live provider, login or quota validation was performed.
Gitlawb Opengateway GMI Cloud provider
Add the isolated gitlawb-gmi provider, alias glb-gmi, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer OpenAI passthrough gateway carrying the pinned OpenClaude identification headers and a 40-model passthrough catalog with per-model context/output limits ported verbatim into the token-limits table (basename-keyed so rotated org prefixes keep the numbers). Verified live 2026-11-28: the bare lane prefix (/v1/gmi-cloud) answers "Not found. Use POST /v1/chat/completions." while the suffixed route (/v1/gmi-cloud/chat/completions) reaches authentication and answers "Invalid API key" for a test credential, so the config pins the suffixed chat route. Artwork shares the existing Gitlawb brand mark (same-family rule) at 128px. Verification: offline wiring fixtures pin metadata, config with the verified chat path, the 40-model catalog and alias round-trip, plus frontend metadata/catalog/artwork assertions. No live authenticated inference was performed.
GigaChat token-exchange native provider
Add the isolated gigachat provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the OpenAI-compatible chat lane on https://gigachat.devices.sberbank.ru/api/v1 that requires a short-lived Bearer token. The stored Basic credential is exchanged at the pinned Sber OAuth endpoint with scope=GIGACHAT_API_PERS, a fresh RqUID per exchange and a form body, and the resulting access_token/tok is cached by credential hash until 60 seconds before expiry; a supplied fresh access token is reused. Only the Bearer token is sent to the chat endpoint — the Basic key never leaves the token exchange. Scope and auth URL may be overridden per connection. Pin ships no artwork asset, so web/public/providers/gigachat.png is a 128x128 glyph generated from pinned textIcon "GC" and #10B981. Verification: offline httptest fixtures pin Basic/form/RqUID token exchange, Bearer chat auth and cache reuse across two requests, plus frontend metadata/catalog/glyph assertions. No live provider, login or quota validation was performed.
FriendliAI serverless provider
Add the isolated friendliai provider, alias friendli, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI passthrough over api.friendli.ai/serverless/v1/chat/completions. The pin carries the upstream #5430 finding that an flp_* serverless token is refused with 403 on the /dedicated path while the serverless path accepts it, so the notice tells users to keep the serverless base URL. The pinned snapshot lists the meta-llama-3.1 70B/8B pair; the live /serverless/v1/models catalog is wired as the models fetcher and was verified answering the public catalog on 2026-11-27. Artwork renders the pin-shipped public/providers/friendli.svg mark to 128px. Verification: offline wiring fixtures pin metadata, config, catalog and alias round-trip, plus frontend metadata/model/artwork assertions. No live authenticated inference was performed.
Databricks Model Serving provider
Add the isolated databricks provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI lane whose requests go to <workspace>/serving-endpoints/chat/completions, the join rule pinned by upstream's executor-default unit test. The pinned provider baseUrl is a placeholder workspace (adb-0000000000000000.0) that no real account answers — upstream's own dashboard example swaps in the workspace host — so the executor resolves the connection Base URL, refuses the placeholder or an empty URL with an actionable 400 before any payload is built, and delegates to the shared OpenAI forwarder otherwise. The pinned catalog lists four serving models (databricks-gpt-5, databricks-meta-llama-3-3-70b-instruct, databricks-claude-sonnet-4, databricks-gemini-2-5-pro); model availability follows the serving endpoints created in the workspace. Artwork is the 128px databricks.com favicon mark. Verification: offline fixtures pin the missing-URL and placeholder 400s, the exact /serving-endpoints/chat/completions path, Bearer auth, body passthrough and reply, plus frontend metadata/model/artwork assertions. No live workspace inference was performed.
Conol web-chat native provider
Add the isolated conol-web provider, alias cnl, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the experimental session-cookie chat lane on /api/sessions. The executor normalizes the __Secure-better-auth.session_token cookie, creates an empty session, pins preset → model → effort in that order, submits the latest user turn, then polls cumulative NDJSON updates until the done event and folds staged/assistant/stream text into OpenAI frames. Model suffix effort is clamped onto the pinned per-model ladder. Image upload and persisted session bindings are deliberately not fabricated. Pin ships no artwork asset, so web/public/providers/conol-web.png is a 128x128 glyph generated from pinned textIcon "CO" and #F6C945. Verification: offline session/model/submit/stream fixtures and frontend fallback-model/glyph assertions. No live provider, login or quota validation was performed.
Command Code Provider API (GOAT) native provider
Add the isolated commandcode-goat provider, alias cmc-goat, from pinned go9r 0cce071088d2c91aca8743440ff09cf0252968d1: the documented Command Code Provider API on one Bearer key, distinct from legacy commandcode/cmc and its CLI /alpha/generate spoofing. The 97-model feed snapshot 2026-11-11 carries each id's declared lane: twelve Claude ids to /provider/v1/messages, the remaining 85 to /provider/v1/chat/completions, with Responses clients bridged through the router and the /provider/v1/responses lane retained for future ids that target it. Prefix and thinking-suffix stripping, null/empty chat content repair, x-cmd-zdr: 1 opt-in, Anthropic tool/session shaping and streaming/non-streaming response translation are ported with the pinned algorithms; typesafe/jev remains a /provider/v1/systemone decision model through the existing config URL. No CLI identity headers are sent and no other Command Code lane changes. Artwork is the genuine pinned 128×128/9335B provider PNG, not a generated substitute. Verification: pinned provider/executor/sanitizer tests plus frontend registry, 97-model, lane-count and artwork assertions. No live provider, login or quota validation was performed.
Command Code Provider API native lane
Add the isolated command-code provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a, alias cmd, display name "Command Code", terminal icon, color #111827, and all 22 pinned Provider API model ids. Bearer API-key requests go to the pinned https://api.commandcode.ai/provider/v1/chat/completions; the six targetFormat:"claude" models go to /provider/v1/messages with anthropic-version: 2023-06-01, with OpenAI chat bodies converted through the existing Claude Messages shaper and Claude replies translated back. A client-supplied output cap is clamped to 200000, a missing or non-positive cap uses the pinned reasoning-safe 16384 default, and model ids are normalized only for the two documented bare mimo-v2.5 aliases. Responses clients are translated to the Chat surface through the router's Responses bridge; the pin's separate /provider/v1/responses route and the CLI /alpha/generate fallback are deliberately not used, so no CLI impersonation headers are emitted. No credential is sent to any other lane and no cmc/commandcode behavior changes. Pin ships no artwork, so web/public/providers/command-code.png is a 128x128/3027B glyph generated only from pinned textIcon "CC" and color #111827. Verification: offline httptest fixtures pin chat-path Bearer auth, CLI-header isolation, model/token normalization for id and alias overrides, Messages-lane Anthropic header and tool shaping, Claude-to-OpenAI response translation, plus frontend registry/metadata/model/artwork assertions. No live provider, login or quota validation was performed.
Naver CLOVA Studio native provider
Add the isolated clova-studio provider, alias clova, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the native Chat Completions v3 endpoint https://clovastudio.stream.ntruss.com/v3/chat-completions/<model> with a Bearer Naver Cloud Platform key, not the OpenAI compatibility shim. OpenAI requests are translated into CLOVA messages, sampling fields, reasoning thinking.effort, output caps (maxCompletionTokens for HCX-007, maxTokens elsewhere), HCX-005 image parts and tool mode with its 1024-token floor; tool mode and thinking are mutually exclusive as upstream requires. CLOVA always streams upstream, so token, reasoning and tool frames are folded into OpenAI SSE chunks and accumulated into one completion for non-streaming clients, with the result snapshot emitted only when no tokens were streamed. Pin ships no artwork asset, so web/public/providers/clova-studio.png is a 128x128 glyph generated from pinned textIcon "CS" and #03C75A. Verification: offline payload/stream fixtures and frontend metadata, catalog and artwork assertions. No live provider, login or quota validation was performed.
Cheaper Inference dual-surface provider
Add the isolated cheaperinference provider, alias cinf, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: an OpenAI-compatible gateway whose 39-model catalog was captured live upstream (27 vision, all reasoning/tools, capabilities mirrored verbatim) and whose six GPT-5.x models are tagged openai-responses and routed to the stateless /v1/responses endpoint — buildResponsesBody hard-sets store:false on both conversion paths, satisfying the pinned store contract and overwriting any client store:true. The CI payload transport is ported whole: bodies ≥32KiB travel gzip-encoded, compressed wire bodies over 4MiB go through the same-origin chunked reservation protocol (manifest with sha256, 1MiB PUT parts, one x-ci-payload-upload inference dispatch with a {} body, best-effort DELETE cleanup that only fires when the dispatch fails — never delaying a successful stream), a 20MiB ceiling refuses oversized JSON with 413, and a returned upload URL is never followed — only the opaque uuid reservation id is used, shape-validated. The fail-closed media guard mirrors ciTransportSupportsInput: inline audio rides only gemini-3.7-flash on this catalog, no model has a verified pdf/video transport, and normalizeCIMixedMedia rewrites input_audio/video_url carriers into CI's MIME-typed file carrier only when two or more media kinds are present. The pin ships no artwork asset, so web/public/providers/cheaperinference.png is a 128x128 glyph from the pinned textIcon CI and #31F889. Verification: offline fixtures pin the responses/chat URL routing, store:false on the responses body, the three media refusals and the verified-audio pass, gzip tier round-trip, the full chunked reservation→parts→dispatch flow including the reservation-reference {} body, mixed-media normalization, reservation-id shape (URL-shaped ids refused) and the 20MiB 413, plus frontend metadata/catalog/glyph assertions. No live authenticated inference was performed.
ChatPlayground native provider
Add the isolated chatplayground provider, alias cpl, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the Clerk-authenticated web chat gateway on /api/chat/azure|lmsys|perplexity. The executor resolves the 33 pinned fallback models, accepts a direct Clerk JWT or a full __client/__session cookie export, mints and caches short-lived Clerk session JWTs with expiry, and builds the endpoint-specific payload with the required botId and submissionId. Streamed and non-streamed replies strip CHAT_ID: markers and become OpenAI SSE/completion frames; the 15,000-character per-message limit is enforced before dispatch. Pin ships no artwork asset, so web/public/providers/chatplayground.png is a 128x128 glyph generated from pinned textIcon "CP" and #7C3AED. Verification: offline fixtures pin model resolution, payload shape, bearer auth, CHAT_ID stripping and frontend 33-model/glyph assertions. No live provider, login or quota validation was performed.
Charm Hyper gateway provider
Add the isolated charm-hyper provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI passthrough over hyper.charm.land/v1/chat/completions with a passthrough catalog — the pinned snapshot lists hyper/auto and the live /v1/models endpoint (verified answering the public catalog on 2026-11-27) feeds refreshes. The pin carries the free-tier note (100 monthly Hypercredits on signup) in the auth hint. Artwork renders the pin-shipped public/providers/charm-hyper.svg mark to 128px. Verification: offline wiring fixtures pin metadata, config, catalog and executor registration, plus frontend metadata/model/artwork assertions. No live authenticated inference was performed.
Cerebrium deployment native provider
Add the isolated cerebrium provider from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: a Bearer-authenticated OpenAI-compatible lane whose connection Base URL must be the deployment's own /run endpoint (https://api.cerebrium.ai/v4/<project-id>/<app-name>/run). A request without that URL is refused with 400 before any body is built or sent, so a configuration error never trips provider cooldown or circuit breaker; with a URL present the shared OpenAI forwarder handles chat, Responses and stream translation. The pinned static catalog contains one chat model, meta-llama/Meta-Llama-3.1-8B-Instruct. Pin ships no artwork asset, so web/public/providers/cerebrium.png is a 128x128 glyph generated only from pinned textIcon "CB" and #EB3A6F. Verification: offline httptest fixtures pin the missing-URL 400, exact deployment path, Bearer auth, body passthrough and reply, plus frontend registry/model/glyph assertions. No live provider, login or quota validation was performed.
Adapta One web-chat native provider
Add the isolated adapta-web provider, alias adp-web, from OmniRoute pin 632d84f569f72893ed148e5b19dd05e2fff1a52a: the Clerk-backed web chat lane on /api/chat/stream/v1. The stored __client cookie value is exchanged for an active Clerk session ID and short-lived JWT, cached until 30 seconds before expiry. OpenAI messages become Adapta {role,parts} with system text injected into the first user turn, and text-delta events (excluding the quick-response placeholder) are folded into OpenAI SSE/completion frames; public stream errors are redacted. All seven pinned models map to the pinned internal model id 14; native tool execution is not claimed. Pin ships no artwork asset, so web/public/providers/adapta-web.png is a 128x128 glyph from textIcon "AW" and #6E3AD3. Verification: offline Clerk-mint and stream fixtures plus frontend seven-model/glyph assertions. No live provider, login or quota validation was performed.
Fixed
- Removed the shadowed
mimocodeprovider row from the display registry, wire configuration, registry aliases and executor registration.ResolveAlias("mimocode")has always returnedmimo-free, so that row could never be reached. - Kept the compatibility aliases
mimocodeandmimocode-freepointing atmimo-free, and addedTestNoShadowedRegistryEntriesfor registry ids that actually have wire configuration.
Verification
- Red before the fix: the new test reported
mimocoderesolving tomimo-free. Green after removing the row. TestMimocodeProviderCatalogAndAliasesupdated to assert the canonical provider only;go test ./internal/providers/ ./internal/proxy/executor/pass;tools/p1_gate.sh sec2-pb2green.
Fixed
- Collapsed the two equivalent Naga entries into
naga-ac. Both rows shared the same endpoint, auth header, passthrough flag and models fetcher, so operators had to install one credential twice and health/usage split across two ids. - Kept
naga-aias a compatibility alias tonaga-acin Go and in the web alias map, removed the duplicate registry/config/executor entries, and addedTestNagaAIAliasResolvesToNagaAC.
Verification
grep -rn '"naga-ai"' internal/providersreturns only the alias shim.go test ./internal/providers/ ./internal/proxy/executor/andbun test src/libpass;tools/p1_gate.sh sec2-pb1-rerungreen.
Fixed
- Cursor is hidden with a TODO_OWNER note until its checksum/machineId wire executor exists. Posting to the bare
api2.cursor.shhost could never serve chat, so leaving it visible made Check All mark all fourteen models dead. - Removed
vertexandvertex-partnerfrom the registry, wire configuration, model catalogs, seeded free-tier list and web catalog. No Vertex executor is registered and no project/service-account provisioning exists for the generic lane, so advertising the entries was misleading; the stale comment claiming a shared Vertex executor was removed too. huggingfaceis unchanged: its registry kinds areimageandstt, not chat, so the reported bare chat endpoint is not a live chat lane. The new test pins that it must not start advertisingllmwithout a dispatcher.gemini-clinow declaresFormat: "gemini-native", so fallback dispatches through the native handler that already probes a project id and callsForwardGeminiinstead of POSTing to a bare/v1internalURL.
Scope note
TestM5DispatchLane is scoped to the five ids named in the audit. A global "every llm provider has a lane" assertion also fails on unrelated web/cookie sessions, placeholder URLs and other pre-existing special lanes outside this task; those are not changed here.
Verification
- Red before the fix: cursor not hidden, both Vertex ids present, gemini-cli format empty. Green after the dispositions above.
go test ./internal/providers/ ./internal/proxy/executor/ ./internal/handlers/chat/andbun test src/libpass.
Fixed
- Removed the second copy of
gemini-2.5-pro,gemini-2.5-flashandgemini-2.5-flash-litefrom the Gemini catalog in both the Go registry and the web model list. The first entries stay; no model id disappears from the catalog. - Added
TestProviderModelsNoDuplicateIDsso a future port cannot reintroduce duplicate ids inside one provider.
Verification
- Red before the fix: the new test named the three duplicated Gemini ids. Green after removing the second block in
registry_models.goandweb/src/lib/models.ts. go test ./internal/providers/andbun test src/libpass;tools/p1_gate.sh sec2-m3green.
Fixed
- Gemini 400 and thought-signature errors no longer write the full request body to fixed, world-readable
/tmpfiles on every production rejection. Both dumps now require9RX_DEBUG_DUMP=1, use mode 0600, and keep request previews out of logs unless the same opt-in is set. Upstream error details are still logged.
Verification
TestForwardGemini_DebugDumpRequiresOptInandTestForwardGemini_DebugDumpWithOptInexercise a real 400 response with a thought-signature error and assert the two paths are absent or present accordingly.tools/p1_gate.sh sec1-m2: all steps green.
Fixed
- JSON-schema guardrail policies can now be saved and enforced from the dashboard.
json_schemais accepted as a detector name, schema patterns are validated as JSON Schema rather than compiled as regexes, and request-levelcustomPatternsare merged into the config the resolver actually reads. A schema-only policy now enables the engine on its own. - Inbound JSON bodies that violate the schema are refused with HTTP 400 naming the offending fields; buffered responses keep the existing block behaviour and streaming responses remain unblocked.
wiki/security.mddocuments the supported shape and the coverage boundary.
Verification
TestSchemaOnlyPolicyEnablesEngine,TestValidateJSONSchemaRejectsMalformedDocument,TestInboundJSONSchemaBlockNamesOffendingField, the extendedvalidateGuardrailConfigtable,TestHandleCreateGuardrailPolicy_MergesTopLevelSchemaPatternandTestHandleCreateGuardrailPolicy_RejectsMalformedSchema.go run ./tools/sitegen -out _siteregeneratessecurity.htmlwith the new text.tools/p1_gate.sh sec1-m1: all steps green.
Fixed
- Bound
CompressContainerOutputfor small positive line budgets without panicking on short tables; preserve fitting output and existing large-budget behavior (issue #18). - Replay unknown-length request bodies completely after the bounded TPM token scan, while retaining the original body closer and prefix-based charge (issue #14; duplicate #24).
- Close abandoned Qoder rewrite pipes and upstream reads on consumer return or cancellation, preserving normal completion and producer errors (issue #26).
- Retain all announced item identities and final snapshots in the Responses bridge's terminal output array (issue #16, terminal-only scope).
- Force termination and confirm exit of an unhealthy startup child before removing its matching PID claim; retain claims and cleanup errors when termination fails (issue #19).
Verification
- Each fix passed
go build ./...,go vet ./..., andgo test ./internal/... -count=1serially with real exit codes. - Each new guard was proven by a core mutation that failed, followed by restoration and passing tests.
- Daemon lifecycle guards executed on Windows/amd64 with isolated child processes and data directories; Linux/amd64 and Darwin/arm64 daemon tests cross-compiled but were not executed locally.
- No tracked frontend files changed; genuine baseline assets were built only for Go embed preparation. No live provider accounts or production databases were used.
Scope notes
- The permitted
json_guard.gonumber-precision path for issue #17 was already protected in the baseline. An unnecessary parser prototype was rejected and restored; no generic-decoder behavior was changed. - The separate
sanitize.goprecision path, Responses non-terminal output-index collisions, and follow-up cases noted on issues #10/#15 remain outside this batch. These local fixes do not imply those issues are fully resolved. - Issue replies and closure notes are owner-reviewed drafts only; no issue was posted to or closed by this batch.
Fixed
- Provider-count claims in README and wiki now come from code instead of hand-maintained literals.
tools/sitegen/providercountwalksproviders.KnownProvidersthroughClassifyProviderand prints{"total":344,"apikey":265,"oauth":34,"freeTier":23,"free":11,"webCookie":11}; the same tool's-writemode refreshes every generated span.make readme-countis the regeneration entry point. - Replaced the stale 154/91/28/29/6 figures in README, the wiki home page, the providers page and the comparison page. The icon map follows the heading whose number is no longer baked into the slug.
Verification
go run ./tools/sitegen/providercountreturns the JSON above;grep -rn '"154' README.md wiki/returns 0.TestCollectMatchesRegistry,TestReplaceMarkers,TestReplaceMarkersRejectsUnknownField, and the fullgo test ./tools/sitegen/...suite pass.tools/p1_gate.sh sec1-h3: all steps green. Themakebinary is not installed in the local environment, so the target command was verified directly withgo run ./tools/sitegen/providercount -write.
Fixed
- Dashboard mutations now write their audit entries through
RecordAuditChainEntry, so each row carries the hash of its predecessor instead of an unchained insert.EnsureAuditChainColumnsis a real idempotent migration (chain columns plusidx_audit_prev_hash) and runs at boot alongside the other additive columns. - Added the admin-only
GET /api/audit/verifyendpoint. It walks the chain, reports the first tampered row, and ignores pre-migration entries with no hashes.
Verification
TestEnsureAuditChainColumnsIsIdempotent,TestRecordAuditWritesChainedEntry,TestHandleVerifyAuditChain, plus the existing intact and tamper-detection tests.tools/p1_gate.sh sec1-h2: all steps green.
Fixed
- Dashboard login no longer issues a session from a correct password alone when TOTP enrollment is enabled. The previously dead
totpLoginGatenow runs on the login path: a missing code receives200 {"totpRequired": true}with no cookie, a wrong code receives a generic 401, and a valid TOTP or backup code passes. Backup codes still burn on use, and failed second factors count toward the same per-client lockout as password failures. - Added the public
POST /api/auth/login/totpstep-up route plus a second-step code form inLoginView.svelte, so the operator finishes sign-in on the same screen. The API client now shares one login POST helper between both steps.
Verification
TestHandleAuthLogin_TOTPDisabledUsesPasswordAlone,TestHandleAuthLogin_TOTPRequiredWithoutCodeIssuesNoSession,TestHandleAuthLoginTOTP_CorrectCodeIssuesSession,TestHandleAuthLoginTOTP_WrongCodeIsUnauthorized,TestHandleAuthLoginTOTP_BackupCodeBurnsOnUse.tools/p1_gate.sh sec1-h1: go build, vet, fullgo test ./... -count=1,bun test src scripts,bun run build, svelte-check ratchet and post-web Go gates all green.
Gitlawb MiMo lane chat route fix
Point the Gitlawb Opengateway MiMo lane at its real chat route, /v1/xiaomi-mimo/chat/completions. The registered BaseURL carried the bare lane prefix, and the gateway answers POSTs to that path with 404 Not found. Use POST /v1/chat/completions. — every MiMo chat request through the router failed before this fix. The suffixed route is verified live against the gateway: it returns 401 Invalid API key for an invalid key, i.e. it reaches authentication and serves the lane. No other lane config changes.
Fixed
EnsureTrailingUserTurnBodynow recognizes a same-length replacement of an emptied trailing user turn, so theContinue.placeholder is preserved through the encoded Claude Messages body path (#10).- Zed whole-body reads inspect one byte beyond the 10 MiB limit. Exact-cap responses pass; larger responses return a sanitized 502 instead of silently forwarding truncated output (#15).
sanitizeToolArgsreusesunmarshalNumbered, preserving integer arguments above 2^53. Numbered Readlimit/offsetvalues are clamped before unsafe integer conversion (#17).
Verification
- Each fix has a regression guard, an expected-red mutation check, and a restored green run.
go build ./...,go vet ./...,go test ./internal/... -count=1, andgo test ./... -count=1all passed locally with exit 0.- No tracked frontend, dependency, provider registry, or CI files changed.
Fixed
- Scoped the usage-chart keyboard tooltip locator to the chart's own container. The previous page-wide
getByRole('status')also matched the update banner and failed in strict mode; the tooltip assertion itself is unchanged. - Pinned the "Prompt Cache" trigger into view in the 200px viewport dropdown test. At that width the header collapses and the trigger cannot be clicked in its natural position; the assertion still measures the panel's bounding box, so the clamp regression remains covered.
- Seeded the chart cache tests on the UTC date of the final bucket while staying inside the local-midnight window. The old fixed
-1 hour/-1 minuteoffsets crossed midnight on CI and landed in yesterday's bucket.
Verification
bun test e2e/mobileDropdowns.test.ts e2e/usageChartA11y.test.ts: 7 pass, 0 fail locally onorigin/main.- Full
bun run e2erun locally before pushing.
Fixed
- CodeBuddy CN connections now render their quota rows in the usage panel.
fetchProviderUsagehad a case forcodebuddy-intlbut none forcodebuddy-cn, so every CN connection fell through to the default branch and answered{"quotas":{}}. The panel showed "Account active. No quota limits tracked." while the intl lane showed its Monthly / Bonus Pack rows. fetchCodeBuddyIntlUsagebecamefetchCodeBuddyUsage(ctx, provider, ...): both deployments answer the same billing meter contract, so the envelope, the refill/bonus split and the row names are parsed once, and only the origin plus the client identity are selected by provider. The intl entry point is kept as a wrapper.- The CN identity is read from
providers.KnownProviders["codebuddy-cn"].StaticHeadersrather than hardcoded, so the billing read presents the same CLI build the chat lane sends.X-Domainis derived from the billing origin because the executor overrides the registry'swww.codebuddy.cnper connection. - Error messages in the intl path said "CodeBuddy CN …" regardless of the lane; they now name the provider that answered.
Verification: go build ./..., go test ./internal/handlers/dashboard/ (7 new cases pinning dispatch, CN identity headers, unchanged intl identity, error naming, the empty-account read, the blank-token path and that the shared registry map is not mutated).
Fixed
handleTestCompatibleModelnow capturesproviderIdbefore awaiting and refuses to write latency, status or error when the panel has switched. The guard is present in both the success path and the catch path.
Verification
bun run ratchet:svelte: 63 errors, baseline 63.bunx oxlint --deny-warnings: 0 warnings.tools/p1_gate.sh sec3-cb4: all steps green.
Fixed
- Both combo lanes now call one
routeComboModelsdispatcher. The messages/responses lane used to honour onlysmartandtokenmaxxing, socache-optimized,auto,quota-weighted,reset-awareandlkgpsilently behaved like stored order despite being offered in the UI. - Added
TestRouteComboModelsParityfor all seven strategies, using fresh state per case and member-set comparison for clock-scored strategies.
Verification
go test ./internal/handlers/chat/ -run TestRouteComboModelsParity -count=5stable.tools/p1_gate.sh sec3-cb1: all steps green. A later full gate surfaced a clock-order flake in the new test; its tolerance was fixed in a follow-uptest(chat)commit before this branch was finalized.
Fixed
- A Check All sweep now ends with a terminal status for every id it started. Ids still
testingafterPromise.allSettledbecomeerror, the progress counter is set to the full total, and the summary is recomputed from the finalized statuses, so the total matches the visible rows.
Verification
finalizeSweepStatusestests cover the stuck case and confirm statuses outside the sweep stay untouched;formatCheckAllSummarythen reports total 3 for three visible rows.bun test src/components/connections/modelCheckAll.test.ts: 16 pass;tools/p1_gate.sh sec3-ca6: all steps green.
Fixed
- Probe response parsing now unwraps one generic
{"data":{...}}envelope after the existing Cline unwrap, when the object has exactly one object-valued field carryingchoicesorcontent. Multi-field objects and deeper nesting are left alone.
Verification
TestParseProbeBody_UnwrapsSingleObjectEnvelopewas red before the fix and green after;TestParseProbeBody_LeavesMultiFieldObjectAlonepins the boundary.tools/p1_gate.sh sec3-ca4-rerun: all steps green.
Fixed
- Model-test responses now carry
connectionId, the account the resolver actually chose for the probe. A context-carried recorder is installed byprobeModeland written bygetBestConnectionWithContext, so no route header or client pin is needed and media lanes work too. - The dashboard appends
(via <id>)to failed verdicts, so an operator can tell a dead model from one account in cooldown. Added backend resolver and frontend parser tests.
Verification
go test ./internal/handlers/chat/withTestProbeConnectionRecorderGetsResolvedConnection,bun test src/components/connections/modelCheckAll.test.ts.tools/p1_gate.sh sec3-ca2: all steps green.
Fixed
- "Disable dead models" now disables only verdicts that are hard
error. Ablockedverdict is an account cooldown that resolves on its own; disabling it used to remove the model from/v1/models, every picker and every combo permanently. - The button tooltip now says cooldown models are left alone. Added
isDeadProbeStatuswith a regression test covering error, blocked, testing, ok and unprobed states.
Verification
bun test src/components/connections/modelCheckAll.test.ts: 13 pass.tools/p1_gate.sh sec3-ca1: all steps green.
Added
-
AI/ML API provider (
aimlapi, aliasaiml). An OpenAI-compatible aggregator athttps://api.aimlapi.com/v1/chat/completions, Bearer key, routed through the shared OpenAI executor like Together and SumoPod. It shows up in the dashboard's API-key providers with a built-in list of eleven chat models (openai/gpt-5.4-mini,anthropic/claude-sonnet-4.6,google/gemini-3.8-flash,deepseek/deepseek-v4-flash, …). Check Latest Models readshttps://api.aimlapi.com/v1/modelsand keeps only thetype: openai/chat-completionsrows, since the same catalogue also lists image, video, speech and Responses/Messages routes.The same key serves the web search and web fetch lanes through the AI/ML API Toolbox (
POST https://tools.aimlapi.com/v1/tools/run):/v1/searchwithmodel: aimlapirunsweb/search(max_resultscapped at the tool's limit of 20),/v1/web/fetchrunslitescrape/web-fetchand returns the page as Markdown. Requests and answers are adapted ininternal/handlers/media/aimlapi_tools.go, because the Toolbox takes{"tool","input"}on one endpoint rather than a vendor-shaped body.Key handling on the Toolbox lane: the key is attached only when the target is exactly
https://tools.aimlapi.com, redirects are not followed, and the caller's own headers are not relayed upstream.Nothing changes for existing connections: no default, combo or fallback was touched.
Verification
go test -count=1 -run Aimlapi ./internal/providers/ ./internal/handlers/media/: registry entry, chat-row filter, request/response mapping for search and fetch, exact-host check, no redirect follow, no caller-header relay, upstream error text,HandleSearchdispatch.cd web && bun test src/lib/providers.test.ts: catalog wiring and artwork.
Fixed
- CodeBuddy CN and International refresh now use the documented JSON
{}POST with the single-use refresh token inX-Refresh-Token, site-specificX-Domain/User-Agent,X-Auth-Refresh-Source: plugin, andX-Product: SaaS. The International refresh URL now targetswww.codebuddy.ai; successful device authorization persistsexpiresIntoexpiresAt. - OpenCode free inference retries overload responses up to eight total attempts with the pinned linear/capped backoff and jitter; cancellation stops the wait.
FreeUsageLimitErrorstill rotates once rather than entering the overload loop. If the freshly rotated stable session is also rejected, that exact session is expired so the next request mints a new one.
Validation
go build ./...go vet ./...go test ./internal/... -count=1 -timeout=5m- Focused regression tests cover CN/International CodeBuddy headers and endpoint separation, error/refresh-token/expiry handling, device expiry persistence, overload success/eight-attempt cap/abort/backoff, preserved FreeTierError retry behavior, and second rejected stable-session expiry.
Fixed
- Zed streaming JSONL path now closes the upstream response body after reading, so the connection is returned to the pool instead of leaking, and bodies over 10 MiB surface an error instead of being silently truncated.
Validation
go vet ./internal/proxy/executor/,go build ./internal/proxy/executor/
Fixed
- Streaming requests for
gemini-*models on the opencode-go route translate again: the executor's Gemini stream no longer drops every SSE event (itsdata:prefix gate and first-event skip predated the scanner that strips the prefix), so clients receive deltas, a finish reason, and stream termination instead of headers and silence.
Validation
go vet ./internal/proxy/executor/,go test -count=1 ./internal/proxy/executor/, including a new regression test streaming two SSE events throughgeminiStream.
Fixed
POST /admin/health/reset(all arms) now clears per-connection model locks for model names containing a dot —gpt-3.5-turbo,gemini-2.5-pro, … — by quoting thejson_setpath the same way the lock write does, and no longer writes junk nested keys into the connection data blob.
Validation
go vet ./internal/db/,go test -count=1 ./internal/db/, including new regression tests that lock a dotted model, reset per-model and provider-wide, and assert the blob keeps everymodelLock_*key flat.
Fixed
- A trailing user turn whose content the cleanup emptied is now replaced by the "Continue." placeholder instead of being shipped alongside it, so the fallback lane no longer answers 400 from Anthropic for a body the client never wrote that way.
Validation
go vet ./internal/translator/, targeted and fullgo test -count=1 ./internal/translator/, including a new regression test covering empty block array, blank string, and null content tails.
Fixed
- Golden fixture comparisons (GCF block and PII mask sections) normalize CRLF line endings before comparing, so a Windows checkout made with
core.autocrlf=trueno longer failsTestEncodeGoldenBlockandTestPIIMaskGoldenwith a fixture-drift report that does not exist.
Validation
go vet ./internal/compression/gcf/ ./internal/translator/,go test -count=1 ./internal/compression/gcf/ ./internal/translator/on a Windows CRLF checkout (previously failing, now passing); fixtures unchanged so LF checkouts behave identically.