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

lsm / neokai / 25534038034
83%

Build:
DEFAULT BRANCH: dev
Ran 08 May 2026 02:57AM UTC
Jobs 28
Files 509
Run time 1min
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

08 May 2026 02:56AM UTC coverage: 82.518%. First build
25534038034

push

github

web-flow
Replace task_thread_messages projection with derived columns (#1823)

* refactor(storage): replace task_thread_messages projection with derived columns

Replace the SQLite-trigger projection table introduced in PR #1803 with a
simpler scheme that scales linearly with reads instead of write fan-out:

- Add `is_renderable`, `is_terminal`, and `parent_tool_use_id` derived
  columns to `sdk_messages`, populated at write time by the repository.
- Add a `task_session_map` table (task_id, session_id, kind, role, label,
  node_execution_id) maintained at write time by `SpaceTaskRepository`
  (task_agent leg) and `NodeExecutionRepository` (node_agent leg).
- Migration 118 backfills derived columns and rebuilds the map for
  existing data.
- Mark `task_session_map` as an internal projection — excluded from
  agent-visible scopes in `db-query/scope-config.ts`.

This removes the trigger machinery while preserving the same liveQuery
semantics, with single-table reads instead of multi-CTE walks through
sessions/space_agents/node_executions on every evaluation.

* refactor(live-query): simplify turn detection — user message ID as turnId

The task-thread liveQueries previously composed `turnId` from
`session_groups.iteration` plus the row's UUID. That coupled message
grouping to feedback-iteration metadata that the runtime stamps for a
different purpose (tracking review rounds), and required the SQL to
extract a JSON field on every row.

Replace with the simpler model:

- A "turn" = one user message + every subsequent non-user message until
  the next user message (per session).
- `turnId` = the user message's own row ID. Rows that precede any user
  message in their session fall back to their own ID.
- The compact and full liveQuery SQLs derive `turnUserMessageId` per row
  via a window-function CTE and ROW_NUMBER lookup, so the row mappers
  read it as a single column instead of computing it from JSON.

`feedbackIteration` stays in `session_groups` metadata for tra... (continued)

8231 of 11408 branches covered (72.15%)

Branch coverage included in aggregate %.

142 of 213 new or added lines in 7 files covered. (66.67%)

62864 of 74749 relevant lines covered (84.1%)

290.03 hits per line

Uncovered Changes

Lines Coverage ∆ File
60
73.05
packages/daemon/src/lib/rpc-handlers/live-query-handlers.ts
11
78.21
packages/daemon/src/storage/repositories/sdk-message-repository.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-sdk - 25534038034.1 08 May 2026 02:57AM UTC 277
22.36
GitHub Action Run
2 daemon-5-space-runtime - 25534038034.2 08 May 2026 02:57AM UTC 145
40.75
GitHub Action Run
3 daemon-4-space-storage - 25534038034.3 08 May 2026 02:58AM UTC 121
53.98
GitHub Action Run
4 daemon-2-handlers - 25534038034.4 08 May 2026 02:57AM UTC 123
57.28
GitHub Action Run
5 daemon-5-space-agent - 25534038034.5 08 May 2026 02:57AM UTC 159
29.48
GitHub Action Run
6 daemon-online-rewind-2 - 25534038034.6 08 May 2026 02:58AM UTC 277
23.24
GitHub Action Run
7 daemon-0-shared - 25534038034.7 08 May 2026 02:57AM UTC 28
83.74
GitHub Action Run
8 daemon-online-features-1 - 25534038034.8 08 May 2026 02:58AM UTC 277
23.26
GitHub Action Run
9 daemon-online-space-2 - 25534038034.9 08 May 2026 02:58AM UTC 277
32.53
GitHub Action Run
10 web - 25534038034.10 08 May 2026 02:58AM UTC 222
77.01
GitHub Action Run
11 daemon-online-rpc-2 - 25534038034.11 08 May 2026 02:58AM UTC 277
23.91
GitHub Action Run
12 daemon-online-mcp - 25534038034.12 08 May 2026 02:57AM UTC 277
18.35
GitHub Action Run
13 daemon-online-features-2 - 25534038034.13 08 May 2026 02:57AM UTC 277
22.9
GitHub Action Run
14 daemon-5-space-other - 25534038034.14 08 May 2026 02:57AM UTC 123
31.6
GitHub Action Run
15 daemon-online-rpc-3 - 25534038034.15 08 May 2026 02:57AM UTC 277
19.94
GitHub Action Run
16 daemon-5-space-workflow - 25534038034.16 08 May 2026 02:57AM UTC 104
31.78
GitHub Action Run
17 daemon-online-git - 25534038034.17 08 May 2026 02:57AM UTC 277
19.04
GitHub Action Run
18 daemon-online-lifecycle - 25534038034.18 08 May 2026 02:57AM UTC 277
22.94
GitHub Action Run
19 daemon-online-components - 25534038034.19 08 May 2026 02:57AM UTC 277
17.88
GitHub Action Run
20 daemon-online-rewind-1 - 25534038034.20 08 May 2026 02:58AM UTC 277
22.67
GitHub Action Run
21 daemon-online-space-1 - 25534038034.21 08 May 2026 02:58AM UTC 277
32.42
GitHub Action Run
22 daemon-online-rpc-1 - 25534038034.22 08 May 2026 02:58AM UTC 277
19.42
GitHub Action Run
23 daemon-online-rpc-4 - 25534038034.23 08 May 2026 02:58AM UTC 277
23.57
GitHub Action Run
24 daemon-online-websocket - 25534038034.24 08 May 2026 02:57AM UTC 277
18.01
GitHub Action Run
25 daemon-online-coordinator - 25534038034.25 08 May 2026 02:57AM UTC 277
7.35
GitHub Action Run
26 daemon-online-convo - 25534038034.26 08 May 2026 02:58AM UTC 277
22.35
GitHub Action Run
27 daemon-online-agent-sdk - 25534038034.27 08 May 2026 02:58AM UTC 277
22.47
GitHub Action Run
28 daemon-1-core - 25534038034.28 08 May 2026 02:57AM UTC 282
38.24
GitHub Action Run
Source Files on build 25534038034
  • Tree
  • List 509
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25534038034
  • 0b79d23f on github
  • Prev Build on dev (#25524674886)
  • Next Build on dev (#25535179445)
  • 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