From 338c1f6a1d2943e0f35f64be1134b99c46e4aba8 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Sun, 29 Mar 2026 18:48:06 +0900 Subject: [PATCH] fix: restrict stop command to /stop only --- src/session-commands.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/session-commands.ts b/src/session-commands.ts index b5dc0bf..7fe93b7 100644 --- a/src/session-commands.ts +++ b/src/session-commands.ts @@ -34,7 +34,7 @@ export function extractSessionCommand( if (text === '/compact') return '/compact'; if (text === '/clear') return '/clear'; if (text === '/review' || text === '/review-ready') return '/review'; - if (text === '/stop' || text === '/cancel' || text === '/kill') return '/stop'; + if (text === '/stop') return '/stop'; return null; } @@ -180,9 +180,7 @@ export async function handleSessionCommand(opts: { const killed = deps.killProcess(); deps.advanceCursor(cmdMsg.timestamp); await deps.sendMessage( - killed - ? 'Agent stopped.' - : 'No agent is currently running in this room.', + killed ? 'Agent stopped.' : 'No agent is currently running in this room.', ); return { handled: true, success: true }; }