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

lsm / neokai / 27565124947
82%

Build:
DEFAULT BRANCH: dev
Ran 15 Jun 2026 05:46PM UTC
Jobs 28
Files 604
Run time 4min
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

15 Jun 2026 05:45PM UTC coverage: 81.554% (+0.02%) from 81.534%
27565124947

push

github

web-flow
fix: align context window display + compaction for GLM/Kimi (#2113)

* fix: align context window display + compaction for GLM/Kimi

Two-layer fix for broken context window display and auto-compaction on
non-native providers:

Layer 1 (SDK configuration):
- GLM: add preferContextWindowMetadata to all model entries so the
  context bar trusts provider metadata instead of the SDK's 200k fallback
  for unknown model IDs. Add CLAUDE_CODE_AUTO_COMPACT_WINDOW env var per
  model so SDK auto-compact fires at the correct threshold (1M for
  glm-5.2[1m], 200k for the rest).
- Kimi: add preferContextWindowMetadata (display 262k, not 200k). Remove
  CLAUDE_CODE_AUTO_COMPACT_WINDOW env var — the SDK's PP() helper caps
  kimi-for-coding to 200k regardless, so the env var would cause SDK
  auto-compact to fire 60k too early. Move Kimi into a new
  PROVIDER_NO_SDK_AUTO_COMPACT set and disable SDK auto-compact via
  Options.settings; NeoKai fallback now handles compaction.
- Codex: no change. Already correct via claude-opus-4-7 SDK alias plus
  CLAUDE_CODE_AUTO_COMPACT_WINDOW env var.

Layer 2 (NeoKai fallback safety net):
- Add reserveBasedThreshold() + ContextTracker.shouldCompactAt() that
  fire at contextWindow - max(13k, 15%) — higher than the SDK's own
  window - 13k trigger so the SDK has multiple turns to react first.
- Rewrite sdk-message-handler guard: NeoKai fallback no longer disabled
  by SDK's isAutoCompactEnabled flag (which can be wrong for non-native
  providers). Only native providers (anthropic, anthropic-copilot,
  anthropic-codex) skip the fallback.
- Cooldown (60s) prevents double-compaction when both layers race.

* fix: address PR #2113 review nits

Four P3 findings from review:

1. sdk-message-handler.ts: drop "shared cooldown" wording. The cooldown
   is NeoKai-only — SDK compaction handlers (handleStatusMessage /
   handleCompactBoundary) don't call markCompactionTriggered. Reworded
   comment to make the asymmetry explicit.

2. query-option... (continued)

10477 of 15317 branches covered (68.4%)

Branch coverage included in aggregate %.

154 of 154 new or added lines in 8 files covered. (100.0%)

1 existing line in 1 file now uncovered.

89831 of 107679 relevant lines covered (83.42%)

289.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
76.1
-0.52% packages/web/src/components/MessageInput.tsx
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-coordinator - 27565124947.1 15 Jun 2026 05:46PM UTC 340
7.65
GitHub Action Run
2 daemon-online-git - 27565124947.2 15 Jun 2026 05:47PM UTC 351
18.45
GitHub Action Run
3 daemon-online-rewind-2 - 27565124947.3 15 Jun 2026 05:47PM UTC 351
21.99
GitHub Action Run
4 daemon-online-rpc-3 - 27565124947.4 15 Jun 2026 05:47PM UTC 351
19.09
GitHub Action Run
5 daemon-5-space-agent-other - 27565124947.5 15 Jun 2026 05:47PM UTC 276
26.18
GitHub Action Run
6 daemon-online-mcp - 27565124947.6 15 Jun 2026 05:47PM UTC 351
17.89
GitHub Action Run
7 daemon-4-space-migrations-b - 27565124947.7 15 Jun 2026 05:47PM UTC 70
38.8
GitHub Action Run
8 daemon-online-sdk - 27565124947.8 15 Jun 2026 05:47PM UTC 351
21.46
GitHub Action Run
9 daemon-online-components - 27565124947.9 15 Jun 2026 05:46PM UTC 351
17.56
GitHub Action Run
10 daemon-online-rpc-2 - 27565124947.10 15 Jun 2026 05:47PM UTC 351
22.49
GitHub Action Run
11 daemon-1-core - 27565124947.11 15 Jun 2026 05:47PM UTC 357
34.67
GitHub Action Run
12 daemon-0-shared-handlers-workflow - 27565124947.12 15 Jun 2026 05:47PM UTC 324
34.91
GitHub Action Run
13 daemon-online-features-1 - 27565124947.13 15 Jun 2026 05:47PM UTC 351
22.17
GitHub Action Run
14 daemon-online-space-1 - 27565124947.14 15 Jun 2026 05:47PM UTC 351
32.6
GitHub Action Run
15 daemon-online-lifecycle - 27565124947.15 15 Jun 2026 05:47PM UTC 351
21.84
GitHub Action Run
16 daemon-online-agent-sdk - 27565124947.16 15 Jun 2026 05:47PM UTC 351
21.45
GitHub Action Run
17 daemon-online-convo - 27565124947.17 15 Jun 2026 05:47PM UTC 351
21.36
GitHub Action Run
18 daemon-5-space-runtime-b - 27565124947.18 15 Jun 2026 05:47PM UTC 175
46.6
GitHub Action Run
19 daemon-online-rewind-1 - 27565124947.19 15 Jun 2026 05:48PM UTC 351
21.59
GitHub Action Run
20 daemon-5-space-runtime-a - 27565124947.20 15 Jun 2026 05:46PM UTC 122
39.91
GitHub Action Run
21 daemon-online-features-2 - 27565124947.21 15 Jun 2026 05:47PM UTC 351
21.8
GitHub Action Run
22 daemon-4-space-storage - 27565124947.22 15 Jun 2026 05:47PM UTC 156
55.24
GitHub Action Run
23 web - 27565124947.23 15 Jun 2026 05:48PM UTC 243
73.7
GitHub Action Run
24 daemon-online-space-2 - 27565124947.24 15 Jun 2026 05:48PM UTC 351
31.47
GitHub Action Run
25 daemon-online-websocket - 27565124947.25 15 Jun 2026 05:46PM UTC 351
17.66
GitHub Action Run
26 daemon-4-space-migrations-a - 27565124947.26 15 Jun 2026 05:47PM UTC 50
53.78
GitHub Action Run
27 daemon-online-rpc-1 - 27565124947.27 15 Jun 2026 05:47PM UTC 351
18.73
GitHub Action Run
28 daemon-online-rpc-4 - 27565124947.28 15 Jun 2026 05:48PM UTC 351
22.31
GitHub Action Run
Source Files on build 27565124947
  • Tree
  • List 604
  • Changed 12
  • Source Changed 8
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27565124947
  • d3043c64 on github
  • Prev Build on dev (#27560580097)
  • Next Build on dev (#27590172818)
  • 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