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

lsm / neokai / 27848419266
82%

Build:
DEFAULT BRANCH: dev
Ran 19 Jun 2026 09:06PM UTC
Jobs 28
Files 606
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

19 Jun 2026 09:05PM UTC coverage: 81.79%. Remained the same
27848419266

push

github

web-flow
Fix task-agent thinking token counts (#2138)

* fix(daemon): attribute thinking tokens as per-block turn deltas

SDK thinking_tokens events carry a cumulative turn-level estimate, but
the daemon stamped that cumulative value onto every assistant thinking
block. In task-agent/GLM sessions this produced the same token count on
many split thinking blocks.

Now SDKMessageHandler tracks the cumulative estimate and the cumulative
amount already stamped. Each assistant thinking block gets the delta
since the last stamped block; non-positive deltas are omitted so the UI
falls back to character counts. Tracking resets at result messages and
session_state_changed idle to prevent stale cross-turn attribution.

Add unit tests for delta attribution, repeated cumulative estimates,
turn-end reset, and stale/zero/negative delta omission.

* refactor(daemon): reset thinking token tracker when cumulative estimate drops

If the SDK/provider resets the running total for a new thinking block,
the cumulative estimate can drop below the last stamped value. Treat that
as a new block boundary instead of a negative delta, so later thinking
blocks in the same turn still get a token count.

Update tests to cover zero/repeated deltas separately from new-block reset.

* fix(daemon): reset thinking counters on new SDK query init

A turn interrupted or stopped without a result/idle message could leave
lastStampedThinkingTokensEstimate from the previous turn. The next query
would then subtract that stale baseline and undercount or drop its first
thinking block.

Reset the tracker on every SDK system/init message, which fires at the
start of a new query/session and is early enough to clear stale state
before any thinking_tokens events arrive.

Add a test verifying init clears a stale counter from an interrupted turn.

* docs(daemon): clarify thinking token delta heuristic comment

* fix(daemon): reset thinking counters before queued turn replay

The turn-level thinking counter was res... (continued)

10810 of 15739 branches covered (68.68%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

91908 of 109848 relevant lines covered (83.67%)

298.08 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-4-space-migrations-a - 27848419266.1 19 Jun 2026 09:06PM UTC 73
37.85
GitHub Action Run
2 daemon-4-space-migrations-b - 27848419266.2 19 Jun 2026 09:07PM UTC 48
55.92
GitHub Action Run
3 daemon-online-coordinator - 27848419266.3 19 Jun 2026 09:06PM UTC 341
7.86
GitHub Action Run
4 daemon-online-sdk - 27848419266.4 19 Jun 2026 09:08PM UTC 352
22.02
GitHub Action Run
5 daemon-5-space-runtime-b - 27848419266.5 19 Jun 2026 09:06PM UTC 176
46.25
GitHub Action Run
6 daemon-online-agent-sdk - 27848419266.6 19 Jun 2026 09:06PM UTC 352
22.01
GitHub Action Run
7 daemon-4-space-storage - 27848419266.7 19 Jun 2026 09:07PM UTC 157
54.34
GitHub Action Run
8 daemon-5-space-runtime-a - 27848419266.8 19 Jun 2026 09:06PM UTC 123
39.98
GitHub Action Run
9 daemon-online-mcp - 27848419266.9 19 Jun 2026 09:07PM UTC 352
18.06
GitHub Action Run
10 daemon-online-rewind-2 - 27848419266.10 19 Jun 2026 09:08PM UTC 352
22.55
GitHub Action Run
11 daemon-online-rpc-4 - 27848419266.11 19 Jun 2026 09:08PM UTC 352
22.75
GitHub Action Run
12 daemon-online-rpc-2 - 27848419266.12 19 Jun 2026 09:08PM UTC 352
23.01
GitHub Action Run
13 daemon-online-rpc-1 - 27848419266.13 19 Jun 2026 09:08PM UTC 352
18.88
GitHub Action Run
14 daemon-0-shared-handlers-workflow - 27848419266.14 19 Jun 2026 09:06PM UTC 325
35.01
GitHub Action Run
15 daemon-1-core - 27848419266.15 19 Jun 2026 09:06PM UTC 358
35.5
GitHub Action Run
16 daemon-online-websocket - 27848419266.16 19 Jun 2026 09:07PM UTC 352
17.83
GitHub Action Run
17 daemon-online-features-1 - 27848419266.17 19 Jun 2026 09:07PM UTC 352
22.65
GitHub Action Run
18 daemon-online-space-2 - 27848419266.18 19 Jun 2026 09:09PM UTC 352
31.63
GitHub Action Run
19 daemon-online-space-1 - 27848419266.19 19 Jun 2026 09:08PM UTC 352
31.86
GitHub Action Run
20 daemon-online-features-2 - 27848419266.20 19 Jun 2026 09:07PM UTC 352
22.35
GitHub Action Run
21 daemon-online-rpc-3 - 27848419266.21 19 Jun 2026 09:08PM UTC 352
19.23
GitHub Action Run
22 daemon-online-git - 27848419266.22 19 Jun 2026 09:08PM UTC 352
18.61
GitHub Action Run
23 daemon-online-rewind-1 - 27848419266.23 19 Jun 2026 09:08PM UTC 352
22.14
GitHub Action Run
24 daemon-online-convo - 27848419266.24 19 Jun 2026 09:07PM UTC 352
21.92
GitHub Action Run
25 daemon-5-space-agent-other - 27848419266.25 19 Jun 2026 09:07PM UTC 277
26.08
GitHub Action Run
26 daemon-online-components - 27848419266.26 19 Jun 2026 09:07PM UTC 352
17.7
GitHub Action Run
27 web - 27848419266.27 19 Jun 2026 09:07PM UTC 244
73.92
GitHub Action Run
28 daemon-online-lifecycle - 27848419266.28 19 Jun 2026 09:06PM UTC 352
22.32
GitHub Action Run
Source Files on build 27848419266
  • Tree
  • List 606
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27848419266
  • 2703816e on github
  • Prev Build on dev (#27805081806)
  • Next Build on dev (#27851418725)
  • 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