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

lsm / neokai / 25616806840 / 11
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 10 May 2026 01:44AM UTC
Files 222
Run time 6s
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

10 May 2026 01:41AM UTC coverage: 76.958% (+0.008%) from 76.95%
25616806840.11

push

github

web-flow
fix: set autoCompactWindow for non-native providers with large context windows (#1839)

The SDK defaults to a 200k context window for auto-compact when it can't
discover the actual model capacity. This caused DeepSeek v4 (1M context)
to compact at ~17% usage (~170k tokens) instead of the expected ~80%.

Changes:
- QueryOptionsBuilder.build() now fetches the session's ModelInfo and
  passes contextWindow to buildProviderSettings().
- buildProviderSettings() sets autoCompactWindow for non-native providers
  (OpenRouter, Ollama, GLM, etc.) when the model's contextWindow is known.
- Native Anthropic providers (anthropic, anthropic-copilot) are skipped
  since the SDK already knows their correct context windows.
- The Codex bridge's hardcoded 1M autoCompactWindow is preserved.

Tests updated to verify:
- OpenRouter 1M model gets autoCompactWindow=1_000_000
- OpenRouter 128k model gets autoCompactWindow=128_000
- Native anthropic provider leaves settings undefined
- Unknown model context window leaves settings undefined

8213 of 11402 branches covered (72.03%)

Branch coverage included in aggregate %.

10724 of 13205 relevant lines covered (81.21%)

55.53 hits per line

Source Files on job web - 25616806840.11
  • Tree
  • List 222
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25616806840
  • 6e707641 on github
  • Prev Job for on dev (#25616282617.28)
  • Next Job for on dev (#25617095228.16)
  • 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