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

lsm / neokai / 25646971668
82%

Build:
DEFAULT BRANCH: dev
Ran 11 May 2026 02:22AM UTC
Jobs 28
Files 522
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

11 May 2026 02:22AM UTC coverage: 82.449% (+0.003%) from 82.446%
25646971668

push

github

web-flow
perf(daemon): index-targeted lookups for hot sdk_messages LiveQueries (#1855)

* perf(daemon): index-targeted lookups for hot sdk_messages LiveQueries

Three fixes on top of PR #1853:

1. getUserMessageByUuid: replace load-all-user-rows + JS scan with a single
   indexed lookup on (session_id, message_type, json_extract uuid). Used by
   the rewind handler on every checkpoint click.

2. SPACE_TASK_ACTIVITY_BY_TASK_SQL message_stats CTE: rewrite the GROUP BY
   join (which forced a full scan of idx_sdk_messages_session_id) as two
   correlated scalar subqueries over unique_session_ids so SQLite picks
   per-session index lookups instead.

3. SPACE_TASK_MESSAGES_BASE_CTE turnUserMessageId: replace the per-row
   correlated subquery (O(N x U)) with a MAX() OVER window function and a
   LEFT JOIN to user_row_starts. SQLite has no LAST_VALUE IGNORE NULLS so
   we carry rowPos as an integer surrogate and resolve back to the user
   message id via the join.

Benchmarked against ~/.neokai/data/daemon.db on 5 representative tasks
(3 runs each, warmup excluded):

| query        | task     | rows | before (ms) | after (ms) | speedup |
| ------------ | -------- | ---: | ----------: | ---------: | ------: |
| activity     | 9f7038f7 |    3 |       319.9 |        0.9 |  363x   |
| compact      | 9f7038f7 | 1537 |      1406.4 |      323.5 |   4.3x  |
| active-turn  | 9f7038f7 | 1421 |      1361.6 |      302.3 |   4.5x  |
| activity     | c1525ca4 |    2 |       289.5 |        0.7 |  413x   |
| compact      | c1525ca4 |  864 |      1981.6 |      418.6 |   4.7x  |
| active-turn  | c1525ca4 |  792 |      1878.0 |      423.7 |   4.4x  |
| activity     | 31ba3d09 |    1 |       292.6 |        0.7 |  418x   |
| compact      | 31ba3d09 |  728 |      1135.5 |      271.6 |   4.2x  |
| active-turn  | 31ba3d09 |  709 |      1098.1 |      256.4 |   4.3x  |
| activity     | 485f6fec |    1 |       280.8 |        0.8 |  351x   |
| compact      | 485f6fec |  812 |      1421.2 |   ... (continued)

8347 of 11648 branches covered (71.66%)

Branch coverage included in aggregate %.

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

65425 of 77828 relevant lines covered (84.06%)

289.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-runtime - 25646971668.1 11 May 2026 02:23AM UTC 148
40.17
GitHub Action Run
2 daemon-online-websocket - 25646971668.2 11 May 2026 02:23AM UTC 287
17.86
GitHub Action Run
3 daemon-0-shared - 25646971668.3 11 May 2026 02:22AM UTC 29
84.15
GitHub Action Run
4 daemon-online-sdk - 25646971668.4 11 May 2026 02:23AM UTC 287
22.18
GitHub Action Run
5 daemon-5-space-other - 25646971668.5 11 May 2026 02:23AM UTC 126
30.9
GitHub Action Run
6 daemon-online-rpc-4 - 25646971668.6 11 May 2026 02:24AM UTC 287
23.58
GitHub Action Run
7 daemon-5-space-agent - 25646971668.7 11 May 2026 02:23AM UTC 170
28.23
GitHub Action Run
8 daemon-online-lifecycle - 25646971668.8 11 May 2026 02:23AM UTC 287
22.73
GitHub Action Run
9 daemon-online-space-2 - 25646971668.9 11 May 2026 02:24AM UTC 287
32.09
GitHub Action Run
10 web - 25646971668.10 11 May 2026 02:23AM UTC 222
76.55
GitHub Action Run
11 daemon-online-agent-sdk - 25646971668.11 11 May 2026 02:23AM UTC 287
22.29
GitHub Action Run
12 daemon-online-rpc-2 - 25646971668.12 11 May 2026 02:24AM UTC 287
23.66
GitHub Action Run
13 daemon-online-rewind-2 - 25646971668.13 11 May 2026 02:23AM UTC 287
23.02
GitHub Action Run
14 daemon-4-space-storage - 25646971668.14 11 May 2026 02:23AM UTC 132
55.77
GitHub Action Run
15 daemon-2-handlers - 25646971668.15 11 May 2026 02:23AM UTC 129
56.85
GitHub Action Run
16 daemon-online-components - 25646971668.16 11 May 2026 02:23AM UTC 287
17.74
GitHub Action Run
17 daemon-online-rpc-1 - 25646971668.17 11 May 2026 02:23AM UTC 287
19.23
GitHub Action Run
18 daemon-online-rewind-1 - 25646971668.18 11 May 2026 02:24AM UTC 287
22.48
GitHub Action Run
19 daemon-online-rpc-3 - 25646971668.19 11 May 2026 02:23AM UTC 287
19.97
GitHub Action Run
20 daemon-online-space-1 - 25646971668.20 11 May 2026 02:24AM UTC 287
32.19
GitHub Action Run
21 daemon-online-features-1 - 25646971668.21 11 May 2026 02:23AM UTC 287
23.04
GitHub Action Run
22 daemon-online-features-2 - 25646971668.22 11 May 2026 02:23AM UTC 287
22.69
GitHub Action Run
23 daemon-1-core - 25646971668.23 11 May 2026 02:23AM UTC 292
37.75
GitHub Action Run
24 daemon-5-space-workflow - 25646971668.24 11 May 2026 02:22AM UTC 107
31.28
GitHub Action Run
25 daemon-online-convo - 25646971668.25 11 May 2026 02:23AM UTC 287
22.17
GitHub Action Run
26 daemon-online-mcp - 25646971668.26 11 May 2026 02:23AM UTC 287
18.19
GitHub Action Run
27 daemon-online-git - 25646971668.27 11 May 2026 02:23AM UTC 287
18.87
GitHub Action Run
28 daemon-online-coordinator - 25646971668.28 11 May 2026 02:22AM UTC 287
7.41
GitHub Action Run
Source Files on build 25646971668
  • Tree
  • List 522
  • 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 #25646971668
  • a2a5f09b on github
  • Prev Build on dev (#25646115400)
  • Next Build on dev (#25647934416)
  • 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