• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 25967464488
81%

Build:
DEFAULT BRANCH: dev
Ran 16 May 2026 04:48PM UTC
Jobs 28
Files 525
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2026 04:47PM UTC coverage: 81.979% (+0.008%) from 81.971%
25967464488

push

github

web-flow
fix(providers): stop tagging foreign SDK model IDs as anthropic (#1925)

* fix(providers): stop tagging foreign SDK model IDs as anthropic

When ANTHROPIC_BASE_URL is overridden (e.g. user routes Anthropic SDK
traffic to GLM's Anthropic-compatible endpoint, or a previous GLM session
leaked the env var into process.env), the Claude Agent SDK returns foreign
model IDs such as `glm-5`. `AnthropicProvider.convertSdkModels` previously
tagged every returned model as `provider: 'anthropic'`, so GLM models
surfaced in the UI under the Anthropic group.

Filter SDK results to keep only canonical Claude IDs (`sonnet`/`opus`/
`haiku`/`default`/`sonnet[1m]`) and full `claude-*` IDs before conversion.

Also add a defensive FE fallback: when `models.list` omits the `provider`
field on a non-Anthropic ID, `mapRawModelsToModelInfos` now infers the
provider from the family/id instead of blanket-defaulting to `'anthropic'`.

Adds regression tests covering both layers.

* fix(web): align FE provider inference with daemon routing rules

Review feedback on PR #1925 — the family-first FE fallback misclassified
several edge cases:
  - `openai/gpt-*` lumped under anthropic-codex (should be openrouter)
  - `gpt-oss:*` Ollama models lumped under anthropic-codex
  - `kimi-k2:latest` lumped under kimi (colon tag should be Ollama)
  - `claude-*/preview` lumped under openrouter (should stay anthropic)

Reorder inference to prefer ID-based routing (now mirrors the daemon's
`inferProviderForModel` rules) before falling back to the family map,
and tighten `inferProviderFromModelId` accordingly. Add regression tests
for each edge case.

Also drop placeholder URL comment in anthropic-provider.ts and use the
real `MiniMax-M2.5` ID in tests instead of synthetic `minimax-m2`.

* fix(web): route OpenRouter slash refs before colon→ollama fallback

Review feedback on PR #1925 — `google/gemma-4-31b:free` and similar
OpenRouter IDs that carry tier suffixes (`:free`, `:nitro`, etc.) were
caught ... (continued)

8450 of 11719 branches covered (72.11%)

Branch coverage included in aggregate %.

20 of 21 new or added lines in 2 files covered. (95.24%)

65791 of 78842 relevant lines covered (83.45%)

296.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.33
-1.08% packages/web/src/hooks/useModelSwitcher.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-workflow - 25967464488.1 16 May 2026 04:48PM UTC 101
32.23
GitHub Action Run
2 daemon-0-shared - 25967464488.2 16 May 2026 04:48PM UTC 30
83.92
GitHub Action Run
3 daemon-5-space-agent - 25967464488.3 16 May 2026 04:48PM UTC 66
46.07
GitHub Action Run
4 daemon-4-space-storage - 25967464488.4 16 May 2026 04:49PM UTC 136
58.43
GitHub Action Run
5 daemon-online-space-2 - 25967464488.5 16 May 2026 04:50PM UTC 293
33.82
GitHub Action Run
6 daemon-online-rpc-1 - 25967464488.6 16 May 2026 04:49PM UTC 293
19.85
GitHub Action Run
7 daemon-online-mcp - 25967464488.7 16 May 2026 04:48PM UTC 293
18.82
GitHub Action Run
8 daemon-online-agent-sdk - 25967464488.8 16 May 2026 04:49PM UTC 293
23.19
GitHub Action Run
9 daemon-online-rewind-1 - 25967464488.9 16 May 2026 04:49PM UTC 293
23.37
GitHub Action Run
10 daemon-online-rewind-2 - 25967464488.10 16 May 2026 04:49PM UTC 293
23.91
GitHub Action Run
11 daemon-online-lifecycle - 25967464488.11 16 May 2026 04:49PM UTC 293
23.62
GitHub Action Run
12 daemon-online-space-1 - 25967464488.12 16 May 2026 04:50PM UTC 293
34.53
GitHub Action Run
13 daemon-online-coordinator - 25967464488.13 16 May 2026 04:48PM UTC 293
7.52
GitHub Action Run
14 daemon-5-space-other - 25967464488.14 16 May 2026 04:48PM UTC 103
42.5
GitHub Action Run
15 daemon-5-space-runtime - 25967464488.15 16 May 2026 04:49PM UTC 147
43.57
GitHub Action Run
16 daemon-online-features-2 - 25967464488.16 16 May 2026 04:49PM UTC 293
23.59
GitHub Action Run
17 web - 25967464488.17 16 May 2026 04:49PM UTC 223
76.95
GitHub Action Run
18 daemon-online-features-1 - 25967464488.18 16 May 2026 04:49PM UTC 293
23.95
GitHub Action Run
19 daemon-online-components - 25967464488.19 16 May 2026 04:48PM UTC 293
18.37
GitHub Action Run
20 daemon-online-git - 25967464488.20 16 May 2026 04:49PM UTC 293
19.49
GitHub Action Run
21 daemon-online-websocket - 25967464488.21 16 May 2026 04:48PM UTC 293
18.5
GitHub Action Run
22 daemon-2-handlers - 25967464488.22 16 May 2026 04:49PM UTC 175
48.61
GitHub Action Run
23 daemon-online-sdk - 25967464488.23 16 May 2026 04:49PM UTC 293
23.07
GitHub Action Run
24 daemon-online-rpc-4 - 25967464488.24 16 May 2026 04:49PM UTC 293
24.2
GitHub Action Run
25 daemon-online-rpc-3 - 25967464488.25 16 May 2026 04:49PM UTC 293
20.37
GitHub Action Run
26 daemon-online-convo - 25967464488.26 16 May 2026 04:49PM UTC 293
23.06
GitHub Action Run
27 daemon-online-rpc-2 - 25967464488.27 16 May 2026 04:50PM UTC 293
24.47
GitHub Action Run
28 daemon-1-core - 25967464488.28 16 May 2026 04:49PM UTC 298
37.95
GitHub Action Run
Source Files on build 25967464488
  • Tree
  • List 525
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25967464488
  • 49a79e5a on github
  • Prev Build on dev (#25967340249)
  • Next Build on dev (#25967826851)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc