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

lsm / neokai / 25829666029 / 9
69%
dev: 69%

Build:
DEFAULT BRANCH: dev
Ran 13 May 2026 10:20PM UTC
Files 292
Run time 11s
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: 32.863% (-0.02%) from 32.878%
25829666029.9

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

24462 of 74437 relevant lines covered (32.86%)

16.95 hits per line

Source Files on job daemon-online-space-1 - 25829666029.9
  • Tree
  • List 292
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25829666029
  • 16be9a25 on github
  • Prev Job for on dev (#25828948999.20)
  • Next Job for on dev (#25830219317.15)
  • 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