feat: add /stop command to kill running agent process

- /stop, /cancel, /kill aliases all supported
- SIGTERM first (allows graceful AbortController cleanup), SIGKILL after 5s
- Wired through session-commands → GroupQueue.killProcess()
This commit is contained in:
Eyejoker
2026-03-29 18:44:37 +09:00
parent d01f98bd61
commit 2ec90fe086
4 changed files with 53 additions and 1 deletions

View File

@@ -176,6 +176,7 @@ function makeDeps(
isAdminSender: vi.fn().mockReturnValue(false),
canSenderInteract: vi.fn().mockReturnValue(true),
markReviewReady: vi.fn().mockResolvedValue('Review snapshot updated.'),
killProcess: vi.fn().mockReturnValue(false),
...overrides,
};
}