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

lsm / neokai / 27182873492 / 18
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 09 Jun 2026 04:00AM UTC
Files 342
Run time 20s
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

09 Jun 2026 03:57AM UTC coverage: 22.078% (+0.006%) from 22.072%
27182873492.18

push

github

web-flow
fix: prefer provider metadata context window for non-native providers (#2082)

* fix: prefer provider metadata context window for non-native providers

Invert the default in ContextFetcher so non-Anthropic providers use
their own model metadata contextWindow instead of the SDK's assumed
capacity (which reports 1M or other generic values for GLM, Kimi,
Ollama, MiniMax, custom endpoints, etc.).

Only anthropic and anthropic-copilot continue to trust SDK-reported
values by default. Explicit preferContextWindowMetadata still overrides.

Add tests for non-native provider preference, native provider fallback,
and explicit opt-out via the flag.

* fix: use metadata for translated SDK model IDs on non-native providers

Non-native providers translate their model IDs to SDK placeholders like
'default', so getContextUsage() reports the generic SDK model name while
getSessionModelInfo() returns metadata for the real session model. This
meant metadataMatchesResponse was false and the fix from the previous
commit still fell back to SDK capacity.

Broaden metadataMatchesResponse to also match when the response model is
a generic SDK tier name (default, haiku, sonnet, opus) and the provider
is non-native. Native providers continue to trust SDK values in this
case.

Add tests for generic placeholder model matching.

* fix: update copilot isolation test to allow provider IDs in generic infra

21764 of 98578 relevant lines covered (22.08%)

11.56 hits per line

Source Files on job daemon-online-sdk - 27182873492.18
  • Tree
  • List 342
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27182873492
  • 6d6ae9e2 on github
  • Prev Job for on dev (#27182037313.23)
  • Next Job for on dev (#27183148114.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc