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

lsm / neokai / 24761020454
82%

Build:
DEFAULT BRANCH: dev
Ran 22 Apr 2026 04:59AM 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 04:58AM UTC coverage: 86.21% (-0.03%) from 86.235%
24761020454

push

github

web-flow
fix(space): restore node-agent MCP tools in workflow sessions after restart (#1586)

* fix(space): restore node-agent MCP tools in workflow sessions after restart

Adds mergeRuntimeMcpServers, detachRuntimeMcpServer, and restartQuery to
AgentSession so TaskAgentManager can attach/refresh MCP tools additively
without clobbering other runtime servers (space-agent-tools, db-query, etc.).

The reinjectNodeAgentMcpServer primitive now calls mergeRuntimeMcpServers +
restartQuery so the SDK picks up the fresh node-agent tool registry when
self-healing after a daemon restart or session rehydration.

Test mocks in 5 task-agent-manager test files are updated to implement the
new interface methods; two raw SQL workflow-node seeds now include an agents
config so resolveNodeAgents does not throw on reinject.

* test(agent): add unit tests for merge/detach MCP API and updateUserMcpServers

- `detachRuntimeMcpServer`: remove, no-op when absent, no DB persistence, rotate pattern
- `updateUserMcpServers` in SessionConfigHandler: preserves SDK-type servers, replaces
  subprocess servers, prevents user-supplied servers from overwriting runtime servers,
  persists to DB, emits session.updated
- config-handlers mock: wire `updateUserMcpServers` so handler tests don't throw

* fix(space): address review feedback on MCP tool loss fixes

- Fix missing config column in the third workflow-node SQL seed
  (task-agent-manager.test.ts line ~1071) for consistency with
  the other two seeds fixed in the original commit
- config.mcp.removeServer: return an error instead of silent success
  when the caller tries to remove a runtime SDK-managed server
- Document NEOKAI_DEBUG_MCP_INVARIANTS in .env.example
- Enumerate the 6 remaining setRuntimeMcpServers call sites in the
  @deprecated JSDoc so future migrations have a clear tracking point

9069 of 12356 branches covered (73.4%)

Branch coverage included in aggregate %.

182 of 229 new or added lines in 6 files covered. (79.48%)

67059 of 75949 relevant lines covered (88.29%)

301.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
90.05
-0.92% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
19
79.2
-1.4% packages/daemon/src/lib/space/tools/space-agent-tools.ts
3
78.83
-0.08% packages/daemon/src/lib/rpc-handlers/config-handlers.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-0-shared - 24761020454.1 22 Apr 2026 04:59AM UTC 29
85.16
GitHub Action Run
2 daemon-online-rpc-1 - 24761020454.2 22 Apr 2026 05:00AM UTC 277
19.48
GitHub Action Run
3 daemon-5-space-runtime - 24761020454.3 22 Apr 2026 04:59AM UTC 98
43.16
GitHub Action Run
4 daemon-4-space-storage - 24761020454.4 22 Apr 2026 04:59AM UTC 115
49.49
GitHub Action Run
5 daemon-5-space-other - 24761020454.5 22 Apr 2026 04:59AM UTC 101
33.47
GitHub Action Run
6 daemon-online-websocket - 24761020454.6 22 Apr 2026 04:59AM UTC 277
15.62
GitHub Action Run
7 daemon-online-rewind-2 - 24761020454.7 22 Apr 2026 04:59AM UTC 277
19.92
GitHub Action Run
8 daemon-5-space-agent - 24761020454.8 22 Apr 2026 04:59AM UTC 133
28.33
GitHub Action Run
9 daemon-5-space-workflow - 24761020454.9 22 Apr 2026 04:59AM UTC 78
33.22
GitHub Action Run
10 daemon-online-features-2 - 24761020454.10 22 Apr 2026 05:01AM UTC 277
19.67
GitHub Action Run
11 daemon-online-space-1 - 24761020454.11 22 Apr 2026 05:00AM UTC 277
26.45
GitHub Action Run
12 daemon-online-room-mcp - 24761020454.12 22 Apr 2026 04:59AM UTC 277
17.08
GitHub Action Run
13 daemon-online-space-2 - 24761020454.13 22 Apr 2026 05:01AM UTC 277
27.03
GitHub Action Run
14 daemon-1-core - 24761020454.14 22 Apr 2026 04:59AM UTC 282
34.94
GitHub Action Run
15 daemon-online-lifecycle - 24761020454.15 22 Apr 2026 04:59AM UTC 277
19.69
GitHub Action Run
16 daemon-online-git - 24761020454.16 22 Apr 2026 04:59AM UTC 277
18.38
GitHub Action Run
17 daemon-online-cross-provider-3 - 24761020454.17 22 Apr 2026 04:59AM UTC 277
6.44
GitHub Action Run
18 daemon-online-cross-provider-4 - 24761020454.18 22 Apr 2026 05:00AM UTC 277
19.91
GitHub Action Run
19 daemon-online-rpc-3 - 24761020454.19 22 Apr 2026 05:00AM UTC 277
20.42
GitHub Action Run
20 daemon-online-mcp - 24761020454.20 22 Apr 2026 04:59AM UTC 277
16.42
GitHub Action Run
21 daemon-online-rewind-1 - 24761020454.21 22 Apr 2026 05:00AM UTC 277
19.47
GitHub Action Run
22 daemon-online-features-3 - 24761020454.22 22 Apr 2026 04:59AM UTC 277
15.16
GitHub Action Run
23 daemon-online-components - 24761020454.23 22 Apr 2026 04:59AM UTC 277
15.5
GitHub Action Run
24 daemon-online-cross-provider-2 - 24761020454.24 22 Apr 2026 04:59AM UTC 277
18.1
GitHub Action Run
25 daemon-2-handlers - 24761020454.25 22 Apr 2026 04:59AM UTC 225
50.44
GitHub Action Run
26 daemon-online-sdk - 24761020454.26 22 Apr 2026 04:59AM UTC 277
19.18
GitHub Action Run
27 web - 24761020454.27 22 Apr 2026 05:00AM UTC 237
78.51
GitHub Action Run
28 daemon-online-features-1 - 24761020454.28 22 Apr 2026 05:00AM UTC 277
19.97
GitHub Action Run
29 daemon-online-rpc-4 - 24761020454.29 22 Apr 2026 05:00AM UTC 277
20.16
GitHub Action Run
30 daemon-online-agent-sdk - 24761020454.30 22 Apr 2026 04:59AM UTC 277
19.26
GitHub Action Run
31 daemon-online-rpc-2 - 24761020454.31 22 Apr 2026 05:00AM UTC 277
18.99
GitHub Action Run
32 daemon-online-convo - 24761020454.32 22 Apr 2026 04:59AM UTC 277
19.16
GitHub Action Run
33 daemon-online-room-coder-subagents - 24761020454.33 22 Apr 2026 04:59AM UTC 277
17.35
GitHub Action Run
34 daemon-online-coordinator - 24761020454.34 22 Apr 2026 04:59AM UTC 277
6.44
GitHub Action Run
Source Files on build 24761020454
  • Tree
  • List 525
  • Changed 10
  • Source Changed 6
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24761020454
  • 129569e2 on github
  • Prev Build on dev (#24759292318)
  • Next Build on dev (#24762066978)
  • 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