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

lsm / neokai / 24961785619
82%

Build:
DEFAULT BRANCH: dev
Ran 26 Apr 2026 04:45PM UTC
Jobs 34
Files 545
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

26 Apr 2026 04:44PM UTC coverage: 82.967% (+0.003%) from 82.964%
24961785619

push

github

web-flow
fix(daemon): rehydrate sub-session MCP servers across daemon restart (#1646)

* fix(daemon): rehydrate sub-session MCP servers across daemon restart

Task #126: after a daemon restart, coder/reviewer sub-sessions sitting
at a code-ready-gate silently lost their `node-agent` and
`space-agent-tools` MCP servers, so any `write_gate` / `read_gate` /
`send_message` call died with "No such tool available". Two gaps caused
this:

1. `SpaceTaskRepository.listActiveWithTaskAgentSession` excluded `'review'`
   status, so the parent task agent was never rehydrated while the workflow
   waited at the review gate.
2. `TaskAgentManager.rehydrateTaskAgent` did not eagerly rehydrate
   workflow sub-sessions, so they only came back via the lazy
   `injectSubSessionMessage` path. UI/RPC paths that resolve a sub-session
   through `SessionManager.getSessionAsync` short-circuit on
   `AgentSession.restore()` and never reach `rehydrateSubSession`, leaving
   the session with no in-process MCP servers attached.

This commit:
- Adds `'review'` to the active-status set in
  `listActiveWithTaskAgentSession` and documents the per-status rationale.
- Adds a private `rehydrateSubSessionsForRun` helper invoked at the end
  of `rehydrateTaskAgent` to eagerly rehydrate every sub-session whose
  `NodeExecution` still carries an `agentSessionId`. Failures are isolated
  per sub-session.
- Updates docstrings on `rehydrate` / `rehydrateTaskAgent` to describe
  the new behaviour and removes the prior misleading note about
  "subSessions map rebuilt from sub-session tasks" (no such code existed).
- Adds focused tests in `task-agent-manager-rehydration.test.ts` covering
  the eager rehydration path for `in_progress` and `'review'` statuses,
  multi-sub-session runs, executions with no `agentSessionId`, and the
  repository-level inclusion of `'review'`.
- Updates `space-task-repository.test.ts` to assert `'review'` is now in
  the active set and is no longer in the exclusion set.

Co-Auth... (continued)

9244 of 12413 branches covered (74.47%)

Branch coverage included in aggregate %.

18 of 18 new or added lines in 2 files covered. (100.0%)

66450 of 78821 relevant lines covered (84.3%)

298.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 daemon-online-components - 24961785619.1 26 Apr 2026 04:45PM UTC 288
15.45
GitHub Action Run
2 daemon-online-room-coder-subagents - 24961785619.2 26 Apr 2026 04:45PM UTC 288
18.03
GitHub Action Run
3 daemon-online-convo - 24961785619.3 26 Apr 2026 04:45PM UTC 288
19.01
GitHub Action Run
4 daemon-online-websocket - 24961785619.4 26 Apr 2026 04:45PM UTC 288
15.58
GitHub Action Run
5 daemon-online-git - 24961785619.5 26 Apr 2026 04:45PM UTC 288
18.29
GitHub Action Run
6 daemon-5-space-runtime - 24961785619.6 26 Apr 2026 04:45PM UTC 104
40.11
GitHub Action Run
7 daemon-online-cross-provider-3 - 24961785619.7 26 Apr 2026 04:45PM UTC 288
6.23
GitHub Action Run
8 daemon-online-features-2 - 24961785619.8 26 Apr 2026 04:45PM UTC 288
19.5
GitHub Action Run
9 daemon-5-space-agent - 24961785619.9 26 Apr 2026 04:45PM UTC 139
29.41
GitHub Action Run
10 daemon-4-space-storage - 24961785619.10 26 Apr 2026 04:45PM UTC 111
58.26
GitHub Action Run
11 daemon-online-space-1 - 24961785619.11 26 Apr 2026 04:46PM UTC 288
26.64
GitHub Action Run
12 daemon-online-rpc-2 - 24961785619.12 26 Apr 2026 04:46PM UTC 288
18.7
GitHub Action Run
13 daemon-online-rpc-4 - 24961785619.13 26 Apr 2026 04:46PM UTC 288
20.12
GitHub Action Run
14 daemon-online-coordinator - 24961785619.14 26 Apr 2026 04:45PM UTC 288
6.24
GitHub Action Run
15 daemon-5-space-workflow - 24961785619.15 26 Apr 2026 04:45PM UTC 84
35.39
GitHub Action Run
16 daemon-online-sdk - 24961785619.16 26 Apr 2026 04:45PM UTC 288
19.02
GitHub Action Run
17 daemon-online-rewind-1 - 24961785619.17 26 Apr 2026 04:46PM UTC 288
19.31
GitHub Action Run
18 daemon-online-features-3 - 24961785619.18 26 Apr 2026 04:45PM UTC 288
15.84
GitHub Action Run
19 daemon-2-handlers - 24961785619.19 26 Apr 2026 04:45PM UTC 236
50.11
GitHub Action Run
20 daemon-online-mcp - 24961785619.20 26 Apr 2026 04:45PM UTC 288
15.91
GitHub Action Run
21 daemon-online-lifecycle - 24961785619.21 26 Apr 2026 04:45PM UTC 288
19.51
GitHub Action Run
22 daemon-0-shared - 24961785619.22 26 Apr 2026 04:45PM UTC 29
84.83
GitHub Action Run
23 daemon-online-room-mcp - 24961785619.23 26 Apr 2026 04:45PM UTC 288
17.78
GitHub Action Run
24 daemon-online-space-2 - 24961785619.24 26 Apr 2026 04:46PM UTC 288
26.91
GitHub Action Run
25 daemon-online-rpc-1 - 24961785619.25 26 Apr 2026 04:45PM UTC 288
19.33
GitHub Action Run
26 daemon-1-core - 24961785619.26 26 Apr 2026 04:45PM UTC 292
29.58
GitHub Action Run
27 daemon-online-cross-provider-4 - 24961785619.27 26 Apr 2026 04:45PM UTC 288
19.73
GitHub Action Run
28 daemon-online-features-1 - 24961785619.28 26 Apr 2026 04:46PM UTC 288
19.79
GitHub Action Run
29 daemon-online-cross-provider-2 - 24961785619.29 26 Apr 2026 04:45PM UTC 288
18.04
GitHub Action Run
30 daemon-5-space-other - 24961785619.30 26 Apr 2026 04:45PM UTC 105
33.73
GitHub Action Run
31 web - 24961785619.31 26 Apr 2026 04:46PM UTC 247
79.37
GitHub Action Run
32 daemon-online-rpc-3 - 24961785619.32 26 Apr 2026 04:45PM UTC 288
20.11
GitHub Action Run
33 daemon-online-agent-sdk - 24961785619.33 26 Apr 2026 04:46PM UTC 288
19.1
GitHub Action Run
34 daemon-online-rewind-2 - 24961785619.34 26 Apr 2026 04:46PM UTC 288
19.74
GitHub Action Run
Source Files on build 24961785619
  • Tree
  • List 545
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24961785619
  • 427c86fa on github
  • Prev Build on dev (#24960922202)
  • Next Build on dev (#24961878469)
  • 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