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

lsm / neokai / 24801128055
83%

Build:
DEFAULT BRANCH: dev
Ran 22 Apr 2026 08:32PM UTC
Jobs 34
Files 525
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

22 Apr 2026 08:31PM UTC coverage: 86.3% (+0.03%) from 86.269%
24801128055

push

github

web-flow
fix(space): preserve task-agent sdkSessionId across restart; eagerly spawn sub-sessions (#1599)

* fix(space): preserve task-agent sdkSessionId across restart and eagerly spawn sub-sessions

Root cause: task-agent and worker sub-sessions lost their captured sdkSessionId on
fingerprint mismatch (runtime re-init path in AgentSession.fromInit), forcing the
SDK to treat them as fresh sessions after a daemon restart. In addition, the
sub-session AgentSession objects were created lazily, so a daemon restart between
spawnTaskAgent and first user message left no in-memory trace of the workflow's
node agents — rehydration had nothing to hook into.

Changes:
- AgentSession.fromInit preserves sdkSessionId on fingerprint mismatch for
  space_task_agent sessions (and defensively for worker sessions with
  spaceId+taskId context, though workers currently skip the fingerprint branch).
- Add AgentSession.awaitSdkSessionCaptured(timeoutMs=15000) that polls via
  daemonHub 'session.updated' events with timeout — used by both spawn and
  eager paths to guarantee sdkSessionId is persisted before returning.
- SpaceWorktreeManager.getTaskWorktreePathSync(spaceId, taskId) reads from the
  space_worktrees SQLite table synchronously; the async variant delegates to it.
- TaskAgentManager.spawnTaskAgent now awaits sdkSessionCaptured on the task-agent
  itself, then calls eagerlySpawnWorkflowNodeAgents which creates one
  AgentSession per distinct workflow-node agent slot (first-occurrence wins for
  repeated slot names) and awaits their sdk-session capture too. No kickoff
  query is started on these eager sessions — they simply register so restart
  rehydration has live AgentSession hooks.
- TaskAgentManager.createSubSession reuses eager sub-sessions when the agent
  name matches, synthesizing a pseudo-NodeExecution for the eager fast path.
- TaskAgentManager.getTaskWorktreePath falls back to
  SpaceWorktreeManager.getTaskWorktreePathSync when the in-memory cache misses
  (e.g.... (continued)

8972 of 12186 branches covered (73.63%)

Branch coverage included in aggregate %.

242 of 247 new or added lines in 4 files covered. (97.98%)

67267 of 76156 relevant lines covered (88.33%)

301.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
90.99
0.66% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-other - 24801128055.1 22 Apr 2026 08:32PM UTC 101
33.43
GitHub Action Run
2 daemon-0-shared - 24801128055.2 22 Apr 2026 08:32PM UTC 29
85.16
GitHub Action Run
3 daemon-4-space-storage - 24801128055.3 22 Apr 2026 08:33PM UTC 115
49.56
GitHub Action Run
4 daemon-online-cross-provider-3 - 24801128055.4 22 Apr 2026 08:32PM UTC 277
6.4
GitHub Action Run
5 daemon-5-space-workflow - 24801128055.5 22 Apr 2026 08:33PM UTC 78
33.26
GitHub Action Run
6 daemon-online-cross-provider-4 - 24801128055.6 22 Apr 2026 08:33PM UTC 277
19.81
GitHub Action Run
7 daemon-online-space-2 - 24801128055.7 22 Apr 2026 08:34PM UTC 277
26.94
GitHub Action Run
8 daemon-online-lifecycle - 24801128055.8 22 Apr 2026 08:33PM UTC 277
19.6
GitHub Action Run
9 daemon-online-room-coder-subagents - 24801128055.9 22 Apr 2026 08:33PM UTC 277
17.26
GitHub Action Run
10 daemon-online-sdk - 24801128055.10 22 Apr 2026 08:33PM UTC 277
19.08
GitHub Action Run
11 daemon-online-coordinator - 24801128055.11 22 Apr 2026 08:33PM UTC 277
6.4
GitHub Action Run
12 daemon-online-git - 24801128055.12 22 Apr 2026 08:33PM UTC 277
18.29
GitHub Action Run
13 daemon-online-convo - 24801128055.13 22 Apr 2026 08:33PM UTC 277
19.07
GitHub Action Run
14 daemon-online-websocket - 24801128055.14 22 Apr 2026 08:32PM UTC 277
15.55
GitHub Action Run
15 daemon-online-features-1 - 24801128055.15 22 Apr 2026 08:33PM UTC 277
19.88
GitHub Action Run
16 daemon-online-cross-provider-2 - 24801128055.16 22 Apr 2026 08:33PM UTC 277
18.02
GitHub Action Run
17 daemon-online-room-mcp - 24801128055.17 22 Apr 2026 08:33PM UTC 277
17.0
GitHub Action Run
18 daemon-5-space-runtime - 24801128055.18 22 Apr 2026 08:33PM UTC 98
43.2
GitHub Action Run
19 daemon-2-handlers - 24801128055.19 22 Apr 2026 08:33PM UTC 225
50.39
GitHub Action Run
20 daemon-online-features-2 - 24801128055.20 22 Apr 2026 08:33PM UTC 277
19.52
GitHub Action Run
21 daemon-5-space-agent - 24801128055.21 22 Apr 2026 08:32PM UTC 133
28.72
GitHub Action Run
22 daemon-online-rpc-3 - 24801128055.22 22 Apr 2026 08:33PM UTC 277
20.32
GitHub Action Run
23 daemon-online-features-3 - 24801128055.23 22 Apr 2026 08:33PM UTC 277
15.08
GitHub Action Run
24 daemon-1-core - 24801128055.24 22 Apr 2026 08:33PM UTC 282
34.73
GitHub Action Run
25 daemon-online-agent-sdk - 24801128055.25 22 Apr 2026 08:33PM UTC 277
19.17
GitHub Action Run
26 daemon-online-space-1 - 24801128055.26 22 Apr 2026 08:34PM UTC 277
26.39
GitHub Action Run
27 daemon-online-rpc-4 - 24801128055.27 22 Apr 2026 08:34PM UTC 277
20.06
GitHub Action Run
28 daemon-online-rpc-2 - 24801128055.28 22 Apr 2026 08:34PM UTC 277
18.9
GitHub Action Run
29 daemon-online-rewind-2 - 24801128055.29 22 Apr 2026 08:33PM UTC 277
19.83
GitHub Action Run
30 daemon-online-components - 24801128055.30 22 Apr 2026 08:32PM UTC 277
15.43
GitHub Action Run
31 web - 24801128055.31 22 Apr 2026 08:34PM UTC 237
78.71
GitHub Action Run
32 daemon-online-rewind-1 - 24801128055.32 22 Apr 2026 08:34PM UTC 277
19.38
GitHub Action Run
33 daemon-online-mcp - 24801128055.33 22 Apr 2026 08:32PM UTC 277
16.35
GitHub Action Run
34 daemon-online-rpc-1 - 24801128055.34 22 Apr 2026 08:33PM UTC 277
19.39
GitHub Action Run
Source Files on build 24801128055
  • Tree
  • List 525
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24801128055
  • 5d7286c5 on github
  • Prev Build on dev (#24794371375)
  • Next Build on dev (#24804916750)
  • 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