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

lsm / neokai / 25829666029
82%

Build:
DEFAULT BRANCH: dev
Ran 13 May 2026 10:18PM UTC
Jobs 28
Files 521
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

13 May 2026 10:17PM UTC coverage: 82.325% (-0.04%) from 82.365%
25829666029

push

github

web-flow
fix: clean up agent subprocess groups (#1890)

* fix: clean up agent subprocess groups

Start SDK subprocesses in their own process group, terminate tracked process groups during session stops, and add a watchdog for suspicious long-running child commands.

* fix: scope process watchdog cleanup

Limit watchdog cleanup to daemon-owned process descendants, make elapsed-time parsing portable, and bind deferred force-kills to the terminated process snapshot.

* fix: preserve agent process ownership during cleanup

Keep per-PID force-kill escalation and retain recently exited process groups so watchdog sweeps can still clean up orphaned tool subprocesses.

* chore: trigger CI re-run

* fix: address review feedback on process tracking and cleanup scoping

- Expire recentlyExitedAgentRootPids with 15-minute time-based retention
  to prevent PID-reuse cross-project kills
- Track per-process exit promises and aggregate via Promise.all so
  stop() awaits all tracked roots, not just the latest
- Scope terminateTrackedAgentProcesses to a snapshot taken at stop()
  start so concurrent query starts are not killed by the old stop path
- Update test mocks for new context interface methods

* fix: guard process signals against stale/reused PIDs

- signalTrackedAgentProcesses: gate both group-signal and direct-signal
  on ownership identity (trackedAgentProcesses.get(pid) === proc) so
  stale snapshot entries from PID reuse are skipped
- collectDescendantPids: split root PIDs into live and exited; exited
  roots that appear in the snapshot (reused PIDs) are skipped entirely,
  while truly-exited roots still discover orphaned children via PGID
- Add getTrackedAgentRootPidsSplit() to AgentSession and all managers
  so the watchdog callback passes live/exited roots separately
- Add watchdog tests for reused-PID skipping and orphaned-children
  discovery via exited-root PGID

8334 of 11605 branches covered (71.81%)

Branch coverage included in aggregate %.

269 of 358 new or added lines in 8 files covered. (75.14%)

9 existing lines in 3 files now uncovered.

65818 of 78467 relevant lines covered (83.88%)

291.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
65.52
-2.62% packages/daemon/src/app.ts
23
83.34
-0.78% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
20
87.65
packages/daemon/src/lib/process-watchdog.ts
11
95.51
-4.18% packages/daemon/src/lib/session/session-manager.ts
6
92.1
0.39% packages/daemon/src/lib/agent/agent-session.ts
5
48.84
-1.36% packages/daemon/src/lib/neo/neo-agent-manager.ts

Coverage Regressions

Lines Coverage ∆ File
3
48.84
-1.36% packages/daemon/src/lib/neo/neo-agent-manager.ts
3
95.51
-4.18% packages/daemon/src/lib/session/session-manager.ts
3
83.34
-0.78% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-agent - 25829666029.1 13 May 2026 10:18PM UTC 163
29.03
GitHub Action Run
2 daemon-5-space-other - 25829666029.2 13 May 2026 10:19PM UTC 120
32.58
GitHub Action Run
3 daemon-online-websocket - 25829666029.3 13 May 2026 10:19PM UTC 292
17.68
GitHub Action Run
4 daemon-0-shared - 25829666029.4 13 May 2026 10:18PM UTC 30
83.92
GitHub Action Run
5 daemon-online-coordinator - 25829666029.5 13 May 2026 10:19PM UTC 292
7.38
GitHub Action Run
6 daemon-online-features-1 - 25829666029.6 13 May 2026 10:20PM UTC 292
22.9
GitHub Action Run
7 daemon-online-mcp - 25829666029.7 13 May 2026 10:19PM UTC 292
17.99
GitHub Action Run
8 daemon-online-rpc-3 - 25829666029.8 13 May 2026 10:19PM UTC 292
19.53
GitHub Action Run
9 daemon-online-space-1 - 25829666029.9 13 May 2026 10:20PM UTC 292
32.86
GitHub Action Run
10 daemon-1-core - 25829666029.10 13 May 2026 10:19PM UTC 298
34.36
GitHub Action Run
11 daemon-online-space-2 - 25829666029.11 13 May 2026 10:20PM UTC 292
32.21
GitHub Action Run
12 daemon-online-features-2 - 25829666029.12 13 May 2026 10:19PM UTC 292
22.55
GitHub Action Run
13 daemon-online-agent-sdk - 25829666029.13 13 May 2026 10:19PM UTC 292
22.15
GitHub Action Run
14 daemon-online-rewind-2 - 25829666029.14 13 May 2026 10:19PM UTC 292
22.86
GitHub Action Run
15 daemon-online-rpc-1 - 25829666029.15 13 May 2026 10:20PM UTC 292
19.02
GitHub Action Run
16 daemon-5-space-runtime - 25829666029.16 13 May 2026 10:18PM UTC 141
41.71
GitHub Action Run
17 daemon-online-git - 25829666029.17 13 May 2026 10:19PM UTC 292
18.66
GitHub Action Run
18 daemon-online-rpc-2 - 25829666029.18 13 May 2026 10:19PM UTC 292
23.42
GitHub Action Run
19 daemon-4-space-storage - 25829666029.19 13 May 2026 10:19PM UTC 130
59.51
GitHub Action Run
20 daemon-online-convo - 25829666029.20 13 May 2026 10:19PM UTC 292
22.02
GitHub Action Run
21 daemon-online-rpc-4 - 25829666029.21 13 May 2026 10:20PM UTC 292
23.14
GitHub Action Run
22 daemon-online-lifecycle - 25829666029.22 13 May 2026 10:19PM UTC 292
22.57
GitHub Action Run
23 daemon-online-components - 25829666029.23 13 May 2026 10:18PM UTC 292
17.55
GitHub Action Run
24 web - 25829666029.24 13 May 2026 10:19PM UTC 220
76.71
GitHub Action Run
25 daemon-5-space-workflow - 25829666029.25 13 May 2026 10:19PM UTC 100
33.29
GitHub Action Run
26 daemon-online-rewind-1 - 25829666029.26 13 May 2026 10:20PM UTC 292
22.33
GitHub Action Run
27 daemon-2-handlers - 25829666029.27 13 May 2026 10:18PM UTC 175
49.22
GitHub Action Run
28 daemon-online-sdk - 25829666029.28 13 May 2026 10:19PM UTC 292
22.03
GitHub Action Run
Source Files on build 25829666029
  • Tree
  • List 521
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25829666029
  • 16be9a25 on github
  • Prev Build on dev (#25828948999)
  • Next Build on dev (#25830219317)
  • 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