agent-orchestrator/packages/cli/__tests__/commands
adil 80932f367a fix(cli): address review — use exit handler, verify PIDs, filter kills (#645)
1. Replace SIGINT/SIGTERM handlers with a process `exit` handler to avoid
   conflicting with the shutdown handler that flushes lifecycle state and
   exits with the correct code (130 for SIGINT).

2. Expand dashboard process pattern to match dev mode (next dev, ao-web)
   in addition to production (next-server, start-all.js).

3. Only kill dashboard-matching PIDs from lsof output, leaving unrelated
   co-listeners (sidecars, SO_REUSEPORT) untouched.

4. Use killDashboardOnPort for the first port attempt too, preventing
   blind kills on the configured port when running.json is stale.

5. Add test for mixed-PID filtering on a single port.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 03:01:41 +05:30
..
dashboard.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
doctor.test.ts feat(cli): install-aware ao update, startup notifier, doctor version check (#1156) 2026-04-13 11:46:26 +05:30
init.test.ts Resolve remaining PR review comments 2026-03-17 15:51:02 +05:30
open.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
plugin.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
review-check.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
send.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
session.test.ts Merge upstream/main into feat/session-ls-json 2026-04-10 06:43:25 +05:30
setup.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
spawn.test.ts refactor(cli): remove lifecycle-worker subprocess, poll in-process (#1186) 2026-04-14 17:23:33 +05:30
start.test.ts fix(cli): address review — use exit handler, verify PIDs, filter kills (#645) 2026-04-15 03:01:41 +05:30
status.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
update.test.ts feat(cli): install-aware ao update, startup notifier, doctor version check (#1156) 2026-04-13 11:46:26 +05:30