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

lsm / neokai / 25884037273
81%

Build:
DEFAULT BRANCH: dev
Ran 14 May 2026 08:32PM UTC
Jobs 28
Files 524
Run time 3min
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

14 May 2026 08:31PM UTC coverage: 82.437% (-0.001%) from 82.438%
25884037273

push

github

web-flow
fix: route task/node agent replies to originating session (#1900)

* fix: route task/node agent replies to originating session

When an ad-hoc space member session (non-space:chat:) uses
send_message_to_task to message a task/node agent, the reply now routes
back to the originating session instead of always going to
space:chat:${spaceId}.

- Add ReplyRoutingRegistry for tracking which session sent messages to
  each task/node
- Add replyToSessionId field to formatAgentMessage envelope with
  machine-readable XML footer
- Update spaceAgentInjector to accept optional replyToSessionId
- Wire replyRoutingLookup through task-agent-tools and
  AgentMessageRouter for both task-agent and node-agent send_message
- Register replyToSessionId in send_message_to_task before injection
- Full backward compat: no registry lookup returns space:chat: default

* fix: wire reply routing in send_message_to_task, AgentMessageRouter, and rehydration paths

Three gaps in the initial reply-routing implementation:

1. space-agent-tools: `replyRoutingRegistry` was accepted in config but
   never destructured or consumed. Now `send_message_to_task` registers
   the caller's session ID before each delivery path (task-agent direct,
   node-agent direct, node-agent post-activation, node-agent queued) so
   replies route back to the originating session.

2. AgentMessageRouter: `replyRoutingLookup` was not passed to the router
   constructed in `buildNodeAgentMcpServerForSession`, so node-agent
   `send_message({ target: 'space-agent' })` always fell back to
   `space:chat:${spaceId}`. Now wired with a `(fromAgentName) =>
   registry.get(taskId, fromAgentName)` lookup.

3. Rehydration: `rehydrateTaskAgent` did not pass `replyRoutingLookup`
   to `createTaskAgentMcpServer` or `replyRoutingRegistry` to
   `createSpaceAgentMcpServer`, so tasks restored after daemon restart
   lost reply routing. Both are now wired. Also added
   `replyRoutingRegistry` to `buildSpaceAgentToolsMcpServerFo... (continued)

8334 of 11605 branches covered (71.81%)

Branch coverage included in aggregate %.

95 of 118 new or added lines in 8 files covered. (80.51%)

66961 of 79731 relevant lines covered (83.98%)

291.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
80.13
-1.81% packages/daemon/src/lib/rpc-handlers/index.ts
6
82.12
-0.11% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
2
75.79
0.05% packages/daemon/src/lib/space/tools/space-agent-tools.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-0-shared - 25884037273.1 14 May 2026 08:32PM UTC 30
83.92
GitHub Action Run
2 daemon-5-space-agent - 25884037273.2 14 May 2026 08:32PM UTC 166
28.82
GitHub Action Run
3 daemon-online-sdk - 25884037273.3 14 May 2026 08:34PM UTC 296
21.93
GitHub Action Run
4 daemon-4-space-storage - 25884037273.4 14 May 2026 08:33PM UTC 130
59.46
GitHub Action Run
5 daemon-5-space-other - 25884037273.5 14 May 2026 08:32PM UTC 124
32.21
GitHub Action Run
6 web - 25884037273.6 14 May 2026 08:33PM UTC 220
76.71
GitHub Action Run
7 daemon-online-features-2 - 25884037273.7 14 May 2026 08:33PM UTC 296
22.38
GitHub Action Run
8 daemon-online-coordinator - 25884037273.8 14 May 2026 08:32PM UTC 296
7.36
GitHub Action Run
9 daemon-5-space-runtime - 25884037273.9 14 May 2026 08:33PM UTC 149
43.83
GitHub Action Run
10 daemon-online-lifecycle - 25884037273.10 14 May 2026 08:33PM UTC 296
22.47
GitHub Action Run
11 daemon-1-core - 25884037273.11 14 May 2026 08:33PM UTC 301
34.27
GitHub Action Run
12 daemon-online-convo - 25884037273.12 14 May 2026 08:33PM UTC 296
21.92
GitHub Action Run
13 daemon-2-handlers - 25884037273.13 14 May 2026 08:32PM UTC 175
49.2
GitHub Action Run
14 daemon-online-rpc-3 - 25884037273.14 14 May 2026 08:33PM UTC 296
19.47
GitHub Action Run
15 daemon-online-rewind-2 - 25884037273.15 14 May 2026 08:33PM UTC 296
22.74
GitHub Action Run
16 daemon-online-features-1 - 25884037273.16 14 May 2026 08:33PM UTC 296
22.78
GitHub Action Run
17 daemon-online-rpc-2 - 25884037273.17 14 May 2026 08:33PM UTC 296
23.29
GitHub Action Run
18 daemon-5-space-workflow - 25884037273.18 14 May 2026 08:32PM UTC 103
32.84
GitHub Action Run
19 daemon-online-mcp - 25884037273.19 14 May 2026 08:32PM UTC 296
17.96
GitHub Action Run
20 daemon-online-rewind-1 - 25884037273.20 14 May 2026 08:33PM UTC 296
22.22
GitHub Action Run
21 daemon-online-components - 25884037273.21 14 May 2026 08:32PM UTC 296
17.53
GitHub Action Run
22 daemon-online-git - 25884037273.22 14 May 2026 08:33PM UTC 296
18.62
GitHub Action Run
23 daemon-online-space-1 - 25884037273.23 14 May 2026 08:34PM UTC 296
32.74
GitHub Action Run
24 daemon-online-rpc-1 - 25884037273.24 14 May 2026 08:33PM UTC 296
18.97
GitHub Action Run
25 daemon-online-rpc-4 - 25884037273.25 14 May 2026 08:34PM UTC 296
23.02
GitHub Action Run
26 daemon-online-agent-sdk - 25884037273.26 14 May 2026 08:33PM UTC 296
22.04
GitHub Action Run
27 daemon-online-websocket - 25884037273.27 14 May 2026 08:32PM UTC 296
17.65
GitHub Action Run
28 daemon-online-space-2 - 25884037273.28 14 May 2026 08:34PM UTC 296
32.07
GitHub Action Run
Source Files on build 25884037273
  • Tree
  • List 524
  • Changed 9
  • Source Changed 7
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25884037273
  • 31c49e94 on github
  • Prev Build on dev (#25867795621)
  • Next Build on dev (#25893338628)
  • 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